[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH] file=? function to compare two files
From: |
Michele La Monaca |
Subject: |
Re: [Chicken-hackers] [PATCH] file=? function to compare two files |
Date: |
Thu, 7 Feb 2013 18:51:48 +0100 |
On Fri, Jan 25, 2013 at 6:36 PM, Christian Kellermann
<address@hidden> wrote:
> * 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...
Yes, sure. That was the primary use case when I thought about the
"FORCE-COMPARISON" option.
Thanks.
Regards,
Michele
- Re: [Chicken-hackers] [PATCH] file=? function to compare two files,
Michele La Monaca <=