Main Content

getFolders

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

Get folders backing datastore

Syntax

f = getFolders(ds)

Description

f= getFolders(ds)returns a list of folders backing the datastoreds.

If your custom datastore subclasses frommatlab.io.datastore.FileWritable, then it inherits agetFoldersmethod that refers to theFoldersproperty of the datastore. So, if the datastore does not have aFoldersproperty, then you must implement your owngetFoldersmethod in the subclass. For information on adding aFoldersproperty, seematlab.io.datastore.FoldersPropertyProvider.

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 folders, returned as a cell array of character vectors oriented as a column vector. The cell array contains absolute paths to the folders referenced by the datastore.

Attributes

Access protected

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

介绍了R2020a