diff --git a/repository/Grafoscopio-Utils/GrafoscopioDocumentation.class.st b/repository/Grafoscopio-Utils/GrafoscopioDocumentation.class.st index 732f0e7..5eadaf0 100644 --- a/repository/Grafoscopio-Utils/GrafoscopioDocumentation.class.st +++ b/repository/Grafoscopio-Utils/GrafoscopioDocumentation.class.st @@ -81,12 +81,14 @@ GrafoscopioDocumentation >> documents: anObject [ { #category : #updating } GrafoscopioDocumentation >> download: fileNameWithRelativePath [ - | fileName parentFolder | + | fileName parentFolder sanitized lastVersion | fileName := (fileNameWithRelativePath splitOn: $/) last. + sanitized := self repository sanitize: fileNameWithRelativePath. + lastVersion := self repository lastVersionPath: fileNameWithRelativePath. parentFolder := GrafoscopioUtils - ensureCreateDirectory: fileNameWithRelativePath into: self localPlace. + ensureCreateDirectory: sanitized into: self localPlace. GrafoscopioUtils - downloadingFrom: self repository remote asString, '/doc/tip/', fileNameWithRelativePath + downloadingFrom: self repository remote asString, lastVersion withMessage: 'Downloading ', fileName into: parentFolder ]