@classmethod
  def crawl_local(cls, link):
    try:
      dirents = os.listdir(link.local_path)
    except __HOLE__ as e:
      TRACER.log('Failed to read %s: %s' % (link.local_path, e), V=1)
      return set(), set()
    files, dirs = partition([os.path.join(link.local_path, fn) for fn in dirents], os.path.isdir)
    return set(map(Link.from_filename, files)), set(map(Link.from_filename, dirs))
dataset/ETHPy150Open pantsbuild/pex/pex/crawler.py/Crawler.crawl_local