[squeak-dev] Setting a external FTP

Edgar J. De Cleene edgardec2005 at gmail.com
Fri Oct 5 12:58:15 UTC 2012


>     In the FileBrowser tool , if you click in Add server you could do some
> like.
> 
> "Please fill in the following info, then select all text and choose DoIt."
> 
>     | aa | 
>     self flag: #ViolateNonReferenceToOtherClasses.
>     aa := ServerDirectory new.
>     aa server: 'squeakros.org'.    "host"
>     aa user: 'xxxx'.
>     aa password: 'xxxx'.
>     aa directory: '/squeakros.org'.
>     aa url: ''.    "<- this is optional.  Only used when *writing* update
> files."
>     ServerDirectory addServer: aa named: 'SqueakRos'.  "<- known by this name
> in Squeak"
> 
> In the attached I add the missing method.
> Nice to have how manage a external ftp from inside image, so I share for any
> which needs.
> 
> Edgar


Just send this to Pharo list.
To my surprise, this once works in Squeak , in fact the missing is Squeak
fileOut and fileIn in Pharo.

Now you have weird things with the ServerDirectory and the FileList tool.

Any have some clues ?

Edgar

-------------- next part --------------
'From SqueakRos4dot4 of 7 May 2012 [latest update: #11986] on 5 October 2012 at 9:43:09 am'!

!ServerDirectory class methodsFor: 'available servers' stamp: 'mir 6/26/2001 09:46'!
addServer: server named: nameString
	self servers at: nameString put: server! !


More information about the Squeak-dev mailing list