@nextcloud/paths
    Preparing search index...

    Function dirname

    • Returns the dir name of the given path. For example for "/abc/somefile.txt" it will return "/abc"

      Parameters

      • path: string

        The path to get the directory of

      Returns string