os.link & NTFS 5

Irmen de Jong irmen at NOSPAM-REMOVETHIS-xs4all.nl
Fri Dec 27 17:31:58 EST 2002


Martin v. Löwis wrote:

> Alas, a single binary needs to support all Windows versions, that's why 
> CreateHardLink cannot be used.

If I'm not mistaken, (hard)links in the filesystem level are only supported
on NTFS 5 (windows 2000/xp). Even Windows NT 4 doesn't support them, let
alone the non-NT windows versions.

So, why could the single binary not check the OS version and either call
the CreateHardLink system call if it's supported, and throw an error when
it isn't?

Irmen




More information about the Python-list mailing list