Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.4
-
None
-
None
-
Windows XP
Description
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.