ParaMonte Fortran 2.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
pm_sysPath::isFailedGlob Interface Reference

Generate and return .true. if the attempt to globing the specified input pattern fails, otherwise, return .false..
More...

Detailed Description

Generate and return .true. if the attempt to globing the specified input pattern fails, otherwise, return .false..

Glob patterns specify sets of filenames with wildcard characters.
For example, the Unix Bash shell command mv *.txt textfiles/ moves all files with names ending in .txt from the current directory to the directory textfiles.
Here, * is a wildcard standing for any string of characters except * and *.txt is a glob pattern.
The other common wildcard is the question mark (?), which stands for one character.
For example, mv ?.txt shorttextfiles/ will move all files named with a single character followed by .txt from the current directory to directory shorttextfiles, while ??.txt would match all files whose name consists of 2 characters followed by .txt.
In addition to matching filenames, globs are also used widely for matching arbitrary strings (wildcard matching).
In this capacity a common interface is the popular fnmatch().

Origin

The glob command, short for global, originates in the earliest versions of Bell Labs Unix.
The command interpreters of the early versions of Unix (1st through 6th Editions, 1969-1975) relied on a separate program to expand wildcard characters in unquoted arguments to a command: /etc/glob.
That program performed the expansion and supplied the expanded list of file paths to the command for execution.
Glob was originally written in the B programming language.
It was the first piece of mainline Unix software to be developed in a high-level programming language.
Later, this functionality was provided as a C library function, glob(), used by programs such as the shell.
It is usually defined based on a function named fnmatch(), which tests for whether a string matches a given pattern.
The program using this function can then iterate through a series of strings (usually filenames) to determine which ones match.
Both functions are a part of POSIX: the functions defined in POSIX.1 since 2001, and the syntax defined in POSIX.2.
The idea of defining a separate match function started with wildmat (wildcard match), a simple library to match strings against Bourne Shell globs.
Traditionally, globs do not match hidden files in the form of Unix dotfiles; to match them the pattern must explicitly start with ..
For example, * matches all visible files while .* matches all hidden files.

The returned list of matching paths can be either,

  1. a vector of scalar string containers css_type.
  2. a scalar string container, containing the all directory contents concatenated within a single string whose records start and stop elements are returned in the output array index(1:2,:).
    This format is particularly efficient as it involved only one allocation compared to the former containerized storage mode.
Warning
The current implementation of this generic interface recognizes only the two most popular wildcards ? and * for globing.
Parameters
[in]pattern: The input scalar character of default kind SK of arbitrary length type parameter containing the directory or file pattern to glob.
[out]list: The output object that can be either,
  1. an allocatable scalar character of default kind SK containing the path entries in sequence, such that the next path entry starts immediately after the last character of the previous entry.
  2. an allocatable vector of containers of type css_type containing scalar strings of kind SK, each element of which contains the path to one entry in the directory listing.
