class_docstr:   Fundamental data type used to build file system tree structures.
  
    If CHILDREN is None, then the node represents a file. Otherwise, CHILDREN
  is a list of the nodes representing that directory's children.
  
    NAME is simply the name of the file or directory. CONTENTS is a string
  holding the file's contents (if a file).
class_docstr_tok: ["Fundamental","data","type","used","to","build","file","system","tree","structures",".","If","CHILDREN","is","None",",","then","the","node","represents","a","file",".","Otherwise",",","CHILDREN","is","a","list","of","the","nodes","representing","that","directory","'s","children",".","NAME","is","simply","the","name","of","the","file","or","directory",".","CONTENTS","is","a","string","holding","the","file","'s","contents","(","if","a","file",")","."]
code: def pprint(self):
      print(" * Node name: %s" % self.name)
      print("    Path:     %s" % self.path)
      print("    Contents: %s" % self.contents)
      if self.is_file():
          print("    Children: is a file.")
      else:
          print("    Children: %d" % len(self.children))
  
imports: import os
  import os.path
  import stat
  import sys
label_desc: Use image node_id 5 for calling the TreeNode obj's underlying member method code with example usage: obj.pprint() without return types