ParaMonte Fortran 2.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation. |
Generate and return .true.
is the input path is an absolute Windows path (whether existing or virtual), otherwise return .false.
.
More...
Generate and return .true.
is the input path is an absolute Windows path (whether existing or virtual), otherwise return .false.
.
The definition of an absolute path on Windows is given in the details section of pm_sysPath.
In general, a Windows path is considered absolute by the procedures of this generic interface if,
:
, followed by at least one of the directory separators recognized on Windows as stored in DIR_SEP_WINDOWS_ALL.A path that begins with one of the directory separators recognized on Windows as stored in DIR_SEP_WINDOWS_ALL, is not absolute.
Such a path is recognied by Microsoft as a relative path with respect to the current drive.
This is contrary to the conventions followed by some other languages (e.g., Python).
This generic interface follows Microsoft conventions for the definition of an absolute path on Windows.
For example,
\paramonte
is a relative path with respect to the current drive of the runtime shell.C:paramonte
is a relative path on drive C
with respect to the current working directory of the runtime shell.By definition, an absolute Windows path must contain at least 3
characters (or more for UNC-style absolute paths).
To check whether a path begins with a drive letter, use hasDriveLetter.
[in] | path | : The input scalar character of kind any supported by the processor (e.g., SK, SKA, SKD , or SKU) containing an existing or virtual path.An empty input path is by definition a relative path (not absolute). |
pathIsAbs
: The output scalar logical
of default kind LK that is .true.
if and only if the input path is an absolute path based on Windows conventions.
Possible calling interfaces ⛓
pure
.elemental
.
Example usage ⛓
ifort
compiler ⛓ ifort
compiler ⛓ gfortran
compiler ⛓
Final Remarks ⛓
If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.
This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.
Definition at line 2372 of file pm_sysPath.F90.