aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Localization/Core/ro.json
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2026-03-23 17:08:15 -0400
committerJoshua M. Boniface <joshua@boniface.me>2026-03-23 17:08:15 -0400
commit300036c85913b79bf9bbf13c81ea2241f1216f78 (patch)
treecce9c044e33e68a54e317107851678534d0ffa3a /Emby.Server.Implementations/Localization/Core/ro.json
parent568e26c5342b14e4c12b9b329dd9189b9abdbb75 (diff)
Fix FolderStorageInfo to show parent filesystem
A direct implementation using DriveInfo directly on a path does not work as expected. The method will return a DriveInfo object with the given path as both the Name and the RootDirectory, which is not helpful. Instead, add parsing logic to find the best possible match out of all filesystems on the system for the path, including handling edge cases involving symlinked paths in the chain. This ensures that the resulting DeviceId is a valid filesystem, allowing it to be used in the UI to show a better description. It also includes the new ResolvedPath which will show, if required, what the Path resolved to after all symlinks are interpolated. One possible issue here is that walking all drives as-is might become slow(er) on a system with many partitions, but even on my partition-heavy system with over a dozen ZVOLs and remote mounts, this takes under 0.4 seconds including runup time for `dotnet run`, so I imagine this should be fine.
Diffstat (limited to 'Emby.Server.Implementations/Localization/Core/ro.json')
0 files changed, 0 insertions, 0 deletions