DriveFileProvider Class
Namespace: Stride.Core.IO
Assembly: Stride.Core.IO.dll
Exposes the whole file system through folder similar to Cygwin.
As an example, "/c/Program Files/Test/Data.dat" would work.
Derived from DriveFileProvider:
public class DriveFileProvider : FileSystemProvider, IVirtualFileProvider, IDisposable
|
Improve this Doc
View Source
Constructors
DriveFileProvider(String)
public DriveFileProvider(string rootPath)
Parameters
Type |
Name |
Description |
System.String |
rootPath |
|
|
Improve this Doc
View Source
Fields
DefaultRootPath
public static string DefaultRootPath
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Methods
ConvertFullPathToUrl(String)
protected override string ConvertFullPathToUrl(string path)
Parameters
Type |
Name |
Description |
System.String |
path |
|
Returns
Type |
Description |
System.String |
|
Overrides
ConvertUrlToFullPath(String)
protected override string ConvertUrlToFullPath(string url)
Parameters
Type |
Name |
Description |
System.String |
url |
|
Returns
Type |
Description |
System.String |
|
Overrides
GetLocalPath(String)
Resolves the VFS URL from a given file path.
public string GetLocalPath(string filePath)
Parameters
Type |
Name |
Description |
System.String |
filePath |
The file path.
|
Returns
Type |
Description |
System.String |
|
Exceptions
Type |
Condition |
System.InvalidOperationException |
|
Extension Methods