Check if image exist before download it
This commit is contained in:
parent
375c3f201b
commit
8796e71adc
|
@ -339,9 +339,10 @@ GrafoscopioNode >> downloadImagesInto: folder [
|
|||
path:= path , '/' , eachDirectory .
|
||||
(folder / path) ensureCreateDirectory ].
|
||||
localFolder := (folder / each directory).
|
||||
ZnClient new
|
||||
url: each ;
|
||||
downloadTo: localFolder . ]
|
||||
(localFolder / each lastPathSegment) exists ifFalse: [
|
||||
ZnClient new
|
||||
url: each ;
|
||||
downloadTo: localFolder . ]]
|
||||
]
|
||||
|
||||
{ #category : #'custom markup' }
|
||||
|
|
Loading…
Reference in New Issue