private static void organize(File dir) {
		File all = new File(dir, "z_all");
		if(!all.exists()){
			all.mkdir();
		}
		for (File temp : dir.listFiles()) {
			if (temp.isDirectory() && !temp.getName().equals("z_all")) {
				int index = 0;
				for (File file : temp.listFiles()) {
					if (!file.isDirectory()) {
						index++;
						System.out.println(temp.getName() + "/" + file.getName());
						String extension = getExtension(file.getName());
						String newName = temp.getName() + "-" + index + extension;
						System.out.println(newName);
						copyFile(file, new File(all, newName));
						//file.renameTo(new File(temp, newName));
					}
				}
				temp.delete();
			}
		}
	}