Commit b5c23b50 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Support plain tar files too.

parent 0a3f35a3
......@@ -91,6 +91,13 @@ func NewArchiveFileSystem(name string) (fs *MemTreeFileSystem, err os.Error) {
if strings.HasSuffix(name, ".tar.bz2") {
tree, err = NewTarCompressedTree(name, "bz2")
}
if strings.HasSuffix(name, ".tar") {
f, err := os.Open(name)
if err != nil {
return nil, err
}
tree = NewTarTree(f)
}
if err != nil {
return nil, err
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment