Skip to content

Commit ee7d014

Browse files
author
Oliver Weiler
authored
Update README.md
1 parent e354d53 commit ee7d014

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,15 @@ import io.github.helpermethod.zip_forge.ZipForge.directory
111111
import io.github.helpermethod.zip_forge.ZipForge.file
112112
import kotlin.io.path.Path
113113

114-
createZipFile(Path("/home/helpermethod/demo.zip")) {
115-
file("a.txt", "a")
116-
directory("d") {
117-
file("b.txt", "b".toByteArray())
118-
file("c.txt", "c")
119-
directory("e") {
120-
file("f.bin", Path("f.bin"))
114+
fun main() {
115+
createZipFile(Path("/home/helpermethod/demo.zip")) {
116+
file("a.txt", "a")
117+
directory("d") {
118+
file("b.txt", "b".toByteArray())
119+
file("c.txt", "c")
120+
directory("e") {
121+
file("f.bin", Path("f.bin"))
122+
}
121123
}
122124
}
123125
}

0 commit comments

Comments
 (0)