Table of Contents

Class SshScpOptions

Namespace
SshSharp.Scp
Assembly
SshSharp.dll

Options for the SCP transfers in SshScpExtensions.

public sealed class SshScpOptions
Inheritance
SshScpOptions
Inherited Members

Properties

DirectoryMode

The permission bits for directories created by recursive uploads. Default 0755.

FileMode

The permission bits for uploaded files when they are not preserved from the source. Default 0644.

PathQuoting

How the remote path is written on the command line run on the server. Default Posix, one single-quoted word, which is safe for any path with a POSIX shell. None is for network devices that read the line without a shell, and DoubleQuote for Windows OpenSSH with cmd.exe; both refuse, before anything is sent, a path they cannot pass on safely (an ArgumentException), and are meant only for paths the application controls.

Preserve

Keep the source's modification and access times and its permission bits, as scp -p does: on uploads the server gets them, and on downloads the local file gets them (the permission bits on Unix only). Default false.

Progress

Receives progress per file: its path, the bytes done so far, and its size.

ScpCommand

The server's scp program. Default scp.