Class GenericFileFacts

Assembly: redb.Route.GenericFile.dll

The file facts of a file a consumer is handling, for the file keys in its own options (moveTo,
preMove, moveFailed, doneFileName, idempotentKey). The values are the ones the file
consumer writes into the redbFile.* headers, so ${file:ext} in moveTo and in a
<log> of the same route agree.

public sealed class GenericFileFacts : IFileFacts

Inheritance

Object→GenericFileFacts

Implements

Properties

AbsolutePath

The full path of the file.

public string? AbsolutePath { get; }

Extension

The extension, without the leading dot (xml).

public string? Extension { get; }

LastModified

The last write time.

public DateTimeOffset? LastModified { get; }

Length

The size in bytes.

public long? Length { get; }

Name

The file name with its extension.

public string? Name { get; }

NameOnly

The file name without its extension.

public string? NameOnly { get; }

Parent

The directory that holds the file.

public string? Parent { get; }

RelativePath

The path relative to the polled directory.

public string? RelativePath { get; }

Constructors

GenericFileFacts(GenericFileInfo, string, IFileOperations)

The facts of file, which is now at workPath.

GenericFileFacts(string, string, string?, IFileOperations)

The facts known from a path alone, for the compatibility form of the consumer hooks: the size and the last