/** * Clone the current file and set the cloned one as a <b>replica</b>. * * @return a clone of the current file (as a replica) or <tt>null</tt> if an error occurs */ public File makeReplica() { return makeCopy(); }
/** * Clone the current file and make the new file as a <b>master</b> copy as well. * * @return a clone of the current file (as a master copy) or <tt>null</tt> if an error occurs */ public File makeMasterCopy() { File file = makeCopy(); if (file != null) { file.setMasterCopy(true); } return file; }