mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
fixes #2792 - only touch if writable
This commit is contained in:
parent
ccde0212b1
commit
d069ee8a8b
1 changed files with 3 additions and 0 deletions
|
|
@ -95,6 +95,9 @@ class Local extends \OC\Files\Storage\Common{
|
|||
// sets the modification time of the file to the given value.
|
||||
// If mtime is nil the current time is set.
|
||||
// note that the access time of the file always changes to the current time.
|
||||
if(!$this->isUpdatable($path)) {
|
||||
return false;
|
||||
}
|
||||
if(!is_null($mtime)) {
|
||||
$result=touch( $this->datadir.$path, $mtime );
|
||||
}else{
|
||||
|
|
|
|||
Loading…
Reference in a new issue