Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/tar.toit
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A tar archiver.
Writes the given files into the writer in tar file format.
*/
class Tar:
writer_ ::= ?
writer_/io.Writer

/**
Creates a new Tar archiver that writes to the given $writer.
Expand Down Expand Up @@ -42,7 +42,7 @@ class Tar:
zero-header := ByteArray 512
writer_.write zero-header
writer_.write zero-header
if close-writer: writer_.close
if close-writer: (writer_ as io.CloseableWriter).close

/**
Adds the given $file-name with its $content to the tar stream.
Expand Down