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)