commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pranet Verma (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IO-573) Inconsistency between org.apache.commons.io.FileUtils.(moveFile(File, File) and moveDirectory(File, File)) methods
Date Thu, 08 Mar 2018 22:39:00 GMT
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)

Mime
View raw message