MCPcopy Create free account
hub / github.com/davidblewett/rure-python / iter_files

Function iter_files

regex/scripts/scrape_crates_io.py:116–126  ·  view source on GitHub ↗
(d, exclude=set())

Source from the content-addressed store, hash-verified

114
115
116def iter_files(d, exclude=set()):
117 for x in os.listdir(d):
118 if x in exclude:
119 continue
120
121 fullfp = os.path.abspath(d + "/" + x)
122 if os.path.isfile(fullfp):
123 yield fullfp
124 elif os.path.isdir(fullfp):
125 for f in iter_files(fullfp, exclude):
126 yield f
127
128
129class Crate(object):

Callers 1

iter_cratesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected