|
|
|
@ -97,7 +97,7 @@ class Wrapper implements \OC\Files\Storage\Storage, ILockingStorage, IWriteStrea
|
|
|
|
|
* see http://php.net/manual/en/function.opendir.php
|
|
|
|
|
*
|
|
|
|
|
* @param string $path
|
|
|
|
|
* @return resource
|
|
|
|
|
* @return resource|bool
|
|
|
|
|
*/
|
|
|
|
|
public function opendir($path) {
|
|
|
|
|
return $this->getWrapperStorage()->opendir($path);
|
|
|
|
@ -128,7 +128,7 @@ class Wrapper implements \OC\Files\Storage\Storage, ILockingStorage, IWriteStrea
|
|
|
|
|
* only the following keys are required in the result: size and mtime
|
|
|
|
|
*
|
|
|
|
|
* @param string $path
|
|
|
|
|
* @return array
|
|
|
|
|
* @return array|bool
|
|
|
|
|
*/
|
|
|
|
|
public function stat($path) {
|
|
|
|
|
return $this->getWrapperStorage()->stat($path);
|
|
|
|
@ -138,7 +138,7 @@ class Wrapper implements \OC\Files\Storage\Storage, ILockingStorage, IWriteStrea
|
|
|
|
|
* see http://php.net/manual/en/function.filetype.php
|
|
|
|
|
*
|
|
|
|
|
* @param string $path
|
|
|
|
|
* @return bool
|
|
|
|
|
* @return string|bool
|
|
|
|
|
*/
|
|
|
|
|
public function filetype($path) {
|
|
|
|
|
return $this->getWrapperStorage()->filetype($path);
|
|
|
|
@ -149,7 +149,7 @@ class Wrapper implements \OC\Files\Storage\Storage, ILockingStorage, IWriteStrea
|
|
|
|
|
* The result for filesize when called on a folder is required to be 0
|
|
|
|
|
*
|
|
|
|
|
* @param string $path
|
|
|
|
|
* @return int
|
|
|
|
|
* @return int|bool
|
|
|
|
|
*/
|
|
|
|
|
public function filesize($path) {
|
|
|
|
|
return $this->getWrapperStorage()->filesize($path);
|
|
|
|
@ -230,7 +230,7 @@ class Wrapper implements \OC\Files\Storage\Storage, ILockingStorage, IWriteStrea
|
|
|
|
|
* see http://php.net/manual/en/function.filemtime.php
|
|
|
|
|
*
|
|
|
|
|
* @param string $path
|
|
|
|
|
* @return int
|
|
|
|
|
* @return int|bool
|
|
|
|
|
*/
|
|
|
|
|
public function filemtime($path) {
|
|
|
|
|
return $this->getWrapperStorage()->filemtime($path);
|
|
|
|
@ -240,7 +240,7 @@ class Wrapper implements \OC\Files\Storage\Storage, ILockingStorage, IWriteStrea
|
|
|
|
|
* see http://php.net/manual/en/function.file_get_contents.php
|
|
|
|
|
*
|
|
|
|
|
* @param string $path
|
|
|
|
|
* @return string
|
|
|
|
|
* @return string|bool
|
|
|
|
|
*/
|
|
|
|
|
public function file_get_contents($path) {
|
|
|
|
|
return $this->getWrapperStorage()->file_get_contents($path);
|
|
|
|
@ -294,7 +294,7 @@ class Wrapper implements \OC\Files\Storage\Storage, ILockingStorage, IWriteStrea
|
|
|
|
|
*
|
|
|
|
|
* @param string $path
|
|
|
|
|
* @param string $mode
|
|
|
|
|
* @return resource
|
|
|
|
|
* @return resource|bool
|
|
|
|
|
*/
|
|
|
|
|
public function fopen($path, $mode) {
|
|
|
|
|
return $this->getWrapperStorage()->fopen($path, $mode);
|
|
|
|
@ -305,7 +305,7 @@ class Wrapper implements \OC\Files\Storage\Storage, ILockingStorage, IWriteStrea
|
|
|
|
|
* The mimetype for a folder is required to be "httpd/unix-directory"
|
|
|
|
|
*
|
|
|
|
|
* @param string $path
|
|
|
|
|
* @return string
|
|
|
|
|
* @return string|bool
|
|
|
|
|
*/
|
|
|
|
|
public function getMimeType($path) {
|
|
|
|
|
return $this->getWrapperStorage()->getMimeType($path);
|
|
|
|
@ -317,7 +317,7 @@ class Wrapper implements \OC\Files\Storage\Storage, ILockingStorage, IWriteStrea
|
|
|
|
|
* @param string $type
|
|
|
|
|
* @param string $path
|
|
|
|
|
* @param bool $raw
|
|
|
|
|
* @return string
|
|
|
|
|
* @return string|bool
|
|
|
|
|
*/
|
|
|
|
|
public function hash($type, $path, $raw = false) {
|
|
|
|
|
return $this->getWrapperStorage()->hash($type, $path, $raw);
|
|
|
|
@ -327,7 +327,7 @@ class Wrapper implements \OC\Files\Storage\Storage, ILockingStorage, IWriteStrea
|
|
|
|
|
* see http://php.net/manual/en/function.free_space.php
|
|
|
|
|
*
|
|
|
|
|
* @param string $path
|
|
|
|
|
* @return int
|
|
|
|
|
* @return int|bool
|
|
|
|
|
*/
|
|
|
|
|
public function free_space($path) {
|
|
|
|
|
return $this->getWrapperStorage()->free_space($path);
|
|
|
|
@ -337,7 +337,7 @@ class Wrapper implements \OC\Files\Storage\Storage, ILockingStorage, IWriteStrea
|
|
|
|
|
* search for occurrences of $query in file names
|
|
|
|
|
*
|
|
|
|
|
* @param string $query
|
|
|
|
|
* @return array
|
|
|
|
|
* @return array|bool
|
|
|
|
|
*/
|
|
|
|
|
public function search($query) {
|
|
|
|
|
return $this->getWrapperStorage()->search($query);
|
|
|
|
@ -360,7 +360,7 @@ class Wrapper implements \OC\Files\Storage\Storage, ILockingStorage, IWriteStrea
|
|
|
|
|
* The local version of the file can be temporary and doesn't have to be persistent across requests
|
|
|
|
|
*
|
|
|
|
|
* @param string $path
|
|
|
|
|
* @return string
|
|
|
|
|
* @return string|bool
|
|
|
|
|
*/
|
|
|
|
|
public function getLocalFile($path) {
|
|
|
|
|
return $this->getWrapperStorage()->getLocalFile($path);
|
|
|
|
@ -458,7 +458,7 @@ class Wrapper implements \OC\Files\Storage\Storage, ILockingStorage, IWriteStrea
|
|
|
|
|
* get the ETag for a file or folder
|
|
|
|
|
*
|
|
|
|
|
* @param string $path
|
|
|
|
|
* @return string
|
|
|
|
|
* @return string|bool
|
|
|
|
|
*/
|
|
|
|
|
public function getETag($path) {
|
|
|
|
|
return $this->getWrapperStorage()->getETag($path);
|
|
|
|
@ -513,7 +513,7 @@ class Wrapper implements \OC\Files\Storage\Storage, ILockingStorage, IWriteStrea
|
|
|
|
|
* For now the returned array can hold the parameter url - in future more attributes might follow.
|
|
|
|
|
*
|
|
|
|
|
* @param string $path
|
|
|
|
|
* @return array
|
|
|
|
|
* @return array|bool
|
|
|
|
|
*/
|
|
|
|
|
public function getDirectDownload($path) {
|
|
|
|
|
return $this->getWrapperStorage()->getDirectDownload($path);
|
|
|
|
|