comparison sworduploader.py @ 5:13fc2773b3fe

Fixed --zip bug
author Marco Fabiani <marco.fabiani@eecs.qmul.ac.uk>
date Thu, 29 Mar 2012 17:55:51 +0100
parents 96d62e78ac9f
children 79d0f6e27371
comparison
equal deleted inserted replaced
4:96d62e78ac9f 5:13fc2773b3fe
101 for root, dirs, files in os.walk(data): 101 for root, dirs, files in os.walk(data):
102 for name in files: 102 for name in files:
103 myzip.write(os.path.join(root,name), 103 myzip.write(os.path.join(root,name),
104 os.path.relpath(os.path.join(root,name),data)) 104 os.path.relpath(os.path.join(root,name),data))
105 fileslist.append(zipf) 105 fileslist.append(zipf)
106 myzip.close()
106 packaging = "http://purl.org/net/sword/package/SimpleZip" 107 packaging = "http://purl.org/net/sword/package/SimpleZip"
107 type = "SimpleZip" 108 type = "SimpleZip"
108 temp = True 109 temp = True
109 else: #create a list of files to upload 110 else: #create a list of files to upload
110 for root, dirs, files in os.walk(data): 111 for root, dirs, files in os.walk(data):