Commit 24671875 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Introduce Status.Ok().

parent 5b44ce2e
...@@ -22,6 +22,10 @@ func (code Status) String() string { ...@@ -22,6 +22,10 @@ func (code Status) String() string {
return fmt.Sprintf("%d=%v", int(code), os.Errno(code)) return fmt.Sprintf("%d=%v", int(code), os.Errno(code))
} }
func (code Status) Ok() bool {
return code == OK
}
// Make a temporary directory securely. // Make a temporary directory securely.
func MakeTempDir() string { func MakeTempDir() string {
nm, err := ioutil.TempDir("", "go-fuse") nm, err := ioutil.TempDir("", "go-fuse")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment