/** * Checks the existence of a user provided item path. * Scans the parent folder and returns the item object if it is accessible. */ public function checkItem($path) { if ($parts = Imce::splitPath($path)) { if ($folder = $this->checkFolder($parts[0])) { return $folder->checkItem($parts[1]); } } }