コード例 #1
0
ファイル: FileHandler.class.php プロジェクト: rhymix/rhymix
 /**
  * Copy a directory to target
  *
  * If target directory does not exist, this function creates it
  *
  * @param string $source_dir Path of source directory
  * @param string $target_dir Path of target dir
  * @param string $filter Regex to filter files. If file matches this regex, the file is not copied.
  * @return void
  */
 public static function copyDir($source_dir, $target_dir, $filter = null)
 {
     return Rhymix\Framework\Storage::copyDirectory(self::getRealPath($source_dir), self::getRealPath($target_dir), $filter);
 }