LabKit MATLAB Workbench

reference

API ReferenceGamry DTA Files

labkit.dta.findFiles

Find DTA files in a folder and its subfolders.

Syntax

filepaths = labkit.dta.findFiles(rootDir)

Description

Recursively walks rootDir and collects files whose extension is .dta, using a case-insensitive comparison. The function does not inspect file contents; use detectType or loadFile to validate each result.

Inputs

rootDir
Character vector or string scalar naming an existing folder.

Outputs

filepaths
Cell row vector of full file paths in directory traversal order. The value is an empty cell array when no DTA files are found.

Errors

Throws labkit:dta:InvalidFolder when rootDir is not a text scalar or does not name an existing folder.

Typical Call

files = labkit.dta.findFiles("data");
[items, report] = labkit.dta.loadFiles(files, "auto");

Source

This page is generated from the MATLAB help text in +labkit/+dta/findFiles.m.