jaraco / zipp

MIT License
61 stars 53 forks source link

Implement is_symlink #118

Closed jaraco closed 5 months ago

jaraco commented 5 months ago
jaraco commented 5 months ago

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