Class DriveFileProvider
Exposes the whole file system through folder similar to Cygwin. As an example, "/c/Program Files/Test/Data.dat" would work.
public class DriveFileProvider : FileSystemProvider, IVirtualFileProvider, IDisposable
- Inheritance
-
DriveFileProvider
- Implements
- Inherited Members
- Extension Methods
Constructors
DriveFileProvider(string)
public DriveFileProvider(string rootPath)
Parameters
rootPathstring
Fields
DefaultRootPath
public static string DefaultRootPath
Field Value
Methods
ConvertFullPathToUrl(string)
protected override string ConvertFullPathToUrl(string path)
Parameters
pathstring
Returns
ConvertUrlToFullPath(string)
protected override string ConvertUrlToFullPath(string url)
Parameters
urlstring
Returns
GetLocalPath(string)
Resolves the VFS URL from a given file path.
public string GetLocalPath(string filePath)
Parameters
filePathstringThe file path.