Correctly filter current files listed from archive directory

dhcp-server
Pat Hartl 2023-09-10 23:29:23 -05:00
parent 8d399d11e6
commit 3f7a47687c
1 changed files with 1 additions and 1 deletions

View File

@ -365,7 +365,7 @@
var entries = await ArchiveService.GetContents(ArchiveId); var entries = await ArchiveService.GetContents(ArchiveId);
var separator = '/'; var separator = '/';
foreach (var entry in entries) foreach (var entry in entries.Where(e => e.FullName != Path.Path && e.FullName.StartsWith(Path.Path) && !e.FullName.Substring(Path.Path.Length).TrimEnd(separator).Contains(separator)))
{ {
if (entry.FullName.EndsWith(separator)) if (entry.FullName.EndsWith(separator))
{ {