Function isFileByExt

  • Check if a path is a file. A path is considered a file if the last part of the path contains a period.

    Parameters

    • path: PathLike

      The path to check.

    • separator: string = "/"

      The separator for the path.

    Returns boolean