Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)
Extract specific files from archive to disk.

If "condition" is a list of numbers, then extract files which have those positions in infolist.
If "condition" is a string, then it is treated as a wildcard for names of files to extract.
If "condition" is a function, it is treated as a callback function, which accepts a RarInfo object
    and returns either boolean True (extract) or boolean False (skip).
DEPRECATED: If "condition" callback returns string (only supported for Windows) - 
    that string will be used as a new name to save the file under.
If "condition" is omitted, all files are extracted.
(more...)

src/h/u/humblebee-1.101/humblebee/unrarman.py   humblebee(Download)
            'Failed to open file "%s"' % path), None, sys.exc_info()[2]
    try:
        rf.extract(path=out_dir)
    except error as e:
        raise RARError(

src/c/o/comictagger-1.1.14-beta/comictaggerlib/UnRAR2/test_UnRAR2.py   comictagger(Download)
    assert (str(info)=="""<RarInfo "test" in "test.rar">""")
    break
rarc.extract()
assert os.path.exists('test'+os.sep+'test.txt')
assert os.path.exists('test'+os.sep+'this.py')
archive = UnRAR2.RarFile('test.rar')
assert archive.comment == 'This is a test.'
archive.extract(lambda rarinfo: rarinfo.size <= 1024)
for rarinfo in archive.infoiter():
    if rarinfo.size <= 1024 and not rarinfo.isdir:
cleanup('test2')
archive = UnRAR2.RarFile('test.rar')
archive.extract('*.py', 'test2', False)
assert os.path.exists('test2'+os.sep+'this.py')
cleanup('test2')
cleanup()
rarc = UnRAR2.RarFile('test_protected_files.rar', password="protected")
rarc.extract()
assert os.path.exists('test'+os.sep+'top_secret_xxx_file.txt')
cleanup()

src/n/o/NOT_UPDATED_Sick-Beard-Dutch-HEAD/lib/unrar2/test_UnRAR2.py   NOT_UPDATED_Sick-Beard-Dutch(Download)
    assert (str(info)=="""<RarInfo "test" in "test.rar">""")
    break
rarc.extract()
assert os.path.exists('test'+os.sep+'test.txt')
assert os.path.exists('test'+os.sep+'this.py')
archive = UnRAR2.RarFile('test.rar')
assert archive.comment == 'This is a test.'
archive.extract(lambda rarinfo: rarinfo.size <= 1024)
for rarinfo in archive.infoiter():
    if rarinfo.size <= 1024 and not rarinfo.isdir:
cleanup('test2')
archive = UnRAR2.RarFile('test.rar')
archive.extract('*.py', 'test2', False)
assert os.path.exists('test2'+os.sep+'this.py')
cleanup('test2')

src/l/i/litebook-HEAD/UnRAR2/test_UnRAR2.py   litebook(Download)
    assert (str(info)=="""<RarInfo "test" in "test.rar">""")
    break
rarc.extract()
assert os.path.exists('test'+os.sep+'test.txt')
assert os.path.exists('test'+os.sep+'this.py')
archive = UnRAR2.RarFile('test.rar')
assert archive.comment == 'This is a test.'
archive.extract(lambda rarinfo: rarinfo.size <= 1024)
for rarinfo in archive.infoiter():
    if rarinfo.size <= 1024 and not rarinfo.isdir:
cleanup('test2')
archive = UnRAR2.RarFile('test.rar')
archive.extract('*.py', 'test2', False)
assert os.path.exists('test2'+os.sep+'this.py')
cleanup('test2')