Engine API Reference - v2.6.1
    Preparing search index...

    Function getDirectory

    • Get the directory name from the path. This is everything up to the final instance of path.delimiter.

      Parameters

      • pathname: string

        The path to get the directory from.

      Returns string

      The directory part of the path.