mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 16:28:51 -05:00
Fix -DuseExtendedFileAttributes=false NOT WORKING
issues
This commit is contained in:
parent
68faa9b53d
commit
5974367fd1
@ -363,10 +363,16 @@ public class Main {
|
|||||||
System.setProperty("grape.root", ApplicationFolder.AppData.resolve("grape").getAbsolutePath());
|
System.setProperty("grape.root", ApplicationFolder.AppData.resolve("grape").getAbsolutePath());
|
||||||
System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.NoOpLog");
|
System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.NoOpLog");
|
||||||
|
|
||||||
System.setProperty("unixfs", Boolean.toString(args.unixfs));
|
if (args.unixfs) {
|
||||||
System.setProperty("useExtendedFileAttributes", Boolean.toString(!args.disableExtendedAttributes));
|
System.setProperty("unixfs", "true");
|
||||||
System.setProperty("useCreationDate", Boolean.toString(!args.disableExtendedAttributes));
|
}
|
||||||
System.setProperty("application.rename.history", Boolean.toString(!args.action.equalsIgnoreCase("test"))); // do not keep history of --action test rename operations
|
if (args.disableExtendedAttributes) {
|
||||||
|
System.setProperty("useExtendedFileAttributes", "false");
|
||||||
|
System.setProperty("useCreationDate", "false");
|
||||||
|
}
|
||||||
|
if (args.action.equalsIgnoreCase("test")) {
|
||||||
|
System.setProperty("application.rename.history", "false"); // do not keep history of --action test rename operations
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void initializeLogging(ArgumentBean args) throws IOException {
|
public static void initializeLogging(ArgumentBean args) throws IOException {
|
||||||
|
Loading…
Reference in New Issue
Block a user