/**
  * Get all the meta data of a file or directory.
  *
  * @param string $path
  *
  * @return array|false
  */
 public function getMetadata($path)
 {
     try {
         return $this->normalizeMetadata($this->api->resource($path));
     } catch (\Exception $e) {
         return false;
     }
 }