Re: case sensitive file names
Roedy Green wrote:
On Fri, 15 May 2009 15:14:47 -0400, Zig <none@nowhere.net> wrote,
quoted or indirectly quoted someone who said :
Can you provide a greater context for your question?
I have just about a completed a simple backup program. It checks to
see if files have changed and if so updates the archive. It maintain
a
TrueZip file, deleting, updating, adding as needed to keep it in
sync
with a constellation of files to back up.
The way out of this conundrum was I decided to convert all file
names
to canonical form, both to store in the archive and externally then
compare case-sensitively. That works no matter what case-sensitivity
the OS or corners of it have.
I must be missing something. Unless there are filesystems which
*report* filenames inconsistently (i.e.call a file aaa.txt on Monday
and AAA.TXT on Tuesday), why do you care whether the file system is
case-sensitive or not? If On Monday there's an AAA.TXT and on Tuesday
there's no AAA.TXT but there's an aaa.txt, assume it's a different
file. (If on Tuesday there's both an AAA.TXT and an aaa.txt, you'll
know it's case-sensitive.)