You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is similar to #804 where New-Item did not understand broken symlinks, since it was trying to follow it. The semantics on Linux of copy/move/new is to treat the symlink as a normal file, instead of following it, but PowerShell does not do this.
I am a bit confused by the resolution of this issue. I am trying to do the exact same thing, copy a symlink but I get the same behaviour and I can't find an option to preserve the links when copying an item.
Andy Jordan (@andschwa) this is still an issue (at least for me on Windows)
When I use Copy-Item to copy a Symlink, it creates a new folder instead of creating a new Symlink with the same Target
Reacted by Myron Ng, arunhighoctavez, Deal, Shilan and Petru Zaharia
Activity
andyleejordan commentedon Apr 30, 2018
I assume this is covered by other bugs or fixed; and if not, at this point it hasn't been a big bug I guess.
mcleary commentedon Apr 8, 2020
I am a bit confused by the resolution of this issue. I am trying to do the exact same thing, copy a symlink but I get the same behaviour and I can't find an option to preserve the links when copying an item.
Is this issue really solved?
andyleejordan commentedon Apr 9, 2020
Joey Aiello (@joeyaiello) Can you triage this please?
andyleejordan commentedon Mar 30, 2021
This never got triaged and I don't know if it's still an issue, just closing for now.
kevinholtkamp commentedon Apr 3, 2022
Andy Jordan (@andschwa) this is still an issue (at least for me on Windows)
When I use Copy-Item to copy a Symlink, it creates a new folder instead of creating a new Symlink with the same Target
shilan commentedon Nov 7, 2024
I have a script like this
instead of copying it the file, it just creates a folder called E.lic