Click or drag to resize
DigitalRuneStorageGetRealPath Method
Gets the real path and name of the specified file.

Namespace: DigitalRune.Storages
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
public abstract string GetRealPath(
	string path
)

Parameters

path
Type: SystemString
The file to check.

Return Value

Type: String
The path where the specified file is located. If the file is located inside an archive, the path and name of the archive is returned; otherwise, if the file was not found.

Implements

IStorageGetRealPath(String)
Remarks

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 note 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.

See Also