Main Content

updateFileSeparator

Update file separator character for file lists in build information

Description

updateFileSeparator(buildinfo,separator) changes instances of the current file separator (/ or \) in the build information to the specified file separator.

The default value for the file separator matches the value returned by the MATLAB® command filesep.

example

Examples

collapse all

Update object myBuildInfo to apply the Windows® file separator.

myBuildInfo = RTW.BuildInfo;
updateFileSeparator(myBuildInfo,'\');

Input Arguments

collapse all

RTW.BuildInfo object that contains information for compiling and linking generated code.

The separator argument specifies the file separator \ (Windows) or / (UNIX®) to use in file path specifications in the build information.

Example: '\'

Version History

Introduced in R2006a