Classes | |
class | FileEntry |
class | SymlinkEntry |
Functions | |
def | CheckedJoin (output, path) |
def | IterateTar (path, compression) |
def | IterateZip (path) |
def | main (args) |
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.
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.
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.
def extract.main | ( | args | ) |
Definition at line 83 of file extract.py.