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()); } } } Release: unknown Environment: win32 How-To-Repeat: See example source
Responsible-Changed-From-To: unassigned->tromey Responsible-Changed-Why: I'm handling the administrivia
State-Changed-From-To: open->closed State-Changed-Why: I'm checking in the patch.
From: tromey@gcc.gnu.org To: gcc-gnats@gcc.gnu.org Cc: Subject: java/9253 Date: 24 Jan 2003 21:57:00 -0000 CVSROOT: /cvs/gcc Module name: gcc Changes by: tromey@gcc.gnu.org 2003-01-24 21:57:00 Modified files: libjava : ChangeLog libjava/java/io: natFileWin32.cc Log message: 2003-01-24 Ranjit Mathew <rmathew@hotmail.com> Fixes PR java/9253: * java/io/natFileWin32.cc (performList): Append only "*.*" if the canonical file path already has a "\" at the end. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.1642&r2=1.1643 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/io/natFileWin32.cc.diff?cvsroot=gcc&r1=1.12&r2=1.13
From: tromey@gcc.gnu.org To: gcc-gnats@gcc.gnu.org Cc: Subject: java/9253 Date: 24 Jan 2003 21:57:41 -0000 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-3_3-branch Changes by: tromey@gcc.gnu.org 2003-01-24 21:57:41 Modified files: libjava : ChangeLog libjava/java/io: natFileWin32.cc Log message: 2003-01-24 Ranjit Mathew <rmathew@hotmail.com> Fixes PR java/9253: * java/io/natFileWin32.cc (performList): Append only "*.*" if the canonical file path already has a "\" at the end. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.1594.2.45&r2=1.1594.2.46 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/io/natFileWin32.cc.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.11.4.1&r2=1.11.4.2