mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
getting free space tries to get the space safely, if doesn't work and windows
the tries interop.
This commit is contained in:
@@ -31,7 +31,7 @@ namespace NzbDrone.Common
|
||||
return info.FullName.TrimEnd('/').Trim('\\', ' ');
|
||||
}
|
||||
|
||||
static string GetProperDirectoryCapitalization(DirectoryInfo dirInfo)
|
||||
private static string GetProperDirectoryCapitalization(DirectoryInfo dirInfo)
|
||||
{
|
||||
var parentDirInfo = dirInfo.Parent;
|
||||
if (null == parentDirInfo)
|
||||
@@ -40,7 +40,7 @@ namespace NzbDrone.Common
|
||||
parentDirInfo.GetDirectories(dirInfo.Name)[0].Name);
|
||||
}
|
||||
|
||||
static string GetProperFilePathCapitalization(string filename)
|
||||
public static string GetActualCasing(this string filename)
|
||||
{
|
||||
var fileInfo = new FileInfo(filename);
|
||||
DirectoryInfo dirInfo = fileInfo.Directory;
|
||||
|
||||
Reference in New Issue
Block a user