fs icon indicating copy to clipboard operation
fs copied to clipboard

Feature Request: `link_create()` on Windows networked drives

Open ddsjoberg opened this issue 2 years ago • 2 comments

Hello! Thank you for this wonderful package. :postbox:

Is it possible for link_create() to be updated to create symlinks to mapped network drives on Windows? I think the reason it's not already available is that it may require admin access as mentioned by Jim Hester in another issue for link_create() (comment copied below)? This issue is from 2018...perhaps libuv has now been updated to optionally not require admin access?

Thank you! :relaxed:

https://github.com/r-lib/fs/issues/79

fs::link_create() currently uses junctions on windows, which only support linking directories. This is because the Windows API requires the process to be elevated as administrator to create symbolic links (for both files and directories) using the CreateSymbolicLink() API. Recent versions of Windows 10 insiders builds include an option SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE to create symlinks without privelage elevation which is supported in libuv as of libuv/libuv@89d3193, however currently we are using an older version of libuv in this package.

ddsjoberg avatar Jul 28 '21 13:07 ddsjoberg

This will require a newer libuv, so it is on hold now.

gaborcsardi avatar Dec 08 '21 13:12 gaborcsardi

Are there any updates on this feature request?

tscheufen avatar Jun 26 '23 09:06 tscheufen