Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
d069ee8a
Commit
d069ee8a
authored
Apr 08, 2013
by
Thomas Mueller
Browse files
fixes #2792 - only touch if writable
parent
ccde0212
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/files/storage/local.php
View file @
d069ee8a
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment