On Mon, Mar 01, 2010 at 08:24:01PM +0200, Elie Roux wrote: > Taco Hoekwater a écrit : > >Why not just do io.open(,"w") ? if it fails, you couldn't write. And > >such a test will do the 'right thing' if the disk is full or mounted > >read-only. > > That what I do, but this is a bit dirty as a solution... > > >lfs has lfs.symlinkattributes() for this, but I have never > >used it so I am not sure how useful that is. > > It gives some informations about the link, but it does not tell > where it points. > > >Libraries that do not run on win32 are definitely out of the question. > > Sure, I thought about that after I sent my mail... what about adding > a lfs.readlink available only under unix (just like > lfs.symlinkattributes is)? And maybe having the two or three > functions to get the permissions working would help too... The > functions are like 15 lines long in posix.c, I think it shouldn't be > a problem...
I'm not sure if I understand this, but aren't symlinks filesystem rather than OS specific (i.e. no symlinks on FAT but symlinks on ISO 9660 filesystems, no matter what OS you are running)? Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
