I have a c++ program which processes a file and during that it creates few folders recursively at certain known path. The name of new folders are not known as they are created by another c++ program which is invoked internally by my program. One of the folder somewhere is "process". I need to change my current directory to "process" without directly knowing full path. Can someone tell how to do that?
For example - If I am running my program "sample" from /home/mumbaikar/cpp/sample, it creates input/1234/5678/abcd/process under /home/mumbaikar/cpp/sample. I am only aware of input folder but not any folder after that till "process". Now I want to seek or change dir to "process".
How can I do it?