aboutsummaryrefslogtreecommitdiffstats
path: root/python/ice.py
blob: 0d36c5fb823c87924cf7875ae5723dcc59987d1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()