Skip to content

Commit

Permalink
Add back fix_symlink as a wrapper to let tests run.
Browse files Browse the repository at this point in the history
  • Loading branch information
e3krisztian committed Feb 14, 2024
1 parent b11fe46 commit 3195805
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions unblob/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ def is_recursive_link(path: Path) -> bool:
return False


def fix_symlink(path: Path, outdir: Path, task_result: TaskResult) -> Path:
# This is a temporary function for existing unit tests in tests/test_extractor.py
fix_extracted_directory(outdir, task_result)
return path


def sanitize_symlink_target(base_dir, current_dir, target):
# Normalize all paths to their absolute forms
base_dir_abs = os.path.abspath(base_dir)
Expand Down

0 comments on commit 3195805

Please sign in to comment.