From 4d69b562d851d12dd2a4aa7582e8a351ef47ef78 Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Thu, 3 Jan 2019 11:52:45 +0000 Subject: [PATCH] Sync. after long time without working on Brea. --- repository/Brea/BreaWebsite.class.st | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 }