handle files already being deleted

This commit is contained in:
Luke Pulverenti 2017-09-21 17:36:32 -04:00
parent b4851d4789
commit 99f4dd95e9

View File

@ -433,6 +433,14 @@ namespace Emby.Server.Implementations.Library
_fileSystem.DeleteFile(fileSystemInfo.FullName);
}
}
catch (FileNotFoundException)
{
// may have already been deleted manually by user
}
catch (DirectoryNotFoundException)
{
// may have already been deleted manually by user
}
catch (IOException)
{
if (isRequiredForDelete)