mirror of
https://github.com/restic/restic.git
synced 2024-12-25 01:06:39 +00:00
c4b2486b7c
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`).
8 lines
171 B
Go
8 lines
171 B
Go
// +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
|