Commit 1b338d3e authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Document WithFlags.String.

parent 8681ee67
......@@ -6,8 +6,9 @@ import (
"github.com/hanwen/go-fuse/fuse"
)
func (me *WithFlags) String() string {
// String provides a debug string for the given file.
func (f *WithFlags) String() string {
return fmt.Sprintf("File %s (%s) %s %s",
me.File, me.Description, fuse.FlagString(fuse.OpenFlagNames, int64(me.OpenFlags), "O_RDONLY"),
fuse.FlagString(fuse.FuseOpenFlagNames, int64(me.FuseFlags), ""))
f.File, f.Description, fuse.FlagString(fuse.OpenFlagNames, int64(f.OpenFlags), "O_RDONLY"),
fuse.FlagString(fuse.FuseOpenFlagNames, int64(f.FuseFlags), ""))
}
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