Thursday, June 17, 2010

Symbolic links in NTFS

While working on a new Sencha (formerly ExtJS) based interface, I had to put the code in development onto a web server - so the AJAX/JSON stuff could work properly. As I didn't want to mess up my folder structure, and copying the data over to the www folder seemed a little too much, I thought I could just create a symlink to the proper directory. ln -s should do the trick, however, the Cygwin symlink didn't work (don't know why), as well as the Windows shortcut.

The solution is to use NTFS symlinks, which is an unsupported and poorly documented feature of the NT File System. To use it, I downloaded a program called junction from http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx - and guess what, it worked!