rest-server/fs/file_nonlinux.go

16 lines
291 B
Go
Raw Normal View History

2016-11-06 11:26:06 +01:00
// +build !linux
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
}