On 21 Dec 2018, at 21:55, Stephane Ducasse <stepharo.self@gmail.com> wrote:
Tx This is strange since I looked for download and the system did not show it to me.
Stef
Open Spotter, type 'download', click implementors, look at the end or filter on 'Zn'. The #saveContentsToFile: is used in snippet number 18 of Elegant Pharo Code, https://medium.com/concerning-pharo/elegant-pharo-code-bb590f0856d0 (already from 2014).
On Fri, Dec 21, 2018 at 9:55 AM Sven Van Caekenberghe <sven@stfx.eu> wrote:
On 21 Dec 2018, at 05:25, Jimmie Houchin <jlhouchin@gmail.com> wrote:
On 12/20/18 1:59 PM, Stephane Ducasse wrote:
Hi Sven
I would like download files (pdf) with Zinc (not opening them in Pharo). I wonder how I can do it with zinc.
Tx
'http://files.pharo.org/books-pdfs/learning-oop/2018-04-01-LearningOOP.pdf' asZnUrl saveContentsToFile: '/mypath/mydir/learning-oop.pdf'
Should get you going.
Jimmie
There is also ZnClient>>#downloadTo:
ZnClient new url: ''; downloadTo: ''.
Read the comment