We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f33e46a commit 3debb1fCopy full SHA for 3debb1f
example/system/CMakeLists.txt
@@ -1,4 +1,5 @@
1
ADD_EXAMPLE(get_runtime_os)
2
+ADD_EXAMPLE(is_directory)
3
ADD_EXAMPLE(os_type)
4
ADD_EXAMPLE(process_1)
5
ADD_EXAMPLE(process_2)
example/system/example_is_directory.f90
@@ -0,0 +1,11 @@
+! Demonstrate usage of `is_directory`
+program example_is_directory
+ use stdlib_system, only: is_directory
+ implicit none
+ ! Test a directory path
6
+ if (is_directory("/path/to/check")) then
7
+ print *, "The specified path is a directory."
8
+ else
9
+ print *, "The specified path is not a directory."
10
+ end if
11
+end program example_is_directory
0 commit comments