class_docstr: shared implementation for filesystem path objects.
docstr: ensure the path joined with args is a directory. 
docstr_tok: ["ensure","the","path","joined","with","args","is","a","directory","."]
code: def ensure_dir(self, *args):
      """ensure the path joined with args is a directory."""
      return self.ensure(*args, **{"dir": True})
  
imports: import warnings
  import os
  import sys
  import posixpath
  import fnmatch
  import py
label_desc: Use image node_id 17 for calling the PathBase obj's underlying member method code with example usage: obj.ensure_dir() and returns: self