github.com/hanwen/go-fuse@v1.0.0/fuse/nodefs/print.go (about) 1 // Copyright 2016 the Go-FUSE 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 package nodefs 6 7 import ( 8 "fmt" 9 10 "github.com/hanwen/go-fuse/fuse" 11 ) 12 13 // String provides a debug string for the given file. 14 func (f *WithFlags) String() string { 15 return fmt.Sprintf("File %s (%s) %s %s", 16 f.File, f.Description, fuse.FlagString(fuse.OpenFlagNames, int64(f.OpenFlags), "O_RDONLY"), 17 fuse.FlagString(fuse.FuseOpenFlagNames, int64(f.FuseFlags), "")) 18 }