Loading...
Searching...
No Matches
fpx_path Module Reference

Derived types and interfaces

interface  join
 Generic interface for joining two path components Supports all combinations of character and string arguments. More...
 

Functions/Subroutines

pure logical function is_rooted (filepath)
 
pure character(:) function, allocatable filename (filepath, keepext)
 
pure character(:) function, allocatable join_character_character (path1, path2)
 Joins two path components with the correct platform separator. Removes duplicate separators and trailing/leading whitespace.
 
pure character(:) function, allocatable join_character_string (path1, path2)
 Joins character path with string path component. Removes duplicate separators and trailing/leading whitespace.
 
pure character(:) function, allocatable join_string_character (path1, path2)
 Joins string path with character path component. Removes duplicate separators and trailing/leading whitespace.
 
pure character(:) function, allocatable join_string_string (path1, path2)
 Joins two string path components. Removes duplicate separators and trailing/leading whitespace.
 
pure character(:) function, allocatable dirpath (filepath)
 
pure character(:) function, allocatable dirname (filepath)
 
pure subroutine split_path (filepath, head, tail)
 
character(:) function, allocatable cwd ()
 Returns the current working directory as a deferred-length character string. Returns empty string on failure.
 
subroutine chdir (path, err)
 

Function/Subroutine Documentation

◆ chdir()

subroutine chdir ( character(*) path,
integer, intent(out), optional err )

Definition at line 390 of file path.f90.

◆ dirname()

pure character(:) function, allocatable dirname ( character(*), intent(in) filepath)

Definition at line 284 of file path.f90.

◆ dirpath()

pure character(:) function, allocatable dirpath ( character(*), intent(in) filepath)

Definition at line 266 of file path.f90.

◆ filename()

pure character(:) function, allocatable filename ( character(*), intent(in) filepath,
logical, intent(in), optional keepext )

Definition at line 160 of file path.f90.

◆ is_rooted()

pure logical function is_rooted ( character(*), intent(in) filepath)

Definition at line 132 of file path.f90.

◆ join_character_character()

pure character(:) function, allocatable join_character_character ( character(*), intent(in) path1,
character(*), intent(in) path2 )

Joins two path components with the correct platform separator. Removes duplicate separators and trailing/leading whitespace.

Parameters
[in]path1First path component
[in]path2Second path component
Returns
res Joined path

Definition at line 187 of file path.f90.

◆ join_character_string()

pure character(:) function, allocatable join_character_string ( character(*), intent(in) path1,
type(string), intent(in) path2 )

Joins character path with string path component. Removes duplicate separators and trailing/leading whitespace.

Parameters
[in]path1First path component
[in]path2Second path component
Returns
res Joined path

Definition at line 206 of file path.f90.

◆ join_string_character()

pure character(:) function, allocatable join_string_character ( type(string), intent(in) path1,
character(*), intent(in) path2 )

Joins string path with character path component. Removes duplicate separators and trailing/leading whitespace.

Parameters
[in]path1First path component
[in]path2Second path component
Returns
res Joined path

Definition at line 225 of file path.f90.

◆ join_string_string()

pure character(:) function, allocatable join_string_string ( type(string), intent(in) path1,
type(string), intent(in) path2 )

Joins two string path components. Removes duplicate separators and trailing/leading whitespace.

Parameters
[in]path1First path component
[in]path2Second path component
Returns
res Joined path

Definition at line 244 of file path.f90.

◆ split_path()

pure subroutine split_path ( character(*), intent(in) filepath,
character(:), intent(out), allocatable head,
character(:), intent(out), allocatable tail )

Definition at line 299 of file path.f90.