Message262667
| Author |
jkloth |
| Recipients |
eryksun, jkloth, paul.moore, steve.dower, tim.golden, vstinner, zach.ware |
| Date |
2016年03月30日.14:02:46 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1459346566.56.0.871683681194.issue26658@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
To reproduce:
P:\python-default>PCBuild\amd64\python_d.exe
Python 3.6.0a0 (default:708beeb65026, Mar 30 2016, 08:50:27) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os, _winapi
>>> _winapi.CreateJunction('PCbuild', 'junctest')
>>> assert os.listdir('PCbuild') == os.listdir('junctest')
>>> os.path.exists('junctest')
False
>>> os.path.lexists('junctest')
True
>>> os.stat('junctest')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [WinError 1] Incorrect function: 'junctest'
>>> os.lstat('junctest')
os.stat_result(st_mode=16895, st_ino=1688849860290629, st_dev=719101600, st_nlink=1, st_uid=0, st_gid=0, st_size=0, st_atime=1459349589, st_mtime=1459349589, st_ctime=1459349589) |
|