Don't allow new folder / deletes in archives

dhcp-server
Pat Hartl 2023-09-10 23:46:48 -05:00
parent 41d1ff4c5b
commit 2e792b74aa
1 changed files with 6 additions and 0 deletions

View File

@ -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)