From 258ad38fd3c1e3cdc4ec20238b166e78c334b814 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 10 Apr 2013 13:45:36 +0200 Subject: Fix touch for creating new files --- lib/files/storage/local.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/files/storage') 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)) { -- cgit v1.2.3