Merge pull request #2864 from pypeclub/bugfix/create_hardlink_fix

General: Fix hardlink for windows
This commit is contained in:
Jakub Trllo 2022-03-10 11:51:04 +01:00 committed by GitHub
commit 604df9b3a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,6 +43,7 @@ def create_hard_link(src_path, dst_path):
res = CreateHardLink(dst_path, src_path, None)
if res == 0:
raise ctypes.WinError()
return
# Raises not implemented error if gets here
raise NotImplementedError(
"Implementation of hardlink for current environment is missing."