I am trying to use a USB PENDRIVE to increase my current path for building a large library.
So, I have this idea of creating a symlink in my program to a folder in the Pendrive. So that it uses the space in the Pen Drive instead of my main storage.
/home/me/opencv/ <-- this is the product I want to build
/home/me/opencv/build/ <-- this is the build folder.
At this point there is not enough memory to build it there, so I created this symlink in
mkdir /media/me/pendrive/opencv/build/ ln -s /media/me/pendrive/opencv/build/ /home/me/opencv/ -s
this created a link "build" under
/home/me/opencv/ folder that points to my pen drive.
The problem here is that directory traversal points to the pen drive too.
cd /home/me/opencv ls
this renders a number of folders and files inside opencv folder
But if I do...
cd /home/me/opencv/build ls ..
this renders an empty opencv folder with an only folder named build.