mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
handle delete exception
This commit is contained in:
parent
83277e9b6f
commit
d56488a58a
|
|
@ -413,7 +413,11 @@ class File extends FileAbstract implements FileInterface
|
|||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
return \ftp_delete($con, $path);
|
||||
} catch (\Throwable $_) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user