Classes | Functions
extract Namespace Reference

Classes

class  FileEntry
 
class  SymlinkEntry
 

Functions

def CheckedJoin (output, path)
 
def IterateTar (path, compression)
 
def IterateZip (path)
 
def main (args)
 

Function Documentation

◆ CheckedJoin()

def extract.CheckedJoin (   output,
  path 
)
CheckedJoin returns os.path.join(output, path). It does sanity checks to
ensure the resulting path is under output, but shouldn't be used on untrusted
input.

Definition at line 28 of file extract.py.

◆ IterateTar()

def extract.IterateTar (   path,
  compression 
)
IterateTar opens the tar.gz or tar.bz2 file at path and returns a generator of
entry objects for each file in it.

Definition at line 66 of file extract.py.

◆ IterateZip()

def extract.IterateZip (   path)
IterateZip opens the zip file at path and returns a generator of entry objects
for each file in it.

Definition at line 54 of file extract.py.

◆ main()

def extract.main (   args)

Definition at line 83 of file extract.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:10