mtran21
6 years agoNew Contributor III
Download all files from SFTP to a folder
Hi, I want to download all the files in a remote SFTP server to the Files folder. I think this is a pretty simple task but I am new, so I am not sure what to do.
So I am thinking of using these 2 snaps
but I have problem about the output file names. If on my remote server has file1.txt, file2.txt, file3.txt then I want to download the exact file names to my files folder.
What do I put in the file name?
Thanks
The output file should be decrypted already, but with the encrypted filename.
$['content-location']will be the url of the encrypted file because File Writer is connected to PGP Decrypt.You could replace or append the file extension if you know what the original extension is.
.replace('pgp', 'txt')+ ".txt"