File system access in Squeak
Karl
karl.ramberg at comhem.se
Tue Apr 17 17:34:09 UTC 2007
Navodit Kaushik wrote:
> Hi
>
> Can anyone suggest a good package for file system access? Someone
> suggested Rio but I am not sure how to install it as it does not show
> up in the Package loader...
>
> I want to be able to work with the files on a ftp server and am not
> sure what to use for this. If possible an example script to connect to
> a ftp server and work with the files therein would be really helpful.
> Thanks
For basic ftp, FileList can do that.
Edit this info in a Workspace , your ftp should show up in the FileList:
"Please fill in the following info, then select all text and choose DoIt."
| aa |
self flag: #ViolateNonReferenceToOtherClasses.
aa _ ServerDirectory new.
aa server: 'st.cs.uiuc.edu'. "host"
aa user: 'anonymous'.
aa password: 'yourEmail at school.edu'.
aa directory: '/Smalltalk/Squeak/Goodies'.
aa url: ''. "<- this is optional. Only used when *writing*
update files."
ServerDirectory addServer: aa named: 'UIUCArchive'. "<- known by
this name in Squeak"
Karl
More information about the Squeak-dev
mailing list
|