Resolves a relative path to a full path but also matches the proper case of the file on disk if it exists. Essentially does what FULLPATH()
does, plus casing the file as it is on disk if it exists.
? GetFullPath("..\..\temp\POST.PDF") && c:\temp\Post.pdf - file exists
? GetFullPath("..\..\temp\POSTsss.PDF") && c:\temp\POSTss.PDF - file doesn't exist
GetFullPath(lcFile)
Return Value
The full path to the file. If the file exists it will be returned with proper case of the path on disk, otherwise it's returned in all lower case.
Parameters
lcFile
The file to get the full path for
llCheckFileExists
If .t.
this function returns an empty string if the file doesn't exist.
Remarks
Case is matched only if the referenced path exists.
This is a Library function not a method of the wwUtils class.
See also:
Class wwUtils© West Wind Technologies, 2023 • Updated: 02/27/19
Comment or report problem with topic