Hello,

today there are only two canRenameTo implementations in VFS2, the
AbstractFileObject one which does just check if the file is on the same
VFS filesystem instance and HdfsFileObject which overwrites this with
UnsupportedOperation.

For the HdfsFileObject I think it is best to remove this special
version [VFS-523], as no other file system provider (even the ones which
do not have RENAME Capability) do this.

However I wonder how usefull the canRenameTo. It does neighter check if
it is the same file, if the provider does support rename nor are there
any smarter specific implementations.

For example for the LocalFileObject I could imagine to actually check
if it is on the same OS file system.

I guess it is hard to know if a rename across multiple VFS filesystems
(even when they point to the same backend store) is possbiel, so it is
ok to always return false if the filesystem instances differ.

Gruss
Bernd

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to