getting free space tries to get the space safely, if doesn't work and windows

the tries interop.
This commit is contained in:
kay.one 2013-04-29 23:11:49 -07:00
commit e03ab2ebea
5 changed files with 53 additions and 17 deletions

View file

@ -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();