Extract from filtered tarinfo to disk. filter_function is only used when extracting a *different* member (e.g. as fallback to creating a symlink)
(self, tarinfo, path, set_attrs, numeric_owner,
filter_function=None)
| 2528 | return filtered, unfiltered |
| 2529 | |
| 2530 | def _extract_one(self, tarinfo, path, set_attrs, numeric_owner, |
| 2531 | filter_function=None): |
| 2532 | """Extract from filtered tarinfo to disk. |
| 2533 | |
| 2534 | filter_function is only used when extracting a *different* |
| 2535 | member (e.g. as fallback to creating a symlink) |
| 2536 | """ |
| 2537 | self._check("r") |
| 2538 | |
| 2539 | try: |
| 2540 | self._extract_member(tarinfo, os.path.join(path, tarinfo.name), |
| 2541 | set_attrs=set_attrs, |
| 2542 | numeric_owner=numeric_owner, |
| 2543 | filter_function=filter_function, |
| 2544 | extraction_root=path) |
| 2545 | except (OSError, UnicodeEncodeError) as e: |
| 2546 | self._handle_fatal_error(e) |
| 2547 | except ExtractError as e: |
| 2548 | self._handle_nonfatal_error(e) |
| 2549 | |
| 2550 | def _handle_nonfatal_error(self, e): |
| 2551 | """Handle non-fatal error (ExtractError) according to errorlevel""" |
no test coverage detected