RE: Copying a file but getting a directory

"Jeroen Reijn" <[email protected]>
Newsgroups gmane.comp.jakarta.slide.user
Message-ID <[email protected]>
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]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.