isDir()) { \mkdir($path . DIRECTORY_SEPARATOR . $iterator->getSubPathName()); } else { \copy($item, $path . DIRECTORY_SEPARATOR . $iterator->getSubPathName()); } } umask($old_mask); } if (\is_file("{$path}/example.min.js")) { // $this->addCss('style.css'); $this->addJs('example.js'); } } }