# DistinctJPG **Repository Path**: well-st/DistinctJPG ## Basic Information - **Project Name**: DistinctJPG - **Description**: 将JPG整理出一份不重复的文件出来。 - **Primary Language**: C# - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2015-05-04 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #DistinctJPG ##原因 因为有较多的相片jpg格式,而且各种复制。导致在硬盘上有很多重复文件占用大量的空间。于是想简单粗暴的把它们去重,然后放到一个文件夹下面,同时按修改时间进行命名。(注因为用md5去重的,所以把md5也作为文件名的一部分) ##处理 把选择的文件夹里所有jpg(包括子文件夹),计算md5存于一个Dictionary里,然后对md5进行去重,把第一个文件重命名后存到指定的文件夹中,把重复的文件放到指定文件夹中的dup文件夹中。