Discuss (FTP) and (SFTP, FTPS and SCP), our Java file transfer clients.

Unusual format!!

no avatar
User

ocp0120

Posts

4

Joined

Wed Jan 14, 2009 12:10 pm

Unusual format!!

by ocp0120 » Wed Jan 14, 2009 12:29 pm

I found the unusual format of date.
A FTP server(UNIX) returns like below for 'LIST' command.
-rwxrwxrwx 1 URM dan 957 1월 7 09:22 test.txt
In that server, using 'dirDetails', filename is not returned.
I think that caused by the string, '1월'.
Because the first character is digit, it seems to enter below 'if'.
-----------------------------------------------------------------------------------------
// we expect the month first on Unix.
// Connect:Enterprise UNIX has a weird extra field here - we test if the
// next field starts with a digit and if so, we skip it
if (Character.isDigit(fields[index].charAt(0)))
index++;
-----------------------------------------------------------------------------------------
The 'if' condition must be contained more condition.
'1월' is the Korean and means 'January' in English.
Please fix the problem.
Thanks.
no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Thu Jan 15, 2009 9:20 am

no avatar
User

ocp0120

Posts

4

Joined

Wed Jan 14, 2009 12:10 pm

by ocp0120 » Thu Jan 15, 2009 9:48 am

no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Thu Jan 15, 2009 10:10 am

no avatar
User

ocp0120

Posts

4

Joined

Wed Jan 14, 2009 12:10 pm

by ocp0120 » Thu Jan 15, 2009 11:00 am

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Thu Jan 15, 2009 12:16 pm

no avatar
User

ocp0120

Posts

4

Joined

Wed Jan 14, 2009 12:10 pm

by ocp0120 » Thu Jan 15, 2009 12:45 pm

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Thu Jan 15, 2009 1:42 pm


Who is online

Users browsing this forum: No registered users and 15 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign