DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36258>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36258





------- Additional Comments From [EMAIL PROTECTED]  2005-08-19 14:10 -------
(In reply to comment #2)
Hi Steve,

the array[icounter].isDirectory() for some reason returns always true, even if
array[icounter] is null and although the files are no directory. 

Buildfile: build.xml

all:
      [ftp] getting files
      [ftp] isdirectory: true array: drwxr-xr-x   2 OMVSKERN SYS1        8192
Feb 14  2005 IBM
      [ftp] isdirectory: true array: -rw-r--r--   2 OMVSKERN SYS1        1963
Feb 14  2005 README
      [ftp] isdirectory: true array: drwxr-xr-x   3 OMVSKERN SYS1        8192
Feb 14  2005 cics
      [ftp] isdirectory: true array: drwxr-xr-x   4 OMVSKERN SYS1        8192
Jun 16 13:50 dlimodel
      [ftp] isdirectory: true array: -rw-r--r--   2 OMVSKERN SYS1      267217
Jun 16 13:50 imsjava.jar
      [ftp] isdirectory: true array: -rw-r--r--   2 OMVSKERN SYS1        5545
Jun 16 13:50 imsjava91.rar
      [ftp] isdirectory: true array: drwxr-xr-x   3 OMVSKERN SYS1        8192
Feb 14  2005 lib
      [ftp] isdirectory: true array: null
      [ftp] isdirectory: true array: drwxr-xr-x   8 OMVSKERN SYS1        8192
Jul 20 19:23 samples
      [ftp] isdirectory: true array: -rw-r--r--   1 OMVSKERN SYS1       87809
Sep 24  2004 samples.jar

In addition, you are right. For my current directory it's luck, that the
NullPointerException does not occur in the outer loop.

The root error seams to be in commons net classes, since with a wu-ftp server
the isdirectory() method works correct and only returns true for directories.
I'll try to find the cause of the array being null in case of a symbolic link in
the z/OS directory.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to