renameSync abstract method
- String newPath
Synchronously renames this directory.
Returns a Directory for the renamed directory.
newPath identifies an existing directory, then the behavior is
platform-specific. On all platforms, a FileSystemException is thrown
if the existing directory is not empty. On POSIX systems, if
identifies an existing empty directory then that directory is deleted
before this directory is renamed.
newPath identifies an existing file the operation
fails and a FileSystemException is thrown.
Directory renameSync(String newPath);