[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Jason R. Coombs
Jason R. Coombs added the comment: On Windows Vista and Windows 7, there should be a symlink directory: C:\Documents and Settings -> .\Users Perhaps a good test would be: assert 'Documents and Settings' in os.listdir('C:\\') As long as there aren't any i18n issues, and the system is a standa

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Alex Regueiro
Alex Regueiro added the comment: When listing the parent dir in which a dir symlink resides, the dir symlink doesn't show up. That's the one I noticed most. -- ___ Python tracker _

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Brian Curtin
Brian Curtin added the comment: symlinks when listing a dir and traverses them naturally when referencing them as part of a path to listdir. Under what conditions does it fail? > > -- > > ___ > Python tracker > > __

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Alex Regueiro
Alex Regueiro added the comment: No error whatsoever. Python just thinks it doesn't exist unfortunately. Same report from other users... -- ___ Python tracker ___ _

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Jason R. Coombs
Jason R. Coombs added the comment: Some variables could be a missing privilege or role, or perhaps a UAC restriction. What error do you get when you attempt to invoke os.listdir on a symlink directory? -- ___ Python tracker

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Alex Regueiro
Alex Regueiro added the comment: Well, at the very least it's a system-dependent issue, since I've tried out listdir and also file access on my system and some other Windows users'. -- ___ Python tracker

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Jason R. Coombs
Jason R. Coombs added the comment: Brian, I'm still not sure I see the problem with os.listdir. It includes symlinks when listing a dir and traverses them naturally when referencing them as part of a path to listdir. Under what conditions does it fail? --

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Alex Regueiro
Alex Regueiro added the comment: Thanks Bryan, that would be great. The elevated privs problem could potentially be avoided by creating symlinks using the Win32 API directly. As long as the appropiate group policy is set, one does not require admin privs to create symlinks. Perhaps symlink c

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Jason R. Coombs
Jason R. Coombs added the comment: I should mention that there is third-party symlink support in jaraco.windows (http://pypi.python.org/pypi/jaraco.windows). Just easy_install it, and then use jaraco.windows.filesystem.symlink. If there are features you need for symlink support in jaraco.wind

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Alex Regueiro
Alex Regueiro added the comment: What are you running? This is not what I get on Win7 x64, and I have had several other users in ##python on FreeNode confirm this inability. As far as Python is concerned, these dir sym links do not even exist. -- _

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Brian Curtin
Brian Curtin added the comment: I think we could still make os.listdir work properly. I'll look into a patch for this. One "problem" here is the testability, since we'd need to rely on the mklink CLI app to create the symlinks, which requires that the calling application (python.exe) has ele

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Jason R. Coombs
Jason R. Coombs added the comment: Python 2.7 is not aware of symlinks and treats them like their targets, so it should be able to list a symlink directory or access a file within one. For example: PS C:\Users\jaraco> cmd /c dir Volume in drive C is system Volume Serial Number is 2455-92A0

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Florent Xicluna
Changes by Florent Xicluna : -- components: +Windows type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith, jason.coombs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Alex Regueiro
New submission from Alex Regueiro : Python 2.7 has no knowledge of directory symlinks on Windows 7. Listing a directory symlink does not work, nor does accessing a file within one. This is quite a notable missing feature on Windows 7, where symlinks are becoming increasingly prevalent. --

[issue13412] No knowledge of symlinks on Windows

2011-11-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brian.curtin, tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: