Class FtpProducer
FTP producer. Uploads exchange body to a remote file on the FTP server.
Supports atomic upload via temp files (TempPrefix/TempFileName → rename),
multiple file-exist strategies, dynamic file names via expressions,
automatic directory creation, and jail-path validation.
public sealed class FtpProducer : RemoteFileProducer<FtpEndpointOptions>, IProducer, IProcessor
Inheritance
Implements
Properties
FileNameProducedHeader
Header name for the produced file path (e.g. "redbFile.NameProduced").
protected override string FileNameProducedHeader { get; }
Methods
MoveExistingFile(string, CancellationToken)
Moves an existing file at the target path to a backup name.
protected override Task MoveExistingFile(string path, CancellationToken ct)
ResolveTargetPath(IExchange)
Resolves the target file path from the FileName option or exchange headers.
protected override string ResolveTargetPath(IExchange exchange)
ValidatePath(string)
Validates the target path before writing. Override for jail-directory checks.
protected override void ValidatePath(string targetPath)