Re: Adding Items Delay
Re: Adding Items Delay
- Subject: Re: Adding Items Delay
- From: Jon Pugh <email@hidden>
- Date: Fri, 20 Jul 2001 23:00:29 -0700
At 8:48 PM +0000 7/20/2001, John Futhey wrote:
>
I have a watched folder script that kicks into gear when items are added to
>
a folder. It copies items to another folder inside this folder as soon as
>
they are added.
>
>
Because this folder is on a server, users are waiting for these added files
>
so they can open them and alter them. As soon as they see them, they are
>
grabbing them before the script has a chance to copy them. Thus the script
>
says the file is busy when it attempts to copy it. Is there a way to copy
>
them immediately so that users can't pre-empt the script?
The traditional simple solution is to rearrange the folders on the server so that people cannot just grab them from the download folder. That involves making it write-only, or a drop box. Then have your script move it into the place where people can grab it just as soon as the script is done backing it up.
Doing anything before the users can is very hard.
Jon