+ 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:
Reinhard Pointner 2014-03-16 11:33:31 +00:00
parent cab2a89e20
commit 751cf116e9
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}