Let hard link wrapper fallback to delegate.copyFrom (#12384)

Co-authored-by: Yixun Xu <yixunx@palantir.com>
This commit is contained in:
yixunx 2023-06-28 03:17:20 -04:00 committed by GitHub
parent b88d3e1988
commit 6bb8cc0235
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public final class HardlinkCopyDirectoryWrapper extends FilterDirectory {
} }
if (tryCopy) { if (tryCopy) {
try { try {
super.copyFrom(from, srcFile, destFile, context); getDelegate().copyFrom(from, srcFile, destFile, context);
} catch (Exception ex) { } catch (Exception ex) {
if (suppressedException != null) { if (suppressedException != null) {
ex.addSuppressed(suppressedException); ex.addSuppressed(suppressedException);