[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH] file=? function to compare two files
From: |
Christian Kellermann |
Subject: |
Re: [Chicken-hackers] [PATCH] file=? function to compare two files |
Date: |
Fri, 25 Jan 2013 18:36:14 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
* John Cowan <address@hidden> [130125 17:33]:
> Michele La Monaca scripsit:
>
> > I wasn't able to spot this kind of function in the library so I wrote
> > it myself. Not sure if files.scm is the right place for that. Not sure
> > either if inode-numbers equality in Windows is enough to state that
> > two files are actually the same file. Some tuning might be needed,
> > not yet very fluent/knowledgeable in scheme... unfortunately.
>
> For sure you have to check for equality in st_dev as well as st_ino.
> Even on Posix systems, inode numbers are only unique to a specific device.
> In any case, st_ino is garbage on Windows systems (other than Cygwin).
>
Or don't make sense on network filesystems...
--
In the world, there is nothing more submissive and weak than
water. Yet for attacking that which is hard and strong, nothing can
surpass it. --- Lao Tzu