Skip to content

Commit

Permalink
remove .DS_Store files when bagging, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
axfelix committed May 27, 2020
1 parent 76a9f20 commit 2aeb320
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sfu-moveit",
"version": "2.0.1",
"version": "2.0.4",
"homepage": "https://github.com/axfelix/moveit",
"main": "main.js",
"description": "An app for producing packages for deposit to the Archives",
Expand Down
5 changes: 5 additions & 0 deletions moveit.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ def bag_package(self, contactname, jobtitle, department, email, phone, creator,
os.makedirs(bag_dir)
copy_tree(os.path.normpath(package_folder.strip('"')), bag_dir)

for root, sub, files in os.walk(bag_dir):
for file in files:
if file == ".DS_Store":
os.remove(os.path.abspath(os.path.join(root, file)))

try:
bag = bagit.make_bag(bag_dir, None, 1, ['sha256'])
bag.info['Package-Time'] = strftime("%Y-%m-%d %H:%M:%S")
Expand Down

0 comments on commit 2aeb320

Please sign in to comment.