MCPcopy Create free account
hub / github.com/PyTables/PyTables / undo_move

Function undo_move

tables/undoredo.py:116–122  ·  view source on GitHub ↗

Undo move node.

(file_: "File", origpath: str, destpath: str)

Source from the content-addressed store, hash-verified

114
115
116def undo_move(file_: "File", origpath: str, destpath: str) -> None:
117 """Undo move node."""
118 origpname, origname = split_path(origpath)
119
120 node = file_._get_node(destpath)
121 origparent = file_._get_node(origpname)
122 node._g_move(origparent, origname)
123
124
125def redo_move(file_: "File", origpath: str, destpath: str) -> None:

Callers 1

undoFunction · 0.85

Calls 3

split_pathFunction · 0.85
_get_nodeMethod · 0.80
_g_moveMethod · 0.45

Tested by

no test coverage detected