mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 16:54:46 +03:00
create notion of locked path
This commit is contained in:
@@ -64,6 +64,13 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
|
||||
FileSize = new FileInfo(path).Length
|
||||
};
|
||||
|
||||
if (_libraryMonitor.IsPathLocked(path))
|
||||
{
|
||||
result.Status = FileSortingStatus.Failure;
|
||||
result.StatusMessage = "Path is locked by other processes. Please try again later.";
|
||||
return result;
|
||||
}
|
||||
|
||||
var namingOptions = ((LibraryManager)_libraryManager).GetNamingOptions();
|
||||
var resolver = new Naming.TV.EpisodeResolver(namingOptions, new PatternsLogger());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user