public void listDirectory(String dir) {//list in System.out.println the nwt files of a folder
        File file = new File(dir);
        File[] files = file.listFiles(new FilenameFilter() {
			public boolean accept(File file, String fileName) {
				return fileName.endsWith(".nwt");
			}
		});
        if (files != null) {
            for (int i = 0; i < files.length; i++) {
                if (files[i].isDirectory() == true) {
                    System.out.println("Dossier" + files[i].getAbsolutePath());
                    this.dircount++;
                } else {
                    System.out.println("Fichier " + files[i].getName());
                    this.filecount++;
                }
                if (files[i].isDirectory() == true && this.recursivePath == true) {
                    this.listDirectory(files[i].getAbsolutePath());
                }
            }
        }        
    }