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
50f85bfd
Commit
50f85bfd
authored
Nov 27, 2014
by
Joas Schilling
Browse files
Check whether file exists before trying to touch() it
Local changes from
d069ee8a
and
258ad38f
parent
c5427da7
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/private/files/storage/mappedlocal.php
View file @
50f85bfd
...
...
@@ -159,6 +159,9 @@ class MappedLocal 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
->
file_exists
(
$path
)
and
!
$this
->
isUpdatable
(
$path
))
{
return
false
;
}
if
(
!
is_null
(
$mtime
))
{
$result
=
touch
(
$this
->
getSourcePath
(
$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