No such thing as a small change | |
PerlMonks |
Re: Monitor Folder, Wait for Upload?by archfool (Monk) |
on Jul 13, 2007 at 15:48 UTC ( [id://626473]=note: print w/replies, xml ) | Need Help?? |
The safest way is to upload into a temp directory and move it when done.
Failing that, you can use the "-s" operator (or stat) to determine file size over time. If over N seconds, it hasn't grown any, it's probably finished uploading.
In Section
Seekers of Perl Wisdom
|
|