Переглянути джерело

FindEntries will now properly handle directory path without backslash termination

Tal Aloni 8 роки тому
батько
коміт
e597bd082a
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      SMBLibrary/Server/Helpers/NTFileSystemHelper.Find.cs

+ 1 - 0
SMBLibrary/Server/Helpers/NTFileSystemHelper.Find.cs

@@ -82,6 +82,7 @@ namespace SMBLibrary.Server
             }
             else
             {
+                path = FileSystem.GetDirectoryPath(path);
                 entry = fileSystem.GetEntry(path + expression);
                 if (entry == null)
                 {