-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Thumbs.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import argparse | ||
import pathlib | ||
import logging | ||
|
||
|
||
def get_arguments(): | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument('-d', '--directory', dest='directory', type=pathlib.Path, | ||
help='path to digital collections directory', required=True) | ||
parser.add_argument('-m', '--manifest', dest='manifest', default='checksum-md5.txt', | ||
help='name of manifest file if not "checksum-md5.txt"') | ||
parser.add_argument('-l', '--logfile', dest='logfile', default='/tmp', | ||
help='location to save logfile') | ||
args = parser.parse_args() | ||
# add arguments for AWS credentials, AWS location | ||
|
||
return args | ||
|
||
|
||
def instantiate_logger(): | ||
pass | ||
|
||
|
||
def test_arguments(): | ||
# test collections directory, test bucket, test manifest if passed | ||
pass | ||
|
||
|
||
if __name__ == "__main__": | ||
args = get_arguments() | ||
print(args) |