mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue