SFTP

Frends.SFTP.MoveFile / 2.1.0

Summary

Moves files between directories on an SFTP server, creating the target directory if needed and deciding what to do about an existing file.

Typical use — server-side staging, such as moving collected files into an archive directory without downloading them

Details

Frends version
5.5 and newer
Agent
Crossplatform
Target framework
net6.0
2.1.02026-10-21
Changed
  • An empty or unknown encoding name now gives a clear error message ("Unknown encoding: '...'") instead of the default .NET message.
2.0.02026-01-27
Changed
Breaking
  • Updated dependency SSH.NET to the newest version 2025.1.0.
  • Drop DSS support
1.5.02026-01-16
Fixed
  • Task can now create nested target directories.
1.4.02026-01-13
Fixed
  • Operation timeout is now using the Connection.ConnectionTimeout parameter.
1.3.02025-01-10
Fixed
  • Fixed issue with ConnectionInfoBuilder having static properties for connection and input parameters which lead to Task not being thread safe.
1.2.02024-08-19
Updated
  • Updated Renci.SshNet library to version 2024.1.0.
Added
  • Added more tests.
1.1.02023-12-22
Updated
  • Breaking Updated dependency SSH.NET to the newest version 2023.0.0.
Changed
  • Changed connection info builder to create the connection info as it's done in DownloadFiles.
  • Breaking Changed PrivateKeyFilePassphrase parameter to PrivateKeyPassphrase and enabled it when PrivateKeyString was used.
Added
  • Added FileEncoding for file names.
1.0.02023-22-05
Added
  • Initial implementation
An unhandled error has occurred. Reload 🗙