mne_bids.print_dir_tree#

mne_bids.print_dir_tree(folder, max_depth=None, return_str=False)[source]#

Recursively print a directory tree.

Parameters:
folderpath-like

The folder for which to print the directory tree.

max_depthint

The maximum depth into which to descend recursively for printing the directory tree.

return_strbool

If True, return the directory tree as a str instead of printing it.

Returns:
str | None

If return_str is True, the directory tree is returned as a string. Else, None is returned and the directory tree is printed.

Examples using mne_bids.print_dir_tree#

Anonymizing a BIDS dataset

Anonymizing a BIDS dataset

Convert EEG data to BIDS format

Convert EEG data to BIDS format

Manually storing empty room data

Manually storing empty room data

BIDS conversion for group studies

BIDS conversion for group studies

Convert iEEG data to BIDS format

Convert iEEG data to BIDS format

Convert MNE sample data to BIDS format

Convert MNE sample data to BIDS format

Save and load T1-weighted MRI scan along with anatomical landmarks in BIDS

Save and load T1-weighted MRI scan along with anatomical landmarks in BIDS

Convert NIRS data to BIDS format

Convert NIRS data to BIDS format

Read BIDS datasets

Read BIDS datasets

Updating BIDS datasets

Updating BIDS datasets