MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _find_unpack_format

Function _find_unpack_format

tools/python-3.11.9-amd64/Lib/shutil.py:1302–1307  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

1300 "xz'ed tar-file")
1301
1302def _find_unpack_format(filename):
1303 for name, info in _UNPACK_FORMATS.items():
1304 for extension in info[0]:
1305 if filename.endswith(extension):
1306 return name
1307 return None
1308
1309def unpack_archive(filename, extract_dir=None, format=None, *, filter=None):
1310 """Unpack an archive.

Callers 1

unpack_archiveFunction · 0.85

Calls 2

endswithMethod · 0.80
itemsMethod · 0.45

Tested by

no test coverage detected