Verified Commit 5b228966 authored by Antonio Vivace's avatar Antonio Vivace
Browse files

Prepare bagit.txt creation

parent 4d9338db
......@@ -24,6 +24,15 @@ def get_random_string(length):
# Stub
def createBagItTxt(version="1.0", encoding="UTF-8"):
"""
Creates the Bag Declaration file, as specified by the RFC:
https://tools.ietf.org/html/rfc8493#section-2.1.1
"""
bagittxt = (f'BagIt-Version: {version}\n'
'Tag-File-Character-Encoding: {encoding}')
my_fs.writetext(aicfoldername + "/" + "bagit.txt", bagittxt)
def checkunique(id):
"""
Check if the given ID is unique in our system
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment