Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
getFileStatus(ChannelSftp channel, LsEntry sftpFile, Path parentPath)
get FileStatus as code below:
private FileStatus getFileStatus(ChannelSftp channel, LsEntry sftpFile, Path parentPath) throws IOException { SftpATTRS attr = sftpFile.getAttrs(); …… long modTime = attr.getMTime() * 1000; // convert to milliseconds …… }
,which attr.getMTime return int, which meansthe modTime is wrong