mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 08:18:52 -05:00
Ignore symlinks that point to non-existing paths (i.e. use LinkOption.NOFOLLOW_LINKS)
This commit is contained in:
parent
a3085de6fc
commit
13d0a0cd96
@ -115,7 +115,7 @@ public final class FileUtilities {
|
|||||||
|
|
||||||
// create parent folder if necessary and make sure that the folder structure is created, and throw exception if the folder structure can't be created
|
// create parent folder if necessary and make sure that the folder structure is created, and throw exception if the folder structure can't be created
|
||||||
Path parentFolder = destination.toPath().getParent();
|
Path parentFolder = destination.toPath().getParent();
|
||||||
if (Files.notExists(parentFolder)) {
|
if (Files.notExists(parentFolder, LinkOption.NOFOLLOW_LINKS)) {
|
||||||
Files.createDirectories(parentFolder);
|
Files.createDirectories(parentFolder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user