[
https://issues.apache.org/jira/browse/IO-700?focusedWorklogId=534814&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-534814
]
ASF GitHub Bot logged work on IO-700:
-------------------------------------
Author: ASF GitHub Bot
Created on: 12/Jan/21 12:33
Start Date: 12/Jan/21 12:33
Worklog Time Spent: 10m
Work Description: tza commented on pull request #185:
URL: https://github.com/apache/commons-io/pull/185#issuecomment-758626574
So far the test cases seem ok for me:
The failing tests FileUtilsCleanDirectoryTestCase were introduced with
commit 0cee29aa4c1818963ed1a55058219282e89d7488 and failed in my workspace
before changing anything.
The AbstractInputStreamTest.tearDown IllegalAccess error also happened
before, eg. in pull 181. Seems unrelated with my changes.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 534814)
Time Spent: 20m (was: 10m)
> Provide FileUtils.moveFile(srcFile, dstFile, preserveFileDate)
> --------------------------------------------------------------
>
> Key: IO-700
> URL: https://issues.apache.org/jira/browse/IO-700
> Project: Commons IO
> Issue Type: Bug
> Affects Versions: 2.8.0
> Reporter: tza
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> The current implementation 2.8.0 throws an Exception, if moveFiles or
> copyFiles (with preserveFileDate=true) cannot update the lastModifiedDate.
> This was not the case in 2.6.
>
> For FileUtils.moveFile the copyFile(File, File) method is used, which results
> in a copy with preserveFileDate=true. Could you provide a method overload to
> moveFile similiar to copyFile.
>
> {code:java}
> public static void moveFile(final File srcFile, final File destFile) throws
> IOException {
> moveFile(srcFile, destFile, true);
> }
> public static void moveFile(final File srcFile, final File destFile, boolean
> preserveFileDate) throws IOException {
> ...
> copyFile(srcFile, destFile, preserveFileDate);
> }
> {code}
>
> (We have a cifs mount where the server is not allowing the update)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)