MCPcopy Create free account
hub / github.com/ActiveState/code / sort_path

Method sort_path

recipes/Python/577635_Directory_Pruner_3/recipe-577635.py:835–837  ·  view source on GitHub ↗

If the node is open, sort its children by path.

(self)

Source from the content-addressed store, hash-verified

833 self.__sort(lambda child: child.file_size)
834
835 def sort_path(self):
836 "If the node is open, sort its children by path."
837 self.__sort(lambda child: child.path)
838
839 def __sort(self, key):
840 "Sort an expanded node's children by the given key."

Callers 1

sort_pathMethod · 0.45

Calls 1

__sortMethod · 0.95

Tested by

no test coverage detected