public function copyFile($oldPath, $newPath, $cut = FALSE) { //$oldPath = FS::getFullPath($oldPath); $newPath = FS::getFullPath($newPath); //die(var_dump($oldPath, $newPath)); $r = copy($oldPath, $newPath); if ($cut) { $this->deleteFile($oldPath); } return $r; }
public function getDirContent($path) { $path = FS::getFullPath($path); return scandir($path); }