mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 07:33:21 +00:00
15 lines
291 B
Go
15 lines
291 B
Go
// +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
|
|
}
|