matlab.io.datastore.FileWritable.validateOutputLocation - Validate output location - MATLAB (original) (raw)
Main Content
Class: matlab.io.datastore.FileWritable
Namespace: matlab.io.datastore
Syntax
location = validateOutputLocation(ds,location)
Description
location = validateOutputLocation([ds](#d126e521206),[location](#mw%5F3f2fb529-ed16-4f6c-9878-9d8bd2a3b516))
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
Location to write files to, specified as a string scalar or character vector specifying a folder location.
Data Types: char
| string
Version History
Introduced in R2020a