Don't allow new folder / deletes in archives

This commit is contained in:
Pat Hartl 2023-09-10 23:46:48 -05:00
parent 41d1ff4c5b
commit 2e792b74aa

View file

@ -452,6 +452,9 @@
async Task AddFolder(string name) async Task AddFolder(string name)
{ {
if (Source == FileManagerSource.Archive)
throw new NotImplementedException();
try try
{ {
Directory.CreateDirectory(System.IO.Path.Combine(Path.Path, name)); Directory.CreateDirectory(System.IO.Path.Combine(Path.Path, name));
@ -468,6 +471,9 @@
async Task Delete() async Task Delete()
{ {
if (Source == FileManagerSource.Archive)
throw new NotImplementedException();
try try
{ {
foreach (var entry in Selected) foreach (var entry in Selected)