+ ignore owner/permissions when using COPY (sadly also xattr, but at least the file will be readable on the destination)
This commit is contained in:
parent
cab2a89e20
commit
751cf116e9
|
@ -81,7 +81,7 @@ public final class FileUtilities {
|
|||
} else {
|
||||
// copy file
|
||||
try {
|
||||
java.nio.file.Files.copy(source.toPath(), destination.toPath(), StandardCopyOption.REPLACE_EXISTING, StandardCopyOption.COPY_ATTRIBUTES);
|
||||
java.nio.file.Files.copy(source.toPath(), destination.toPath(), StandardCopyOption.REPLACE_EXISTING);
|
||||
} catch (LinkageError e) {
|
||||
org.apache.commons.io.FileUtils.copyFile(source, destination);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue