mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-02 00:12:24 +00:00
Reduce the amount of exceptions thrown
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user