os.path.exists无法识别C:\ Windows \ system32 \ drivers下的子目录

谁能告诉我为什么这个行为展示:

C:\...>dir C:\Windows\System32\drivers\subdir\0xDEADBEEF.008 Volume in drive C is Win7HPx64 Volume Serial Number is 04BF-EE2E Directory of C:\Windows\System32\drivers\subdir\0xDEADBEEF.008 08/11/2011 04:21 PM <DIR> . 08/11/2011 04:21 PM <DIR> .. 0 File(s) 0 bytes 2 Dir(s) 11,581,788,160 bytes free C:\...>C:\Python27\python.exe Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> silo = r'C:\Windows\System32\drivers\subdir\0xDEADBEEF.008' >>> os.path.isdir(silo) False >>> os.path.exists(silo) False 

上述目录os.stat引发WindowsError:“[错误3]系统找不到指定的path….”

我尝试使用以“以pipe理员身份运行”上下文菜单启动的cmd控制台。 没有骰子:

作为管理员运行

如果您在64位Windows上使用32位Python版本,则对C:\ WINDOWS \ SYSTEM32的访问将被透明地重定向到C:\ WINDOWS \ SYSWOW64。 在64位系统上,SYSTEM32包含64位DLL,SYSWOW64包含32位DLL。

要从32位Python访问真正的SYSTEM32目录,请使用C:\ WINDOWS \ SYSNATIVE。

http://msdn.microsoft.com/en-us/library/aa384187%28v=vs.85%29.aspx