hed-typescript API
    Preparing search index...

    Function getDirName

    • Get the directory name of a relative BIDS path ('/' separators), as POSIX path.dirname gives it.

      Parameters

      • relativePath: string

        The relative path of a file.

      Returns string

      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.