mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
getting free space tries to get the space safely, if doesn't work and windows
the tries interop.
This commit is contained in:
parent
d6cc0b40fb
commit
e03ab2ebea
5 changed files with 53 additions and 17 deletions
|
@ -15,7 +15,7 @@ namespace NzbDrone.Core.RootFolders
|
|||
RootFolder Add(RootFolder rootDir);
|
||||
void Remove(int id);
|
||||
List<UnmappedFolder> GetUnmappedFolders(string path);
|
||||
Dictionary<string, ulong> FreeSpaceOnDrives();
|
||||
Dictionary<string, long> FreeSpaceOnDrives();
|
||||
RootFolder Get(int id);
|
||||
}
|
||||
|
||||
|
@ -99,9 +99,9 @@ namespace NzbDrone.Core.RootFolders
|
|||
return results;
|
||||
}
|
||||
|
||||
public virtual Dictionary<string, ulong> FreeSpaceOnDrives()
|
||||
public virtual Dictionary<string, long> FreeSpaceOnDrives()
|
||||
{
|
||||
var freeSpace = new Dictionary<string, ulong>();
|
||||
var freeSpace = new Dictionary<string, long>();
|
||||
|
||||
var rootDirs = All();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue