add smb fixes

This commit is contained in:
Luke Pulverenti
2017-05-10 15:12:03 -04:00
parent e9ea1d4ce2
commit 369df3ffda
14 changed files with 26 additions and 15 deletions

View File

@@ -47,7 +47,7 @@ namespace Emby.Server.Implementations.AppBase
// If the file didn't exist before, or if something has changed, re-save
if (buffer == null || !buffer.SequenceEqual(newBytes))
{
fileSystem.CreateDirectory(Path.GetDirectoryName(path));
fileSystem.CreateDirectory(fileSystem.GetDirectoryName(path));
// Save it after load in case we got new items
fileSystem.WriteAllBytes(path, newBytes);