[squeak-dev] ANN Rio now supports ftp

Keith Hodges keith_hodges at yahoo.co.uk
Fri Nov 7 04:18:16 UTC 2008


*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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20081107/1e148539/attachment.htm


More information about the Squeak-dev mailing list