diff --git a/jaraco/windows/bugs/vista-symlink-islink-bug.py b/jaraco/windows/bugs/vista-symlink-islink-bug.py index f401c62..c3edf92 100644 --- a/jaraco/windows/bugs/vista-symlink-islink-bug.py +++ b/jaraco/windows/bugs/vista-symlink-islink-bug.py @@ -12,9 +12,7 @@ CreateSymbolicLink.argtypes = (LPWSTR, LPWSTR, DWORD) CreateSymbolicLink.restype = BOOLEAN - # FIXME: link and target are inverted from jaraco.windows.filesystem - # https://github.com/jaraco/jaraco.windows/issues/27 - def symlink(link, target, target_is_directory=False): # type: ignore[misc] + def symlink(target, link, target_is_directory=False): """ An implementation of os.symlink for Windows (Vista and greater) """ @@ -26,6 +24,6 @@ def symlink(link, target, target_is_directory=False): # type: ignore[misc] os.makedirs(r'.\foo') assert os.path.isdir(r'.\foo') -symlink(r'.\foo_sym', r'.\foo') +symlink(r'.\foo', r'.\foo_sym') assert os.path.isdir(r'.\foo_sym') assert os.path.islink(r'.\foo_sym') # fails