I want to do something, but I don't know how and I suspect that it isn't possible. I'm on Windows 10.
Imagine that I have a directory
c:\originalDirectory and I create a link at
c:\newDirectory by doing
mklink /d c:\newDirectory c:\originalDirectory.
My question is about the files that live inside a linked directory. When I delete
c:\newDirectory\exampleFile.jpg, the original file is also deleted at
c:\originalDirectory\exampleFile.jpg. Of course, the link itself
c:\newDirectory is not removed.
Doing a directory junction with
mklink /j c:\newDirectory c:\originalDirectory results in the same behavior.
Is there some form of link or file synchronization mechanism wherein if I delete
c:\newDirectory\exampleFile.jpg, the original file at
c:\originalDirectory\exampleFile.jpg is preserved? Of course, I would also want to preserve the link itself at
I recognize that if I create a links to the individual files themselves by doing
c:\originalDirectory\exampleFile.jpg, I can delete
c:\newDirectory\linkToExampleFile.jpg without deleting
c:\originalDirectory\exampleFile.jpg. But there are A LOT of files in
c:\originalDirectory so creating a link to each file doesn't seem like a great option.