ZipStorageGetRealPath Method |
Namespace: DigitalRune.Storages
Storages, such as the VfsStorage, can be used to virtualize access to resources. File and directories from different location can be mapped into a virtual directory hierarchy. The method GetRealPath(String) can be used to resolve the actual source of a file.
This method can only be used to query for files, but not directories. (Multiple directories may be mapped to the same virtual path.)
Caution |
---|
Some storages hide the actual file location and may return even if the file exists. The files inside the storage can still be opened with OpenFile(String) but the real location is concealed. Therefore, GetRealPath(String) cannot be used to check if a file exists inside a storage. |