isNewPath = true; for (0; isNewPath; 0) { isNewPath = false; paths = splitstring(paths_string,endl); for(i=1:length(paths)) { if (paths{i} != "" and paths{i} != "." and paths{i} != ".." # and findstring(paths{i},"result")== -1 ) { #? "root path to check: "+ paths{i}; cd(paths{i}); files = splitstring(dir,endl); for(i=1:length(files)) { path_to_check = files{i}; hpc_try_path; } } } }