rmdir() public static method

Remove a directory recursively
public static rmdir ( string $dir )
$dir string
Exemplo n.º 1
0
 protected function ensureEmptyDestination($destination)
 {
     if (is_dir($destination)) {
         GeneratorHelper::rmdir($destination);
     } else {
         mkdir($destination);
     }
 }