Download partial file (General questions)
What will happen if we attempt to download something that is partially uploaded by our customer? Will it not appear on the dirlist if the item is in progress?
TIA
Mike
mbaker at creativedi dot com
What will happen if we attempt to download something that is partially uploaded by our customer? Will it not appear on the dirlist if the item is in progress?
TIA
Mike
mbaker at creativedi dot com
by woddrazen
, (6218 days ago) @ Mike Baker
Hi Mike,
File will appear immidiatelly when you start to transfer it to server.
One thing you can do to determine which file is still unfinished and which is finished. You can upload file to server using some extension. For example .filepart extension. Something like this: weonlydo.txt.filepart
When file is uploaded to server completely you can rename that file and remove .filepart extension from name of file. You can do that using wodFtpDLX Rename Method.
More help for Rename Method you can find here:
http://www.weonlydo.com/FtpDLX/Help/wodFtpDLXLib~wodFtpDLX~Rename.html
Hope I helped.
Regards,
Drazen
by Mike Baker
, (6218 days ago) @ woddrazen
Thanks for the quick reply. What we're doing is downloading files that our customers put up on the FTP site. I'm writing a service that polls folders for incomming files. When the file is found we download it. What will happen if the customer starts uploading and my service starts downloading before it's done. Is there a DirItems(n) property that we can check to see if the file's locked or something?
TIA
Mike
mbaker at creativedi dot com
Hi Mike,
File will appear immidiatelly when you start to transfer it to server.One thing you can do to determine which file is still unfinished and which is finished. You can upload file to server using some extension. For example .filepart extension. Something like this: weonlydo.txt.filepart
When file is uploaded to server completely you can rename that file and remove .filepart extension from name of file. You can do that using wodFtpDLX Rename Method.
More help for Rename Method you can find here:
http://www.weonlydo.com/FtpDLX/Help/wodFtpDLXLib~wodFtpDLX~Rename.htmlHope I helped.
Regards,
Drazen
by woddrazen
, (6218 days ago) @ Mike Baker
Mike,
wodFtpDLX will download that file. I have checked with other clients and it's same.
Unfortunately we don't have such property that will check if file is uncompleted. I'm not sure that this option can be implemented at all.
One workaround is to list files in folder and wait some time (5-10 seconds) and list is again and compare size of files. If file size is same transfer is completed.
Drazen

Thank you so much for your hard work and commitment in producing well thought-out solutions. WeOnlyDo is very committed to customer satisfaction!

...what I really like is that wodSSH and wodSFTP components work excellently and are constantly being improved...

...what I really like is that wodSSH and wodSFTP components work excellently and are constantly being improved...

It is very refreshing to find such helpful, knowledgeable and quick responding technical support.

Thank you for the great customer service ... I am really impressed with the wodSSH ActiveX control.

...with the SFTP interface you produced, everything was so simple to understand, we were able to start coding almost immediately!

...what I really like is that wodSSH and wodSFTP components work excellently and are constantly being improved...

Fantastic product by the way, it has helped us tremendously on a daily basis. Keep up the good work.

I would highly recommend this to anyone who needs a good quality SFTP solution.

This has been, by far, the best experience I have ever had dealing with a support entity in my long career in the technical arena

