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
21
22isFailedMakeDir('./temp')
23F
24if (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
25"./main.F90"
26"./main.out.F90"
27
28
29isFailedMakeDir('./temp')
30F
31if (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
32"./CMakeCache.txt"
33"./CMakeLists.txt"
34"./build.sh"
35"./cmake_install.cmake"
36"./main.F90"
37"./main.exe"
38"./main.out.F90"
39
40
41if (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
42"../getBaseName"
43"../getDirCurrent"
44"../getDirHome"
45"../getDirName"
46"../getDirSep"
47"../getDirSeps"
48"../getExtName"
49"../getFileName"
50"../getIndexBaseName"
51"../getIndexDirName"
52"../getIndexExtName"
53"../getPathAbs"
54"../getPathExpandedUser"
55"../getPathHostNameIndex"
56"../getPathJoined"
57"../getPathMatch"
58"../getPathNew"
59"../getPathPosix"
60"../getPathPosixEscaped"
61"../getPathQuoted"
62"../getPathSep"
63"../getPathTemp"
64"../getPathVerbatim"
65"../getPathVerbatimCMD"
66"../getPathVerbatimFish"
67"../getPathVerbatimPosix"
68"../getPathVerbatimPowerShell"
69"../getPathWindows"
70
71
72if (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
73"../getBaseName/CMakeCache.txt"
74"../getBaseName/CMakeFiles"
75"../getBaseName/CMakeLists.txt"
76"../getBaseName/Makefile"
77"../getBaseName/build.sh"
78"../getBaseName/cmake_install.cmake"
79"../getBaseName/main.F90"
80"../getBaseName/main.exe"
81"../getBaseName/main.out.F90"
82"../getDirCurrent/CMakeCache.txt"
83"../getDirCurrent/CMakeFiles"
84"../getDirCurrent/CMakeLists.txt"
85"../getDirCurrent/Makefile"
86"../getDirCurrent/build.sh"
87"../getDirCurrent/cmake_install.cmake"
88"../getDirCurrent/main.F90"
89"../getDirCurrent/main.exe"
90"../getDirCurrent/main.out.F90"
91"../getDirHome/CMakeCache.txt"
92"../getDirHome/CMakeFiles"
93"../getDirHome/CMakeLists.txt"
94"../getDirHome/Makefile"
95"../getDirHome/build.sh"
96"../getDirHome/cmake_install.cmake"
97"../getDirHome/main.F90"
98"../getDirHome/main.exe"
99"../getDirHome/main.out.F90"
100"../getDirName/CMakeCache.txt"
101"../getDirName/CMakeFiles"
102"../getDirName/CMakeLists.txt"
103"../getDirName/Makefile"
104"../getDirName/build.sh"
105"../getDirName/cmake_install.cmake"
106"../getDirName/main.F90"
107"../getDirName/main.exe"
108"../getDirName/main.out.F90"
109"../getDirSep/CMakeCache.txt"
110"../getDirSep/CMakeFiles"
111"../getDirSep/CMakeLists.txt"
112"../getDirSep/Makefile"
113"../getDirSep/build.sh"
114"../getDirSep/cmake_install.cmake"
115"../getDirSep/main.F90"
116"../getDirSep/main.exe"
117"../getDirSep/main.out.F90"
118"../getDirSeps/CMakeCache.txt"
119"../getDirSeps/CMakeFiles"
120"../getDirSeps/CMakeLists.txt"
121"../getDirSeps/Makefile"
122"../getDirSeps/build.sh"
123"../getDirSeps/cmake_install.cmake"
124"../getDirSeps/main.F90"
125"../getDirSeps/main.exe"
126"../getDirSeps/main.out.F90"
127"../getExtName/CMakeCache.txt"
128"../getExtName/CMakeFiles"
129"../getExtName/CMakeLists.txt"
130"../getExtName/Makefile"
131"../getExtName/build.sh"
132"../getExtName/cmake_install.cmake"
133"../getExtName/main.F90"
134"../getExtName/main.exe"
135"../getExtName/main.out.F90"
136"../getFileName/CMakeCache.txt"
137"../getFileName/CMakeFiles"
138"../getFileName/CMakeLists.txt"
139"../getFileName/Makefile"
140"../getFileName/build.sh"
141"../getFileName/cmake_install.cmake"
142"../getFileName/main.F90"
143"../getFileName/main.exe"
144"../getFileName/main.out.F90"
145"../getIndexBaseName/CMakeCache.txt"
146"../getIndexBaseName/CMakeFiles"
147"../getIndexBaseName/CMakeLists.txt"
148"../getIndexBaseName/Makefile"
149"../getIndexBaseName/build.sh"
150"../getIndexBaseName/cmake_install.cmake"
151"../getIndexBaseName/main.F90"
152"../getIndexBaseName/main.exe"
153"../getIndexBaseName/main.out.F90"
154"../getIndexDirName/CMakeCache.txt"
155"../getIndexDirName/CMakeFiles"
156"../getIndexDirName/CMakeLists.txt"
157"../getIndexDirName/Makefile"
158"../getIndexDirName/build.sh"
159"../getIndexDirName/cmake_install.cmake"
160"../getIndexDirName/main.F90"
161"../getIndexDirName/main.exe"
162"../getIndexDirName/main.out.F90"
163"../getIndexExtName/CMakeCache.txt"
164"../getIndexExtName/CMakeFiles"
165"../getIndexExtName/CMakeLists.txt"
166"../getIndexExtName/Makefile"
167"../getIndexExtName/build.sh"
168"../getIndexExtName/cmake_install.cmake"
169"../getIndexExtName/main.F90"
170"../getIndexExtName/main.exe"
171"../getIndexExtName/main.out.F90"
172"../getPathAbs/CMakeCache.txt"
173"../getPathAbs/CMakeFiles"
174"../getPathAbs/CMakeLists.txt"
175"../getPathAbs/Makefile"
176"../getPathAbs/build.sh"
177"../getPathAbs/cmake_install.cmake"
178"../getPathAbs/main.F90"
179"../getPathAbs/main.exe"
180"../getPathAbs/main.out.F90"
181"../getPathExpandedUser/CMakeCache.txt"
182"../getPathExpandedUser/CMakeFiles"
183"../getPathExpandedUser/CMakeLists.txt"
184"../getPathExpandedUser/Makefile"
185"../getPathExpandedUser/build.sh"
186"../getPathExpandedUser/cmake_install.cmake"
187"../getPathExpandedUser/main.F90"
188"../getPathExpandedUser/main.exe"
189"../getPathExpandedUser/main.out.F90"
190"../getPathHostNameIndex/CMakeCache.txt"
191"../getPathHostNameIndex/CMakeFiles"
192"../getPathHostNameIndex/CMakeLists.txt"
193"../getPathHostNameIndex/Makefile"
194"../getPathHostNameIndex/build.sh"
195"../getPathHostNameIndex/cmake_install.cmake"
196"../getPathHostNameIndex/main.F90"
197"../getPathHostNameIndex/main.exe"
198"../getPathHostNameIndex/main.out.F90"
199"../getPathJoined/CMakeCache.txt"
200"../getPathJoined/CMakeFiles"
201"../getPathJoined/CMakeLists.txt"
202"../getPathJoined/Makefile"
203"../getPathJoined/build.sh"
204"../getPathJoined/cmake_install.cmake"
205"../getPathJoined/main.F90"
206"../getPathJoined/main.exe"
207"../getPathJoined/main.out.F90"
208"../getPathMatch/CMakeCache.txt"
209"../getPathMatch/CMakeFiles"
210"../getPathMatch/CMakeLists.txt"
211"../getPathMatch/Makefile"
212"../getPathMatch/build.sh"
213"../getPathMatch/cmake_install.cmake"
214"../getPathMatch/main.F90"
215"../getPathMatch/main.exe"
216"../getPathMatch/main.out.F90"
217"../getPathNew/CMakeCache.txt"
218"../getPathNew/CMakeFiles"
219"../getPathNew/CMakeLists.txt"
220"../getPathNew/Makefile"
221"../getPathNew/build.sh"
222"../getPathNew/cmake_install.cmake"
223"../getPathNew/main.F90"
224"../getPathNew/main.exe"
225"../getPathNew/main.out.F90"
226"../getPathPosix/CMakeCache.txt"
227"../getPathPosix/CMakeFiles"
228"../getPathPosix/CMakeLists.txt"
229"../getPathPosix/Makefile"
230"../getPathPosix/build.sh"
231"../getPathPosix/cmake_install.cmake"
232"../getPathPosix/main.F90"
233"../getPathPosix/main.exe"
234"../getPathPosix/main.out.F90"
235"../getPathPosixEscaped/CMakeCache.txt"
236"../getPathPosixEscaped/CMakeFiles"
237"../getPathPosixEscaped/CMakeLists.txt"
238"../getPathPosixEscaped/Makefile"
239"../getPathPosixEscaped/build.sh"
240"../getPathPosixEscaped/cmake_install.cmake"
241"../getPathPosixEscaped/main.F90"
242"../getPathPosixEscaped/main.exe"
243"../getPathPosixEscaped/main.out.F90"
244"../getPathQuoted/CMakeCache.txt"
245"../getPathQuoted/CMakeFiles"
246"../getPathQuoted/CMakeLists.txt"
247"../getPathQuoted/Makefile"
248"../getPathQuoted/build.sh"
249"../getPathQuoted/cmake_install.cmake"
250"../getPathQuoted/main.F90"
251"../getPathQuoted/main.exe"
252"../getPathQuoted/main.out.F90"
253"../getPathSep/CMakeCache.txt"
254"../getPathSep/CMakeFiles"
255"../getPathSep/CMakeLists.txt"
256"../getPathSep/Makefile"
257"../getPathSep/build.sh"
258"../getPathSep/cmake_install.cmake"
259"../getPathSep/main.F90"
260"../getPathSep/main.exe"
261"../getPathSep/main.out.F90"
262"../getPathTemp/CMakeCache.txt"
263"../getPathTemp/CMakeFiles"
264"../getPathTemp/CMakeLists.txt"
265"../getPathTemp/Makefile"
266"../getPathTemp/build.sh"
267"../getPathTemp/cmake_install.cmake"
268"../getPathTemp/main.F90"
269"../getPathTemp/main.exe"
270"../getPathTemp/main.out.F90"
271"../getPathVerbatim/CMakeCache.txt"
272"../getPathVerbatim/CMakeFiles"
273"../getPathVerbatim/CMakeLists.txt"
274"../getPathVerbatim/Makefile"
275"../getPathVerbatim/build.sh"
276"../getPathVerbatim/cmake_install.cmake"
277"../getPathVerbatim/main.F90"
278"../getPathVerbatim/main.exe"
279"../getPathVerbatim/main.out.F90"
280"../getPathVerbatimCMD/CMakeCache.txt"
281"../getPathVerbatimCMD/CMakeFiles"
282"../getPathVerbatimCMD/CMakeLists.txt"
283"../getPathVerbatimCMD/Makefile"
284"../getPathVerbatimCMD/build.sh"
285"../getPathVerbatimCMD/cmake_install.cmake"
286"../getPathVerbatimCMD/main.F90"
287"../getPathVerbatimCMD/main.exe"
288"../getPathVerbatimCMD/main.out.F90"
289"../getPathVerbatimFish/CMakeCache.txt"
290"../getPathVerbatimFish/CMakeFiles"
291"../getPathVerbatimFish/CMakeLists.txt"
292"../getPathVerbatimFish/Makefile"
293"../getPathVerbatimFish/build.sh"
294"../getPathVerbatimFish/cmake_install.cmake"
295"../getPathVerbatimFish/main.F90"
296"../getPathVerbatimFish/main.exe"
297"../getPathVerbatimFish/main.out.F90"
298"../getPathVerbatimPosix/CMakeCache.txt"
299"../getPathVerbatimPosix/CMakeFiles"
300"../getPathVerbatimPosix/CMakeLists.txt"
301"../getPathVerbatimPosix/Makefile"
302"../getPathVerbatimPosix/build.sh"
303"../getPathVerbatimPosix/cmake_install.cmake"
304"../getPathVerbatimPosix/main.F90"
305"../getPathVerbatimPosix/main.exe"
306"../getPathVerbatimPosix/main.out.F90"
307"../getPathVerbatimPowerShell/CMakeCache.txt"
308"../getPathVerbatimPowerShell/CMakeFiles"
309"../getPathVerbatimPowerShell/CMakeLists.txt"
310"../getPathVerbatimPowerShell/Makefile"
311"../getPathVerbatimPowerShell/build.sh"
312"../getPathVerbatimPowerShell/cmake_install.cmake"
313"../getPathVerbatimPowerShell/main.F90"
314"../getPathVerbatimPowerShell/main.exe"
315"../getPathVerbatimPowerShell/main.out.F90"
316"../getPathWindows/CMakeCache.txt"
317"../getPathWindows/CMakeFiles"
318"../getPathWindows/CMakeLists.txt"
319"../getPathWindows/Makefile"
320"../getPathWindows/build.sh"
321"../getPathWindows/cmake_install.cmake"
322"../getPathWindows/main.F90"
323"../getPathWindows/main.exe"
324"../getPathWindows/main.out.F90"
325
326
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: