fs: Add interface and FS implementations

This adds two implementations of the new `FS` interface: One for the local
file system (`Local`) and one for a single file read from an
`io.Reader` (`Reader`).
This commit is contained in:
Alexander Neumann 2018-01-03 21:53:45 +01:00
parent 83ca08245b
commit c4b2486b7c
14 changed files with 994 additions and 14 deletions

View file

@ -0,0 +1,8 @@
// +build !windows
package fs
import "syscall"
// O_NOFOLLOW instructs the kernel to not follow symlinks when opening a file.
const O_NOFOLLOW int = syscall.O_NOFOLLOW