Invalidate the singleton DirectoryService cache on filesystem changes

This commit is contained in:
Shadowghost
2026-09-04 19:28:59 +02:00
parent 0d9c9c9ecc
commit 46dd7d8e99
8 changed files with 25 additions and 119 deletions
@@ -3723,8 +3723,7 @@ namespace Emby.Server.Implementations.Library
}
}
// The validation below would otherwise resolve the libraries root from a listing
// taken before this folder was created.
// The injected service is a singleton, so its listing predates this folder.
_directoryService.Invalidate(virtualFolderPath);
}
finally