Mail Archives: djgpp/1998/07/12/12:07:24
On Thu, 9 Jul 1998, John M. Aldrich 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?
The only way to be sure is to create a file and see if that succeeds,
then delete it. Nothing else will work, since DOS/Windows cannot be
bothered to return correct directory attributes on read-only
filesystems. For that matter, I think DOS itself doesn't even know
that a filesystem is read-only until it tries to write there. For
example, consider a write-protected floppy.
- Raw text -