[issue8879] Implement os.link on Windows
Hirokazu Yamamoto
report at bugs.python.org
Fri Nov 26 01:26:53 CET 2010
Hirokazu Yamamoto <ocean-city at m2.ccsnet.ne.jp> added the comment:
Or, use GetFileInformationByHandleEx on Vista or above, and
NtQueryInformationFile under Vista. NtQueryInformationFile
is windows internal function and MS may change its behavior,
but probably we can think it won't happen on WinXP.
# These functions are needed to get real filename from
# open handle to set S_IEXEC.
And provide windows specific functions
os._open/os._lopen: open windows handle same as
CreateFile in os.stat/os.lstat
os._osfstat: stat for windows handle
os._close: close windows handle
and if the file is hard link, store windows handle anywhere
in TarFile object. (I created branch for it, but I'm not sure
I can do it)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8879>
_______________________________________
More information about the Python-bugs-list
mailing list