MCPcopy Index your code
hub / github.com/docker/docker-py / build_file_list

Function build_file_list

docker/utils/build.py:58–67  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

56
57
58def build_file_list(root):
59 files = []
60 for dirname, dirnames, fnames in os.walk(root):
61 for filename in fnames + dirnames:
62 longpath = os.path.join(dirname, filename)
63 files.append(
64 longpath.replace(root, '', 1).lstrip('/')
65 )
66
67 return files
68
69
70def create_archive(root, files=None, fileobj=None, gzip=False,

Callers 1

create_archiveFunction · 0.85

Calls 2

walkMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected