diff --git a/internal/goofys.go b/internal/goofys.go index 9070fb54..032493af 100644 --- a/internal/goofys.go +++ b/internal/goofys.go @@ -20,6 +20,7 @@ import ( "context" "fmt" "math/rand" + "net/http" "net/url" "runtime/debug" "strings" @@ -35,7 +36,6 @@ import ( "github.com/jacobsa/fuse/fuseutil" "github.com/sirupsen/logrus" - "net/http" ) // goofys is a Filey System written in Go. All the backend data is @@ -1195,3 +1195,15 @@ func (fs *Goofys) Rename( } return } + +// return full name of the given inode +func (fs *Goofys) GetFullName(id fuseops.InodeID) *string { + fs.mu.Lock() + inode := fs.inodes[id] + fs.mu.Unlock() + if inode == nil { + return nil + } + return inode.FullName() + +}