aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-07-22 14:37:37 +0200
committerRobin Appelman <robin@icewind.nl>2016-07-22 14:39:32 +0200
commite321ecd592fef123772c6e61e175b6a34a3c5044 (patch)
tree017e79025c2f9431d4631667886173f9f5df0281 /lib/public
parentd499f68fd72bb6839023aa91fb2028587a62c496 (diff)
downloadnextcloud-server-e321ecd592fef123772c6e61e175b6a34a3c5044.tar.gz
nextcloud-server-e321ecd592fef123772c6e61e175b6a34a3c5044.zip
add recent files to node api
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Files/FileInfo.php5
-rw-r--r--lib/public/Files/Folder.php7
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/public/Files/FileInfo.php b/lib/public/Files/FileInfo.php
index d61726c4217..04790d41556 100644
--- a/lib/public/Files/FileInfo.php
+++ b/lib/public/Files/FileInfo.php
@@ -59,6 +59,11 @@ interface FileInfo {
const SPACE_UNLIMITED = -3;
/**
+ * @since 9.1.0
+ */
+ const MIMETYPE_FOLDER = 'httpd/unix-directory';
+
+ /**
* Get the Etag of the file or folder
*
* @return string
diff --git a/lib/public/Files/Folder.php b/lib/public/Files/Folder.php
index 9a2a338b559..b6686732f42 100644
--- a/lib/public/Files/Folder.php
+++ b/lib/public/Files/Folder.php
@@ -175,4 +175,11 @@ interface Folder extends Node {
* @since 8.1.0
*/
public function getNonExistingName($name);
+
+ /**
+ * @param int $since
+ * @return \OCP\Files\Node[]
+ * @since 9.1.0
+ */
+ public function getRecent($since);
}