Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I should download files from a server ftp. In some cases, there is missing of some files.
So i want to check if all files are included on the FTP.
I tried to find some informations here, but it seems file fonction(like filesize()...) aren't supported by ftp.
Someone know if there are others ways to do it.
Thanks
Use a tool like curl or wget to get a list of files from the ftp server and then check that list.
bash - How to get a list of available files using wget or curl? - Stack Overflow
Use a tool like curl or wget to get a list of files from the ftp server and then check that list.
bash - How to get a list of available files using wget or curl? - Stack Overflow
This is a good idea.
I created a list including all files expected. And i use a batch file to get a list of file as you indicated.
And then i compare these 2 list for getting missing file.
Thanks.