Show / Hide Table of Contents

    Class GoogleDriveFileSystem

    The IUnixFileSystem implementation that uses Google Drive.

    Inheritance
    Object
    GoogleDriveFileSystem
    Implements
    IUnixFileSystem
    IDisposable
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: FubarDev.FtpServer.FileSystem.GoogleDrive
    Assembly: FubarDev.FtpServer.FileSystem.GoogleDrive.dll
    Syntax
    public sealed class GoogleDriveFileSystem : IGoogleDriveFileSystem, IUnixFileSystem, IDisposable

    Constructors

    | Improve this Doc View Source

    GoogleDriveFileSystem(DriveService, File, ITemporaryDataFactory, Boolean)

    Initializes a new instance of the GoogleDriveFileSystem class.

    Declaration
    public GoogleDriveFileSystem(DriveService service, File rootFolderInfo, ITemporaryDataFactory temporaryDataFactory, bool useBackgroundUpload)
    Parameters
    Type Name Description
    Google.Apis.Drive.v3.DriveService service

    The Google.Apis.Drive.v3.DriveService instance to use to access the Google Drive.

    Google.Apis.Drive.v3.Data.File rootFolderInfo

    The Google.Apis.Drive.v3.Data.File to use as root folder.

    ITemporaryDataFactory temporaryDataFactory

    The factory to create temporary data objects.

    Boolean useBackgroundUpload

    Use the Google Drive uploader instead of the background uploader.

    Properties

    | Improve this Doc View Source

    FileSystemEntryComparer

    Declaration
    public StringComparer FileSystemEntryComparer { get; }
    Property Value
    Type Description
    StringComparer
    | Improve this Doc View Source

    Root

    Declaration
    public IUnixDirectoryEntry Root { get; }
    Property Value
    Type Description
    IUnixDirectoryEntry
    | Improve this Doc View Source

    Service

    Declaration
    public DriveService Service { get; }
    Property Value
    Type Description
    Google.Apis.Drive.v3.DriveService
    | Improve this Doc View Source

    SupportsAppend

    Declaration
    public bool SupportsAppend { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    SupportsNonEmptyDirectoryDelete

    Declaration
    public bool SupportsNonEmptyDirectoryDelete { get; }
    Property Value
    Type Description
    Boolean

    Methods

    | Improve this Doc View Source

    AppendAsync(IUnixFileEntry, Nullable<Int64>, Stream, CancellationToken)

    Declaration
    public Task<IBackgroundTransfer? > AppendAsync(IUnixFileEntry fileEntry, long? startPosition, Stream data, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    IUnixFileEntry fileEntry
    Nullable<Int64> startPosition
    Stream data
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<Nullable<IBackgroundTransfer>>
    | Improve this Doc View Source

    CreateAsync(IUnixDirectoryEntry, String, Stream, CancellationToken)

    Declaration
    public Task<IBackgroundTransfer? > CreateAsync(IUnixDirectoryEntry targetDirectory, string fileName, Stream data, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    IUnixDirectoryEntry targetDirectory
    String fileName
    Stream data
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<Nullable<IBackgroundTransfer>>
    | Improve this Doc View Source

    CreateDirectoryAsync(IUnixDirectoryEntry, String, CancellationToken)

    Declaration
    public Task<IUnixDirectoryEntry> CreateDirectoryAsync(IUnixDirectoryEntry targetDirectory, string directoryName, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    IUnixDirectoryEntry targetDirectory
    String directoryName
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<IUnixDirectoryEntry>
    | Improve this Doc View Source

    Dispose()

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    GetEntriesAsync(IUnixDirectoryEntry, CancellationToken)

    Declaration
    public Task<IReadOnlyList<IUnixFileSystemEntry>> GetEntriesAsync(IUnixDirectoryEntry directoryEntry, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    IUnixDirectoryEntry directoryEntry
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<IReadOnlyList<IUnixFileSystemEntry>>
    | Improve this Doc View Source

    GetEntryByNameAsync(IUnixDirectoryEntry, String, CancellationToken)

    Declaration
    public Task<IUnixFileSystemEntry? > GetEntryByNameAsync(IUnixDirectoryEntry directoryEntry, string name, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    IUnixDirectoryEntry directoryEntry
    String name
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<Nullable<IUnixFileSystemEntry>>
    | Improve this Doc View Source

    MoveAsync(IUnixDirectoryEntry, IUnixFileSystemEntry, IUnixDirectoryEntry, String, CancellationToken)

    Declaration
    public Task<IUnixFileSystemEntry> MoveAsync(IUnixDirectoryEntry parent, IUnixFileSystemEntry source, IUnixDirectoryEntry target, string fileName, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    IUnixDirectoryEntry parent
    IUnixFileSystemEntry source
    IUnixDirectoryEntry target
    String fileName
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<IUnixFileSystemEntry>
    | Improve this Doc View Source

    OpenReadAsync(IUnixFileEntry, Int64, CancellationToken)

    Declaration
    public Task<Stream> OpenReadAsync(IUnixFileEntry fileEntry, long startPosition, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    IUnixFileEntry fileEntry
    Int64 startPosition
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<Stream>
    | Improve this Doc View Source

    ReplaceAsync(IUnixFileEntry, Stream, CancellationToken)

    Declaration
    public Task<IBackgroundTransfer? > ReplaceAsync(IUnixFileEntry fileEntry, Stream data, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    IUnixFileEntry fileEntry
    Stream data
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<Nullable<IBackgroundTransfer>>
    | Improve this Doc View Source

    SetMacTimeAsync(IUnixFileSystemEntry, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, CancellationToken)

    Declaration
    public Task<IUnixFileSystemEntry> SetMacTimeAsync(IUnixFileSystemEntry entry, DateTimeOffset? modify, DateTimeOffset? access, DateTimeOffset? create, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    IUnixFileSystemEntry entry
    Nullable<DateTimeOffset> modify
    Nullable<DateTimeOffset> access
    Nullable<DateTimeOffset> create
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<IUnixFileSystemEntry>
    | Improve this Doc View Source

    UnlinkAsync(IUnixFileSystemEntry, CancellationToken)

    Declaration
    public Task UnlinkAsync(IUnixFileSystemEntry entry, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    IUnixFileSystemEntry entry
    CancellationToken cancellationToken
    Returns
    Type Description
    Task

    Implements

    IUnixFileSystem
    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top
    Copyright © 2018 Fubar Development Junker
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.