mirror of
https://github.com/octoleo/restic.git
synced 2024-12-29 05:13:09 +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`).
9 lines
171 B
Go
9 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
|