determining if a file is in use
determining if a file is in use
- Subject: determining if a file is in use
- From: John Fountain <email@hidden>
- Date: Tue, 20 Nov 2001 08:25:34 -0500
Hello all-
Is it possible to tell if a file is in use before performing an action
on it? e.g. I am copying a file to a server over a very s-l-o-w link, a
1mb file take approximately 1 minute to fully copy. I would like to
perform a script on the file when it is fully copied to the server. I
currently have a script that watches a folder but it sometimes errors
out when it grabs a file that hasn't finished copying yet. I would like
to be able to trap this and delay a few seconds then try performing the
operation on the file again. Any help to point me in the right direction
would be appreciated.
-John