Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

ScpSettings.EnablePutFilesRemotePathWorkaround Property

Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9147)

EnablePutFilesRemotePathWorkaround

Enables workaround for an SCP quirk. Makes Rebex.Net.Scp.PutFiles(System.String,System.String) behave consistently, regardless whether the target directory exists or not. Unfortunately, the workaround is not compatible with recent versions of OpenSSH and causes the transfer to fail.

Declaration
public bool EnablePutFilesRemotePathWorkaround { get; set; }
Property Value
Type Description
Boolean
Remarks

By default, when uploading a directory, the SCP server behavior differs depending on whether the target directory already exists or not: a) If it does, the source directory is uploaded as a subdirectory of the target directory. b) If it does not, the target directory is created and the contents of the source directory is uploaded.

In This Article
  • EnablePutFilesRemotePathWorkaround
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies