aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Updates/InstallationManager.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-05-04 15:05:22 -0400
committerGitHub <noreply@github.com>2017-05-04 15:05:22 -0400
commit6e53aa0e076c2ce2bd7b1a462196b099c77f90e5 (patch)
tree0fb73d80406fffe26b77c40c288389a291ddd3af /Emby.Server.Implementations/Updates/InstallationManager.cs
parentfb74ee3bb616f7532c79bec0113a14fec3a65be1 (diff)
parent364c8206bf500ac466d5360ddfe01b67fa8b59a9 (diff)
Merge pull request #2613 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/Updates/InstallationManager.cs')
-rw-r--r--Emby.Server.Implementations/Updates/InstallationManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Updates/InstallationManager.cs b/Emby.Server.Implementations/Updates/InstallationManager.cs
index 840c7ce0d..57019cc4e 100644
--- a/Emby.Server.Implementations/Updates/InstallationManager.cs
+++ b/Emby.Server.Implementations/Updates/InstallationManager.cs
@@ -250,7 +250,7 @@ namespace Emby.Server.Implementations.Updates
}).ConfigureAwait(false);
- _fileSystem.CreateDirectory(Path.GetDirectoryName(PackageCachePath));
+ _fileSystem.CreateDirectory(_fileSystem.GetDirectoryName(PackageCachePath));
_fileSystem.CopyFile(tempFile, PackageCachePath, true);
_lastPackageUpdateTime = DateTime.UtcNow;
@@ -627,7 +627,7 @@ namespace Emby.Server.Implementations.Updates
// Success - move it to the real target
try
{
- _fileSystem.CreateDirectory(Path.GetDirectoryName(target));
+ _fileSystem.CreateDirectory(_fileSystem.GetDirectoryName(target));
_fileSystem.CopyFile(tempFile, target, true);
//If it is an archive - write out a version file so we know what it is
if (isArchive)