diff options
Diffstat (limited to 'python/ops/funds.py')
| -rw-r--r-- | python/ops/funds.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/python/ops/funds.py b/python/ops/funds.py index f4d9c1d1..1d467f14 100644 --- a/python/ops/funds.py +++ b/python/ops/funds.py @@ -85,9 +85,8 @@ class Serenitas(Fund, fund_name="SERCGMAST"): @staticmethod def upload(buf, dest): - ftp = FtpClient.from_creds("globeop") - ftp.client.cwd("incoming") - ftp.client.put(buf, dest) + ftp = FtpClient.from_creds("globeop", folder="incoming") + ftp.put(buf, dest) class Brinker(Fund, fund_name="BRINKER"): @@ -104,8 +103,7 @@ class Bowdst(Fund, fund_name="BOWDST"): @staticmethod def upload(buf, dest): - sftp = SftpClient.from_creds("hm_globeop") - sftp.client.chdir("incoming") + sftp = SftpClient.from_creds("hm_globeop", folder="incoming") sftp.put(buf, dest) em = ExchangeMessage() recipients = ("hm-operations@bnymellon.com",) |
