Again, implementing dumb deletion of temporal files. La tercera es la vencida!

This commit is contained in:
Offray Vladimir Luna Cárdenas 2016-10-01 20:56:51 +00:00
parent 5c98c327c3
commit 052d8523c7
1 changed files with 3 additions and 1 deletions

View File

@ -129,7 +129,9 @@ 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