Skip to content

Commit

Permalink
fix symlink worlds
Browse files Browse the repository at this point in the history
closes #22
  • Loading branch information
MelanX committed Dec 20, 2023
1 parent 5301022 commit 0ee293e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/de/melanx/simplebackups/BackupThread.java
Expand Up @@ -205,7 +205,7 @@ private long makeWorldBackup() throws IOException {

try {
Path levelName = Paths.get(this.storageSource.levelId);
Path levelPath = this.storageSource.getWorldDir().resolve(this.storageSource.levelId);
Path levelPath = this.storageSource.getWorldDir().resolve(this.storageSource.levelId).toRealPath();
Files.walkFileTree(levelPath, new SimpleFileVisitor<>() {
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
if (!file.endsWith("session.lock")) {
Expand Down

0 comments on commit 0ee293e

Please sign in to comment.