From 9142696faccd0ec5f3bd4425e35c17983c7ca484 Mon Sep 17 00:00:00 2001 From: r-ca Date: Tue, 9 Jan 2024 12:19:40 +0900 Subject: [PATCH] =?UTF-8?q?resolve=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/source/file/impl/FileManagerImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java index ddefaf6b..faf7e971 100644 --- a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java +++ b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java @@ -132,12 +132,13 @@ public class FileManagerImpl implements FileManager { @Override public FileManager resolve(String path) throws IOException{ + Path resolvedPath; try { - this.path = resolveStringPath(path); + resolvedPath = resolveStringPath(path); } catch (IOException e) { logger.error("resolve", e.getMessage()); throw new IOException("Invalid path: " + path); } - return this; + return this.setPath(resolvedPath); } }