@@ -447,7 +447,8 @@ public function getWithMetadata($path, array $metadata)
447447 *
448448 * @param string $path path to file
449449 * @throws FileNotFoundException
450- * @return string file mimetype
450+ * @return string|false file mimetype or FALSE when fails
451+ * to fetch mimetype from existing file
451452 */
452453 public function getMimetype ($ path )
453454 {
@@ -472,7 +473,8 @@ public function getMimetype($path)
472473 *
473474 * @param string $path path to file
474475 * @throws FileNotFoundException
475- * @return string timestamp
476+ * @return string|false timestamp or FALSE when fails
477+ * to fetch timestamp from existing file
476478 */
477479 public function getTimestamp ($ path )
478480 {
@@ -496,7 +498,8 @@ public function getTimestamp($path)
496498 * Get a file's visibility
497499 *
498500 * @param string $path path to file
499- * @return string visibility (public|private)
501+ * @return string|false visibility (public|private) or FALSE
502+ * when fails to check it in existing file
500503 */
501504 public function getVisibility ($ path )
502505 {
@@ -520,7 +523,8 @@ public function getVisibility($path)
520523 * Get a file's size
521524 *
522525 * @param string $path path to file
523- * @return int file size
526+ * @return int|false file size or FALSE when fails
527+ * to check size of existing file
524528 */
525529 public function getSize ($ path )
526530 {
@@ -564,7 +568,8 @@ public function setVisibility($path, $visibility)
564568 *
565569 * @param string $path path to file
566570 * @throws FileNotFoundException
567- * @return array file metadata
571+ * @return array|false file metadata or FALSE when fails
572+ * to fetch it from existing file
568573 */
569574 public function getMetadata ($ path )
570575 {
0 commit comments