Skip to content

Instantly share code, notes, and snippets.

View tomli1981's full-sized avatar

hank tomli1981

  • in a startup company now
  • Shanghai
View GitHub Profile
@krzysztof-slowinski
krzysztof-slowinski / sftp_sync.py
Last active January 25, 2023 05:43
Pysftp - get only the changed files from the remote directory
import os
import configparser as cp
import shutil
import pysftp
import paramiko
from paramiko.py3compat import decodebytes
# credentials file name
CREDENTIALS_FILE = 'sftp_sync_credentials.properties'