I decided to write this post because yesterday I was talking with some of my friends and we were discussing how amazing it is to have all (pretty much all) files stored in the cloud, thus, not having to worry about losing them because of a stolen laptop or a problem with the hard drive. Well, but some of them were complaining that the thing they hate the most is the fact that they have to put (move or copy) all the files and folders into the folder of the application they are using, i.e Dropbox, where you have to copy (in other words duplicate) all the files you want to share into the dropbox folder.
But I believe that the user should not have to adapt in order to use an application, it is the application that should be able to work for any type of user. I don’t know about you guys, but I have all my files and folders in a very well organized hierarchy that I don’t want to change it just because I want to share or have my files backed up.
The solution to this problem is not new, the Mac OS X that has its roots in UNIX has a very neat feature that is called Symbolic Link (or just Symlink), even Windows has something like this, you should look for “mklink“. The formal definition is “A symbolic link is a special type of file that contains a reference to another file or directory in the form of an absolute or relative path and that affects pathname resolution“, if we translate this, it means that you don’t have a duplicated file, it is just one file that can be accessed from two or more different places.
You have to open Terminal and execute the command:
ln -s target_path link_path
or if you are already inside the link_path folder just execute the command:
ln -s target_path
You can see depicted in the images below that the commands are easy and now you have no excuse to have all your files and folders moved or copied (duplicated) into the Dropbox folder.
ln -s /Users/…/Scripts
Thank you for your time and feel free to leave any comments or questions.