|
@@ -566,7 +566,12 @@ class View {
|
|
|
$hooks[] = 'create';
|
|
|
$hooks[] = 'write';
|
|
|
}
|
|
|
- $result = $this->basicOperation('touch', $path, $hooks, $mtime);
|
|
|
+ try {
|
|
|
+ $result = $this->basicOperation('touch', $path, $hooks, $mtime);
|
|
|
+ } catch (\Exception $e) {
|
|
|
+ $this->logger->logException($e, ['level' => ILogger::INFO, 'message' => 'Error while setting modified time']);
|
|
|
+ $result = false;
|
|
|
+ }
|
|
|
if (!$result) {
|
|
|
// If create file fails because of permissions on external storage like SMB folders,
|
|
|
// check file exists and return false if not.
|