Table of Contents

Property Preserve

Namespace
SshSharp.Sftp
Assembly
SshSharp.dll

Preserve

Copy the source's modification and access times, and its permission bits (read, write and execute for the owner, the group and others), to the destination, as sftp -p does. Permissions are copied only where the receiving side has Unix modes: a download to Windows keeps the times only, and an upload from Windows sends none. Unlike OpenSSH, setuid, setgid and the sticky bit are never copied, so a server cannot hand this machine a setuid file.

public bool Preserve { get; init; }

Property Value

bool