예제 #1
0
파일: WG.php 프로젝트: 318io/318-io
 public static function fetch_file_save_as($url, $dest_uri, $reset = false)
 {
     if (!file_exists($dest_uri)) {
         if ($dest_uri[0] == '/') {
             $file_realpath = $dest_uri;
         } else {
             $file_realpath = \Drupal::service('file_system')->realpath($dest_uri);
         }
         DT::fetch_file_save($url, $file_realpath);
     }
 }