Serhiy Storchaka added the comment:

> * "read" will raise an exception when trying to read a symlink
>  (alternative: do symlink resolving, but that's too magical to my taste)

And perhaps when trying to read a directory entry too.

> * "extract" and "extractall" extract the symlink as a symlink
>  (but I'm not sure yet what to do on systems that don't support symlinks)

What the tar module do?

> * with the various file types it might be better to also provide
>  "islink(name)", "isdir(name)" and "isfile(name)" methods (simular to
>  their os.path equivalents)

Or rather as methods of the ZipInfo object. See TarInfo.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18595>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to