Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Verify File Completed Uploaded

Status
Not open for further replies.

JVZ

Programmer
Sep 3, 2002
205
0
0
CA
Is there anyway to verify if a file is being written to?

I need to verify that the file that I'm downloading has been completely uploaded before trying to download the file. The problem that I running into is the script is downloading the while the file is still be uploaded.

I requested the sender to use a temp name while uploading and when the process has been completed and rename the file, however the will not make this change until Feb 05. So until then I need to patch my script... Any suggestions?

BTW The FTP service is running on Windows 2000....
 
Win2K - flock() should work on 2k...



Mike

"Deliver me from the bane of civilised life; teddy bear envy."

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

 
Perhaps put a loop in your program that checks the file size every few seconds and only downloads the file once it has had a constant size for two or so consecutive checks.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top