def _get_feeds_dir(lib):
 dirpath = lib.directory
 if (not os.path.exists(syspath(dirpath))):
  os.makedirs(syspath(dirpath))
 return dirpath

def _get_feeds_dir ( lib ) : dirpath = lib . directory if ( not os . path . exists ( syspath ( dirpath ) ) ) : os . makedirs ( syspath ( dirpath ) ) return dirpath
given a library object .