MCPcopy
hub / github.com/Neo23x0/yarGen / get_files

Function get_files

yarGen.py:90–103  ·  view source on GitHub ↗
(dir, notRecursive)

Source from the content-addressed store, hash-verified

88
89
90def get_files(dir, notRecursive):
91 # Not Recursive
92 if notRecursive:
93 for filename in os.listdir(dir):
94 filePath = os.path.join(dir, filename)
95 if os.path.isdir(filePath):
96 continue
97 yield filePath
98 # Recursive
99 else:
100 for root, directories, files in scandir.walk(dir, followlinks=False):
101 for filename in files:
102 filePath = os.path.join(root, filename)
103 yield filePath
104
105
106def parse_sample_dir(dir, notRecursive=False, generateInfo=False, onlyRelevantExtensions=False):

Callers 2

parse_sample_dirFunction · 0.85
parse_good_dirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected