mirror of
https://github.com/Readarr/Readarr
synced 2025-12-19 14:56:04 +01:00
Fixed: FileBrowser not displaying drive letters on Windows.
fixes #1535
This commit is contained in:
parent
f2ecbe776b
commit
f8d97cac7d
2 changed files with 3 additions and 2 deletions
|
|
@ -113,7 +113,7 @@ private List<FileSystemModel> GetDrives()
|
||||||
.Select(d => new FileSystemModel
|
.Select(d => new FileSystemModel
|
||||||
{
|
{
|
||||||
Type = FileSystemEntityType.Drive,
|
Type = FileSystemEntityType.Drive,
|
||||||
Name = d.VolumeLabel,
|
Name = d.VolumeName,
|
||||||
Path = d.RootDirectory,
|
Path = d.RootDirectory,
|
||||||
LastModified = null
|
LastModified = null
|
||||||
})
|
})
|
||||||
|
|
@ -163,7 +163,7 @@ private string GetDirectoryPath(string path)
|
||||||
|
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
private string GetParent(string path)
|
private string GetParent(string path)
|
||||||
{
|
{
|
||||||
var di = new DirectoryInfo(path);
|
var di = new DirectoryInfo(path);
|
||||||
|
|
|
||||||
|
|
@ -13,5 +13,6 @@ public interface IMount
|
||||||
long TotalFreeSpace { get; }
|
long TotalFreeSpace { get; }
|
||||||
long TotalSize { get; }
|
long TotalSize { get; }
|
||||||
string VolumeLabel { get; }
|
string VolumeLabel { get; }
|
||||||
|
string VolumeName { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue