Skip to content

A small program written in Golang to recursively organize your photo library by copying and sorting photos by year and month from a source to a dest folder.

Notifications You must be signed in to change notification settings

pedroduartecosta/photosort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

photosort

A small program written in Golang to copy and sort photos by year and month for a source to a dest folder.

This is my first attempt at the go language. Feel free to improve it through pull requests!

Functionality

  • Recursively visits all files and folders in the srcFolder directoy tree
  • Analyses if files have Exif date information
  • If so it copies the media file to the corresponding folder in the destfolder, creating the necessary folders such as Year and Month
  • If the file is a media file but has no information regarding the capture date, it copies the file into a folder called Others in the destination folder
  • It ignores any duplicated file or non media files

Media files supported

.tiff .tif .gif .jpeg .jpg .png .raw .webm .mkv .avi .mov .wmv .mp4 .MP4 .m4v .mpg .mp2 .mpeg

Build

go build

Test

go test

Run

./photosort --source-folder [srcFolder] --destination-folder [destFolder]

About

A small program written in Golang to recursively organize your photo library by copying and sorting photos by year and month from a source to a dest folder.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages