Copy errors & fs packages from the restic repo and fix import paths

Tedious, but I see no better way...
This commit is contained in:
Zlatko Čalušić
2016-11-05 17:33:34 +01:00
parent 80196e6df6
commit 93d8c2beba
11 changed files with 328 additions and 2 deletions

15
fs/file_nonlinux.go Normal file
View 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
}