[Pharo-project] Re: [squeak-dev] ANN Rio now supports ftp

Keith Hodges keith_hodges at yahoo.co.uk
Mon Nov 10 14:36:50 EST 2008


Rio has now been refactored so as to be cleaner and to avoid any such
tricks as doesNotUnderstand:

best regards

Keith

> *News:*
>
> Rio has finally made it to (roughly) where it was planned to be all along.
> File manipulations that work locally should now also work remotely.
>
> e.g.
>
> dir := 'ftp://squeak:viewpoints@squeak.warwick.st/test/test/test'
> asRio mkpath.
> file := dir / 'hello.txt' contents: 'hello world'.
>
> next := file rename nextVersion.
> next name.                    {  hello.1.txt }
> next fileSize.                 {11}
>
> next copyTo: 'local.txt'
>
> *Limitations:*
>
> Although you can obtain read or writeStreams directly into the remote
> file, it is not random access (yet?)
> therefore you cant currently write directly to the write stream of a
> remote gzip file (which you can do locally)
>
> *More Info:*
>
> http://wiki.squeak.org/squeak/5929
>
> cheers
>
> Keith
> ------------------------------------------------------------------------
>
>
>   





More information about the Pharo-dev mailing list