diff options
| -rw-r--r-- | python/ice.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/python/ice.py b/python/ice.py new file mode 100644 index 00000000..0d36c5fb --- /dev/null +++ b/python/ice.py @@ -0,0 +1,16 @@ +try: + from serenitas.utils.env import DAILY_DIR +except KeyError: + sys.exit("Please set 'DAILY_DIR' in the environment") + +from serenitas.utils.remote import SftpClient + + +def download_files(): + sftp = SftpClient.from_creds("ice") + dst = DAILY_DIR / "ICE_reports" + sftp.download_files("/", dst) + + +if __name__ == "__main__": + download_files() |
