mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 22:07:13 -04:00
add suggested changes
Co-Authored-By: Bond-009 <bond.009@outlook.com>
This commit is contained in:
parent
1b2453b4e9
commit
623e85a9e4
@ -392,9 +392,9 @@ namespace Emby.Server.Implementations.Library
|
|||||||
// Add this flag to GetDeletePaths if required in the future
|
// Add this flag to GetDeletePaths if required in the future
|
||||||
var isRequiredForDelete = true;
|
var isRequiredForDelete = true;
|
||||||
|
|
||||||
foreach (var fileSystemInfo in item.GetDeletePaths().ToList())
|
foreach (var fileSystemInfo in item.GetDeletePaths())
|
||||||
{
|
{
|
||||||
if (File.Exists(fileSystemInfo.FullName) || Directory.Exists(fileSystemInfo.FullName))
|
if (fileSystemInfo.IsDirectory ? Directory.Exists(fileSystemInfo.FullName) : File.Exists(fileSystemInfo.FullName))
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user