mirror of
https://github.com/restic/rest-server.git
synced 2026-04-14 22:21:44 -07:00
Copy errors & fs packages from the restic repo and fix import paths
Tedious, but I see no better way...
This commit is contained in:
15
fs/file_nonlinux.go
Normal file
15
fs/file_nonlinux.go
Normal file
@@ -0,0 +1,15 @@
|
||||
// +build !linux !go1.4
|
||||
|
||||
package fs
|
||||
|
||||
import "os"
|
||||
|
||||
// Open opens a file for reading.
|
||||
func Open(name string) (File, error) {
|
||||
return os.OpenFile(fixpath(name), os.O_RDONLY, 0)
|
||||
}
|
||||
|
||||
// ClearCache syncs and then removes the file's content from the OS cache.
|
||||
func ClearCache(f File) error {
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user