jaraco / jaraco.windows

MIT License
29 stars 7 forks source link

Cannot read symlinks #6

Closed jaraco closed 8 years ago

jaraco commented 9 years ago

Originally reported by: Ingolf Becker (Bitbucket: byRef, GitHub: byRef)


When reading a symlink on my windows system with

#!python
import os
import jaraco.windows.filesystem as fs
fs.patch_os_module()
print os.readlink(ur'\\?\D:\testlink.txt')

I get the following error:

#!python
Traceback (most recent call last):
  File "symToPerm.py", line 8, in <module>
    print os.readlink(ur'\\?\D:\testlink.txt')
  File "build\bdist.win-amd64\egg\jaraco\windows\filesystem\__init__.py", line 293, in readlink
TypeError: this function takes 8 arguments (4 given)

Should be fixed by pull request #2


jaraco commented 9 years ago

Original comment by Jason R. Coombs (Bitbucket: jaraco, GitHub: jaraco):


Fix released with 3.5. Thanks for the report and patch.