Name: dm26566 Date: 08/20/98
java.io.File should have a method isReady() or
isDeviceReady() so that the OS doesn't launch
the infamous Abort/Retry/Cancel dialog when
calling such methods as listFiles(), exists(),
or canRead().
For example if you write a JExplorer (similar
to Windows Explorer) there is no way to listRoots() without throwing the
NullPointerException or
canRead() without forcing the user to answer
the dialog for devices that are not ready.
Under Unix is the device is not mounted it's not
a root/subdirectory so this issue will never come
up. However with listRoots() (presumeable for
Windows machines) it is an issue.
(Review ID: 37315)
======================================================================
java.io.File should have a method isReady() or
isDeviceReady() so that the OS doesn't launch
the infamous Abort/Retry/Cancel dialog when
calling such methods as listFiles(), exists(),
or canRead().
For example if you write a JExplorer (similar
to Windows Explorer) there is no way to listRoots() without throwing the
NullPointerException or
canRead() without forcing the user to answer
the dialog for devices that are not ready.
Under Unix is the device is not mounted it's not
a root/subdirectory so this issue will never come
up. However with listRoots() (presumeable for
Windows machines) it is an issue.
(Review ID: 37315)
======================================================================
- duplicates
-
JDK-4089199 File creation on removable drives without a disk brings up a dialog (win)
-
- Resolved
-