(doesDirectoryExist "C:\\") yields False
On Windows, the action
doesDirectoryExist "C:\\"
yields False. This is somewhat unexpected, given that getDirectoryContents "C:\\"
works just fine. I would have expected doesDirectoryExist
to return True for any path on which getDirectoryContents
will succeed. It also means that there is no way to check whether a given network drive has been mapped.
I think at a minimum this behaviour should be documented in the function description. Ideally, the function should either return true for drive names [that exist], or there should be a seperate doesDriveExist
function. (The former seems more portal though.)
Trac metadata
Trac field | Value |
---|---|
Version | 6.6.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | libraries (other) |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |