mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
more linux fixes
This commit is contained in:
parent
035434468e
commit
aee31d1bc2
2 changed files with 22 additions and 6 deletions
|
@ -22,8 +22,9 @@ namespace NzbDrone.Common
|
|||
public static string CleanFilePath(this string path)
|
||||
{
|
||||
Ensure.That(() => path).IsNotNullOrWhiteSpace();
|
||||
Ensure.That(() => path).IsValidPath();
|
||||
|
||||
var info = new FileInfo(path);
|
||||
var info = new FileInfo(path.Trim());
|
||||
|
||||
if (!OsInfo.IsLinux && info.FullName.StartsWith(@"\\")) //UNC
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue