Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/delete duplicates #301

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

DZamataev
Copy link
Contributor

Implements deleting duplicates on import with --delete-duplicates flag.

DZamataev and others added 10 commits December 26, 2018 16:21
…ish as accepted header to MapQuest requests and results in the response location names being mostly in English not their native country language.
* 'master' of github.com:jmathai/elodie:
  Add support for mts video files with H264:DateTimeOriginal create date field support (jmathai#295)
  Add support for customizing file name via config file. jmathai#107 jmathai#110 jmathai#111 (jmathai#225)
  Implements prefer english names setting for MapQuest API in config.ini (jmathai#290)
  Add support for a %custom placeholder for more complex folder names than %location or %date provide jmathai#279 (jmathai#283)

# Conflicts:
#	Readme.md
#	elodie/filesystem.py
_file,
checksum_file
))
if constants.delete_duplicates:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to import constants at the top of the file.
https://travis-ci.org/jmathai/elodie/jobs/488449125

_file,
checksum_file
))
if constants.delete_duplicates:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather include this check in delete_file() so it can be called in a safer manner from other spots if needed.

@@ -80,6 +80,20 @@ def delete_directory_if_empty(self, directory_path):

return False

def delete_file(self, file_path):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add tests for this including for when delete_duplicates is True and False.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants