[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] ftp large file upload problem



John Cooper wrote:
[snip]
I assume that it is your process that it picking the files up to early.
Then you might get a listing of file sizes then wait for 10 seconds or
so and only process the files that have not changed size in that time.
Or just look at the mtime of the file and only process those that have
not been modified in the last 30seconds  or more depending on what you
require. It will still be a bit hit and miss. You might be able to get
something from the ftp logs if you crank up the level of logging then
look for completed uploads on files and only process those. The best and
simplest approach is the rename as suggest above, tried and tested.
Perhaps they could upload all thier files to a diffirent dir then rename
the whole dir when completed.

Hope my ramblings give some help???

john
It helps. Thanks.
I'll set cron job then to do something like:
find . -name "*.${EXT}" -cmin +1 -exec cp --parents {} ${TARGET_DIR} \;
And will process files from TARGET_DIR instead of ftp folder.
Best regards,
Denis.

___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

 GNU the choice of a complete generation.