Downloading files with the same structure - WeOnlyDo Discussion board

Downloading files with the same structure (General questions)

by michael090, Thursday, January 13, 2005, 05:08 (7253 days ago)

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

by wodSupport, Thursday, January 13, 2005, 08:06 (7253 days ago) @ michael090

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

by michael090, Friday, January 21, 2005, 01:37 (7245 days ago) @ wodSupport

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

by wodSupport, Friday, January 21, 2005, 01:42 (7245 days ago) @ michael090

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

by michael090, Friday, January 21, 2005, 02:30 (7245 days ago) @ wodSupport

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

by wodSupport, Friday, January 21, 2005, 18:22 (7244 days ago) @ michael090

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 :)