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

* don't copy attributes as to avoid possible permissions issues

This commit is contained in:
Reinhard Pointner 2013-03-20 02:14:39 +00:00
parent d6c9c3ca7c
commit b160272e68

View File

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