@staticmethod<EOL><INDENT>def _get_node_dir(node):<DEDENT>
path = os.path.abspath(node)<EOL>return path if os.path.isdir(path) else os.path.dirname(path)<EOL>
Return the absolute path of the directory of a filesystem node.