Skip to content

Commit 4c986de

Browse files
committed
refs #42 fixed code example for bag in place
1 parent cd86e6b commit 4c986de

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ The "new" bagit interface is very intuitive, but here are some easy to follow ex
3232
File folder = new File("FolderYouWantToBag");
3333
StandardSupportedAlgorithms algorithm = StandardSupportedAlgorithms.MD5;
3434
boolean includeHiddenFiles = false;
35-
BagCreator creator = new BagCreator();
36-
Bag bag = creator.bagInPlace(folder, algorithm, includeHiddenFiles);
35+
Bag bag = BagCreator.bagInPlace(folder, algorithm, includeHiddenFiles);
3736
```
3837
##### Read an existing bag (version 0.93 and higher)
3938
```java

0 commit comments

Comments
 (0)