kaven-basic - v6.0.0
    Preparing search index...

    Function GetFileName

    • Extracts the file name from a given file path by removing the base directory.

      Parameters

      • fileName: string

        The full path or name of the file.

      Returns string

      The file name with the base directory removed, or the original string if no base directory is found.

      "c:/a/b.xyz" => "b.xyz"
      "b.xyz" => "b.xyz"

      1.0.5

      2022-06-26