You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Mark Bryan Yu (JIRA)" <ji...@apache.org> on 2007/12/01 00:48:43 UTC
[jira] Updated: (IO-141) [IO][PATCH] Infinite loop on
FileUtils.copyDirectory when the destination directory is within the source
directory
[ https://issues.apache.org/jira/browse/IO-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Bryan Yu updated IO-141:
-----------------------------
Attachment: (was: Fix_recursion_bug.patch)
> [IO][PATCH] Infinite loop on FileUtils.copyDirectory when the destination directory is within the source directory
> ------------------------------------------------------------------------------------------------------------------
>
> Key: IO-141
> URL: https://issues.apache.org/jira/browse/IO-141
> Project: Commons IO
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 1.3.2
> Environment: Win XP
> Reporter: Mark Bryan Yu
> Priority: Critical
> Attachments: fix_recursion_bug.patch
>
>
> When you attempt to copy a directory and the destination directory is inside the source directory an inifinite loop occurs in the copyDirectory causing Commons-IO to create a folder w/o stopping until its reaches OS limitation.
> This code will recreate the bug:
> FileUtils.copyDirectory(new File("C:\\temp\\test-io\\a\\."), new File("C:\\temp\\test-io\\a\\." + File.separator + new Date().getTime()));
> Make sure C:\temp\test-io\a exists
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.