Did I catch a Make-dir bug?
[1/1] from: zokie::libero::it at: 1-Apr-2004 15:39
Hello,
I have a LAN, with 2 computers: PC/Windows 98, Amiga 1200/AOS3.9.
I need to transfer a directory from PC to Amiga and I wrote, many time ago,
a script. It worked fine and I can even dump %output.prn to my Epson 640
connected to the Amiga Parallel Port.
Due to Samba's setup, from PC I see Amiga's HD under this path:
%/A1200T/All/
Today I decide to re-use that file to transfer many text files from PC to
Amiga, and it doesn't work.
Where is the fault? Destination directory doesn't exist so a line with
make-dir/deep dst-dir
is executed, but it breaks the script with this
error:
** Access Error: Cannot open /A1200T/
In the Rebol shell I had typed "make-dir dst-dir" instead of "make-dir/deep
dst-dir" and I have got the same error message but the directory was
created before!!!
By digging into the make-dir's source, I found that directories are created
by this line
close throw-on-error [open/new dirize dir]
I have tryed:
void: error? try [close open/new dirize dst-dir]
or
void: error? try [make-dir dst-dir]
and they work: don't break script and create directory, but it is impossible
to create a direcotry with its sub-dirs :(
Do you have ideas or workaraund?
Kind regards
--
"Where did you get all those facts!?!"