If for whatever reason appdata got into a strange state this will at
least propegate up and not make it do boom the next run.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
*
* @param string|resource $data
* @throws NotPermittedException
+ * @throws NotFoundException
*/
public function putContent($data) {
- $this->file->putContent($data);
+ try {
+ return $this->file->putContent($data);
+ } catch (NotFoundException $e) {
+ $this->checkFile();
+ }
}
/**
while ($cur->stat() === false) {
$parent = $cur->getParent();
- $cur->delete();
+ try {
+ $cur->delete();
+ } catch (NotFoundException $e) {
+ // Just continue then
+ }
$cur = $parent;
}
*
* @param string|resource $data
* @throws NotPermittedException
+ * @throws NotFoundException
* @since 11.0.0
*/
public function putContent($data);