Note that the allocation status or the contents of list remain undefined if failed = .true. on return.
[out]index: The output allocatable array of type integer of default kind IK of shape `(1:2,1:pathCount) where,
  1. pathCount represents the number of paths in the output list, and
  2. index(1,:) is the vector of positions of the starting character of individual paths in list, and
  3. index(2,:) is the vector of positions of the ending character of individual paths in list.
By definition, index(1,1) = 1 and index(2,pathCount) = len(list).
such that the next path entry starts immediately after the last character of the previous entry.
Note that the allocation status or the contents of index remain undefined if failed = .true. on return.
(optional. It must be present if and only if the input argument list is a scalar character of default kind SK.)
[in,out]errmsg: The input/output scalar character of default kind SK of arbitrary length type parameter.
If present and an error occurs, it is assigned an explanatory message describing the nature of the error that has occurred.
A length of LEN_IOMSG characters is likely sufficient to capture most error messages in full.
(optional. Its presence is relevant only if failed is also present.)
Returns
failed : The output scalar logical of default kind LK.
It is .true. if and only if an error occurs while globing pattern.


Possible calling interfaces

use pm_kind, only: SK, IK, LK
character(:, SK), allocatable :: list
type(css_type), allocatable :: list(:)
integer(IK), allocatable :: index(:,:)
logical(LK) :: failed
logical(LK) :: showdir
logical(LK) :: showfile
logical(LK) :: showhidden
failed = isFailedGlob(pattern, list, errmsg = errmsg) ! `list` is a vector of string containers.
failed = isFailedGlob(pattern, list, index, errmsg = errmsg) ! `list` is a scalar string.
Generate and return .true. if the attempt to globing the specified input pattern fails,...
This module defines the relevant Fortran kind type-parameters frequently used in the ParaMonte librar...
Definition: pm_kind.F90:268
integer, parameter LK
The default logical kind in the ParaMonte library: kind(.true.) in Fortran, kind(....
Definition: pm_kind.F90:541
integer, parameter IK
The default integer kind in the ParaMonte library: int32 in Fortran, c_int32_t in C-Fortran Interoper...
Definition: pm_kind.F90:540
integer, parameter SK
The default character kind in the ParaMonte library: kind("a") in Fortran, c_char in C-Fortran Intero...
Definition: pm_kind.F90:539
This module contains classes and procedures for manipulating system file/folder paths.
Definition: pm_sysPath.F90:274
Remarks
The procedures under discussion are impure.
Note
The interface returning list as a scalar string of concatenated paths is significantly faster than a container implementation by reducing the number of allocations from an arbitrarily large number to < 3, frequently only 1.
The runtime performance gain is particularly significant when the returned list contains thousands of paths.
The procedures of this generic interface can handle characters of any kind (including nongraphical ASCII characters like newline) on Unix systems.
See also
ls
glob
isFailedGlob
isFailedList
glob (programming)


Example usage

1program example
2
3 use pm_kind, only: LK, IK, SK
4 use pm_io, only: display_type
6
7 implicit none
8
9 character(:, SK), allocatable :: list
10 integer(IK) , allocatable :: index(:,:)
11 integer :: i
12
13 type(display_type) :: disp
14 disp = display_type(file = "main.out.F90")
15
16 call disp%skip()
17 call disp%show("if (isFailedGlob('.', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_'""'); end do; end if")
18 if (isFailedGlob('.', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_""""); end do; end if
19 call disp%skip()
20
21 call disp%skip()
22 call disp%show("if (isFailedGlob('./', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_'""'); end do; end if")
23 if (isFailedGlob('./', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_""""); end do; end if
24 call disp%skip()
25
26 call disp%skip()
27 call disp%show("if (isFailedGlob('./*', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_'""'); end do; end if")
28 if (isFailedGlob('./*', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_""""); end do; end if
29 call disp%skip()
30
31 call disp%skip()
32 call disp%show("isFailedMakeDir('./temp')")
33 call disp%show( isFailedMakeDir('./temp') )
34 call disp%show("if (isFailedGlob('./*???F90', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_'""'); end do; end if")
35 if (isFailedGlob('./*???F90', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_""""); end do; end if
36 call disp%skip()
37
38 call disp%skip()
39 call disp%show("isFailedMakeDir('./temp')")
40 call disp%show( isFailedMakeDir('./temp') )
41 call disp%show("if (isFailedGlob('./*.*', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_'""'); end do; end if")
42 if (isFailedGlob('./*.*', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_""""); end do; end if
43 call disp%skip()
44
45 call disp%skip()
46 call disp%show("if (isFailedGlob('../get*', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_'""'); end do; end if")
47 if (isFailedGlob('../get*', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_""""); end do; end if
48 call disp%skip()
49
50 call disp%skip()
51 call disp%show("if (isFailedGlob('../get*/*', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_'""'); end do; end if")
52 if (isFailedGlob('../get*/*', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_""""); end do; end if
53 call disp%skip()
54
55end program example
This is a generic method of the derived type display_type with pass attribute.
Definition: pm_io.F90:11726
This is a generic method of the derived type display_type with pass attribute.
Definition: pm_io.F90:11508
Generate and return .true. if the attempt to create the requested directory path fails,...
This module contains classes and procedures for input/output (IO) or generic display operations on st...
Definition: pm_io.F90:252
type(display_type) disp
This is a scalar module variable an object of type display_type for general display.
Definition: pm_io.F90:11393
Generate and return an object of type display_type.
Definition: pm_io.F90:10282

Example Unix compile command via Intel ifort compiler
1#!/usr/bin/env sh
2rm main.exe
3ifort -fpp -standard-semantics -O3 -Wl,-rpath,../../../lib -I../../../inc main.F90 ../../../lib/libparamonte* -o main.exe
4./main.exe

Example Windows Batch compile command via Intel ifort compiler
1del main.exe
2set PATH=..\..\..\lib;%PATH%
3ifort /fpp /standard-semantics /O3 /I:..\..\..\include main.F90 ..\..\..\lib\libparamonte*.lib /exe:main.exe
4main.exe

Example Unix / MinGW compile command via GNU gfortran compiler
1#!/usr/bin/env sh
2rm main.exe
3gfortran -cpp -ffree-line-length-none -O3 -Wl,-rpath,../../../lib -I../../../inc main.F90 ../../../lib/libparamonte* -o main.exe
4./main.exe

Example output
1
2if (isFailedGlob('.', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_'"'); end do; end if
3"."
4
5
6if (isFailedGlob('./', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_'"'); end do; end if
7"./"
8
9
10if (isFailedGlob('./*', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_'"'); end do; end if
11"./CMakeCache.txt"
12"./CMakeFiles"
13"./CMakeLists.txt"
14"./Makefile"
15"./build.sh"
16"./cmake_install.cmake"
17"./main.F90"
18"./main.exe"
19"./main.out.F90"
20"./temp"
21
22
23isFailedMakeDir('./temp')
24F
25if (isFailedGlob('./*???F90', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_'"'); end do; end if
26"./main.F90"
27"./main.out.F90"
28
29
30isFailedMakeDir('./temp')
31F
32if (isFailedGlob('./*.*', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_'"'); end do; end if
33"./CMakeCache.txt"
34"./CMakeLists.txt"
35"./build.sh"
36"./cmake_install.cmake"
37"./main.F90"
38"./main.exe"
39"./main.out.F90"
40
41
42if (isFailedGlob('../get*', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_'"'); end do; end if
43"../getBaseName"
44"../getDirCurrent"
45"../getDirHome"
46"../getDirName"
47"../getDirSep"
48"../getDirSeps"
49"../getExtName"
50"../getFileName"
51"../getIndexBaseName"
52"../getIndexDirName"
53"../getIndexExtName"
54"../getPathAbs"
55"../getPathExpandedUser"
56"../getPathHostNameIndex"
57"../getPathJoined"
58"../getPathMatch"
59"../getPathNew"
60"../getPathPosix"
61"../getPathPosixEscaped"
62"../getPathQuoted"
63"../getPathSep"
64"../getPathTemp"
65"../getPathVerbatim"
66"../getPathVerbatimCMD"
67"../getPathVerbatimFish"
68"../getPathVerbatimPosix"
69"../getPathVerbatimPowerShell"
70"../getPathWindows"
71
72
73if (isFailedGlob('../get*/*', list, index)) then; error stop; else; do i = 1, size(index,2); call disp%show(list(index(1,i):index(2,i)), deliml = SK_'"'); end do; end if
74"../getBaseName/CMakeCache.txt"
75"../getBaseName/CMakeFiles"
76"../getBaseName/CMakeLists.txt"
77"../getBaseName/Makefile"
78"../getBaseName/build.sh"
79"../getBaseName/cmake_install.cmake"
80"../getBaseName/main.F90"
81"../getBaseName/main.exe"
82"../getBaseName/main.out.F90"
83"../getDirCurrent/CMakeCache.txt"
84"../getDirCurrent/CMakeFiles"
85"../getDirCurrent/CMakeLists.txt"
86"../getDirCurrent/Makefile"
87"../getDirCurrent/build.sh"
88"../getDirCurrent/cmake_install.cmake"
89"../getDirCurrent/main.F90"
90"../getDirCurrent/main.exe"
91"../getDirCurrent/main.out.F90"
92"../getDirHome/CMakeCache.txt"
93"../getDirHome/CMakeFiles"
94"../getDirHome/CMakeLists.txt"
95"../getDirHome/Makefile"
96"../getDirHome/build.sh"
97"../getDirHome/cmake_install.cmake"
98"../getDirHome/main.F90"
99"../getDirHome/main.exe"
100"../getDirHome/main.out.F90"
101"../getDirName/CMakeCache.txt"
102"../getDirName/CMakeFiles"
103"../getDirName/CMakeLists.txt"
104"../getDirName/Makefile"
105"../getDirName/build.sh"
106"../getDirName/cmake_install.cmake"
107"../getDirName/main.F90"
108"../getDirName/main.exe"
109"../getDirName/main.out.F90"
110"../getDirSep/CMakeCache.txt"
111"../getDirSep/CMakeFiles"
112"../getDirSep/CMakeLists.txt"
113"../getDirSep/Makefile"
114"../getDirSep/build.sh"
115"../getDirSep/cmake_install.cmake"
116"../getDirSep/main.F90"
117"../getDirSep/main.exe"
118"../getDirSep/main.out.F90"
119"../getDirSeps/CMakeCache.txt"
120"../getDirSeps/CMakeFiles"
121"../getDirSeps/CMakeLists.txt"
122"../getDirSeps/Makefile"
123"../getDirSeps/build.sh"
124"../getDirSeps/cmake_install.cmake"
125"../getDirSeps/main.F90"
126"../getDirSeps/main.exe"
127"../getDirSeps/main.out.F90"
128"../getExtName/CMakeCache.txt"
129"../getExtName/CMakeFiles"
130"../getExtName/CMakeLists.txt"
131"../getExtName/Makefile"
132"../getExtName/build.sh"
133"../getExtName/cmake_install.cmake"
134"../getExtName/main.F90"
135"../getExtName/main.exe"
136"../getExtName/main.out.F90"
137"../getFileName/CMakeCache.txt"
138"../getFileName/CMakeFiles"
139"../getFileName/CMakeLists.txt"
140"../getFileName/Makefile"
141"../getFileName/build.sh"
142"../getFileName/cmake_install.cmake"
143"../getFileName/main.F90"
144"../getFileName/main.exe"
145"../getFileName/main.out.F90"
146"../getIndexBaseName/CMakeCache.txt"
147"../getIndexBaseName/CMakeFiles"
148"../getIndexBaseName/CMakeLists.txt"
149"../getIndexBaseName/Makefile"
150"../getIndexBaseName/build.sh"
151"../getIndexBaseName/cmake_install.cmake"
152"../getIndexBaseName/main.F90"
153"../getIndexBaseName/main.exe"
154"../getIndexBaseName/main.out.F90"
155"../getIndexDirName/CMakeCache.txt"
156"../getIndexDirName/CMakeFiles"
157"../getIndexDirName/CMakeLists.txt"
158"../getIndexDirName/Makefile"
159"../getIndexDirName/build.sh"
160"../getIndexDirName/cmake_install.cmake"
161"../getIndexDirName/main.F90"
162"../getIndexDirName/main.exe"
163"../getIndexDirName/main.out.F90"
164"../getIndexExtName/CMakeCache.txt"
165"../getIndexExtName/CMakeFiles"
166"../getIndexExtName/CMakeLists.txt"
167"../getIndexExtName/Makefile"
168"../getIndexExtName/build.sh"
169"../getIndexExtName/cmake_install.cmake"
170"../getIndexExtName/main.F90"
171"../getIndexExtName/main.exe"
172"../getIndexExtName/main.out.F90"
173"../getPathAbs/CMakeCache.txt"
174"../getPathAbs/CMakeFiles"
175"../getPathAbs/CMakeLists.txt"
176"../getPathAbs/Makefile"
177"../getPathAbs/build.sh"
178"../getPathAbs/cmake_install.cmake"
179"../getPathAbs/main.F90"
180"../getPathAbs/main.exe"
181"../getPathAbs/main.out.F90"
182"../getPathExpandedUser/CMakeCache.txt"
183"../getPathExpandedUser/CMakeFiles"
184"../getPathExpandedUser/CMakeLists.txt"
185"../getPathExpandedUser/Makefile"
186"../getPathExpandedUser/build.sh"
187"../getPathExpandedUser/cmake_install.cmake"
188"../getPathExpandedUser/main.F90"
189"../getPathExpandedUser/main.exe"
190"../getPathExpandedUser/main.out.F90"
191"../getPathHostNameIndex/CMakeCache.txt"
192"../getPathHostNameIndex/CMakeFiles"
193"../getPathHostNameIndex/CMakeLists.txt"
194"../getPathHostNameIndex/Makefile"
195"../getPathHostNameIndex/build.sh"
196"../getPathHostNameIndex/cmake_install.cmake"
197"../getPathHostNameIndex/main.F90"
198"../getPathHostNameIndex/main.exe"
199"../getPathHostNameIndex/main.out.F90"
200"../getPathJoined/CMakeCache.txt"
201"../getPathJoined/CMakeFiles"
202"../getPathJoined/CMakeLists.txt"
203"../getPathJoined/Makefile"
204"../getPathJoined/build.sh"
205"../getPathJoined/cmake_install.cmake"
206"../getPathJoined/main.F90"
207"../getPathJoined/main.exe"
208"../getPathJoined/main.out.F90"
209"../getPathMatch/CMakeCache.txt"
210"../getPathMatch/CMakeFiles"
211"../getPathMatch/CMakeLists.txt"
212"../getPathMatch/Makefile"
213"../getPathMatch/build.sh"
214"../getPathMatch/cmake_install.cmake"
215"../getPathMatch/main.F90"
216"../getPathMatch/main.exe"
217"../getPathMatch/main.out.F90"
218"../getPathNew/CMakeCache.txt"
219"../getPathNew/CMakeFiles"
220"../getPathNew/CMakeLists.txt"
221"../getPathNew/Makefile"
222"../getPathNew/build.sh"
223"../getPathNew/cmake_install.cmake"
224"../getPathNew/main.F90"
225"../getPathNew/main.exe"
226"../getPathNew/main.out.F90"
227"../getPathPosix/CMakeCache.txt"
228"../getPathPosix/CMakeFiles"
229"../getPathPosix/CMakeLists.txt"
230"../getPathPosix/Makefile"
231"../getPathPosix/build.sh"
232"../getPathPosix/cmake_install.cmake"
233"../getPathPosix/main.F90"
234"../getPathPosix/main.exe"
235"../getPathPosix/main.out.F90"
236"../getPathPosixEscaped/CMakeCache.txt"
237"../getPathPosixEscaped/CMakeFiles"
238"../getPathPosixEscaped/CMakeLists.txt"
239"../getPathPosixEscaped/Makefile"
240"../getPathPosixEscaped/build.sh"
241"../getPathPosixEscaped/cmake_install.cmake"
242"../getPathPosixEscaped/main.F90"
243"../getPathPosixEscaped/main.exe"
244"../getPathPosixEscaped/main.out.F90"
245"../getPathQuoted/CMakeCache.txt"
246"../getPathQuoted/CMakeFiles"
247"../getPathQuoted/CMakeLists.txt"
248"../getPathQuoted/Makefile"
249"../getPathQuoted/build.sh"
250"../getPathQuoted/cmake_install.cmake"
251"../getPathQuoted/main.F90"
252"../getPathQuoted/main.exe"
253"../getPathQuoted/main.out.F90"
254"../getPathSep/CMakeCache.txt"
255"../getPathSep/CMakeFiles"
256"../getPathSep/CMakeLists.txt"
257"../getPathSep/Makefile"
258"../getPathSep/build.sh"
259"../getPathSep/cmake_install.cmake"
260"../getPathSep/main.F90"
261"../getPathSep/main.exe"
262"../getPathSep/main.out.F90"
263"../getPathTemp/CMakeCache.txt"
264"../getPathTemp/CMakeFiles"
265"../getPathTemp/CMakeLists.txt"
266"../getPathTemp/Makefile"
267"../getPathTemp/build.sh"
268"../getPathTemp/cmake_install.cmake"
269"../getPathTemp/main.F90"
270"../getPathTemp/main.exe"
271"../getPathTemp/main.out.F90"
272"../getPathVerbatim/CMakeCache.txt"
273"../getPathVerbatim/CMakeFiles"
274"../getPathVerbatim/CMakeLists.txt"
275"../getPathVerbatim/Makefile"
276"../getPathVerbatim/build.sh"
277"../getPathVerbatim/cmake_install.cmake"
278"../getPathVerbatim/main.F90"
279"../getPathVerbatim/main.exe"
280"../getPathVerbatim/main.out.F90"
281"../getPathVerbatimCMD/CMakeCache.txt"
282"../getPathVerbatimCMD/CMakeFiles"
283"../getPathVerbatimCMD/CMakeLists.txt"
284"../getPathVerbatimCMD/Makefile"
285"../getPathVerbatimCMD/build.sh"
286"../getPathVerbatimCMD/cmake_install.cmake"
287"../getPathVerbatimCMD/main.F90"
288"../getPathVerbatimCMD/main.exe"
289"../getPathVerbatimCMD/main.out.F90"
290"../getPathVerbatimFish/CMakeCache.txt"
291"../getPathVerbatimFish/CMakeFiles"
292"../getPathVerbatimFish/CMakeLists.txt"
293"../getPathVerbatimFish/Makefile"
294"../getPathVerbatimFish/build.sh"
295"../getPathVerbatimFish/cmake_install.cmake"
296"../getPathVerbatimFish/main.F90"
297"../getPathVerbatimFish/main.exe"
298"../getPathVerbatimFish/main.out.F90"
299"../getPathVerbatimPosix/CMakeCache.txt"
300"../getPathVerbatimPosix/CMakeFiles"
301"../getPathVerbatimPosix/CMakeLists.txt"
302"../getPathVerbatimPosix/Makefile"
303"../getPathVerbatimPosix/build.sh"
304"../getPathVerbatimPosix/cmake_install.cmake"
305"../getPathVerbatimPosix/main.F90"
306"../getPathVerbatimPosix/main.exe"
307"../getPathVerbatimPosix/main.out.F90"
308"../getPathVerbatimPowerShell/CMakeCache.txt"
309"../getPathVerbatimPowerShell/CMakeFiles"
310"../getPathVerbatimPowerShell/CMakeLists.txt"
311"../getPathVerbatimPowerShell/Makefile"
312"../getPathVerbatimPowerShell/build.sh"
313"../getPathVerbatimPowerShell/cmake_install.cmake"
314"../getPathVerbatimPowerShell/main.F90"
315"../getPathVerbatimPowerShell/main.exe"
316"../getPathVerbatimPowerShell/main.out.F90"
317"../getPathWindows/CMakeCache.txt"
318"../getPathWindows/CMakeFiles"
319"../getPathWindows/CMakeLists.txt"
320"../getPathWindows/Makefile"
321"../getPathWindows/build.sh"
322"../getPathWindows/cmake_install.cmake"
323"../getPathWindows/main.F90"
324"../getPathWindows/main.exe"
325"../getPathWindows/main.out.F90"
326
327
Test:
test_pm_sysPath
Todo:
High Priority: The current Fortran standard 202x does not allow passing characters of non-default kind to the intrinsic Fortran statements and procedures.
As such, the implementation of the procedures of this generic interface for non-default character kinds leads to compile-time kind mismatch errors.
This procedure should be converted back to a generic interface in the future when non-default character kinds are also fully supported by the intrinsic functions.
Todo:
High Priority: The current implementation of this generic interface recognizes only the two most popular wildcards ? and * for globing.
This must be expanded to other widely accepted wildcards (e.g., linux wildcards) or at least the wildcards supported on the respective platforms.
Todo:
High Priority: The current implementation of this generic interface relies on access to supported runtime shells.
If the runtime shell is unrecognized, the algorithm falls back to bash if the shell is detected on the system, otherwise, the procedure fails.
This should be fixed by changing the approach to rely instead on scandir() and fnmatch() popular interfaces for cross-platform globing.


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.

  1. If you use any parts or concepts from this library to any extent, please acknowledge the usage by citing the relevant publications of the ParaMonte library.
  2. If you regenerate any parts/ideas from this library in a programming environment other than those currently supported by this ParaMonte library (i.e., other than C, C++, Fortran, MATLAB, Python, R), please also ask the end users to cite this original ParaMonte library.

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.

Author:
Amir Shahmoradi, Tuesday March 7, 2017, 7:03 AM, Institute for Computational Engineering and Sciences (ICES), The University of Texas Austin

Definition at line 1104 of file pm_sysPath.F90.


The documentation for this interface was generated from the following file: