Rebol FTP
Author |
Message |
destroy
|
Posted: 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]
] |
|
|
|
|
|
Sponsor Sponsor
|
|
|
btiffin
|
Posted: 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 |
|
|
|
|
|
notchent
|
|
|
|
|
|
|