Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: ftpupload.r (rebol newbie)

From: al:bri:xtra at: 31-Oct-2000 15:27

LeEric Marvin wrote:
> Tried your suggestion, here's the errors..... > > Directory: %d/gen/website/gci/gen/ > files: read Directory > foreach file files [ > write site/:file read Directory/file > ] > > ** Access Error: Cannot open
/D/GEN/WebSite/gci/gen/d/gen/website/gci/gen/.
> ** Where: files: read Directory > foreach file > > Please note that the path on my local drive is not the same as at the ftp
site.
> local d:\gen\website\gci\gen\ > ftp home.gci.net/user/t/h/~themarvins/gen/
You just need to make these subtle changes: Directory: %/d/gen/website/gci/gen/ Note the "/" before the "d/gen/website/gci/gen/". This indicates "the root" of Rebol's file system. Also, it's best if your script was outside that directory, otherwise it'll get sent to the site as well (along with your password!). This needs to be done as well: write site/:file read Directory/:file Note the ":" before the second "file". That's a mistake on my part. I hope that helps! Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/