I successfully (?) set up a junction link between the cache folder used by Iron browser to point to another folder on a ram drive, yet when I view the contents and size of both folders they are identical.I was under the impression that a junction would "force" or re-direct a program to utilize the target and not the source. What gives? Why are both folders identical and how do I know if the program is actually using the target folder?
I am under the impression you don't have a clear concept of what a junction is.
When you create a junction, you are not actually creating a new folder. It's just a "shortcut", roughly speaking, to an already existing folder. Every action in one folder happens on the other folder, because it's a junction.
They are not 2 different folders. It's the same folder, with two different names and/or paths. Imagine a house with two different doors. The rooms inside and the stuff inside the rooms are the same. Right?
The folders are, as you say, "synced", because of this: they are actually the same folder. If you delete all the files from a junction, the original folder will be empty. For the same reason, a junction doesn't take up more space on the drive.
See the explanation about Hard links and junction links on the Microsoft MSDN:
Note: if you remove the original folder, the junction will still be present, pointing to nowhere and returning an error when you try to open it.
|show 2 more comments|