dir/name, or just name in the current directory.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | dir |
the directory, and the name of an entry in it |
||
| character(len=*), | intent(in) | :: | name |
the directory, and the name of an entry in it |
pure function child(dir, name) result(path) !! `dir/name`, or just `name` in the current directory. character(len=*), intent(in) :: dir, name !! the directory, and the name of an entry in it character(len=:), allocatable :: path if (dir == '.') then path = name else path = join_path(dir, name) end if end function child