1// Copyright 2019 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build !windows && !darwin
6
7package robustio
8
9import (
10	"os"
11)
12
13func rename(oldpath, newpath string) error {
14	return os.Rename(oldpath, newpath)
15}
16
17func readFile(filename string) ([]byte, error) {
18	return os.ReadFile(filename)
19}
20
21func removeAll(path string) error {
22	return os.RemoveAll(path)
23}
24
25func isEphemeralError(err error) bool {
26	return false
27}
28