We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6f2aab commit 3991bb3Copy full SHA for 3991bb3
examples/scp_write.py
@@ -36,7 +36,7 @@ def main():
36
s.handshake(sock)
37
s.agent_auth(args.user)
38
fileinfo = os.stat(args.source)
39
- chan = s.scp_send64(args.destination, fileinfo.st_mode & 777, fileinfo.st_size,
+ chan = s.scp_send64(args.destination, fileinfo.st_mode & 0o777, fileinfo.st_size,
40
fileinfo.st_mtime, fileinfo.st_atime)
41
print("Starting SCP of local file %s to remote %s:%s" % (
42
args.source, args.host, args.destination))
0 commit comments