public function listItems($key)
{
$path = $this->getPath($key, TRUE);
if (!$path) {
throw new \InvalidArgumentException($key, self::ERROR_NOT_FOUND);
}
if (!is_dir($path)) {
throw new \InvalidArgumentException($key, self::ERROR_NOT_DIR);
}
$items = array();
foreach (glob("{$path}/*") as $file) {
$items[] = basename($file);
}
return $items;
}