parameters: (path)
docstring: mkdir_p(path) - Make the "path" directory, if it does not exist; this
      will also make directories for any missing parent directories.
docstring_summary: mkdir_p(path) - Make the "path" directory, if it does not exist; this
      will also make directories for any missing parent directories.
docstring_tokens: mkdir_p ( path ) - Make the path directory if it does not exist ; this will also make directories for any missing parent directories .
function: def mkdir_p(path):
      """mkdir_p(path) - Make the "path" directory, if it does not exist; this
      will also make directories for any missing parent directories."""
      if not path or os.path.exists(path):
          return
  
      parent = os.path.dirname(path)
      if parent != path:
          mkdir_p(parent)
  
      mkdir(path)
function_tokens: def mkdir_p ( path ) : if not path or os . path . exists ( path ) : return parent = os . path . dirname ( path ) if parent != path : mkdir_p ( parent ) mkdir ( path )