scp.py
scp.py copied to clipboard
Add new preserve_mode parameter to allow setting file modes.
I am copying files to a web server that uses a default mode of 600, however I wanted to keep the permissions from the local files or force 644. This patch adds the required functions.