Re: [VFS] canRenameTo

2014-05-18 Thread Bernd Eckenfels
Hello Schalk, fully agree with your definition, in fact I have a local version which reads: /** * Queries the object if a rename to the filename of {@code newfile} * is possible. * * This default implementation does not attach the file and return * false in any of th

Re: [VFS] canRenameTo

2014-05-18 Thread Schalk Cronjé
I concur. Firstly it returns a boolean and it implies is about asking a question, not about returning a property from a fie or filesystem. From a API consume point of view I would not any exception to be thrown, just to be told whether the operation is possible or not. Thus the HdfsFileObject

[VFS] canRenameTo

2014-05-17 Thread Bernd Eckenfels
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 spe