matlab.io.datastore.DsFileSet.resolve - Information on all files in file-set object - MATLAB (original) (raw)

Main Content

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

Information on all files in file-set object

Syntax

allFilesInfo = resolve(fs)

Description

[allFilesInfo](#d126e444038) = resolve([fs](#d126e444004)) returns file information on all the files from the file-set objectfs.

Input Arguments

expand all

fs — Input file-set object

matlab.io.datastore.DsFileSet object

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

allFilesInfo — File information for all files

table

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

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 andFileSize.

Version History

Introduced in R2017b