public static void main(String[] args) throws JpegProcessingException,
			Exception {
		// String noCreatPath = "f:\\testPhoto\\6644.jpg";
		// String haveCreatePath = "F:\\testPhoto\\2013-02\\20130204(002).jpg";
		// getImageInfoByFile(haveCreatePath);

		// getImageInfoByFile(haveCreatePath);
		// String path = "F:\\testPhoto";
//		String path = "E:\\�ҵ��ĵ�\\�ֻ�\\photo";
		String path1 = sourcePath;

		long start = System.currentTimeMillis();
//		getAllImags(path);
		getAllImags(path1);
		long end = System.currentTimeMillis();

		System.out.println("index takes : " + (end - start));

		start = System.currentTimeMillis();
		System.out.println("========imageMap==========");
		for (String key : imageMap.keySet()) {
			List<ImageInfo> list = imageMap.get(key);
			System.out.println(key);
			for (ImageInfo info : list) {
				System.out.println("\t" + info.getF().getAbsolutePath());

				copy(targetPath + key, info.getF().getAbsolutePath());
			}
		}

		System.out.println("======non infoImg======");
		for (ImageInfo img : otherList) {
			System.out.println(img.getF().getAbsolutePath());
			copy(targetPath+"无信息的jpg", img.getF().getAbsolutePath());
		}

		System.out.println("======mp4========");
		for (String s : mp4List) {
			System.out.println(s);
			copy(targetPath+"mp4", s);
		}

		end = System.currentTimeMillis();
		System.out.println("move takes : " + (end - start));

		System.out.println("======other File=====");
		for (String s : otherFile) {
			System.out.println(s);
			if (isPostPrefix(s, ".rar")) {
				copy(targetPath+"rar", s);
				System.out.println(s + "moved");
			}
		}

		System.out.println("======exception file=========");
		for (String s : exceptionList) {
			System.out.println(s);
			copy(targetPath+"exceptions", s);
		}
	}