John Jefferies added the comment: On 26/06/2013 13:38, Christian Heimes wrote: > Christian Heimes added the comment: > > On my Windows box (Win 7) I'm getting an error with Python 3.2 and 3.3. It > looks like I'm not allowed to enter the parent directory (Zugriff verweigert > == Permission Denied):
Ah. You need to be an administrator to look at the system directories? [I'm also on Win7]. > Neither os.stat() nor os.lstat() have failed with an exception. There > must be something different going on on your system. I didn't look closely enough; only the junctions in system folders are failing for me with an exception. The junctions in my user directory are not. I do hope I haven't wasted too much of your time in not describing the problem correctly. > By the way junction points are soft links but not symbolic links. They > are implemented as a different kind of NTFS reparsing points. Python > should not treat a junction point as a link but have yet another check > for it. I realise there are differences between junctions and symlinks at the ntfs level, but the only things that seem relevant to the application are that junctions are limited to directories on a local volume. So I consider junctions to be a subset of symlinks. Regardless, any reliable indication that a directory is a junction would be useful, and the hack I've been using thus far appeared to work for all the junctions on my system. > PS: You should use raw strings on Windows or escape the backslashes. Yes, I'm ashamed, I did know that but missed it from the example. Many thanks. John ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18306> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com