public function copyItem($src, $dest)
{
$srcPath = $this->getPath($src, TRUE);
if (!$srcPath) {
throw new \InvalidArgumentException($src, self::ERROR_NOT_FOUND);
}
if (is_dir($srcPath)) {
throw new \InvalidArgumentException($src, self::ERROR_NOT_FILE);
}
$dir = dirname($srcPath);
$destPath = "{$dir}/" . basename($dest);
if (realpath($destPath)) {
throw new \InvalidArgumentException($dest, self::ERROR_CONFLICT);
}
return copy($srcPath, $destPath);
}