Split a relative BIDS path ('/' separators) into its parts, as POSIX path.parse gives them.
path.parse
The relative path of a file.
The directory ('' at the top level), the file name, and the file name without its extension.
Split a relative BIDS path ('/' separators) into its parts, as POSIX
path.parsegives them.