Get the directory name of a relative BIDS path ('/' separators), as POSIX path.dirname gives it.
path.dirname
The relative path of a file.
The directory part of the path, or '.' for a file at the top level.
BIDS relative paths always use '/', in Node.js and in a browser, so no platform path module is needed.
Get the directory name of a relative BIDS path ('/' separators), as POSIX
path.dirnamegives it.