@nextcloud/paths
    Preparing search index...

    Function basename

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

      Parameters

      • path: string

        The path to get the basename of

      • Optionalextname: string

        An optional extension to remove from the basename

      Returns string