def _FindOrphans(self, dirs, proj_dirs, proj_dirs_parents, outstring):
    status_header = ' --\t'
    for item in dirs:
      if not os.path.isdir(item):
        outstring.append(''.join([status_header, item]))
        continue
      if item in proj_dirs:
        continue
      if item in proj_dirs_parents:
        self._FindOrphans(glob.glob('%s/.*' % item) +
            glob.glob('%s/*' % item),
            proj_dirs, proj_dirs_parents, outstring)
        continue
      outstring.append(''.join([status_header, item, '/']))
Init method should do all expensive operations.
dataset/ETHPy150Open esrlabs/git-repo/subcmds/status.py/Status._FindOrphans--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/api/metadata/base.py/VendorDataDriver.__init__