Hi Leelakrishna,
It is my understanding that you are using the Code Importer Wizard for importing the legacy code.
According to the description, the tool doesn't search for the files in the sub-directories of the specified directory.
As a workaround, you may check the following function;
function getIncSubDir(incDir)
incSubDir = getSubDir(incDir);
fileID = fopen('incSubDir.txt','w');
fprintf(fileID, "%s\n", incSubDir{:});
The above function creates a text file containing the path to all the subdirectories.
The following workflow achieves the desired objective;
- Provide the path to the include directory as an input to this function.
getIncSubDir('.\include')
- Copy the text from the output text file.
- Paste it into the include "Include directories;" field of the Code Importer wizard.
I hope it helps!
Regards,
Shivam Malviya