directory_of Function

pure function directory_of(path) result(directory)

The directory part of path, including the final /, or nothing if there is none.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: path

Return Value character(len=:), allocatable