public void copy(String source, String target) {
        try {
            File f1 = new File(source);
            File f2 = new File(target);
            Files.copy(f1.toPath(), f2.toPath(), StandardCopyOption.REPLACE_EXISTING);

        } catch (IOException ex) {
            System.out.println("Exception occurred when copying a mp3 file. " + ex);
        }
    }//copia ficheiro