项目作者: orexcap

项目描述 :
Photo and Video Files Sorter
高级语言: C#
项目地址: git://github.com/orexcap/sorter.git
创建时间: 2020-04-09T12:21:52Z
项目社区:https://github.com/orexcap/sorter

开源协议:Apache License 2.0

下载


Photo and Video Sorter

Sort and move your Photos and Videos to a target directory based on media’s create or modified date.

  • Organize your media in /TARGET_LIBRARY/yyyy/MM/yyyyMMdd/FILEFORMAT/ structure
  • Checks if duplicate photos / videos in your target directory
  • Review the sort operation thru yyyyMMddhhmmss-SORTER.log file report
  • Runs on Windows / Mac / Raspbian with .NET 8.0 installed

Sample (Windows)

Source folder :

  1. D:\DCIM\103___03\IMG_0887.JPG <-- Created on March 31, 2020
  2. D:\DCIM\103___04\IMG_0888.JPG <-- Created on April 1, 2020
  3. D:\DCIM\103___04\IMG_0889.JPG <-- Created on April 2, 2020
  4. D:\DCIM\103___04\IMG_0889.CR3 <-- Created on April 2, 2020

Photos will be sorted in your target folder as :

  1. X:\PHOTOS_LIBRARY\2020\03\20200331\JPG\IMG_0887.JPG
  2. X:\PHOTOS_LIBRARY\2020\04\20200401\JPG\IMG_0888.JPG
  3. X:\PHOTOS_LIBRARY\2020\04\20200402\JPG\IMG_0889.JPG
  4. X:\PHOTOS_LIBRARY\2020\04\20200402\CR3\IMG_0889.CR3

Installation (Windows)

  1. Install .NET 8.0 in your system
  2. Download or clone (git clone https://github.com/orexcap/sorter.git) SORTER
  3. Go to your /sorter/SORTER/ directory (E.g. C:\Users\Joseph\Desktop\sorter\SORTER )
  4. Run the application for the first time to generate your Sorter.Config.json file
    1. sorter\SORTER\>dotnet run
  5. Configure Sorter.Config.json
    1. {
    2. "SourceFolderPath":"D:\DCIM",
    3. "PhotosFileExtensions":"jpg,jpeg,cr2,cr3,png,gif,heif",
    4. "VideosFileExtensions":"mp4,mov,avi,mkv",
    5. "PhotosDestinationFolderPath":"X:\\",
    6. "VideosDestinationFolderPath":"Y:\\"
    7. }
  6. Run the application again to begin sorting!
    1. sorter\SORTER\>dotnet run

File Structure

On your target folders the following files and folder will be created:

FileList.json - Index / list of files in your target folder. Used by the application to check if the file already exists in target folder.

  1. X:\PHOTOS_LIBRARY\FileList.json

Reports\yyyyMMddhhmmss-SORTER.log

  1. X:\PHOTOS_LIBRARY\Reports\20200401010000-SORTER.log