Class RepoFileInfo
Represents information about a file stored in a FileRepo, including its identity and a recommended way to open it.
Implements
Namespace: FulcrumFS
Assembly: FulcrumFS.Local.dll
Syntax
public sealed class RepoFileInfo : IRepoFile
Properties
| Name | Description |
|---|---|
| Extension | Gets the extension of the file (including the leading period), or an empty string if it has no extension. |
| FileId | Gets the file ID of the file. |
| Length | Gets the size of the file in bytes. |
| Path | Gets the underlying absolute path of the file. |
| VariantId | Gets the variant ID of the file, or null if this represents the main file. |
Methods
| Name | Description |
|---|---|
| Open(FileAccessPattern) | Opens an asynchronous read-only file stream using the recommended sharing options for repository files (Read | Delete). |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IRepoFile.GetLengthAsync(CancellationToken) | Gets the size of the content of the file in bytes. |
| IRepoFile.OpenReadAsync(FileAccessPattern, CancellationToken) | Opens a read-only, seekable stream over the content of the file. |