From 2e792b74aa4adbe56dd9c7fc3c758f038949b8e3 Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Sun, 10 Sep 2023 23:46:48 -0500 Subject: [PATCH] Don't allow new folder / deletes in archives --- .../Components/FileManagerComponents/FileManager.razor | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/LANCommander/Components/FileManagerComponents/FileManager.razor b/LANCommander/Components/FileManagerComponents/FileManager.razor index 600d05b..ca6265f 100644 --- a/LANCommander/Components/FileManagerComponents/FileManager.razor +++ b/LANCommander/Components/FileManagerComponents/FileManager.razor @@ -452,6 +452,9 @@ async Task AddFolder(string name) { + if (Source == FileManagerSource.Archive) + throw new NotImplementedException(); + try { Directory.CreateDirectory(System.IO.Path.Combine(Path.Path, name)); @@ -468,6 +471,9 @@ async Task Delete() { + if (Source == FileManagerSource.Archive) + throw new NotImplementedException(); + try { foreach (var entry in Selected)