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 {
return fmt.Sprintf("%d=%v", int(code), os.Errno(code))
}
func (code Status) Ok() bool {
return code == OK
}
// Make a temporary directory securely.
func MakeTempDir() string {
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