-
Notifications
You must be signed in to change notification settings - Fork 91
fixes #75 #77
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
fixes #75 #77
Conversation
This broke bag validation on Windows when using multiprocessing. Closes LibraryOfCongress#42
Similar to LibraryOfCongress#59 , large verifications of multiple files can take a long time, so having more status updates is more meaningful and reassuring. Let me know if I put this in the wrong place/function.
Reset self.entries to empty when (re)loading manifests to catch when files have been deleted from the bag.
…le selection
LGTM |
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.
Two minor issues
p = join(dir_name, filename) | ||
yield os.path.relpath(p, bag_dir) | ||
for dir in os.listdir(bag_dir): | ||
if dir != 'data': |
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 generally prefer an early exit (if dir == 'data': continue
) rather than indenting a large block but I'm not sure how important that is
#remove everything up to the bag_dir directory | ||
p = join(dir_name, filename) | ||
yield os.path.relpath(p, bag_dir) | ||
for dir in os.listdir(bag_dir): |
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.
dir
is a builtin Python function - it probably won't break anything but I prefer not use redefine those names where possible.
fixing the selection of tag files as reported by issue #75