FileUtils.GetPhysicalPath

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

Parameters

filename
A filename to check


See also:

Class FileUtils

© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic