sub CreateDir { my ($newdir) = @_; ############### ### replaced by gypark ### 디렉토리 생성에 실패할 경우 에러 출력 # mkdir($newdir, 0775) if (!(-d $newdir)); if (!(-d $newdir)) { mkdir($newdir, 0775) or die(Ts('cant create directory %s', $newdir) . ": $!"); } ### ############### }