In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] wrote:

>i need to go into a directory to grab some files and do some
>processing.
>The thing is, i need to wait till the process that generates the files
>in that directory to finish
>before i can grab the files. eg if file A is being generated and has
>not finished, my python script will not go into the directory.
>how can i check that file A has actually finished?

I wrote a similar system that watches for new files arriving in an 
"uploads" directory, whether copied there via FTP or using a GUI desktop 
script. My heuristic was to only process files whose last-modified 
date/time was at least 5 minutes in the past. My assumption was that it 
was unlikely that 5 minutes would go by between more information being 
added to a file.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to