Downloading files with the same structure (General questions)
Hi Sir's,
Is theres a way to create the same structure to the local PC from the FTP site?
Example from the FTP site the path is: /home/user/folder1/subfolder2/file.txt
Then when i try to execute this code
wodsftpdlx.getfiles c:sampleprogram , /home/user/folder1/subfolder2/file.txt , 0
I'd like the localpath to be like this:
c:sampleprogramfolder1subfolder2
Is this possible?
Thanks
Re: Downloading files with the same structure
Michael,
if you're asking if wodFtpDLX will create subdirectories for you, answer is no for GetFile method.
You will need to use GetFiles (plural) method, in which case wodFtpDLX would create subdirectories, but I don't beleive it applies for your case, and I am not sure if that's what you had in mind.
Re: Downloading files with the same structure
Hi Sir,
This function is a big help for me... Also wanna ask if its possible to view the speed and time how long the downloading or uploading will be done?
Thanks...
Re: Downloading files with the same structure
Michael,
you mean estimates? No, this is not possible with GetFiles. Problem is that files are listed and downloaded 'as we go'. We don't list them all first - so we don't even know in advance how much is there to download.
Hope it helps.
Re: Downloading files with the same structure
Hi Sir,
What I mean is there's a function or way that I could show what is the bandwidth during upload/download and the time remaining?
Thanks
Re: Downloading files with the same structure
Michael,
not really, you cannot estimate this using GetFiles.
But..You could use LoopFiles to loop through all files, put them to local collection (including their file sizes), and then call GetFile for each of them from your collection. In that case you would have all the info you need.
But I leave this implementation up to you :)