Search Results for

    Show / Hide Table of Contents

    Class FileSetupBase

    This abstract base class provides properties and a default constructor signature for concrete file setup classes.

    Inheritance
    System.Object
    FileSetupBase
    CsvStorageSetup
    JsonStorageSetup
    ParquetStorageSetup
    YamlStorageSetup
    Namespace: TeleScope.Persistence.Abstractions
    Assembly: TeleScope.Persistence.Abstractions.dll
    Syntax
    public abstract class FileSetupBase : object

    Constructors

    | Improve this Doc View Source

    FileSetupBase(FileInfo, WritePermissions)

    The constructor sets the file propterties and the WritePermissions.

    Declaration
    protected FileSetupBase(FileInfo fileInfo, WritePermissions permissions = default(WritePermissions))
    Parameters
    Type Name Description
    FileInfo fileInfo

    The information about the file that will get accessed by a file storage.

    WritePermissions permissions

    The information about the write permissions.

    | Improve this Doc View Source

    FileSetupBase(String, WritePermissions)

    The constructor sets the file propterties and the WritePermissions.

    Declaration
    protected FileSetupBase(string file, WritePermissions permissions = default(WritePermissions))
    Parameters
    Type Name Description
    System.String file

    The file that will get accessed by a file storage.

    WritePermissions permissions

    The information about the write permissions.

    Properties

    | Improve this Doc View Source

    Exists

    Gets the information if the file info instance exists or not.

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

    Extension

    Gets the extension or type of the file.

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

    File

    Gets the complete filenmane with path and the extension of the file.

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

    Filename

    Gets the name of the file.

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

    Location

    Gets the complete path, where the file is located.

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

    Permissions

    Gets the flags of permissions how files may be treated.

    Declaration
    public WritePermissions Permissions { get; set; }
    Property Value
    Type Description
    WritePermissions

    Methods

    | Improve this Doc View Source

    Info()

    Gets the reference to the FileInfo object, that was given to the constructor.

    Declaration
    public FileInfo Info()
    Returns
    Type Description
    FileInfo
    | Improve this Doc View Source

    SetFile(FileInfo)

    Sets or updates the reference to the FileInfo object.

    Declaration
    public void SetFile(FileInfo fileInfo)
    Parameters
    Type Name Description
    FileInfo fileInfo

    The new FileInfo object.

    • GITHUB
    • Improve this Doc
    • View Source
    ☀
    ☾
    In This Article
    Back to top
    Copyright 2020-2022 TeleScope-dotnet. Generated by DocFX.
    ☀
    ☾