Wildemar Wildenburger <[EMAIL PROTECTED]> writes:
> Hi :)
>
> I'm thinking of letting my program create hardlinks (or symlinks). I
> know python allows doing this for ext, reiser and the like, but
> apparently not for ntfs systems.
> Is there any package out there that lets me create links in a platform
> independent way?
>
> bye
> wildemar
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
--
Dieter Deyke
mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Vs lbh pna ernq guvf, lbh unir jnl gbb zhpu gvzr.
--
http://mail.python.org/mailman/listinfo/python-list