Fix breadcrumbs when navigating using entries

dhcp-server
Pat Hartl 2023-09-11 19:26:33 -05:00
parent 857362181e
commit 4bf72b3bc8
1 changed files with 7 additions and 3 deletions

View File

@ -342,6 +342,7 @@
Name = entry.Substring(Path.Path.Length).TrimStart(separator),
ModifiedOn = info.LastWriteTime,
CreatedOn = info.CreationTime,
Parent = Path
};
if (EntryVisible.Invoke(directory))
@ -360,7 +361,8 @@
Name = System.IO.Path.GetFileName(entry),
ModifiedOn = info.LastWriteTime,
CreatedOn = info.CreationTime,
Size = info.Length
Size = info.Length,
Parent = Path
};
if (EntryVisible.Invoke(file))
@ -386,7 +388,8 @@
Name = entry.Name,
ModifiedOn = entry.LastWriteTime.UtcDateTime.ToLocalTime(),
CreatedOn = entry.LastWriteTime.UtcDateTime.ToLocalTime(),
Size = entry.Length
Size = entry.Length,
Parent = Path
};
if (EntryVisible.Invoke(directory))
@ -400,7 +403,8 @@
Name = entry.Name,
ModifiedOn = entry.LastWriteTime.UtcDateTime.ToLocalTime(),
CreatedOn = entry.LastWriteTime.UtcDateTime.ToLocalTime(),
Size = entry.Length
Size = entry.Length,
Parent = Path
};
if (EntryVisible.Invoke(file))