Skip to content

Commit

Permalink
Fix: use mkpath instead of mkdir so intermediary dirs are made if not…
Browse files Browse the repository at this point in the history
… present
  • Loading branch information
yhkaplan committed Aug 4, 2020
1 parent dc31779 commit e76a827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ScaffoldKit/FileWriter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ struct FileWriter: FileWritable {
let outputDirectory = Path(file.outputPath)

if !outputDirectory.exists { // Make dir if it does not exist
try outputDirectory.mkdir()
try outputDirectory.mkpath()
}

let fullPath = outputDirectory + Path(file.fileName)
Expand Down

0 comments on commit e76a827

Please sign in to comment.