matlab.io.datastore.FoldersPropertyProvider - Add Folder property support to datastore - MATLAB (original) (raw)

Main Content

Namespace: matlab.io.datastore

Add Folder property support to datastore

Description

matlab.io.datastore.FoldersPropertyProvider is an abstract mixin class that adds support for a Folders property (and thus theFolderLayout name-value pair of writeall) to custom datastores.

To use this mixin class, you must inherit from thematlab.io.datastore.FoldersPropertyProvider class, in addition to thematlab.io.Datastore and matlab.io.datastore.FileWritable classes. Use this syntax as the first few lines in your class definition file:

classdef MyDatastore < matlab.io.Datastore & .... matlab.io.datastore.FileWritable & ... matlab.io.datastore.FoldersPropertyProvider ... end

To add support for a Folders property to your custom datastore, you must:

The matlab.io.datastore.FoldersPropertyProvider class is a handle class.

Properties

expand all

List of folders used to construct datastore, returned as a cell array of character vectors. This property is populated by the populateFoldersFromLocation method. The Folders property is populated differently depending on the value of the location input to the datastore constructor. If the location input specifies:

Attributes:

GetAccess public
SetAccess protected

Data Types: cell

Methods

Version History

Introduced in R2020a