File |
public static class FileUtils
The FileUtils type exposes the following members.
Name | Description | |
---|---|---|
GlobalFileSearchPaths | Gets a list of strings that can be used as global file search path. It is used by CommonFileNotFoundResolver(String) method. |
Name | Description | |
---|---|---|
CommonFileNotFoundResolver | CommonFileNotFoundResolver tries to resolve the filePath by first trying to fix directory separator and then when the filePath is not rooted, combining the filePath with the base application's path. The method also checks if the file exist in any of the GlobalFileSearchPaths. When the resolve succeeds (the file is found) then the value of filePath is updated and true is returned. When the method cannot help find the file, false is returned. | |
FixDirectorySeparator | FixDirectorySeparator method returns file path with correctly sets backslash or slash as directory separator based on the current OS. |
Name | Description | |
---|---|---|
ResolveFileInApplicationBaseDirectory | When true (by default) then the base application directory is automatically checked when resolving a file that does not exist. |