fpm_os Module



Subroutines

public subroutine change_directory(path, error)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: path
type(error_t), intent(out), allocatable :: error

public subroutine convert_to_absolute_path(path, error)

Converts a path to an absolute, canonical path.

Arguments

Type IntentOptional Attributes Name
character(len=:), intent(inout), allocatable :: path
type(error_t), intent(out), allocatable :: error

public subroutine get_absolute_path(path, absolute_path, error)

Determine the canonical, absolute path for the given path. Expands home folder (~) on both Unix and Windows.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: path
character(len=:), intent(out), allocatable :: absolute_path
type(error_t), intent(out), allocatable :: error

public subroutine get_absolute_path_by_cd(path, absolute_path, error)

Alternative to get_absolute_path that uses chdir/_chdir to determine the absolute path.

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: path
character(len=:), intent(out), allocatable :: absolute_path
type(error_t), intent(out), allocatable :: error

public subroutine get_current_directory(path, error)

Arguments

Type IntentOptional Attributes Name
character(len=:), intent(out), allocatable :: path
type(error_t), intent(out), allocatable :: error