Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    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.

    System.Object → VirtualFileProviderBase → FileSystemProvider → DriveFileProvider
    Derived from DriveFileProvider:

    public class DriveFileProvider : FileSystemProvider, IVirtualFileProvider, IDisposable
    Name Description
    Constructors
    DriveFileProvider(String)
    Fields
    DefaultRootPath
    Methods
    ConvertFullPathToUrl(String)
    ConvertUrlToFullPath(String)
    GetLocalPath(String)

    Resolves the VFS URL from a given file path.

    | 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
    FileSystemProvider.ConvertFullPathToUrl(String)

    ConvertUrlToFullPath(String)

    protected override string ConvertUrlToFullPath(string url)
    Parameters
    Type Name Description
    System.String url
    Returns
    Type Description
    System.String
    Overrides
    FileSystemProvider.ConvertUrlToFullPath(String)

    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

    Inherited Members

    FileSystemProvider.VolumeSeparatorChar
    FileSystemProvider.DirectorySeparatorChar
    FileSystemProvider.AltDirectorySeparatorChar
    FileSystemProvider.ChangeBasePath(String)
    FileSystemProvider.DirectoryExists(String)
    FileSystemProvider.CreateDirectory(String)
    FileSystemProvider.FileExists(String)
    FileSystemProvider.FileSize(String)
    FileSystemProvider.FileDelete(String)
    FileSystemProvider.FileMove(String, String)
    FileSystemProvider.FileMove(String, IVirtualFileProvider, String)
    FileSystemProvider.GetAbsolutePath(String)
    FileSystemProvider.TryGetFileLocation(String, String, Int64, Int64)
    FileSystemProvider.OpenStream(String, VirtualFileMode, VirtualFileAccess, VirtualFileShare, StreamFlags)
    FileSystemProvider.ListFiles(String, String, VirtualSearchOption)
    FileSystemProvider.GetLastWriteTime(String)
    VirtualFileProviderBase.RootPath
    VirtualFileProviderBase.ResolvePath(String)
    VirtualFileProviderBase.Dispose()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation