diff options
| author | Bond-009 <bond.009@outlook.com> | 2019-03-12 16:37:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-12 16:37:18 +0100 |
| commit | 3ddbda9aca3be9bf24a1c0c1f0052e5d9e35b7d8 (patch) | |
| tree | cd92d645dea415bd148c344afccbdaa62316866f /MediaBrowser.Api/ApiEntryPoint.cs | |
| parent | ffd6dac03a94bb99387e84b447aa22ca92cf9465 (diff) | |
| parent | 1fef8bf266480dc41cdf7ab80d1deac54dedad3d (diff) | |
Merge branch 'master' into xml
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); |
