aboutsummaryrefslogtreecommitdiffstats
path: root/lib/files
diff options
context:
space:
mode:
Diffstat (limited to 'lib/files')
-rw-r--r--lib/files/filesystem.php13
-rw-r--r--lib/files/view.php1
2 files changed, 13 insertions, 1 deletions
diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php
index 4031c0c5b80..b3c92f38558 100644
--- a/lib/files/filesystem.php
+++ b/lib/files/filesystem.php
@@ -628,6 +628,19 @@ class Filesystem {
}
/**
+ * change file metadata
+ *
+ * @param string $path
+ * @param array $data
+ * @return int
+ *
+ * returns the fileid of the updated file
+ */
+ public static function putFileInfo($path, $data) {
+ return self::$defaultInstance->putFileInfo($path, $data);
+ }
+
+ /**
* get the content of a directory
*
* @param string $directory path under datadirectory
diff --git a/lib/files/view.php b/lib/files/view.php
index ee95cce0c1d..e9b583f8ae6 100644
--- a/lib/files/view.php
+++ b/lib/files/view.php
@@ -451,7 +451,6 @@ class View {
array(Filesystem::signal_param_path => $path2)
);
} else { // no real copy, file comes from somewhere else, e.g. version rollback -> just update the file cache and the webdav properties without all the other post_write actions
-// OC_FileCache_Update::update($path2, $this->fakeRoot);
Filesystem::removeETagHook(array("path" => $path2), $this->fakeRoot);
}
return $result;