예제 #1
0
 /**
  * @param CM_File $directory
  */
 public function createDirectory(CM_File $directory)
 {
     if ($directory->isDirectory()) {
         $this->notify('skip', $directory->getPath());
     } else {
         $gitKeepFile = $directory->joinPath('.gitkeep');
         $this->notify('mkdir', $gitKeepFile->getParentDirectory()->getPath());
         $gitKeepFile->ensureParentDirectory();
     }
 }