mainPlugin/src/main/java/org/simpleyaml/configuration/file/YamlFile.java
/**
     * Copy this configuration file to another path, without deleting configuration file.
     * If there is already a file on the other path it will be overwritten.
     *
     * @param path the location of the new file, including name (mustn't be a directory)
     * @return the new copied file
     * @throws FileNotFoundException    if configuration file is not found as source to copy
     * @throws IllegalArgumentException if path is a directory or it is null
     * @throws IOException              if there I/O error occurs copying file
     */
Copy this configuration file to another path, without deleting configuration file.
If there is already a file on the other path it will be overwritten.


Copy this configuration file to another path without deleting configuration file . If there is already a file on the other path it will be overwritten .
public File copyTo(final String path) throws FileNotFoundException, IllegalArgumentException, IOException {
        Validate.notNull(path, "Path cannot be null.");
        final File copy = new File(path);
        this.copyTo(copy);
        return copy;
    }
public File copyTo ( final String path ) throws FileNotFoundException , IllegalArgumentException , IOException { Validate . notNull ( path , "Path cannot be null." ) ; final File copy = new File ( path ) ; this . copyTo ( copy ) ; return copy ; }
Copy this configuration file to another path, without deleting configuration file.
Copy this configuration file to another path without deleting configuration file .