Implementing management of unversioned files.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2019-04-08 20:37:40 +00:00
parent b3c77bc208
commit 8b8bc188a6
1 changed files with 5 additions and 3 deletions

View File

@ -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
]