You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (Jira)" <ji...@apache.org> on 2020/08/06 22:38:00 UTC
[jira] [Commented] (IO-672) Copying a File sets last modified date
to 01 January 1970
[ https://issues.apache.org/jira/browse/IO-672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17172702#comment-17172702 ]
Sebb commented on IO-672:
-------------------------
Looks like the issue was caused by the following commit:
https://github.com/apache/commons-io/commit/94aaf0649da33ad07a35c4dab29363227febce56
> Copying a File sets last modified date to 01 January 1970
> ---------------------------------------------------------
>
> Key: IO-672
> URL: https://issues.apache.org/jira/browse/IO-672
> Project: Commons IO
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.7
> Environment: Tomcat, Linux
> Reporter: Dirk Schreiter
> Priority: Major
>
> The behaviour is new in 2.7 and worked in 2.6. I tested it out, by switching the library versions.
> I could not exactly indicate, which call is the cause for the behaviour, but it seems it occurs when a file copy / move is done, using FileUtils.
> After copying the file, the destination file has a last modified date of 01.01.1970.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)