commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lennart Petersson <lennart.peters...@gmail.com>
Subject FtpClient not listing all files/dirs
Date Mon, 26 Sep 2011 20:26:44 GMT
FTP server is on an old AIX.

Version of commons-net is 3.0.1

Following are some debug output i have from my simple use of FtpClient. As
you can se when using method ftpClient.listNames() it will list all 13
files/dirs. But when trying ftpClient.listFiles() it will only show 12
files/dirs. The one missing (dir wrk) differs from all the other files/dirs
by have been modified during this year. I've also tried a FTP Client GUI
like Cyberduck and I have the same problem there, it will not show the wrk
dir. If I look into Cyberduck log though I can see wrk:

drwxr-sr-x  16 sys         4608 sep 21 13.08 wrk

Look at the separator used in timestamp, a period instead of colon. My guess
is that has something to do with my problem. And I guess that I might be
able to configure FtpClientConfig to deal with this but I'm not able to
figure out how :(

2011-09-26 20:06:15,151 INFO  [se.rplp.test.FtpClient] (HDScanner) Listing
13 file names with listNames()
2011-09-26 20:06:15,151 INFO  [se.rplp.test.FtpClient] (HDScanner) got file
list: 13
2011-09-26 20:06:15,151 INFO  [se.rplp.test.FtpClient] (HDScanner) Name = v5
2011-09-26 20:06:15,151 INFO  [se.rplp.test.FtpClient] (HDScanner) Name = bi
2011-09-26 20:06:15,151 INFO  [se.rplp.test.FtpClient] (HDScanner) Name =
wrk
2011-09-26 20:06:15,151 INFO  [se.rplp.test.FtpClient] (HDScanner) Name =
avisur
2011-09-26 20:06:15,151 INFO  [se.rplp.test.FtpClient] (HDScanner) Name =
PROGRESSanst.prn
2011-09-26 20:06:15,151 INFO  [se.rplp.test.FtpClient] (HDScanner) Name =
anstalld
2011-09-26 20:06:15,151 INFO  [se.rplp.test.FtpClient] (HDScanner) Name =
nyanst
2011-09-26 20:06:15,151 INFO  [se.rplp.test.FtpClient] (HDScanner) Name =
uttag.p
2011-09-26 20:06:15,151 INFO  [se.rplp.test.FtpClient] (HDScanner) Name =
sttest.fil
2011-09-26 20:06:15,151 INFO  [se.rplp.test.FtpClient] (HDScanner) Name =
tillf
2011-09-26 20:06:15,151 INFO  [se.rplp.test.FtpClient] (HDScanner) Name =
klinikenheter.txt
2011-09-26 20:06:15,151 INFO  [se.rplp.test.FtpClient] (HDScanner) Name =
namn
2011-09-26 20:06:15,151 INFO  [se.rplp.test.FtpClient] (HDScanner) Name =
wwrk
2011-09-26 20:06:15,182 INFO  [se.rplp.test.FtpClient] (HDScanner) Listing
12 files with listFiles()
2011-09-26 20:06:15,182 INFO  [se.rplp.test.FtpClient] (HDScanner)
File:-rw-r--r--   1 root     system   6757020 mar 11 2008  anstalld
2011-09-26 20:06:15,182 INFO  [se.rplp.test.FtpClient] (HDScanner)
File:-rw-r--r--   1 root     system         0 aug 09 2002  avisur
2011-09-26 20:06:15,182 INFO  [se.rplp.test.FtpClient] (HDScanner)
File:drwxr-sr-x  38 sys      sys         1024 feb 04 2009  bi
2011-09-26 20:06:15,182 INFO  [se.rplp.test.FtpClient] (HDScanner)
File:-rw-r-----   1 root     system     32384 mar 04 2008  klinikenheter.txt
2011-09-26 20:06:15,182 INFO  [se.rplp.test.FtpClient] (HDScanner)
File:-rw-r--r--   1 root     system         5 maj 25 2009  namn
2011-09-26 20:06:15,182 INFO  [se.rplp.test.FtpClient] (HDScanner)
File:-rw-r--r--   1 root     system   1492870 mar 04 2008  nyanst
2011-09-26 20:06:15,182 INFO  [se.rplp.test.FtpClient] (HDScanner)
File:-rw-r-----   1 root     system   1157638 mar 04 2008  PROGRESSanst.prn
2011-09-26 20:06:15,182 INFO  [se.rplp.test.FtpClient] (HDScanner)
File:-rw-r--r--   1 root     system        17 mar 11 2008  sttest.fil
2011-09-26 20:06:15,182 INFO  [se.rplp.test.FtpClient] (HDScanner)
File:drwxr-xr-x   2 root     system       512 apr 09 2008  tillf
2011-09-26 20:06:15,182 INFO  [se.rplp.test.FtpClient] (HDScanner)
File:-rw-r--r--   1 root     system      3106 mar 11 2008  uttag.p
2011-09-26 20:06:15,182 INFO  [se.rplp.test.FtpClient] (HDScanner)
File:drwxr-sr-x  38 sys      sys         1024 nov 11 2010  v5
2011-09-26 20:06:15,182 INFO  [se.rplp.test.FtpClient] (HDScanner)
File:-rw-r--r--   1 root     system    118167 maj 25 2010  wwrk

Any help would be very much appreciated!

Thanks,

/L

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message