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:
parent
435afaa0f9
commit
a016c66c0a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user