/** * Checks if the user provided folder path is accessible. * Returns the folder object with the path. */ public function checkFolder($path) { if (is_array(Imce::folderInConf($path, $this->conf))) { return $this->addFolder($path); } }