From 9065ee1e1f6aa8ea3e694c0655bd68f7ff945496 Mon Sep 17 00:00:00 2001 From: r-ca Date: Tue, 9 Jan 2024 15:52:47 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AD=E3=82=B0=E8=BF=BD=E5=8A=A0,=20?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=A0=B4=E6=89=80=E3=81=8C=E7=95=B0=E5=B8=B8?= =?UTF-8?q?=E3=81=AB=E3=81=AA=E3=82=8B=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= 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, 4 insertions(+), 1 deletion(-) 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 18f6b595..6f8677db 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 @@ -52,7 +52,7 @@ public class FileManagerImpl implements FileManager { // Internal private Path resolveStringPath(String path) throws IOException{ String[] pathArray = path.split("/"); - Path resolvedPath = this.rootDir; + Path resolvedPath = this.path; for (String pathPart : pathArray) { if (pathPart.equals("..")) { resolvedPath = resolvedPath.getParent(); @@ -71,6 +71,7 @@ public class FileManagerImpl implements FileManager { private FileManager newInstance(Path rootDir, Path path, boolean autoCreateParent, boolean disableRootDirCheck) { logger.debug("newInstance", "Generating new instance"); + logger.debug("newInstance", "Path: " + path); return new FileManagerImpl(this.logger, rootDir, path, autoCreateParent, disableRootDirCheck); } @@ -173,6 +174,7 @@ public class FileManagerImpl implements FileManager { throw new IllegalArgumentException("path must be in rootDir"); } } + logger.debug("setPath", "resolvedPath: " + resolvedPath); return this.newInstance(this.rootDir, resolvedPath, this.autoCreateParent, this.disableRootDirCheck); } @@ -292,6 +294,7 @@ public class FileManagerImpl implements FileManager { } private void saveBitmapInternal(Bitmap bitmap, Path path) throws IOException { try { + logger.debug("saveBitmapInternal", "path: " + path); bitmap.compress(Bitmap.CompressFormat.PNG, 100, Files.newOutputStream(path)); } catch (Exception e) { logger.error("saveBitmapInternal", e.getMessage());