]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add getOwner to Filesystem and View classes
authorMichael Gapczynski <mtgap@owncloud.com>
Sat, 2 Feb 2013 23:50:40 +0000 (18:50 -0500)
committerMichael Gapczynski <mtgap@owncloud.com>
Sat, 2 Feb 2013 23:50:40 +0000 (18:50 -0500)
lib/files/filesystem.php
lib/files/view.php

index 262fde320a1be5301c5bf0f44b478ff4d68ee8df..c00b42d9c44523a77e20e27a3ff8abd9fbd31fa4 100644 (file)
@@ -610,6 +610,16 @@ class Filesystem {
                return self::$defaultInstance->getPath($id);
        }
 
+       /**
+       * Get the owner for a file or folder
+       *
+       * @param string $path
+       * @return string
+       */
+       public static function getOwner($path) {
+               return self::$defaultInstance->getOwner($path);
+       }
+
        /**
         * get the ETag for a file or folder
         *
index 302232b5134a90056d44f1d09cfbdb2b35082f0f..a002ad5040db2c6a9741377eff194276d974fb3b 100644 (file)
@@ -914,6 +914,16 @@ class View {
                return $files;
        }
 
+       /**
+       * Get the owner for a file or folder
+       *
+       * @param string $path
+       * @return string
+       */
+       public function getOwner($path) {
+               return $this->basicOperation('getOwner', $path);
+       }
+
        /**
         * get the ETag for a file or folder
         *