This function returns the actual filename of a file that exists on disk. If you provide a path/file name that is not proper cased as input, this function fixes it up and returns the file using the path and file names as they exist on disk.

If the file doesn't exist the original filename is returned.

public static string GetPhysicalPath(string filename)

Return Value

On disk file name and path with the disk casing


A filename to check

See also:

Class FileUtils

© West Wind Technologies, 2019 • Updated: 06/23/19
Comment or report problem with topic