Vibenutý 😔

This commit is contained in:
Matěj Kubíček committed 2026-10-13 20:56:25 +02:00
1 parent d06a9f332b
commit 8cc27e6b8e
10 files changed
+295 -12

No files matched your search

@@ -0,0 +1,21 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
namespace winui_learning_3.Models;
public class FolderContentDto
{
public required string AbsolutePath { get; set; }
public ObservableCollection<FolderContentDto> Children { get; set; } = [];
public List<FileDto> Files { get; set; } = [];
public string Name
{
get
{
var name = Path.GetFileName(AbsolutePath.TrimEnd(Path.DirectorySeparatorChar));
return string.IsNullOrEmpty(name) ? AbsolutePath : name; // "C:\" has no file name
}
}
}