mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-02 00:12:24 +00:00
Minor LibraryMonitor improvements
* Enable nullable * Add a fast return to ReportFileSystemChanged when path should be ignored * Use Span overloads of Path.* functions where possible * IFileSystem: remove NormalizePath as Path.TrimEndingDirectorySeparator already checks if it's a root path
This commit is contained in:
@@ -608,7 +608,7 @@ namespace Emby.Server.Implementations.Library
|
||||
var originalList = paths.ToList();
|
||||
|
||||
var list = originalList.Where(i => i.IsDirectory)
|
||||
.Select(i => _fileSystem.NormalizePath(i.FullName))
|
||||
.Select(i => Path.TrimEndingDirectorySeparator(i.FullName))
|
||||
.Distinct(StringComparer.OrdinalIgnoreCase)
|
||||
.ToList();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user