code: public void moveTo(FatLfnDirectory target, String newName)
              throws IOException, ReadOnlyException {
  
          checkWritable();
  
          if (!target.isFreeName(newName)) {
              throw new IOException(
                      "the name \"" + newName + "\" is already in use");
          }
          
          this.parent.unlinkEntry(this);
          this.parent = target;
          this.fileName = newName;
          this.parent.linkEntry(this);
      }
docs: Moves this entry to a new directory under the specified name.
  
  @param target the direcrory where this entry should be moved to
  @param newName the new name under which this entry will be accessible
  in the target directory
  @throws IOException on error moving this entry
  @throws ReadOnlyException if this directory is read-only