aboutsummaryrefslogtreecommitdiff
path: root/common/utilities.F90
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeff@approximatrix.com>2025-01-08 15:10:26 -0500
committerJeffrey Armstrong <jeff@approximatrix.com>2025-01-08 15:10:26 -0500
commitb6ffad8161ac358644d141e5ba74c90d62d5d26f (patch)
treeb6b4bfe457cca1d307759b66318f751d54bad927 /common/utilities.F90
parent25cb74305d76e1e2aaa02c07d8027072d84bca6d (diff)
downloadlevitating-b6ffad8161ac358644d141e5ba74c90d62d5d26f.tar.gz
levitating-b6ffad8161ac358644d141e5ba74c90d62d5d26f.zip
Fixed directory listing when directory contains a spaceHEADmaster
Diffstat (limited to 'common/utilities.F90')
-rw-r--r--common/utilities.F9012
1 files changed, 6 insertions, 6 deletions
diff --git a/common/utilities.F90 b/common/utilities.F90
index c091c6e..3b51ac9 100644
--- a/common/utilities.F90
+++ b/common/utilities.F90
@@ -391,10 +391,10 @@ contains
res => null()
#ifdef WINDOWS
- call execute_command_line("dir /b/ad-h"//trim(directory)//" > "//trim(tempfile), &
+ call execute_command_line('dir /b/ad-h "'//trim(directory)//" > "//trim(tempfile), &
wait=.true.)
#else
- call execute_command_line("ls -l "//trim(directory)//" > "//trim(tempfile), &
+ call execute_command_line('ls -l "'//trim(directory)//'" > '//trim(tempfile), &
wait=.true.)
#endif
@@ -430,7 +430,7 @@ contains
! Windows is all set, don't call anything
#ifndef WINDOWS
! Now call ls, but group directories first
- call execute_command_line("ls --group-directories-first "//trim(directory)//" > "//trim(tempfile), &
+ call execute_command_line('ls --group-directories-first "'//trim(directory)//'" > '//trim(tempfile), &
wait=.true.)
#endif
@@ -469,10 +469,10 @@ contains
skip_first = .FALSE.
#ifdef WINDOWS
- call execute_command_line("dir /b/a-d-h "//trim(directory)//" > "//trim(tempfile), &
+ call execute_command_line('dir /b/a-d-h "'//trim(directory)//'" > '//trim(tempfile), &
wait=.true.)
#else
- call execute_command_line("ls -l "//trim(directory)//" > "//trim(tempfile), &
+ call execute_command_line('ls -l "'//trim(directory)//'" > '//trim(tempfile), &
wait=.true.)
#endif
@@ -500,7 +500,7 @@ contains
n = count(is_real_file)
close(unum)
- call execute_command_line("ls "//trim(directory)//" > "//trim(tempfile), &
+ call execute_command_line('ls "'//trim(directory)//'" > '//trim(tempfile), &
wait=.true.)
open(newunit=unum, file=tempfile, action='read')