reference
API Reference › Intan RHS Recordings
labkit.rhs.findFiles
Find Intan RHS files in a folder and its subfolders.
Syntax
filepaths = labkit.rhs.findFiles(rootDir)Description
Recursively collects files whose extension is .rhs and sorts their full paths for reproducible batch order. The function does not inspect file headers; use inspectFile when the contents must be validated.
Inputs
rootDir- Character vector or string scalar naming an existing folder.
Outputs
filepaths- Cell column vector of sorted full paths. The value is an empty cell array when no RHS files are found.
Errors
Throws labkit:rhs:InvalidFolder when rootDir is not a text scalar or does not name an existing folder.
Typical Call
files = labkit.rhs.findFiles("recordings");
[info, status] = labkit.rhs.inspectFile(files{1});Related APIs
labkit.rhs.inspectFile— Read metadata and data-layout information from an RHS file.labkit.rhs.indexFile— Build a block index for reading selected RHS time windows.labkit.rhs.readWindow— Read selected channels and times from an Intan RHS file.labkit.rhs.version— Return version information for the RHS API.
Source
This page is generated from the MATLAB help text in +labkit/+rhs/findFiles.m.