dest
. This works for both normal files and directories.
@param dest the File containing the new name.
@return true
if the File was renamed, false
otherwise.
@see #getPath
@see java.lang.SecurityManager#checkRead(FileDescriptor)
@see java.lang.SecurityManager#checkWrite(FileDescriptor)
SmbFile
represents to the name designated by the SmbFile
argument. Remember: SmbFile
s are immutible and therefore the path associated with this SmbFile
object will not change). To access the renamed file it is necessary to construct a new SmbFile.
@param dest An SmbFile
that represents the new pathname
@return true
if the file or directory was successfully renamed
@throws NullPointerException If the dest
argument is null
It is not specified whether this method will succeed if a file already exists under the new name. @param newName the new name. @return true if the rename succeeded, false if not.
Many aspects of the behavior of this method are inherently platform-dependent: The rename operation might not be able to move a file from one filesystem to another, it might not be atomic, and it might not succeed if a file with the destination abstract pathname already exists.
@param dest The new abstract pathname for the named file
@return has successfull renamed or not
@deprecated use instead #moveTo(Resource)
|
|
|
|
|
|
|
|