mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 20:44:00 +02:00
more linux fixes
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user