webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Functions | |
def | CheckedJoin (output, path) |
def | IterateZip (path) |
def | IterateTar (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.
def extract.IterateTar | ( | path | ) |
IterateTar opens the tar.gz file at path and returns a generator of (filename, mode, fileobj) tuples for each file in it.
def extract.IterateZip | ( | path | ) |
IterateZip opens the zip file at path and returns a generator of (filename, mode, fileobj) tuples for each file in it.
def extract.main | ( | args | ) |