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