commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dhiraj prajapati (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NET-560) FTPFile.getTimestamp() does not give precise time
Date Mon, 08 Dec 2014 06:40:13 GMT

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

dhiraj prajapati commented on NET-560:
--------------------------------------

Yes, I am using listFiles to list the files. The server does not support MLSD. Can we configure
the server to support MLSD? Or is there any other alternative?

> 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)

Mime
View raw message