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
tarfile list() method does not show file type #87264
Comments
|
The list() method of TarFile tarfile object shows question mark in place of file type in verbose mode. For instance This is because the call stat.filemode(tarinfo.mode) does not pass tarinfo.type to stat.filemode. The type needs to be properly encoded and added to the argument. My patch is attached. Verified under Linux, Cygwin and Windows. |
|
I've tested this patch on OS X with symbolic links, dirs, files and it works fine. |
|
Val: contributions are only now accepted in form of github PRs, not patches. |
|
|
Replaced by val-shkolnikov#1 |
pythongh-87264: tarfile list() method does not show file type.
Co-authored-by: val-shkolnikov <val@nvsoft.net>
Co-authored-by: val-shkolnikov <val@nvsoft.net>
Co-authored-by: val-shkolnikov <val@nvsoft.net>


Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
Linked PRs
The text was updated successfully, but these errors were encountered: