hallo
i tested edtFTPj with two different ftp servers and when i call the dirDetails method i get an exception:
java.text.ParseException: Unparseable date: "-rw-rw-rw- 1"
at java.text.DateFormat.parse(Unknown Source)
at com.enterprisedt.net.ftp.WindowsFileParser.parse(WindowsFileParser.java:107)
at com.enterprisedt.net.ftp.FTPFileFactory.parse(FTPFileFactory.java:200)
at com.enterprisedt.net.ftp.FTPClient.dirDetails(FTPClient.java:2210)
and (zFTPd):
java.text.ParseException: Unparseable date: "dr--r--r-- 1"
at java.text.DateFormat.parse(Unknown Source)
at com.enterprisedt.net.ftp.WindowsFileParser.parse(WindowsFileParser.java:107)
at com.enterprisedt.net.ftp.FTPFileFactory.parse(FTPFileFactory.java:200)
at com.enterprisedt.net.ftp.FTPClient.dirDetails(FTPClient.java:2210)
ftp servers used:
-
www.sambar.com -
http://zftpserver.serveftp.com/the raw listing would look like:
ftp> dir
200 PORT Command successful.
125 File status okay; about to open data connection.
dr--r--r-- 1 root public 512 May 06 15:56 .
dr--r--r-- 1 root public 512 May 06 15:56 ..
-r--r--r-- 1 root public 287569 May 06 07:02 inter.zip
-r--r--r-- 1 root public 268116 May 06 07:01 ME403010.zip
-r--r--r-- 1 root public 670 May 06 07:01 ME10.xml.zip
-r--r--r-- 1 root public 31 May 06 07:27 unzip-inter.bat
226 Transfer complete, closing data connection.
FTP: 64d Bytes empfangen in 0.05Sekunden 22.04KB/s
some hints how to avoid this would be great. since i dont really need the date, only the size and the name :-)
thanks a lot