[Newbies] reading and writing files on remote ServerDirectory

Navodit Kaushik navoditk at yahoo.co.in
Sat Apr 14 12:46:09 UTC 2007


Navodit Kaushik <navoditk at yahoo.co.in> wrote:
    Hi
   
  I have set up a webserver on a machine using Komanche with the following code:
   
  | ma |
ma := ModuleAssembly core.
ma serverRoot: FileDirectory default fullName.
ma documentRoot: FileDirectory default fullName.
ma directoryIndex: 'index.html index.htm'.
ma serveFiles.
(HttpService startOn: 8080 named: 'httpd') plug: ma rootModule
   
  So now if I goto the link: http://xxx.xxx.xxx.xxx:8080 from another machine (xxx.xxx.xxx.xxx is the IP address of the server machine ) I can see the files inside the default directory on the server machine. 
   
  Now suppose there is a directory called 'test' on this server and I want to create/read/write files in this directory. How should I go about this?
   
  I tried the following but this does not work !
   
  serverD := ServerDirectory new.
serverD server:'xxx.xxx.xxx.xxx:8080'.
  serverD getFileList
   
  I think the error is in my connecting to the server directory. Is this because I created a FileDirectory and not a ServerDirectory while setting up the webserver in the code above? Also I am not sure how to connect to the server directory. Can someone point me to any examples of how to do this or point out the error? Thanks
   
   
   
   
    
---------------------------------
  Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users._______________________________________________
Beginners mailing list
Beginners at lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

  Help still needed... Any feedback would be highly appreciated. Thanks.
   
  Navodit


       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20070414/05f43bd2/attachment.htm


More information about the Beginners mailing list