Constructs a BidsFileAccessor.
The root directory of the dataset.
A map of relative file paths to file representations (e.g., File
objects for web, full paths for Node.js).
The root directory of the dataset.
Map of relative file paths to file representations.
Organized paths.
Static
SPECIAL_BIDS special directories.
Static
SUFFIXESBIDS suffixes.
Asynchronously reads the content of a file.
This method must be implemented by subclasses to handle environment-specific file reading.
The relative path to the file.
A promise that resolves with the file content as a string, or null if the file cannot be read.
Static
createFactory method to create a BidsFileAccessor.
This method must be implemented by subclasses to handle environment-specific setup.
The root directory of the dataset or a file-like object.
A Promise that resolves to a new BidsFileAccessor instance.
Base class for BIDS file accessors.
This class provides a common interface for accessing files in a BIDS dataset, regardless of the underlying storage mechanism. Subclasses must implement the
create
andgetFileContent
methods.