Beispiel #1
0
 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;
 }
Beispiel #2
0
 public function getDirContent($path)
 {
     $path = FS::getFullPath($path);
     return scandir($path);
 }