Closed
Description
Andy Wilkinson opened SPR-15846 and commented
The root
is deleted in postVisitDirectory
by a call to Files.delete(dir)
. Once the walking of the file tree has completed Files.deleteIfExists(root)
is called and its result is returned. This result is always false
due to the earlier File.delete(dir)
call.
Affects: 5.0 RC3
Issue Links:
- FileSystemUtils.copyRecursively no longer replaces existing files [SPR-15845] #20400 FileSystemUtils.copyRecursively no longer replaces existing files
- Revise FileSystemResource / FileSystemUtils / FileCopyUtils towards NIO.2 [SPR-15748] #20304 Revise FileSystemResource / FileSystemUtils / FileCopyUtils towards NIO.2
Referenced from: commits fabc9c2