Hardlinks on NTFS

Wildemar Wildenburger wildemar at freakmail.de
Mon Sep 18 04:21:33 CEST 2006


Dieter Deyke wrote:
> This is my solution:
> 
> import os
> 
> def CreateHardLink(src, dst):
>     import ctypes
>     if not ctypes.windll.kernel32.CreateHardLinkA(dst, src, 0): raise OSError
> 
> os.link = CreateHardLink

Cool, thanks. :)

wildemar




More information about the Python-list mailing list