|
Pages: [1]
|
 |
|
Author
|
Topic: Rebol file paths .... (Read 854 times)
|
|
jfdutcher
|
This one line FTP script seems to have employed the suggested approach for indicating Windows type path/file names....but it fails with the message shown. The file name llooks like the tutorial example to me ?? write ftp://xxxxxxxxx:zzzzzzzz/ftp.rebolprogrammer.com/cgi/blog.r read %"/C/Program Files/Abyss Web Server/htdocs/cgi-bin/blog.r" ** Access Error: Cannot open /C/Program ** Near: do/args script system/script/args >>
|
|
|
|
|
Logged
|
|
|
|
|
lucifer1
|
Hello,
I regularly hit this problem too.
It is because your path "C:/programm files/..." does include spaces! REBOL stops at the first space, therefore looking for "C:/programm" which does not exist!
I do not know how to work with spaces in the filename. Only workaround: Do not use space in filenames.
|
|
|
|
|
Logged
|
|
|
|
|
PeterWood
|
This should help: >> to file! "/C/Program Files/Abyss Web Server/htdocs/cgi-bin/blog.r" == %/C/Program%20Files/Abyss%20Web%20Server/htdocs/cgi-bin/blog.r
|
|
|
|
|
Logged
|
|
|
|
|
jfdutcher
|
Sadly the 'to file!' returns the same error.....
One work-around that helps....interestingly..... is to do a 'change-dir' to the very same 'path' as is in the 'write - read' statement
The 'change-dir' is accepted , then the 'read' becomes just the file name read %blog.r which actually runsl
The only down side is I have to store all my Rebol utilities in the same folder as the files I wish to address with them.....where I would rather have them in a separate 'utilities' folder.
|
|
|
|
|
Logged
|
|
|
|
|
Gabriele
|
The problem can't be READ - watch the error message carefully. There's a DO/ARGS happenings. READ works perfectly well with paths with spaces. So, either you have redefined READ in some way, or there's something else going on in your script.
|
|
|
|
|
Logged
|
|
|
|
|
jfdutcher
|
Perhaps so.....but the script is the site resident ftpup.r script (one-liner) with the 'binary' modifier removed to write/read ascii text............
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |