original_docstring: Check if a directory exists. If not, create one.
docstring: Check if a directory exists. If not, create one.
docstring_tokens: Check if a directory exists . If not create one .
code: def check_dirs(path: str = None) -> str:
      '''Check if a directory exists. If not, create one.'''
      if path is None:
          path = APP_DIR
  
      if not os.path.exists(path):
          os.makedirs(path, exist_ok=True)
  
      return path
code_tokens: def check_dirs ( path : str = None ) -> str : if path is None : path = APP_DIR if not os . path . exists ( path ) : os . makedirs ( path , exist_ok = True ) return path
short_docstring: Check if a directory exists.
short_docstring_tokens: Check if a directory exists .
comment: '''Check if a directory exists. If not, create one.'''