$fullPath = $GLOBALS['imagestore']['basedir'] . $path;
if (!is_dir($fullPath)) {
return $this->error('404 Not Found', 'Path not found');
$fullPath = $GLOBALS['imagestore']['basedir'] . $path;
if (!is_dir($fullPath)) {
return $this->error('404 Not Found', 'Path not found');