Skip to content

Commit

Permalink
added debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomSimons committed Oct 17, 2024
1 parent d6950ed commit 17f5f3d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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('.'))
Expand Down

0 comments on commit 17f5f3d

Please sign in to comment.