From d0401a1709a184f2ac04c5edf9b3380ded1f3c30 Mon Sep 17 00:00:00 2001 From: Marcel Baumgartner <68913099+Marcel-Baumgartner@users.noreply.github.com> Date: Wed, 6 Sep 2023 13:42:48 +0000 Subject: [PATCH] Fixed host file system rename --- Moonlight/App/Helpers/Files/HostFileAccess.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Moonlight/App/Helpers/Files/HostFileAccess.cs b/Moonlight/App/Helpers/Files/HostFileAccess.cs index 0c425a8..35b5224 100644 --- a/Moonlight/App/Helpers/Files/HostFileAccess.cs +++ b/Moonlight/App/Helpers/Files/HostFileAccess.cs @@ -110,15 +110,15 @@ public class HostFileAccess : FileAccess if (fileData.IsFile) File.Delete(currhp + fileData.Name); else - Directory.Delete(currhp + fileData.Name); + Directory.Delete(currhp + fileData.Name, true); } public override async Task Move(FileData fileData, string newPath) { if (fileData.IsFile) - File.Move(currhp + fileData.Name, newPath); + File.Move(currhp + fileData.Name, BasePath + newPath); else - Directory.Move(currhp + fileData.Name, newPath); + Directory.Move(currhp + fileData.Name, BasePath + newPath); } public override Task Compress(params FileData[] files)