public function renameCategory($path, $newName) { $base = $this->basepath . $path; $this->Filesystem->move($base, dirname($base) . '/' . $newName); }