diff options
| author | Vasily <JustAMan@users.noreply.github.com> | 2019-03-08 00:11:53 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-08 00:11:53 +0300 |
| commit | e04a152ed053a5a993b2d3d1f27b0f9ff6364fed (patch) | |
| tree | 2c93c01ef4dfd516041982a13caf37d2ffb084fb /MediaBrowser.Api/ApiEntryPoint.cs | |
| parent | 75996476a7ce63134e37935e8ddeddfdb0d63a5d (diff) | |
| parent | ab9859ecefa7ec28b38cc807226b3df31fdf3e93 (diff) | |
Merge pull request #996 from Bond-009/libscan
Reduce the amount of exceptions thrown
Diffstat (limited to 'MediaBrowser.Api/ApiEntryPoint.cs')
| -rw-r--r-- | MediaBrowser.Api/ApiEntryPoint.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.Api/ApiEntryPoint.cs b/MediaBrowser.Api/ApiEntryPoint.cs index ceff6b02e..700cbb943 100644 --- a/MediaBrowser.Api/ApiEntryPoint.cs +++ b/MediaBrowser.Api/ApiEntryPoint.cs @@ -172,6 +172,11 @@ namespace MediaBrowser.Api { var path = _config.ApplicationPaths.GetTranscodingTempPath(); + if (!Directory.Exists(path)) + { + return; + } + foreach (var file in _fileSystem.GetFilePaths(path, true)) { _fileSystem.DeleteFile(file); |
