Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
unpacking.py File Reference

Go to the source code of this file.

Namespaces

namespace  pip
 
namespace  pip._internal
 
namespace  pip._internal.utils
 
namespace  pip._internal.utils.unpacking
 

Functions

int current_umask ()
 
List[str] split_leading_dir (str path)
 
bool has_leading_dir (Iterable[str] paths)
 
bool is_within_directory (str directory, str target)
 
None set_extracted_file_to_default_mode_plus_executable (str path)
 
bool zip_item_is_executable (ZipInfo info)
 
None unzip_file (str filename, str location, bool flatten=True)
 
None untar_file (str filename, str location)
 
None unpack_file (str filename, str location, Optional[str] content_type=None)
 

Variables

 logger = logging.getLogger(__name__)
 
 SUPPORTED_EXTENSIONS = ZIP_EXTENSIONS + TAR_EXTENSIONS