Main Content

resolve

Class: matlab.io.datastore.DsFileSet
Namespace: matlab.io.datastore

Information on all files in file-set object

Syntax

allFilesInfo = resolve(fs)

Description

allFilesInfo = resolve(fs) returns file information on all the files from the file-set object fs.

Input Arguments

expand all

Input file-set object, specified as a matlab.io.datastore.DsFileSet object. To create a DsFileSet object, see matlab.io.datastore.DsFileSet.

Output Arguments

expand all

File information for all files in the file set, returned as a table. The table contains the columns FileName and FileSize.

Examples

Get File Information on All Files

Create a file-set object and get information for all the files in the file-set object at the same time.

Create a file-set object for all .mat files in a folder.

folder = fullfile(matlabroot,'toolbox','matlab','demos');  
fs = matlab.io.datastore.DsFileSet(folder,'FileExtensions','.mat');

Obtain a table with information on all the files using resolve. The table contains columns for FileName and FileSize.

allfiles = resolve(fs);

Version History

Introduced in R2017b