diff --git a/repository/Brea/BreaWebsite.class.st b/repository/Brea/BreaWebsite.class.st index 1d9f00d..fa187c2 100644 --- a/repository/Brea/BreaWebsite.class.st +++ b/repository/Brea/BreaWebsite.class.st @@ -103,9 +103,10 @@ BreaWebsite >> downloadTemplate [ { #category : #utility } BreaWebsite >> downloadTemplateNamed: aName Into: aDirectory [ "aName: String aDirectory: aFileLocation" - | remoteUrl templatesFile | - aDirectory ensureDeleteAll. - aDirectory ensureCreateDirectory. + | remoteUrl templatesFile localDirectory | + localDirectory := aDirectory asFileReference. + localDirectory ensureDeleteAll. + localDirectory ensureCreateDirectory. remoteUrl := self class templates at: aName. GrafoscopioUtils downloadingFrom: remoteUrl @@ -114,7 +115,7 @@ BreaWebsite >> downloadTemplateNamed: aName Into: aDirectory [ templatesFile := FileLocator temp asFileReference / (remoteUrl splitOn: '/') last. ZipArchive new readFrom: templatesFile; - extractAllTo: aDirectory + extractAllTo: localDirectory ] { #category : #accessing }