From 17f5f3d4abccbf0c41ff91cad6ecc93fb54dec7d Mon Sep 17 00:00:00 2001 From: Tom Simons Date: Thu, 17 Oct 2024 17:21:03 +0200 Subject: [PATCH] added debug logs --- .../Layers/Adapters/DataTypeAdapters/FileTypeAdapter.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/Scripts/Layers/Adapters/DataTypeAdapters/FileTypeAdapter.cs b/Assets/Scripts/Layers/Adapters/DataTypeAdapters/FileTypeAdapter.cs index e6b0cbb1..60ae81a8 100644 --- a/Assets/Scripts/Layers/Adapters/DataTypeAdapters/FileTypeAdapter.cs +++ b/Assets/Scripts/Layers/Adapters/DataTypeAdapters/FileTypeAdapter.cs @@ -54,12 +54,15 @@ public void ProcessFile(string file) int index = 0; while (File.Exists(newFilePathAbsolute)) { + Debug.Log("file already exists: " + newFilePathAbsolute); index++; var newFileName = $"{fileName}({index}){extension}"; newFilePathRelative = Path.Combine(assetsFolderName, newFileName); newFilePathAbsolute = Path.Combine(assetsFolderPath, newFileName); + Debug.Log("attempting to save as: " + newFilePathAbsolute); } + Debug.Log(absoluteFilePath + " will be moved to: " + newFilePathAbsolute); File.Move(absoluteFilePath, newFilePathAbsolute); if (extension.StartsWith('.'))