Forráskód Böngészése

FindEntries will now properly handle directory path without backslash termination

Tal Aloni 8 éve
szülő
commit
e597bd082a
1 módosított fájl, 1 hozzáadás és 0 törlés
  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)
                 {