Using the init keyword instead of set for the Files property ensures better immutability of the list during ViewModel initialization, promoting cleaner code practices.
The GetFiles method recursively traverses directories, adding file and folder items to the source list, while managing hierarchy through the Depth property for visual representation in XAML.
Collection
[
|
...
]