public function move($from, $to)
{
if (is_dir($from)) {
$this->_findFiles('.*');
foreach ($this->_files as $fromFile) {
$newFile = str_replace($from, $new, $fromFile);
if ($newFile !== $fromFile) {
$this->_staged['move'][$fromFile] = $newFile;
}
}
$this->delete($from);
return true;
}
$this->_staged['move'][$from] = $to;
return true;
}