Re: Move a file

2003-12-13 Thread Wiggins d'Anconia
ed to 'rename' which I should have been more explicit about. A rename merely moves the starting inode, assuming the file is staying on the same partition, which in this case if the temporary file is written into the same directory then it is... Occasionally you can move a file while it is

RE: Move a file

2003-12-12 Thread Tom Kinzer
nt: Friday, December 12, 2003 6:37 AM To: [EMAIL PROTECTED] Subject: Re: Move a file > Neill Taylor wrote: > > > > I am writing a script which will poll a directory and then move any files > > in the directory to a new directory dependant upon its name. > > > > The prob

Re: Move a file

2003-12-12 Thread Rob Dixon
the front, then executing a move from > that temp location to the real name. A move is usually a single action > (at least that's my understanding) and for most filesystems is merely a > single inode update. Then just have the directory watcher skip dot > files... Though the lock would

Re: Move a file

2003-12-12 Thread Wiggins d Anconia
> Neill Taylor wrote: > > > > I am writing a script which will poll a directory and then move any files > > in the directory to a new directory dependant upon its name. > > > > The problem I think I might have is that the script may try to pick a file > > that is still being copied into the dire

Re: Move a file

2003-12-12 Thread Rob Dixon
Neill Taylor wrote: > > I am writing a script which will poll a directory and then move any files > in the directory to a new directory dependant upon its name. > > The problem I think I might have is that the script may try to pick a file > that is still being copied into the directory whilst the

Move a file

2003-12-12 Thread neill . taylor
I am writing a script which will poll a directory and then move any files in the directory to a new directory dependant upon its name. The problem I think I might have is that the script may try to pick a file that is still being copied into the directory whilst the application is still trying t