func (fs *deviceFS) trimUnused(todo int64, node *nodefs.Inode) (done int64) { for _, ch := range node.Children() { if done > todo { break } if fn, ok := ch.Node().(*classicNode); ok { done += fn.trim() } else if ch.IsDir() { done += fs.trimUnused(todo-done, ch) } } return }
func (fs *PathNodeFs) Path(node *nodefs.Inode) string { pNode := node.Node().(*pathInode) return pNode.GetPath() }