Search Results for

    Show / Hide Table of Contents

    Interface IFileStreamProvider

    Abstraction over FileStream to make it easy to integrate with cloud blob / stream providers.

    Namespace: Tenray.ZoneTree.AbstractFileStream
    Assembly: ZoneTree.dll
    Syntax
    public interface IFileStreamProvider

    Methods

    | Improve this Doc View Source

    CombinePaths(string, string)

    Declaration
    string CombinePaths(string path1, string path2)
    Parameters
    Type Name Description
    string path1
    string path2
    Returns
    Type Description
    string
    | Improve this Doc View Source

    CreateDirectory(string)

    Declaration
    void CreateDirectory(string path)
    Parameters
    Type Name Description
    string path
    | Improve this Doc View Source

    CreateFileStream(string, FileMode, FileAccess, FileShare, int, FileOptions)

    Declaration
    IFileStream CreateFileStream(string path, FileMode mode, FileAccess access, FileShare share, int bufferSize = 4096, FileOptions options = FileOptions.None)
    Parameters
    Type Name Description
    string path
    FileMode mode
    FileAccess access
    FileShare share
    int bufferSize
    FileOptions options
    Returns
    Type Description
    IFileStream
    | Improve this Doc View Source

    DeleteDirectory(string, bool)

    Declaration
    void DeleteDirectory(string path, bool recursive)
    Parameters
    Type Name Description
    string path
    bool recursive
    | Improve this Doc View Source

    DeleteFile(string)

    Declaration
    void DeleteFile(string path)
    Parameters
    Type Name Description
    string path
    | Improve this Doc View Source

    DirectoryExists(string)

    Declaration
    bool DirectoryExists(string path)
    Parameters
    Type Name Description
    string path
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    FileExists(string)

    Declaration
    bool FileExists(string path)
    Parameters
    Type Name Description
    string path
    Returns
    Type Description
    bool
    | Improve this Doc View Source

    GetDirectories(string)

    Declaration
    IReadOnlyList<string> GetDirectories(string path)
    Parameters
    Type Name Description
    string path
    Returns
    Type Description
    IReadOnlyList<string>
    | Improve this Doc View Source

    GetDurableFileWriter()

    Declaration
    DurableFileWriter GetDurableFileWriter()
    Returns
    Type Description
    DurableFileWriter
    | Improve this Doc View Source

    ReadAllBytes(string)

    Declaration
    byte[] ReadAllBytes(string path)
    Parameters
    Type Name Description
    string path
    Returns
    Type Description
    byte[]
    | Improve this Doc View Source

    ReadAllText(string)

    Declaration
    string ReadAllText(string path)
    Parameters
    Type Name Description
    string path
    Returns
    Type Description
    string
    | Improve this Doc View Source

    Replace(string, string, string)

    Declaration
    void Replace(string sourceFileName, string destinationFileName, string destinationBackupFileName)
    Parameters
    Type Name Description
    string sourceFileName
    string destinationFileName
    string destinationBackupFileName
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 Tenray.io