code: public static void renamePath(FileContext fc, Path oldName, Path newName, boolean overwrite)
        throws IOException {
      Options.Rename renameOptions = (overwrite) ? Options.Rename.OVERWRITE : Options.Rename.NONE;
      fc.rename(oldName, newName, renameOptions);
    }
docs: A wrapper around {@link FileContext#rename(Path, Path, Options.Rename...)}}.