BUG: file.list() Doesn't Work with File("c:\\") on Win 95/98 (191936)
The information in this article applies to:
- Microsoft virtual machine, when used with:
- the operating system: Microsoft Windows 95
- the operating system: Microsoft Windows 98
This article was previously published under Q191936 SYMPTOMS
Java's file.list() method does not list files/directories on Windows 95 and
Windows 98 with Virtual Machine for Java 2829 when file parameter is
specified as File("C:\\") for example. This is true for any path ending
with a "\\" specified as a parameter to File, irrespective of whether the
program is an applet or an application.
RESOLUTION
The workaround is to append a period "." to the parameter as in
File("C:\\.").
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
REFERENCES
For the latest Knowledge Base articles and other support information on
Visual J++ and the SDK for Java, see the following pages on the Microsoft
Technical Support site:
(c) Microsoft Corporation <year>, All Rights Reserved. Contributions by
Mohan Ananthakrishnan,
Microsoft Corporation.
Modification Type: | Minor | Last Reviewed: | 8/25/2005 |
---|
Keywords: | kbbug kbpending KB191936 |
---|
|