bug : Adds date_time argument to create_target_dir

Closes #10 (closed)

The destination directory was mistakenly passed the date_time of each file/target directory that was to be created and as such the argument["destination"] wasn't being used. This meant the target directory for each file was created in the current directory rather than underneath the value of argument["destination"]. This was fine when the destination was ./ but problematic when that wasn't the case.

Added a date_time argument to create_target_dir and reworked so that destination is the argument["destination"]. In doing so I discovered some errors that can occur if a file doesn't have Create date (key 306) in the Exif data and have handled that as well as introducing tests to check. If there is no Exif Create date then ctime is used instead.

Adds a few more hooks to pre-commit...

  • check-added-large-files
  • check-ast
  • debug-statements
  • no-commit-to-branch

Updates the docs/source/usage.md to cover usage and options in more detail.

Merge request reports

Loading