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...

Thank you,
--
Elie

Reply via email to