https://github.com/posener/tarfs
An implementation of the FileSystem interface for tar files.
https://github.com/posener/tarfs
filesystem go tar
Last synced: 7 months ago
JSON representation
An implementation of the FileSystem interface for tar files.
- Host: GitHub
- URL: https://github.com/posener/tarfs
- Owner: posener
- License: apache-2.0
- Created: 2017-03-10T22:13:11.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-03-13T18:47:56.000Z (almost 6 years ago)
- Last Synced: 2025-04-30T10:23:17.137Z (10 months ago)
- Topics: filesystem, go, tar
- Language: Go
- Size: 14.6 KB
- Stars: 59
- Watchers: 3
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-go - tarfs - Implementation of the [`FileSystem` interface](https://godoc.org/github.com/kr/fs#FileSystem) for tar files. (File Handling / Search and Analytic Databases)
- awesome-go-cn - tarfs
- awesome-go-cn - tarfs
- go-awesome-with-star-updatetime - tarfs - Implementation of the [`FileSystem` interface](https://godoc.org/github.com/kr/fs#FileSystem) for tar files. (File Handling / Advanced Console UIs)
- awesome-go - tarfs - An implementation of the FileSystem interface for tar files. - ★ 25 (Files)
- awesome-go - tarfs - | - | - | (Files / Advanced Console UIs)
- awesome-go - tarfs - Implementation of the [`FileSystem` interface](https://godoc.org/github.com/kr/fs#FileSystem) for tar files. (Files / Advanced Console UIs)
- awesome-go - tarfs - 用于tar文件的[`FileSystem` interface](https://godoc.org/github.com/kr/fs#FileSystem) 接口的实现。 (<span id="文件-files">文件 Files</span> / <span id="高级控制台用户界面-advanced-console-uis">高级控制台用户界面 Advanced Console UIs</span>)
- awesome-go-processed - tarfs - Implementation of the [`FileSystem` interface](https://godoc.org/github.com/kr/fs#FileSystem) for tar files.| (Files / Advanced Console UIs)
- awesome-go - tarfs - Implementation of the [`FileSystem` interface](https://godoc.org/github.com/kr/fs#FileSystem) for tar files. (Files / Advanced Console UIs)
- awesome-Char - tarfs - Implementation of the [`FileSystem` interface](https://godoc.org/github.com/kr/fs#FileSystem) for tar files. (File Handling / Advanced Console UIs)
- awesome-go-extra - tarfs - 03-10T22:13:11Z|2020-03-13T18:47:56Z| (File Handling / Advanced Console UIs)
- awesome-go - tarfs - Implementation of the [`FileSystem` interface](https://godoc.org/github.com/kr/fs#FileSystem) for tar files. (File Handling / Search and Analytic Databases)
- awesome-go - tarfs - Implementation of the [`FileSystem` interface](https://godoc.org/github.com/kr/fs#FileSystem) for tar files. - :arrow_down:0 - :star:19 (Files / Advanced Console UIs)
- awesome-go-info - tarfs
- awesome-go - tarfs - Implementation of the [`FileSystem` interface](https://godoc.org/github.com/kr/fs#FileSystem) for tar files. (File Handling / Search and Analytic Databases)
README
# TarFS
[](https://travis-ci.org/posener/tarfs)
[](https://codecov.io/gh/posener/tarfs)
[](http://godoc.org/github.com/posener/tarfs)
[](https://goreportcard.com/report/github.com/posener/tarfs)
A wrapper around [`tar.Reader`](https://golang.org/pkg/archive/tar/#Reader).
* Implements the [`FileSystem` interface](https://godoc.org/github.com/kr/fs#FileSystem) for tar files.
* Adds an `Open` method, that enables reading of file according to its' path.
## Get
`go get -u github.com/posener/tarfs`
## Example
See [the example](./examples/example_test.go).