A
alex
Hello,
My script is trying to get a file from a remote server, every day it
ftps from a directory. My code works perfect if I know the name of the
file in the remote directory.
ftp.retrbinary('RETR ' + filename, handleDownload)
The problem is that in the future the name of the file is going to be
aleatory. How can I get the file's name (only one file is in that
directory) and store it in a variable before executing ftp.retrbinary?
Thanks a lot for your help,
Alex
My script is trying to get a file from a remote server, every day it
ftps from a directory. My code works perfect if I know the name of the
file in the remote directory.
ftp.retrbinary('RETR ' + filename, handleDownload)
The problem is that in the future the name of the file is going to be
aleatory. How can I get the file's name (only one file is in that
directory) and store it in a variable before executing ftp.retrbinary?
Thanks a lot for your help,
Alex