child Function

private pure function child(dir, name) result(path)

dir/name, or just name in the current directory.

Arguments

Type IntentOptional 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

Return Value character(len=:), allocatable


Calls

proc~~child~~CallsGraph proc~child child proc~join_path join_path proc~child->proc~join_path

Called by

proc~~child~~CalledByGraph proc~child child proc~collect_files collect_files proc~collect_files->proc~child proc~directory_files directory_files proc~directory_files->proc~collect_files proc~run run proc~run->proc~directory_files

Source Code

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