public function move($path, $name, $dest, $autocreate = false) { $this->copy($path, $name, $dest, $autocreate); if ($this->isFolder($path, $name)) { $this->deleteFolder($path, $name, true); } else { $this->deleteFile($path, $name); } }