MCPcopy Create free account
hub / github.com/ActiveState/code / find

Method find

recipes/Python/492212_dal4py/recipe-492212.py:202–208  ·  view source on GitHub ↗
(self, block, name)

Source from the content-addressed store, hash-verified

200
201 # Looks For Name
202 def find(self, block, name):
203 pointers = self.list_directory(block)
204 names = [self.name(pointer) for pointer in pointers]
205 for block, temp_name in zip(pointers, names):
206 if temp_name == name:
207 return block
208 return 0
209
210 # Returns Directory/File Name
211 def name(self, block):

Callers 15

make_directoryMethod · 0.95
existsMethod · 0.95
decodeFunction · 0.45
file_matchesMethod · 0.45
do_GETMethod · 0.45
search_bmpFunction · 0.45
search_jpgFunction · 0.45
multilineFunction · 0.45
http_requestMethod · 0.45
formatMethod · 0.45
search4ipMethod · 0.45
decodeFunction · 0.45

Calls 2

list_directoryMethod · 0.95
nameMethod · 0.95

Tested by

no test coverage detected