swaps '/' to '\' for Windows systems
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | path |
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 ~/ ~/...
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | indir |
https://en.wikipedia.org/wiki/Home_directory#Default_home_directory_per_operating_system