simply sleeping one second must be not too bad compromise for now, >don't you agree?
PMFJI, I am new here, and am not sure exactly what you are trying to fix, but I don't think that sleeping 1 second per file is a good idea, considering that I experience a big problems with performances... Have you think, by example, that 1 sec X 10 000 files = 2.8 hours?
And we are talking about a server here; I think that 10 000 files, it's quite a small number.
i totally agree with you :)
fortunately, what i have proposed in the ealier mail was not like that at all.
the current COPY operation consist of one loop, which is copying files to /new/. and my patch adds another loop just after first loop, which is moving files from /new/ to /cur/ with infomation such as seen, replied.
and the important thing here is, each file needs be at least 1 second old when it will be moved to /cur/ foloder.
there are (at least) two solutions to make sure: 1) compare every file's timestamp and the time when moving to /cur/. 2) just sleep 1 second before running the second loop.
and my point was that the 2nd way must be adequate enough while the 1st way might sound more proper.
clear?
-- Hiroshima

