You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Pranet Verma (JIRA)" <ji...@apache.org> on 2018/03/08 22:39:00 UTC
[jira] [Created] (IO-573) Inconsistency between
org.apache.commons.io.FileUtils.(moveFile(File, File) and
moveDirectory(File, File)) methods
Pranet Verma created IO-573:
-------------------------------
Summary: Inconsistency between org.apache.commons.io.FileUtils.(moveFile(File, File) and moveDirectory(File, File)) methods
Key: IO-573
URL: https://issues.apache.org/jira/browse/IO-573
Project: Commons IO
Issue Type: Bug
Components: Utilities
Affects Versions: 2.6
Reporter: Pranet Verma
When the destination directory is on a different filesystem, the documentation says we need to copy and delete. In case the delete fails, org.apache.commons.io.FileUtils.moveFile(File, File) will attempt to delete the destination file too before throwing an error, but
org.apache.commons.io.FileUtils.moveDirectory(File, File) will directly throw an error without deleting the newly copied (created) destination directory. Is this intentional?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)