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

Re: [MiNT] Longfilename support functions?



Hi!

On Wed, May 31, 2000 at 12:52:05PM +0200, you wrote:
> Anyway, is there a way to get the right (including letter case) filename
> from e.g. VFAT drive?

One way: open the directory the filename's in using Dopendir(), then use
Dxreaddir() until the returned file has the same dev/index as a direct
Fxattr() (_without_ following links in this case) on the complete
pathname returns. Don't forget to call Dclosedir(), and of course this
type of lookup might fail because someone might have deleted the file in
the meantime.


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: pgpIO05EysFDb.pgp
Description: PGP signature