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#

01. Read BIDS datasets

01. Read BIDS datasets

02. Convert MNE sample data to BIDS format

02. Convert MNE sample data to BIDS format

04. Convert EEG data to BIDS format

04. Convert EEG data to BIDS format

05. BIDS conversion for group studies

05. BIDS conversion for group studies

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

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

08. Convert iEEG data to BIDS format

08. Convert iEEG data to BIDS format

09. Manually storing empty room data

09. Manually storing empty room data

12. Updating BIDS datasets

12. Updating BIDS datasets

13. Anonymizing a BIDS dataset

13. Anonymizing a BIDS dataset

13. Convert NIRS data to BIDS format

13. Convert NIRS data to BIDS format