Functions/Subroutines | |
logical function | mod_file_manager::directory_exists (directory) |
Check if a directory exists. More... | |
logical function | mod_file_manager::file_exists (filename) |
Check if a file exists. More... | |
character(len=:) function, allocatable | mod_file_manager::get_file_path (filename) |
Extract the path of a given file. More... | |
character(len=:) function, allocatable | mod_file_manager::get_file_name (path) |
Extract the filename of a given path. More... | |
subroutine | mod_file_manager::create_directory (directory) |
Create a directory. More... | |
character(len=:) function, allocatable | mod_file_manager::simplify_path (path) |
Simplify "//" in "/" in a path. More... | |
character(len=:) function, allocatable | mod_file_manager::escape_path (path) |
Replace any forbidden character by its escaped form. More... | |
subroutine | mod_file_manager::ensure_directory_exists (directory, use_barrier) |
If the given directory does not exist, create the directory. More... | |
character(len=:) function, allocatable | mod_file_manager::read_environment_variable (env, is_fatal) |
Read an environment variable. More... | |
character(len=:) function, allocatable | mod_file_manager::replace_tilde_with_home (path) |
Replace '~' in path by the content of the 'HOME' environment variable. More... | |
subroutine | mod_file_manager::get_notus_path (path) |
Find the path of Notus executable. More... | |
subroutine mod_file_manager::create_directory | ( | character(len=*), intent(in) | directory | ) |
[in] | directory | String containing the directory path. |
logical function mod_file_manager::directory_exists | ( | character(len=*), intent(in) | directory | ) |
Provide a compiler-independant way to check if a directory exists.
[in] | directory | String containing the directory path. |
subroutine mod_file_manager::ensure_directory_exists | ( | character(len=*), intent(in) | directory, |
logical, intent(in), optional | use_barrier | ||
) |
[in] | directory | String containing the directory path. |
[in] | use_barrier | Optional flag to use a mpi_barrier after creating the file (default: false) |
character(len=:) function, allocatable mod_file_manager::escape_path | ( | character(len=*), intent(in) | path | ) |
[in] | path | String containing the path to escape. |
logical function mod_file_manager::file_exists | ( | character(len=*), intent(in) | filename | ) |
[in] | filename | String containing the file name. |
character(len=:) function, allocatable mod_file_manager::get_file_name | ( | character(len=*), intent(in) | path | ) |
[in] | path | String containing the path and the file name. |
character(len=:) function, allocatable mod_file_manager::get_file_path | ( | character(len=*), intent(in) | filename | ) |
[in] | filename | String containing the file name. |
subroutine mod_file_manager::get_notus_path | ( | character(len=:), allocatable | path | ) |
[out] | path | Path of Notus executable |
character(len=:) function, allocatable mod_file_manager::read_environment_variable | ( | character(len=*), intent(in) | env, |
logical, optional | is_fatal | ||
) |
[in] | env | Name of the environment variable |
[in] | is_fatal | Optional flag to stop Notus if the variable is not found |
character(len=:) function, allocatable mod_file_manager::replace_tilde_with_home | ( | character(len=*), intent(in) | path | ) |
Also simplify path
[in] | path | Any path |
character(len=:) function, allocatable mod_file_manager::simplify_path | ( | character(len=*), intent(in) | path | ) |
[in] | path | String containing the path to simpify. |