Computer Science Canada Rebol FTP |
Author: | destroy [ Wed Jun 03, 2009 8:26 am ] |
Post subject: | Rebol FTP |
Hello, I'm new in writing in Rebol and there is one thing I can't handle with. My code is working if I go through the local directories but I can't make it works in FTP directory. Could you please tell where I'm wrong REBOL [] my_path: copy system/options/path files_data: [] feedback_data: [] do-update-files-data: func [] [ change-dir my_path if exists? %../ [append files_data %../] append files_data sort read my_path ] update-text-list: func [current_list [object!]] [ current_list/sld/data: 0 current_list/sn: 0 current_list/sld/redrag current_list/lc / max 1 length? head current_list/lines show current_list ] do-change-folder: func [selected [file!]] [ test_selection: to-file rejoin [my_path selected] if dir? test_selection [ my_path: copy test_selection lab_path/text: clean-path my_path show lab_path clear files_data do-update-files-data update-text-list list_files ] ] do-update-files-data view layout [ across label "Current Folder:" lab_path: label to-string my_path 300x50 top return list_files: text-list data files_data [do-change-folder value] btn_quit: button "Quit" [quit] ] |
Author: | btiffin [ Wed Jun 03, 2009 9:34 pm ] |
Post subject: | RE:Rebol FTP |
Hey. A rebol. Very cool. Check out http://www.rebol.org/view-script.r?script=ftpdir.r and http://www.rebol.org/cgi-bin/cgiwrap/rebol/documentation.r?script=ftpwrite.r for some possible hints. Just as a note, rebols complain quite a bit about the FTP scheme. It has bugs and even the gurus are not looking forward to being the one tasked with writing the FTP handler for the new REBOL/3. FTP is an overly detailed and some what ill-specced out internet protocol. Welcome to REBOL land. It's handy. If you want in on the inner discussions, check out http://www.rebol.org/aga-join.r It has instructions on getting in on the "by invitation only" REBOL communication channel. Worth the hassle, very helpful bunch, and the "by invite" method keeps the riffraff (usually) out of the very detailed discussions. Cheers |
Author: | notchent [ Sat Aug 29, 2009 10:24 pm ] | ||
Post subject: | Re: Rebol FTP | ||
Hi Destroy I didn't see any of your FTP code, so not sure what you're having trouble with. You can treat FTP folders much like local file folders, as long as you've got the username and password in the URL path. You can write and read files/folders, make-dir, use the editor function, change permissions with write/allow, etc. Maybe this will help:
HTH ps - You may be interested in having a peek at <a href="http://musiclessonz.com/rebol.html">http://musiclessonz.com/rebol.html</a> |