You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Nadim Murr <nm...@ccc.com.lb> on 2006/12/18 07:46:42 UTC
[VFS] Rename file...
Hi,
I'm using the VFS API and I need to rename a file... does anyone know
how can I do that?
In FileObject class I found the method boolean canRenameTo(FileObject
obj) but how can I actually rename the file????
Thank you.
AW: [VFS] Rename file...
Posted by Konstantin Breu <Ko...@gmx.net>.
You can use FileObject.moveTo(FileObject destFile)
Cheers,
Konstantin
-----Ursprüngliche Nachricht-----
Von: Nadim Murr [mailto:nmurr@ccc.com.lb]
Gesendet: Montag, 18. Dezember 2006 07:47
An: commons-user@jakarta.apache.org
Betreff: [VFS] Rename file...
Hi,
I'm using the VFS API and I need to rename a file... does anyone know
how can I do that?
In FileObject class I found the method boolean canRenameTo(FileObject
obj) but how can I actually rename the file????
Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org