Skip to content

Commit 98de737

Browse files
committed
Create temp dir
1 parent c4afc51 commit 98de737

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/stdlib_io_zip.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module stdlib_io_zip
22
use stdlib_filesystem, only: exists, run, temp_dir
33
use stdlib_string_type, only: string_type, char
4+
use stdlib_strings, only: starts_with
45
implicit none
56
private
67

@@ -84,7 +85,7 @@ subroutine unzip(filename, outputdir, stat, msg)
8485
return
8586
end if
8687

87-
if (.not. present(outputdir) .and. .not. exists(temp_dir)) then
88+
if (starts_with(output_dir, temp_dir) .and. .not. exists(temp_dir)) then
8889
call run('mkdir '//temp_dir, run_stat)
8990
if (run_stat /= 0) then
9091
if (present(stat)) stat = run_stat

0 commit comments

Comments
 (0)