matlab.io.datastore.FileWritable.getFolders - Get folders backing datastore - MATLAB (original) (raw)
Main Content
Class: matlab.io.datastore.FileWritable
Namespace: matlab.io.datastore
Get folders backing datastore
Description
[f](#mw%5F2531ca7b-370a-42b8-a188-e2fa4c95a009) = getFolders([ds](#d126e521088))
returns a list of folders backing the datastore ds
.
If your custom datastore subclasses from matlab.io.datastore.FileWritable
, then it inherits a getFolders
method that refers to theFolders
property of the datastore. So, if the datastore does not have aFolders
property, then you must implement your owngetFolders
method in the subclass. For information on adding aFolders
property, see matlab.io.datastore.FoldersPropertyProvider.
Input Arguments
Output Arguments
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.
Version History
Introduced in R2020a