[Kc] File Stats
John Reinke
jmreinke at gmail.com
Tue Sep 18 10:21:07 PDT 2007
If I'm understanding this correctly, the goal is to identify a specific
file, beyond just the name/path, correct?
I've used the inode in the past to determine whether a file had been
modified or replaced.
Ex.:
my $inode = (stat $filename)[1];
John
On 9/18/07, Andrew Moore <amoore at mooresystems.com> wrote:
>
> On Mon, Sep 17, 2007 at 04:31:39PM -0500, djgoku wrote:
> > What is the best way to keep track that a certain file is the same one
> > that has been previously looked/opened at.
>
> I'd think that one of the File::* modules would be able to generate a
> list of unique files in a directory. Have you looked at (off the top
> of my head) File::Find or File::Next and their ilk?
>
> -Andy
>
> _______________________________________________
> kc mailing list
> kc at pm.org
> http://mail.pm.org/mailman/listinfo/kc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/kc/attachments/20070918/8eaa9895/attachment.html
More information about the kc
mailing list