mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 16:28:51 -05:00
Use FastFile internally but do not expose to outside code that expects File objects
@see https://www.filebot.net/forums/viewtopic.php?f=8&t=5306
This commit is contained in:
parent
090e575d36
commit
d314efb450
@ -149,7 +149,7 @@ public class AutoDetection {
|
|||||||
try {
|
try {
|
||||||
stream(files).collect(toMap(f -> f, f -> workerThreadPool.submit(() -> detectGroup(f)))).forEach((file, group) -> {
|
stream(files).collect(toMap(f -> f, f -> workerThreadPool.submit(() -> detectGroup(f)))).forEach((file, group) -> {
|
||||||
try {
|
try {
|
||||||
groups.computeIfAbsent(group.get(), k -> new TreeSet<File>()).add(file);
|
groups.computeIfAbsent(group.get(), k -> new TreeSet<File>()).add(new File(file.getPath())); // use FastFile internally but do not expose to outside code that expects File objects
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
debug.log(Level.SEVERE, e.getMessage(), e);
|
debug.log(Level.SEVERE, e.getMessage(), e);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user