mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Catch delete file exceptions
This commit is contained in:
parent
e2dac35ef2
commit
78643b4b2a
@ -724,7 +724,14 @@ public sealed class TranscodeManager : ITranscodeManager, IDisposable
|
|||||||
|
|
||||||
foreach (var file in _fileSystem.GetFilePaths(path, true))
|
foreach (var file in _fileSystem.GetFilePaths(path, true))
|
||||||
{
|
{
|
||||||
_fileSystem.DeleteFile(file);
|
try
|
||||||
|
{
|
||||||
|
_fileSystem.DeleteFile(file);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
_logger.LogError(ex, "Error deleting encoded media cache file {Path}", path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user