Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jimtuttle committed Aug 12, 2021
1 parent 5e247d8 commit d9df53c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions ignorelist.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Thumbs.db
33 changes: 33 additions & 0 deletions s3-replicate.py
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)

0 comments on commit d9df53c

Please sign in to comment.