Subroutine that creates a directory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | wkd | |||
character(len=*), | intent(in) | :: | directory | |||
character(len=1), | intent(in) | :: | sep | |||
integer(kind=I4), | intent(out) | :: | exit_status |
subroutine mkdir(wkd, directory, sep, exit_status) !! Subroutine that creates a directory implicit none character(len = *), intent(in ) :: wkd character(len = *), intent(in ) :: directory character(len = 1), intent(in ) :: sep integer(kind = I4), intent(out) :: exit_status character(len = 512) :: dir dir = trim(wkd) // sep // trim(directory) call execute_command_line("mkdir -p " // sep // dir, exitstat = exit_status) return endsubroutine mkdir