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

    Function GetFileNameWithoutExtension

    • Returns the file name without its extension from a given file path or file name.

      Parameters

      • fileName: string

        The full file path or file name to process.

      Returns string

      The file name without its extension.

      This function uses GetFileName to extract the file name from the path, then removes the extension (as determined by GetFileExtension) and any trailing dot.

      GetFileNameWithoutExtension("folder/example.txt"); // Returns "example"
      GetFileNameWithoutExtension("archive.tar.gz"); // Returns "archive.tar"

      1.1.7

      2021-12-07