@@ -156,7 +156,7 @@ public function rmdir($path) {
156156 * see http://php.net/manual/en/function.opendir.php
157157 *
158158 * @param string $path
159- * @return resource
159+ * @return resource|bool
160160 */
161161 public function opendir ($ path ) {
162162 return $ this ->storage ->opendir ($ this ->findPathToUse ($ path ));
@@ -187,7 +187,7 @@ public function is_file($path) {
187187 * only the following keys are required in the result: size and mtime
188188 *
189189 * @param string $path
190- * @return array
190+ * @return array|bool
191191 */
192192 public function stat ($ path ) {
193193 return $ this ->storage ->stat ($ this ->findPathToUse ($ path ));
@@ -197,7 +197,7 @@ public function stat($path) {
197197 * see http://php.net/manual/en/function.filetype.php
198198 *
199199 * @param string $path
200- * @return bool
200+ * @return string| bool
201201 */
202202 public function filetype ($ path ) {
203203 return $ this ->storage ->filetype ($ this ->findPathToUse ($ path ));
@@ -208,7 +208,7 @@ public function filetype($path) {
208208 * The result for filesize when called on a folder is required to be 0
209209 *
210210 * @param string $path
211- * @return int
211+ * @return int|bool
212212 */
213213 public function filesize ($ path ) {
214214 return $ this ->storage ->filesize ($ this ->findPathToUse ($ path ));
@@ -289,7 +289,7 @@ public function file_exists($path) {
289289 * see http://php.net/manual/en/function.filemtime.php
290290 *
291291 * @param string $path
292- * @return int
292+ * @return int|bool
293293 */
294294 public function filemtime ($ path ) {
295295 return $ this ->storage ->filemtime ($ this ->findPathToUse ($ path ));
@@ -299,7 +299,7 @@ public function filemtime($path) {
299299 * see http://php.net/manual/en/function.file_get_contents.php
300300 *
301301 * @param string $path
302- * @return string
302+ * @return string|bool
303303 */
304304 public function file_get_contents ($ path ) {
305305 return $ this ->storage ->file_get_contents ($ this ->findPathToUse ($ path ));
@@ -358,7 +358,7 @@ public function copy($path1, $path2) {
358358 *
359359 * @param string $path
360360 * @param string $mode
361- * @return resource
361+ * @return resource|bool
362362 */
363363 public function fopen ($ path , $ mode ) {
364364 $ result = $ this ->storage ->fopen ($ this ->findPathToUse ($ path ), $ mode );
@@ -373,7 +373,7 @@ public function fopen($path, $mode) {
373373 * The mimetype for a folder is required to be "httpd/unix-directory"
374374 *
375375 * @param string $path
376- * @return string
376+ * @return string|bool
377377 */
378378 public function getMimeType ($ path ) {
379379 return $ this ->storage ->getMimeType ($ this ->findPathToUse ($ path ));
@@ -385,7 +385,7 @@ public function getMimeType($path) {
385385 * @param string $type
386386 * @param string $path
387387 * @param bool $raw
388- * @return string
388+ * @return string|bool
389389 */
390390 public function hash ($ type , $ path , $ raw = false ) {
391391 return $ this ->storage ->hash ($ type , $ this ->findPathToUse ($ path ), $ raw );
@@ -395,7 +395,7 @@ public function hash($type, $path, $raw = false) {
395395 * see http://php.net/manual/en/function.free_space.php
396396 *
397397 * @param string $path
398- * @return int
398+ * @return int|bool
399399 */
400400 public function free_space ($ path ) {
401401 return $ this ->storage ->free_space ($ this ->findPathToUse ($ path ));
@@ -405,7 +405,7 @@ public function free_space($path) {
405405 * search for occurrences of $query in file names
406406 *
407407 * @param string $query
408- * @return array
408+ * @return array|bool
409409 */
410410 public function search ($ query ) {
411411 return $ this ->storage ->search ($ query );
@@ -428,7 +428,7 @@ public function touch($path, $mtime = null) {
428428 * The local version of the file can be temporary and doesn't have to be persistent across requests
429429 *
430430 * @param string $path
431- * @return string
431+ * @return string|bool
432432 */
433433 public function getLocalFile ($ path ) {
434434 return $ this ->storage ->getLocalFile ($ this ->findPathToUse ($ path ));
@@ -480,7 +480,7 @@ public function getScanner($path = '', $storage = null) {
480480 * get the ETag for a file or folder
481481 *
482482 * @param string $path
483- * @return string
483+ * @return string|bool
484484 */
485485 public function getETag ($ path ) {
486486 return $ this ->storage ->getETag ($ this ->findPathToUse ($ path ));
0 commit comments