Path: redb-route/redb.Route.Sftp/SftpEnums.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Sftp/SftpEnums.cs
----
namespace redb.Route.Sftp;
///
/// SOCKS/HTTP proxy types for tunneling SSH connections through corporate proxies.
/// Maps directly to SSH.NET's ProxyTypes enum.
///
public enum SftpProxyType
{
/// No proxy — direct connection.
None,
/// SOCKS4 proxy.
Socks4,
/// SOCKS5 proxy (supports username/password authentication).
Socks5,
/// HTTP CONNECT proxy.
Http
}
///
/// Strategy for moving the existing file at the producer target path before upload.
/// Used when is selected.
///
public enum SftpMoveExistingStrategy
{
/// Rename to {name}.bak (overwrite previous backup).
Backup,
/// Rename with timestamp suffix: {name}.yyyyMMddHHmmssfff
Timestamp,
/// Rename with GUID suffix: {name}.{guid}
Guid
}
///
/// Path separator mode for SFTP remote paths.
///
public enum SftpSeparator
{
/// Default: joins with "/" and additionally normalizes backslashes in the inputs.
Auto,
/// Strict Unix forward-slash: inputs are joined with "/" byte-for-byte.
Unix
// No Windows member: the SFTP protocol defines "/" as the path separator (SSH_FXP requests
// carry canonical paths; servers on Windows accept "/" too). A backslash mode could never be
// honest - the jail check, mkdir splitting, and recursive listing all speak "/" - so it was
// removed the same way Binary/StepWise were.
}