mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 15:48:03 +00:00
Only remove image file if it exists (#14302)
This commit is contained in:
@@ -2002,9 +2002,10 @@ namespace MediaBrowser.Controller.Entities
|
||||
}
|
||||
|
||||
// Remove from file system
|
||||
if (info.IsLocalFile)
|
||||
var path = info.Path;
|
||||
if (info.IsLocalFile && !string.IsNullOrWhiteSpace(path))
|
||||
{
|
||||
FileSystem.DeleteFile(info.Path);
|
||||
FileSystem.DeleteFile(path);
|
||||
}
|
||||
|
||||
// Remove from item
|
||||
|
||||
Reference in New Issue
Block a user