[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Longfilename support functions?



Hi!

On Wed, May 31, 2000 at 11:17:05AM +0200, you wrote:
> This is not the point of what I want to do... I just don't want to open the
> window
> again when the program receives the filename in another letter case.

You could use Fxattr() (with "follow links" flag on) on the file. If dev
and index are identical to an already opened group's file, don't open it
again. This will not only work for different cases in filenames on
filesystems not regarding case, but also for symbolic links.

If Fxattr() isn't available (returncode -32L), it's safe to assume that
comparing the filenames in lowercase is enough.


Ciao

Thomas


-- 
Thomas Binder (Gryf @ IRCNet)  gryf@hrzpub.tu-darmstadt.de
PGP-key available on request!  binder@rbg.informatik.tu-darmstadt.de
Vote against SPAM:             http://www.politik-digital.de/spam/

Attachment: pgpzWVMsMdxZr.pgp
Description: PGP signature