Table of Contents

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

Path string

The full path of the file in the repository, which is also its identifier.

Size long

The size of the file, in bytes.

LastModified DateTimeOffset?

When the file was last written, if the provider reports it.

ContentType string

The 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

string

LastModified

When the file was last written, if the provider reports it.

public DateTimeOffset? LastModified { get; init; }

Property Value

DateTimeOffset?

Path

The full path of the file in the repository, which is also its identifier.

public string Path { get; init; }

Property Value

string

Size

The size of the file, in bytes.

public long Size { get; init; }

Property Value

long