Skip to content

Commit 1b7f842

Browse files
author
Oliver Weiler
authored
Update README.md
1 parent 5d172b0 commit 1b7f842

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ class ZipForgeDemo {
7777
directory("d", () -> {
7878
// ... or a byte[]...
7979
file("b.txt", "b".getBytes(UTF_8));
80-
file("c.txt", "c");
80+
// ... or a Path
81+
file("c.bin", Paths.get("c.bin"));
8182
// directories can be nested
8283
directory("e", () -> {
83-
// ... or a Path
84-
file("f.bin", Paths.get("f.bin"));
84+
file("f.txt", "f");
8585
});
8686
});
8787
});
@@ -99,8 +99,8 @@ Archive: demo.zip
9999
0 07-11-2023 15:39 d/e/
100100
1 07-11-2023 15:39 a.txt
101101
1 07-11-2023 15:39 d/b.txt
102-
1 07-11-2023 15:39 d/c.txt
103-
1 07-11-2023 15:39 d/e/f.bin
102+
1 07-11-2023 15:39 d/c.bin
103+
1 07-11-2023 15:39 d/e/f.txt
104104
--------- -------
105105
4 6 files
106106
```
@@ -120,9 +120,9 @@ fun main() {
120120
file("a.txt", "a")
121121
directory("d") {
122122
file("b.txt", "b".toByteArray())
123-
file("c.txt", "c")
123+
file("c.bin", Path("c.bin"))
124124
directory("e") {
125-
file("f.bin", Path("f.bin"))
125+
file("f.txt", "f")
126126
}
127127
}
128128
}

0 commit comments

Comments
 (0)