This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author John.Jefferies
Recipients John.Jefferies, christian.heimes, loewis
Date 2013-06-26.14:13:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <51CAF718.9060702@ntlworld.com>
In-reply-to <1372250309.24.0.836415048333.issue18306@psf.upfronthosting.co.za>
Content
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
History
Date User Action Args
2013-06-26 14:13:45John.Jefferiessetrecipients: + John.Jefferies, loewis, christian.heimes
2013-06-26 14:13:45John.Jefferieslinkissue18306 messages
2013-06-26 14:13:45John.Jefferiescreate