Skip to content

← file_system package

PathDirectory

Extract the directory part of a file path string.

If the file path has BIDS style notations using {} the root path will be returned (before any {}). Version 1.1.0

Ports/Properties

data

File path.

verbose name
Data
default value
None
port type
DataPort
value type
str (can be None)
data direction
INOUT

trim_placeholders

Trim off named placeholders in path. This will trim paths containing placeholders like {subject}/{session}.

verbose name
Trim Placeholders
default value
True
port type
BoolPort
value type
bool (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

verbose name
Set Breakpoint (Debug Only)
default value
False
port type
BoolPort
value type
bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

verbose name
Metadata
default value
{}
port type
DictPort
value type
dict (can be None)