Class GenericFileInfo

Assembly: redb.Route.GenericFile.dll

Protocol-agnostic file metadata. Used by consumers and producers
to represent files from any source (local FS, SFTP, FTP).

public sealed class GenericFileInfo

Inheritance

Object→GenericFileInfo

Properties

BasePath

Base polling directory from which this file was enumerated.

public required string BasePath { get; init; }

Depth

Recursion depth: 0 = root dir, 1 = first subdirectory, etc.

public int Depth { get; init; }

Extras

Protocol-specific extras (e.g. SFTP UserId/GroupId, FTP permissions).

public Dictionary<string, object>? Extras { get; init; }

FullPath

Full path: absolute path for local, remote path for SFTP/FTP.

public required string FullPath { get; init; }

LastModified

Last modified timestamp (UTC).

public required DateTimeOffset LastModified { get; init; }

Length

File size in bytes.

public required long Length { get; init; }

Name

File name with extension (e.g. "report.csv").

public required string Name { get; init; }