[ 
https://issues.apache.org/jira/browse/NET-560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14235817#comment-14235817
 ] 

Sebb commented on NET-560:
--------------------------

What code did you use to get the listing?

FTPClient#listFiles uses the LIST command to fetch the details; this does not 
normally return anything more precise than minutes.

You may have better luck with the mlistDir method which uses MLSD; however not 
all servers support it.
MLSD should return seconds, but may not return milliseconds.
Also some servers don't return user and group information

Use an FTP command line client to check.

> FTPFile.getTimestamp() does not give precise time
> -------------------------------------------------
>
>                 Key: NET-560
>                 URL: https://issues.apache.org/jira/browse/NET-560
>             Project: Commons Net
>          Issue Type: Bug
>          Components: FTP
>    Affects Versions: 3.3
>         Environment: Linus, CentOS
>            Reporter: dhiraj prajapati
>
> FTPFile.getTimestamp() does not give precise time upto seconds and 
> milliseconds.  For example, the modification time of a file on the ftp server 
> is 2014-12-05 16:28:45.41 but this function gives a calendar object which 
> when converted to timestamp is equivalent to 2014-12-05 16:28:00.0. The 
> seconds and milliseconds information is lost.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to