mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-23 06:48:41 +00:00
Merge pull request #327 from Karaka-Management/master
handle delete exception
This commit is contained in:
commit
9699842a7e
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user