Mail Archives: djgpp/1998/07/12/12:07:57
On Thu, 9 Jul 1998, Gerhard Gruber wrote:
> >I think I should add a test for TMPDIR to DJVERIFY, except that I still
> >haven't figured out how to test a drive/directory for writeability...
> >any ideas?
>
> Shouldn't fstat do the job?
You probably mean stat, not fstat.
Anyway, stat cannot be the solution here because DOS itself doesn't
set the read-only attribute for directories on non-writable
filesystems, at least not in all cases.
> I don't know about dos but under unix
> this returns also the information wether you habe write access or
> not. If the function is pretty much the same you can use it.
Unix is *very* different from DOS in this context.
- Raw text -