-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
base: master
Are you sure you want to change the base?
Conversation
…ish as accepted header to MapQuest requests and results in the response location names being mostly in English not their native country language.
…ommand line option
…olders command line option" This reverts commit 03d4a9c.
This reverts commit b94372b.
…han %location or %date provide jmathai#279 (jmathai#283)
* '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: |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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
.
3276ccf
to
12c17c9
Compare
Implements deleting duplicates on import with --delete-duplicates flag.