getCurrentFilename
Class: matlab.io.datastore.FileWritable
Namespace: matlab.io.datastore
Syntax
n = getCurrentFilename(ds,info)
Description
returns the file name of the file currently being read by the datastore
n
= getCurrentFilename(ds
,info
)ds
.
If your custom datastore subclasses from matlab.io.datastore.FileWritable
,
then it inherits a getCurrentFilename
method that retrieves the file name
from the info
output of the read
method. If the datastore
primarily works with files that require multiple reads per file, then you must implement your
own getCurrentFilename
and currentFileIndexComparator
methods in the subclass. These methods tell the datastore which file is being read, and
whether the file requires multiple reads.
Input Arguments
Output Arguments
Version History
Introduced in R2020a