summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-04-10 13:45:36 +0200
committerRobin Appelman <icewind@owncloud.com>2013-04-10 13:48:24 +0200
commit258ad38fd3c1e3cdc4ec20238b166e78c334b814 (patch)
tree8a5b33c46ed787ef4af974ad24965046e151451b /lib
parent48dabd2c145be296b575fe1ff47b800fc31e06ee (diff)
downloadnextcloud-server-258ad38fd3c1e3cdc4ec20238b166e78c334b814.tar.gz
nextcloud-server-258ad38fd3c1e3cdc4ec20238b166e78c334b814.zip
Fix touch for creating new files
Diffstat (limited to 'lib')
-rw-r--r--lib/files/storage/local.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/files/storage/local.php b/lib/files/storage/local.php
index c3a643fe980..81e32587fca 100644
--- a/lib/files/storage/local.php
+++ b/lib/files/storage/local.php
@@ -95,7 +95,7 @@ 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)) {
+ if($this->file_exists($path) and !$this->isUpdatable($path)) {
return false;
}
if(!is_null($mtime)) {