handle delete exception

This commit is contained in:
Dennis Eichhorn 2023-09-30 02:34:21 +00:00
parent 83277e9b6f
commit d56488a58a

View File

@ -413,7 +413,11 @@ class File extends FileAbstract implements FileInterface
return false;
}
return \ftp_delete($con, $path);
try {
return \ftp_delete($con, $path);
} catch (\Throwable $_) {
return false;
}
}
/**