pathlib Module


Uses

  • module~~pathlib~~UsesGraph module~pathlib pathlib iso_fortran_env iso_fortran_env module~pathlib->iso_fortran_env

Used by

  • module~~pathlib~~UsedByGraph module~pathlib pathlib module~pathlib_unix pathlib_unix module~pathlib_unix->module~pathlib module~io io module~io->module~pathlib module~pathlib_windows pathlib_windows module~pathlib_windows->module~pathlib module~mag_raw mag_raw module~mag_raw->module~io module~mag mag module~mag->module~io module~io_aurora io_aurora module~io_aurora->module~io program~gemini3d Gemini3D program~gemini3d->module~io module~input input module~input->module~io module~mag_hdf5 mag_hdf5 module~mag_hdf5->module~io module~mag_hdf5~2 mag_hdf5 module~mag_hdf5~2->module~io module~plasma plasma module~plasma->module~io module~output output module~output->module~io program~magcalc MagCalc program~magcalc->module~io module~plasma_output_hdf5 plasma_output_hdf5 module~plasma_output_hdf5->module~plasma module~io_aurora_raw io_aurora_raw module~io_aurora_raw->module~io_aurora module~path_exists~2 path_exists module~path_exists~2->module~input module~plasma_input_raw plasma_input_raw module~plasma_input_raw->module~plasma module~plasma_input_hdf5 plasma_input_hdf5 module~plasma_input_hdf5->module~plasma module~io_aurora_hdf5 io_aurora_hdf5 module~io_aurora_hdf5->module~io_aurora module~io_aurora_hdf5~2 io_aurora_hdf5 module~io_aurora_hdf5~2->module~io_aurora module~plasma_output_raw plasma_output_raw module~plasma_output_raw->module~plasma module~plasma_output_hdf5~2 plasma_output_hdf5 module~plasma_output_hdf5~2->module~plasma module~path_exists path_exists module~path_exists->module~input

Contents


Interfaces

interface

  • public module function copyfile(source, dest) result(istat)

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in) :: source
    character(len=*), intent(in) :: dest

    Return Value integer

interface

  • public module function mkdir(path) result(istat)

    Arguments

    Type IntentOptional AttributesName
    character(len=*), intent(in) :: path

    Return Value integer


Functions

public function filesep_swap(path) result(swapped)

swaps '/' to '\' for Windows systems

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: path

Return Value character(len=len(path))

public function expanduser(indir)

resolve home directory as Fortran does not understand tilde works for Linux, Mac, Windows, etc. nothing to expand could not determine the home directory ~ or ~/ ~/...

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: indir

Return Value character(len=:), allocatable

public function home()

https://en.wikipedia.org/wiki/Home_directory#Default_home_directory_per_operating_system

Arguments

None

Return Value character(len=:), allocatable