Deleting files from the temporal location before downloading new copies there. WARNING: Dumb method! it should be improve to verify if deletion has sense.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2016-09-30 20:06:30 +00:00
parent 435afaa0f9
commit a016c66c0a
1 changed files with 4 additions and 0 deletions

View File

@ -130,6 +130,10 @@ GrafoscopioGUI class >> dockingBar: anObject [
{ #category : #'graphical interface' }
GrafoscopioGUI class >> downloadingFrom: downloadUrl withMessage: aString into: location [
| fileName |
fileName := (downloadUrl splitOn: $/) last.
(location / fileName) exists ifTrue: [ (location / fileName) ensureDelete ].
[: bar |
bar title: aString.
[ZnClient new