diff options
author | verhoek <30193551+verhoek@users.noreply.github.com> | 2018-11-02 23:34:07 +0300 |
---|---|---|
committer | verhoek <30193551+verhoek@users.noreply.github.com> | 2018-11-02 23:34:07 +0300 |
commit | b2cc18426c5297a3da4cf1164a846091d1f9f457 (patch) | |
tree | 99fb7bc58c2d2e392d392e5b76fad4775359eff8 /Duplicati/Server/SpecialFolders.cs | |
parent | 6755d8cd1c94d7c01875e9b04a532e74ea577258 (diff) |
Renamed Library.IO to Library.Common.IO.
Moved basic Platform functions to Library.Common.Platform.
Turned IO_OS into property within Library.Common.
Diffstat (limited to 'Duplicati/Server/SpecialFolders.cs')
-rw-r--r-- | Duplicati/Server/SpecialFolders.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Duplicati/Server/SpecialFolders.cs b/Duplicati/Server/SpecialFolders.cs index 268c33910..7c3334aa7 100644 --- a/Duplicati/Server/SpecialFolders.cs +++ b/Duplicati/Server/SpecialFolders.cs @@ -18,7 +18,7 @@ using System;
using System.Linq;
using System.Collections.Generic;
-using Duplicati.Library.IO; +using Duplicati.Library.Common.IO; namespace Duplicati.Server
{
@@ -148,8 +148,6 @@ namespace Duplicati.Server internal static Dictionary<string, string> GetSourceNames(Serialization.Interface.IBackup backup)
{
- var systemIO = SystemIO.IO_OS(Library.Utility.Utility.IsClientWindows);
-
if (backup.Sources == null || backup.Sources.Length == 0)
return new Dictionary<string, string>();
@@ -165,7 +163,7 @@ namespace Duplicati.Server var nx = x;
if (nx.EndsWith(Util.DirectorySeparatorString, StringComparison.Ordinal))
nx = nx.Substring(0, nx.Length - 1);
- var n = systemIO.PathGetFileName(nx);
+ var n = SystemIO.IO_OS.PathGetFileName(nx);
if (!string.IsNullOrWhiteSpace(n))
return new KeyValuePair<string, string>(x, n);
}
|