FileUtils.copyDirectoryToDirectory makes infinite loops
-------------------------------------------------------
Key: IO-217
URL: https://issues.apache.org/jira/browse/IO-217
Project: Commons IO
Issue Type: Bug
Affects Versions: 1.4
Environment: Windows XP
Reporter: tora yamada
When using FileUtils.copyDirectoryToDirectory, infinite loops has occurred.
-- detail --
src directory : D:\a
dest directory : D:\a
call : FileUtils.copyDirectoryToDirectory(new File("D:\a"), new File("D:\a"));
expected result : directory D:\a\a will be created
actual result : D:\a\a\a\a....... was created
i guess FileUtils.copyDirectoryToDirectory causes of this result.
("destDir.mkdir()" is done before "srcDir.listFiles()")
am i calling wrong method?
thank you.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.