1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-01-11 13:58:16 -05:00

+ 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

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