matlab.buildtool.io.FileCollection Class
Namespace: matlab.buildtool.io
Description
The matlab.buildtool.io.FileCollection
class represents a collection of
files and folders. You can use this class to specify file-based inputs and outputs of a task.
For more information about task inputs and outputs, see Improve Performance with Incremental Builds.
Creation
When you use a string to specify an argument or property that requires a file collection,
MATLAB® automatically converts the string to a FileCollection
object. For
example, plan("myTask").Inputs = ["file1" "file2"]
results in a 1-by-2
FileCollection
vector.
To explicitly create a FileCollection
object, use the matlab.buildtool.io.FileCollection.fromPaths
or files
method.