Enables workaround for an SCP quirk. Makes PutFiles(String, 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.
Namespace:
Rebex.Net
Assembly:
Rebex.Sftp (in Rebex.Sftp.dll)
Syntax
Visual Basic |
---|
Public Property EnablePutFilesRemotePathWorkaround As Boolean Get Set |
C# |
---|
public bool EnablePutFilesRemotePathWorkaround { get; set; } |
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.