File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -66,15 +66,13 @@ You can also use bagit programatically in your own Python programs.
6666To create a bag you would do this:
6767
6868``` python
69- import bagit
7069bag = bagit.make_bag(' mydir' , {' Contact-Name' : ' John Kunze' })
7170```
7271
7372` make_bag ` returns a Bag instance. If you have a bag already on disk and would
7473like to create a Bag instance for it, simply call the constructor directly:
7574
7675``` python
77- import bagit
7876bag = bagit.Bag(' /path/to/bag' )
7977```
8078
@@ -84,9 +82,6 @@ You can change the metadata persisted to the bag-info.txt by using the `info`
8482property on a ` Bag ` .
8583
8684``` python
87-
88- import bagit, shutil, os
89-
9085# load the bag
9186bag = bagit.Bag(' /path/to/bag' )
9287
@@ -147,8 +142,6 @@ you can do this:
147142
148143``` python
149144
150- import bagit
151-
152145bag = bagit.Bag(" /path/to/bag" )
153146
154147try :
You can’t perform that action at this time.
0 commit comments