public static long getFileSize(File file) {
		long size = 0L;
		if(file.exists()) {
			if(file.isDirectory()) {
				File [] files = file.listFiles();
				for (File file2 : files) {
					size += getFileSize(file2);
				}
			} else {
				size += file.length();
			}
		}
		return size;
	}