mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 14:38:39 +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;
|
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