Main Content

validateOutputLocation

Class: matlab.io.datastore.FileWritable
Namespace: matlab.io.datastore

Validate output location

Since R2020a

Syntax

location = validateOutputLocation(ds,location)

Description

location = validateOutputLocation(ds,location) returns a validated string that can be used to write datastore files to the output location via writeall.

If your custom datastore subclasses from matlab.io.datastore.FileWritable, then it inherits a validateOutputLocation method that ensures that the output location is a string. If you want to perform additional validation of the output location, then you must implement your own validateOutputLocation 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.

Location to write files to, specified as a string scalar or character vector specifying a folder location.

Data Types: char | string

Attributes

Accessprotected

To learn about attributes of methods, see Method Attributes.

Version History

Introduced in R2020a