示例#1
0
 /**
  * Syncs folders
  * 
  * @param type $source_folder
  * @return type
  */
 protected function syncFolders($source_folder)
 {
     if ($this->localdata->getRsyncexclude()) {
         $this->rsync->setExcludeFrom($this->localdata->getRsyncexclude());
     }
     return $this->rsync->setExtractDir($source_folder . '/')->setAppPath($this->localdata->getAppPath())->run();
 }