RemovePath removes a node from the tree given its path.
(path string)
| 283 | |
| 284 | // RemovePath removes a node from the tree given its path. |
| 285 | func (tree *FileTree) RemovePath(path string) error { |
| 286 | node, err := tree.GetNode(path) |
| 287 | if err != nil { |
| 288 | return err |
| 289 | } |
| 290 | return node.Remove() |
| 291 | } |
| 292 | |
| 293 | type compareMark struct { |
| 294 | lowerNode *FileNode |