Merge pull request #327 from Karaka-Management/master

handle delete exception
This commit is contained in:
Dennis Eichhorn 2023-09-30 15:14:07 +02:00 committed by GitHub
commit 9699842a7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}
}
/**