Пример #1
0
 /**
  * Returns the object for a subfolder of the current folder, if it exists.
  *
  * @param string $name Name of the subfolder
  * @return Folder
  * @throws \InvalidArgumentException
  */
 public function getSubfolder($name)
 {
     if (!$this->storage->hasFolderInFolder($name, $this)) {
         throw new \InvalidArgumentException('Folder "' . $name . '" does not exist in "' . $this->identifier . '"', 1329836110);
     }
     return $this->storage->getFolderInFolder($name, $this);
 }