Skip to content

Commit 2aeb320

Browse files
committed
remove .DS_Store files when bagging, bump version
1 parent 76a9f20 commit 2aeb320

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

gui/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sfu-moveit",
3-
"version": "2.0.1",
3+
"version": "2.0.4",
44
"homepage": "https://github.com/axfelix/moveit",
55
"main": "main.js",
66
"description": "An app for producing packages for deposit to the Archives",

moveit.py

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ def bag_package(self, contactname, jobtitle, department, email, phone, creator,
2020
os.makedirs(bag_dir)
2121
copy_tree(os.path.normpath(package_folder.strip('"')), bag_dir)
2222

23+
for root, sub, files in os.walk(bag_dir):
24+
for file in files:
25+
if file == ".DS_Store":
26+
os.remove(os.path.abspath(os.path.join(root, file)))
27+
2328
try:
2429
bag = bagit.make_bag(bag_dir, None, 1, ['sha256'])
2530
bag.info['Package-Time'] = strftime("%Y-%m-%d %H:%M:%S")

0 commit comments

Comments
 (0)