Displaying 1 result from an estimated 1 matches for "do_filesymlink".
2012 Oct 31
0
file.symlink() creates zero-size file/link on Windows 7/NTFS/admin
...e="base") on
creating symbolic links on Windows. Despite those, wouldn't it be
better if file.symlink() detected that it created an empty file/link
and removed it together with a warning/an error analogously to the
other conditions it may throw?
DETAILS:
>From src/main/platform.c::do_filesymlink() it looks like it's Windows
that creates the empty file but still returning 0:
#ifdef Win32
[...]
pCSL = (PCSL) GetProcAddress(GetModuleHandle(TEXT("kernel32.dll")),
"CreateSymbolicLinkW");
[...]
LOGICAL(ans)[i] = pCSL(to, from, isDir) != 0;
if(!LOGICAL(ans)[i])
war...