Main Content

getFiles

Class:matlab.io.datastore.FileWritable
Package:matlab.io.datastore

Get files backing datastore

Syntax

f = getFiles(ds)

Description

f= getFiles(ds)returns a list of files backing the datastoreds.

If your custom datastore subclasses frommatlab.io.datastore.FileWritable, then it inherits agetFilesmethod that refers to theFilesproperty of the datastore. So, if the datastore does not have aFilesproperty, then you must implement your owngetFiles方法the subclass.

Input Arguments

expand all

Input datastore, specified as a datastore object that inherits frommatlab.io.datastore.FileWritable. To create a datastore object, seematlab.io.Datastore.

Output Arguments

expand all

List of files, returned as a cell array of character vectors oriented as a column vector. The cell array contains absolute paths to the files referenced by the datastore.

Attributes

Access protected

To learn about attributes of methods, see方法属性.

介绍了R2020a