> - you make an extra 512 byte block if a file ends exactly
on a block boundary (like a zero byte file, for example)
> From: Jez <jezreel@gmail.com>
Great! You were the first entry to meet the spec.
>I actually submitted a pull request for this challenge
> earlier today: https://github.com/spk121/guile100/pull/1/files
Yeah, sorry about that footer spec error.
> Not as fully-featured as Mark's, though. I just did what was
> spec'ed out, with the exception of moving the footer to the
> end of the archive rather than having it at the end of each file.
I found two possible corrections
- you make an extra 512 byte block if a file ends exactly
on a block boundary (like a zero byte file, for example)
- For files archived from the current directory, you
explicitly add the "." path to the archive. Most other
tar programs don't do that.
Not that speed was the point of this exercise, but, in
creating an archive from 10000 6kB text files, this script was
about 10x slower than GNU tar, and slightly slower than
Mark's tar.
-Mike