Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement is_symlink #118

Merged
merged 3 commits into from
May 26, 2024
Merged

Implement is_symlink #118

merged 3 commits into from
May 26, 2024

Conversation

jaraco
Copy link
Owner

@jaraco jaraco commented May 26, 2024

  • Expand the alpharep fixture to include a symlink.
  • Revise test to capture new expectation.
  • Implement is_symlink.

@jaraco
Copy link
Owner Author

jaraco commented May 26, 2024

I've confirmed this behavior also works as intended for a zip file created outside Python:

 draft @ ln -s /etc/passwd passwd_link
 draft @ zip -ry test.zip passwd_link
  adding: passwd_link (stored 0%)
 draft [1] @ pip-run git+https://github.com/jaraco/zipp@refs/pull/118/head -- -c 'import zipp; print(zipp.Path("test.zip", "passwd_link").is_symlink())'
  WARNING: Did not find branch or tag 'refs/pull/118/head', assuming revision or ref.
True

@jaraco jaraco merged commit 3a22d72 into main May 26, 2024
28 checks passed
@jaraco jaraco deleted the feature/is-symlink branch May 26, 2024 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant