Class FileLookup
File lookup helpers that preserve the document archive's historic case-insensitive (Windows) semantics on case-sensitive file systems such as Linux.
Inherited Members
Namespace: SuperOffice.IO.Files
Assembly: SoCore.dll
Syntax
public static class FileLookup
Methods
ResolveFileIgnoreCase(string)
Resolve a file path to the path of an existing file, falling back to a case-insensitive match of the file name on non-Windows platforms. Database content may not match the on-disk casing, which is harmless on Windows but fatal on e.g. ext4.
Declaration
public static string ResolveFileIgnoreCase(string fullPath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fullPath | Full path of the wanted file |
Returns
| Type | Description |
|---|---|
| string | Path to an existing file - possibly with different casing of the file name - or null if not found |