Remove a directory
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | dirname |
subroutine remove_directory(dirname)
!< Remove a directory
implicit none
character(len=*), intent(in) :: dirname
character(len=FILE_NAME_LENGTH) :: rmdircmd
rmdircmd = 'rm -rf '//trim(dirname)
call system(rmdircmd)
end subroutine remove_directory