Show / Hide Table of Contents

    Class InMemoryFileSystemEntry

    The base class for all in-memory file system entries.

    Inheritance
    Object
    InMemoryFileSystemEntry
    InMemoryDirectoryEntry
    InMemoryFileEntry
    Implements
    IUnixFileSystemEntry
    IUnixOwner
    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.InMemory
    Assembly: FubarDev.FtpServer.FileSystem.InMemory.dll
    Syntax
    public abstract class InMemoryFileSystemEntry : IUnixFileSystemEntry, IUnixOwner

    Constructors

    | Improve this Doc View Source

    InMemoryFileSystemEntry(Nullable<InMemoryDirectoryEntry>, String, IUnixPermissions)

    Initializes a new instance of the InMemoryFileSystemEntry class.

    Declaration
    protected InMemoryFileSystemEntry(InMemoryDirectoryEntry? parent, string name, IUnixPermissions permissions)
    Parameters
    Type Name Description
    Nullable<InMemoryDirectoryEntry> parent

    The parent entry.

    String name

    The name of this entry.

    IUnixPermissions permissions

    The permissions of this entry.

    Properties

    | Improve this Doc View Source

    CreatedTime

    Declaration
    public DateTimeOffset? CreatedTime { get; }
    Property Value
    Type Description
    Nullable<DateTimeOffset>
    | Improve this Doc View Source

    Group

    Declaration
    public string Group { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    LastWriteTime

    Declaration
    public DateTimeOffset? LastWriteTime { get; }
    Property Value
    Type Description
    Nullable<DateTimeOffset>
    | Improve this Doc View Source

    Name

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    NumberOfLinks

    Declaration
    public long NumberOfLinks { get; }
    Property Value
    Type Description
    Int64
    | Improve this Doc View Source

    Owner

    Declaration
    public string Owner { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Parent

    Gets or sets the parent entry.

    Declaration
    public InMemoryDirectoryEntry? Parent { get; set; }
    Property Value
    Type Description
    Nullable<InMemoryDirectoryEntry>
    | Improve this Doc View Source

    Permissions

    Declaration
    public IUnixPermissions Permissions { get; }
    Property Value
    Type Description
    IUnixPermissions

    Methods

    | Improve this Doc View Source

    SetCreateTime(DateTimeOffset)

    Sets the creation time.

    Declaration
    public InMemoryFileSystemEntry SetCreateTime(DateTimeOffset timestamp)
    Parameters
    Type Name Description
    DateTimeOffset timestamp

    The new value of the creation time.

    Returns
    Type Description
    InMemoryFileSystemEntry

    The changed file system entry.

    | Improve this Doc View Source

    SetLastWriteTime(DateTimeOffset)

    Sets the last write time.

    Declaration
    public InMemoryFileSystemEntry SetLastWriteTime(DateTimeOffset timestamp)
    Parameters
    Type Name Description
    DateTimeOffset timestamp

    The new value of the last write time.

    Returns
    Type Description
    InMemoryFileSystemEntry

    The changed file system entry.

    | Improve this Doc View Source

    WithOwner(IFtpUser)

    Configure directory entry as owned by given user.

    Declaration
    [Obsolete("Use the overload with ClaimsPrincipal.")]
    public InMemoryFileSystemEntry WithOwner(IFtpUser user)
    Parameters
    Type Name Description
    IFtpUser user

    The user that becomes the new owner of this directory entry.

    Returns
    Type Description
    InMemoryFileSystemEntry

    The changed file system entry.

    | Improve this Doc View Source

    WithOwner(ClaimsPrincipal)

    Configure directory entry as owned by given user.

    Declaration
    public InMemoryFileSystemEntry WithOwner(ClaimsPrincipal user)
    Parameters
    Type Name Description
    ClaimsPrincipal user

    The user that becomes the new owner of this directory entry.

    Returns
    Type Description
    InMemoryFileSystemEntry

    The changed file system entry.

    Implements

    IUnixFileSystemEntry
    IUnixOwner
    • 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.