mirror of
https://github.com/restic/restic.git
synced 2024-08-19 10:53:23 +02:00
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
|