mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-15 04:41:37 +08:00
Fixed snapshot database under symlinks on windows
This commit is contained in:
parent
ffaf8e00be
commit
55de7cb71e
@ -93,7 +93,11 @@ public static FileSystemSnapshotDatabase maybeCreate(
|
||||
|
||||
public FileSystemSnapshotDatabase(Path root, ArchiveNioSupport archiveNioSupport) {
|
||||
checkArgument(Files.isDirectory(root), "Database root is not a directory");
|
||||
this.root = root.toAbsolutePath();
|
||||
try {
|
||||
this.root = root.toRealPath();
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException("Failed to resolve snapshot database path", e);
|
||||
}
|
||||
this.archiveNioSupport = archiveNioSupport;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user