Skip to content

Commit

Permalink
ensure target directories are created
Browse files Browse the repository at this point in the history
  • Loading branch information
demarey committed May 15, 2024
1 parent 0b1a596 commit 34c6fee
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Microdown-Agenda/MicAgendaGenerator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ MicAgendaGenerator >> build: scheduleFileRef [
self logGenerationStart.
file := Microdown parse: self scheduleFile contents.
outputFile := self outputFile.
self outputDir ensureCreateDirectory.
self ensureOutputFileParentCreated: outputFile.
outputFile ensureDelete.
self visit: file.
outputFile writeStreamDo: [ :stream | stream nextPutAll: self contents ].
Expand Down Expand Up @@ -116,6 +116,16 @@ MicAgendaGenerator >> dayTalksTemplate [
^ self templatesDir / 'dayTalks.mustache'
]

{ #category : #building }
MicAgendaGenerator >> ensureOutputFileParentCreated: aFileReference [

self outputDir ensureCreateDirectory.
aFileReference parent exists ifTrue: [ ^ self ].

self ensureOutputFileParentCreated: aFileReference parent.
aFileReference parent ensureCreateDirectory
]

{ #category : #private }
MicAgendaGenerator >> gitRepositoryDir [

Expand Down

0 comments on commit 34c6fee

Please sign in to comment.