Skip to content

Commit

Permalink
Create the parent directory when output file is specified.
Browse files Browse the repository at this point in the history
Signed-off-by: Aravinda Vishwanathapura <[email protected]>
  • Loading branch information
aravindavk committed Mar 1, 2023
1 parent 4bb8b45 commit 1de4474
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.cr
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@ volfile = if args.options_file == ""
if args.output_file == ""
puts volfile
else
Dir.mkdir_p(Path[args.output_file].parent)
File.write(args.output_file, volfile)
end

0 comments on commit 1de4474

Please sign in to comment.