Pete Emerson wrote:
> 
> John W. Krahn wrote:
> >
> >Due to way some file systems work I would store the file names in an
> >array and use the array to rename the files instead of renaming them in
> >the File::Find::find() sub.
> >
> Can you expand on this a little? Is this a performance issue or a "it
> might not do what you think it does" issue?

It is an "it might not do what you think it does" issue.  On most
DOS/Windows/*nix file systems directories are special types of files
that store file names and some meta data about the file (*nix stores
most of the meta data in the inode table) in a sequential list.  When
files are unlinked/deleted instead of compressing the list the entry is
marked as deleted and that entry is reused when a new file is created. 
Depending on how you read the directory entries and how rename works at
the system level you could miss some files or process some files more
than once.


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to