Hi Alexandre,

i'm not really familiar yet with the slide API, 

what happens if you use the copyMethod with source and destination

res.copyMethod("/slide/files/directoryX/fileA.rtf","/slide/files/directoryY/fileA.rtf");

Could it have something to do with that the path of the copy method is relative?

Regards,

Jeroen Reijn
Hippo



-----Original Message-----
From: Alexandre Da Silva Duarte [mailto:[EMAIL PROTECTED]
Sent: maandag 11 september 2006 15:25
To: [email protected]
Subject: Copying a file but getting a directory


Hi,

        I am running WCK and I am getting a strange behavior with the
copyMethod/moveMethod:

// just copying a file to another directory
res.setPath("/slide/files/directoryX/fileA.rtf");
boolean result = res.copyMethod("/slide/files/directoryY/fileA.rtf");

        But at the end of this execution I got a directory called
"fileA.rtf" instead a file.
        Someone knows what am I doing wrong?

Thanks in advance

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to