influxdb/pkg/fs/fs.go

18 lines
385 B
Go
Raw Normal View History

package fs
import "fmt"
// A FileExistsError is returned when an operation cannot be completed due to a
// file already existing.
type FileExistsError struct {
path string
}
func newFileExistsError(path string) FileExistsError {
return FileExistsError{path: path}
}
func (e FileExistsError) Error() string {
return fmt.Sprintf("operation not allowed, file %q exists", e.path)
}