Skip to content

Command Line Arguments

Lucas edited this page Dec 19, 2017 · 1 revision

Main

[python|python3] sortphotos.py src_dir dest_dir [-r|--recursive] [-c|--copy] [-s|--silent] [-t|--test] [-z|--disable-time-zone-adjust] [--sort] [--rename] [--ignore-file-types] [--keep-duplicates] [--day-begins] [--ignore-groups] [--ignore-tags] [--use-only-groups] [--use-only-tags] [--prioritize-groups] [--prioritize-tags] [--rename-with-camera-model] [-w|--show-warnings] [-x|--src-file-regex] [-e|--src-file-extension]

Arguments

src_dir

[src_dir] source directory

dest_dir

[dest_dir] destination directory

recursive

[-r,--recursive] search src_dir recursively

copy

[-c,--copy] copy files instead of move

silent

[-s,--silent] don't display parsing details.

test

[-t,--test] run a test. files will not be moved/copied instead you will just a list of would happen

disable-time-zone-adjust

[-z,--disable-time-zone-adjust] disables time zone adjust useful for devices that store local time + time zone instead of UTC + time zone

sort

[--sort] hour of day that new day begins (0-23), defaults to 0 which corresponds to midnight. Useful for grouping pictures with previous day.

ignore-groups

[--ignore-groups] specify a restricted set of tags to search for date information e.g., EXIF:CreateDate

prioritize-groups

[--prioritize-groups] specify a prioritized set of groups to search for date information e.g., EXIF File

prioritize-tags

[--prioritize-tags] specify a prioritized set of tags to search for date information e.g., EXIF:CreateDate EXIF:ModifyDate

rename-with-camera-model

[--rename-with-camera-model] source file regular expression

show-warnings

[-w,--show-warnings] display warnings

src-file-regex

[-x,--src-file-regex] source file regular expression

src-file-extension

[-e,--src-file-extension] source file format (comma seperated)