This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
java/9253: on win32, java.io.File.listFiles("C:\\") returns pwd instead of the root content of C:
- From: erik dot poupaert at chello dot be
- To: gcc-gnats at gcc dot gnu dot org
- Date: 9 Jan 2003 19:37:00 -0000
- Subject: java/9253: on win32, java.io.File.listFiles("C:\\") returns pwd instead of the root content of C:
- Reply-to: erik dot poupaert at chello dot be
>Number: 9253
>Category: java
>Synopsis: on win32, java.io.File.listFiles("C:\\") returns pwd instead of the root content of C:
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 09 11:46:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: erik.poupaert@chello.be
>Release: unknown-1.0
>Organization:
>Environment:
win32
>Description:
import java.io.File;
public class TestFileList
{
public static void main(String args[])
{
File file=new File("C:\\");
File[] list = file.listFiles();
//displays the list of pwd and not of C:\\
for(int i=0;i<list.length;i++)
{
System.out.println(list[i].getName());
}
}
}
>How-To-Repeat:
See example source
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: