diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-02-25 01:21:40 -0500 |
|---|---|---|
| committer | Luke <luke.pulverenti@gmail.com> | 2016-02-25 01:21:40 -0500 |
| commit | f55d6ded74c8c5589d590141d8b0df9c81c125b2 (patch) | |
| tree | 3a79a5fb255016b2e39446b1749d73567e43242c /MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs | |
| parent | c2e75e99f406f16b6b66223484ceb08deaf2ef13 (diff) | |
| parent | 06421248de0d91ef1b30b23ea2da36e4df93aa9a (diff) | |
Merge pull request #1497 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs b/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs index 764eb7c68..25fda3ac1 100644 --- a/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs +++ b/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs @@ -78,6 +78,12 @@ namespace MediaBrowser.Server.Implementations.IO TemporarilyIgnore(path); } + public bool IsPathLocked(string path) + { + var lockedPaths = _tempIgnoredPaths.Keys.ToList(); + return lockedPaths.Any(i => string.Equals(i, path, StringComparison.OrdinalIgnoreCase) || _fileSystem.ContainsSubPath(i, path)); + } + public async void ReportFileSystemChangeComplete(string path, bool refreshPath) { if (string.IsNullOrEmpty(path)) |
