Skip to content
Snippets Groups Projects
Forked from Platform / Development / swh-core
220 commits behind the upstream repository.
Antoine Lambert's avatar
Antoine Lambert authored
By default shutil.unpack_archive will try to match the archive format
from its extension but it does not do it in a case insensitive way.
Thus trying to extract a file named "archive.ZIP" will fail.

So try to detect archive format in a case insensitive way by processing
the data returned by shutil.get_unpack_formats prior unpacking.
632673f6
History

Software Heritage - Core foundations

Low-level utilities and helpers used by almost all other modules in the stack.

core library for swh's modules:

  • config parser
  • serialization
  • logging mechanism
  • database connection
  • http-based RPC client/server