Overview
| Artifact ID: | e56d7c6eff6c9145a3e924e053d4161b37149801 |
|---|---|
| Ticket: | 511658ffffffffffffffffffffffffffffffffff
'file attributes c:/' returns 'hidden 1' |
| User & Date: | vincentdarley on 2002-02-01 19:53:49 |
Changes
- icomment:
Logged In: YES user_id=32170 This appears to be a known problem/fact, e.g. http://www.macwindows.com/MacOS85.html contains "If you use the Win32 API GetFIleAttributes on the ROOT directory of an NTFS volume (for example, "e:\"), it always has the FILE_ATTRIBUTE_HIDDEN bit. However, if you use his same API against a subdirectory (say,"e:\myshare"), it will only have this bit set if someone set it.... I believe this is because NTFS uses these bits on the root directory to indicate that the file system is NTFS and not FAT." I'm not sure one can "hide" a root volume on windows, so perhaps what is needed is a check that the path is of the form 'x:/' (or x:\) and then to force the hidden flag to zero? anyone actually know anything about this?, beyond my speculation ;-)
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"