Lines Matching refs:leaf
168 func pathSplit(path string) (dir string, leaf string) {
169 dir, leaf = filepath.Split(path)
173 return dir, leaf
247 parentPath, leaf := pathSplit(path)
270 link, isLink := parentNode.symlinks[leaf]
770 parentPath, leaf := pathSplit(cleanedPath)
785 childDir, dirExists := parent.subdirs[leaf]
789 _, fileExists := parent.files[leaf]
799 parent.subdirs[leaf] = childDir
815 parentPath, leaf := pathSplit(path)
816 if len(leaf) == 0 {
837 _, isDir := parentDir.subdirs[leaf]
845 _, isLink := parentDir.symlinks[leaf]
847 delete(parentDir.symlinks, leaf)
849 _, isFile := parentDir.files[leaf]
857 delete(parentDir.files, leaf)
869 newParentPath, leaf := pathSplit(newPath)
881 newParentDir.symlinks[leaf] = m.newLink(oldPath)
890 parentPath, leaf := pathSplit(path)
891 if len(leaf) == 0 {
913 _, isFile := parentDir.files[leaf]
914 _, isLink := parentDir.symlinks[leaf]
918 _, isDir := parentDir.subdirs[leaf]
929 delete(parentDir.subdirs, leaf)
947 parentPath, leaf := filepath.Split(path)
960 inode, err := m.getInode(parentDir, leaf)