MCPcopy Index your code
hub / github.com/nodejs/node / FindFilesIn

Method FindFilesIn

deps/v8/tools/v8_presubmit.py:547–562  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

545
546 # Overwriting the one in the parent class.
547 def FindFilesIn(self, path):
548 if exists(path+'/.git'):
549 output = subprocess.Popen('git ls-files --full-name',
550 stdout=PIPE, cwd=path, shell=True)
551 result = []
552 for file in decode(output.stdout.read()).split():
553 for dir_part in dirname(file).replace(os.sep, '/').split('/'):
554 if self.IgnoreDir(dir_part):
555 break
556 else:
557 if (self.IsRelevant(file) and exists(file)
558 and not self.IgnoreFile(file)):
559 result.append(join(path, file))
560 if output.wait() == 0:
561 return result
562 return super(SourceProcessor, self).FindFilesIn(path)
563
564 def IsRelevant(self, name):
565 for ext in SourceProcessor.RELEVANT_EXTENSIONS:

Callers

nothing calls this directly

Calls 11

IgnoreDirMethod · 0.95
IsRelevantMethod · 0.95
dirnameFunction · 0.90
joinFunction · 0.90
existsFunction · 0.85
decodeFunction · 0.70
splitMethod · 0.45
readMethod · 0.45
IgnoreFileMethod · 0.45
appendMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected