On Wed, 10 Jun 2026 20:36:55 GMT, Shiv Shah <[email protected]> wrote:
>> FileUtils.copyDirectory() used Files.copy() for all entries including >> directories. When the destination is an existing directory (like PWD), >> Files.copy with REPLACE_EXISTING replaces the directory inode, corrupting >> it. Fixed by using Files.createDirectories() for directory entries and >> Files.copy() only for files. Added test verifying copyDirectory to PWD works >> correctly. >> >> --------- >> - [x] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Shiv Shah has updated the pull request incrementally with one additional > commit since the last revision: > > 8355320: Use NOFOLLOW_LINKS to match Files.walk symlink behavior LGTM ------------- Marked as reviewed by syan (Committer). PR Review: https://git.openjdk.org/jdk/pull/31444#pullrequestreview-4472686253
