Jun 18, 2004 #1 DeSn Programmer Joined Nov 20, 2001 Messages 111 Location BE Anyone an idea why this doens't work if path is a path="../MilesRoot/" path="\\\\max1\\public\\" new File(path).list() The list is null. It works if path is f.e. "c:\\test\\
Anyone an idea why this doens't work if path is a path="../MilesRoot/" path="\\\\max1\\public\\" new File(path).list() The list is null. It works if path is f.e. "c:\\test\\
Jun 18, 2004 #2 sedj Programmer Joined Aug 6, 2002 Messages 5,610 Which 'path' String are you talking about (max1 or MilesRoot) ? Can you do a "dir \\path" ? -------------------------------------------------- Free Database Connection Pooling Software http://www.primrose.org.uk Upvote 0 Downvote
Which 'path' String are you talking about (max1 or MilesRoot) ? Can you do a "dir \\path" ? -------------------------------------------------- Free Database Connection Pooling Software http://www.primrose.org.uk
Jun 18, 2004 Thread starter #3 DeSn Programmer Joined Nov 20, 2001 Messages 111 Location BE They both don't work new FileOutPutStream(path) doesn't work eather. Upvote 0 Downvote
Jun 18, 2004 Thread starter #4 DeSn Programmer Joined Nov 20, 2001 Messages 111 Location BE path.isDirectory() gives errors but I don't know why because it is a directory Upvote 0 Downvote
Jun 18, 2004 #5 sedj Programmer Joined Aug 6, 2002 Messages 5,610 You want to do : Code: File f = new File("\\max1\\public"); File files[] = f.listFiles(); System.err.println(files.length); -------------------------------------------------- Free Database Connection Pooling Software http://www.primrose.org.uk Upvote 0 Downvote
You want to do : Code: File f = new File("\\max1\\public"); File files[] = f.listFiles(); System.err.println(files.length); -------------------------------------------------- Free Database Connection Pooling Software http://www.primrose.org.uk