Class FileDescriptor
- Namespace
- NuvTools.Storage
- Assembly
- NuvTools.Storage.dll
Describes a file in the storage repository without its content, as a listing returns it.
public sealed record FileDescriptor : IEquatable<FileDescriptor>
- Inheritance
-
FileDescriptor
- Implements
- Inherited Members
Constructors
FileDescriptor(string, long, DateTimeOffset?, string?)
Describes a file in the storage repository without its content, as a listing returns it.
public FileDescriptor(string Path, long Size, DateTimeOffset? LastModified, string? ContentType)
Parameters
PathstringThe full path of the file in the repository, which is also its identifier.
SizelongThe size of the file, in bytes.
LastModifiedDateTimeOffset?When the file was last written, if the provider reports it.
ContentTypestringThe MIME type of the file, if the provider reports it.
Properties
ContentType
The MIME type of the file, if the provider reports it.
public string? ContentType { get; init; }
Property Value
LastModified
When the file was last written, if the provider reports it.
public DateTimeOffset? LastModified { get; init; }
Property Value
Path
The full path of the file in the repository, which is also its identifier.
public string Path { get; init; }
Property Value
Size
The size of the file, in bytes.
public long Size { get; init; }