MCPcopy Create free account
hub / github.com/HelenOS/helenos / listdir_items

Function listdir_items

tools/imgutil.py:88–100  ·  view source on GitHub ↗

Return a list of items to be packed inside a fs image

(path)

Source from the content-addressed store, hash-verified

86 self.size = self.stat.st_size
87
88def listdir_items(path):
89 "Return a list of items to be packed inside a fs image"
90
91 for name in os.listdir(path):
92 if name in exclude_names:
93 continue
94
95 item = ItemToPack(path, name)
96
97 if not (item.is_dir or item.is_file):
98 continue
99
100 yield item
101
102def chunks(item, chunk_size):
103 "Iterate contents of a file in chunks of a given size"

Callers 6

subtree_sizeFunction · 0.85
recursionFunction · 0.85
subtree_addMethod · 0.85
subtree_statsFunction · 0.85
subtree_addMethod · 0.85
subtree_statsFunction · 0.85

Calls 1

ItemToPackClass · 0.85

Tested by

no test coverage detected