Create a `mo_os.f90` module for operation system tasks
We should create a mo_os.f90
in the lib for such tasks (like the os
module in python).
We could get some inspiration from the filedir.f90
from https://sourceforge.net/projects/flibs/
Possible routines:
-
exists
- Return True if path refers to an existing path -
is_file
- Return True if this entry is a file -
is_dir
- Return True if this entry is a directory -
mk_dir
- Create a directory -
rm_file
- Remove (delete) a file -
rm_dir
- Remove (delete) the directory path -
rm_tree
- recursively remove (delete) the directory path -
chdir
- Change the current working directory -
getcwd
- Get the current working directory -
rename
- Rename a file - ...
We could start with the exists
routine.
See here: mhm/mhm#95 (closed)