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 datastore ds.

If your custom datastore subclasses from matlab.io.datastore.FileWritable, then it inherits a getFiles method that refers to the Files property of the datastore. So, if the datastore does not have a Files property, then you must implement your own getFiles method in the subclass.

Input Arguments

expand all

Input datastore, specified as a datastore object that inherits from matlab.io.datastore.FileWritable. To create a datastore object, see matlab.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

Accessprotected

To learn about attributes of methods, see Method Attributes.

Introduced in R2020a