FulcrumFS FulcrumFS
FulcrumFS FulcrumFS
DocFX + Singulink = ♥

Search Results for

    Property BaseDirectory

    BaseDirectory

    Gets or sets the base directory for the file repository, or null while it is not set.

    Declaration
    [MaybeNull]
    public required IAbsoluteDirectoryPath BaseDirectory { get; set; }
    Property Value
    Type Description
    IAbsoluteDirectoryPath
    Remarks

    The directory must be on a local file system: a local disk, or block storage that the operating system mounts as a local file system, such as an iSCSI or SAN volume. Network file systems, such as NFS mounts and SMB shares, are not supported. Transactions and the cleaner coordinate through file locks, which .NET on Linux and macOS emulates with advisory locks: it does not take the shared lock that a transaction holds on a file it is deleting when the file is on an NFS or SMB mount or on a file system it cannot identify, and takes none when its file locking is turned off (DOTNET_SYSTEM_IO_DISABLEFILELOCKING), which an application that uses a repository on those platforms must not do.

    The path must be valid for NoUnfriendlyNames on every platform: no name in it starts or ends with a space, ends with a dot or contains a control character, and on Windows none is a reserved device name such as CON. Configuration binding reads paths with None, which keeps such names, so without this check a typo such as a trailing space or dot would create a directory with that literal name, which many tools handle badly.

    Exceptions
    Type Condition
    ArgumentException

    The value has a name that is not friendly (see above).

    © Singulink. All rights reserved.