12345678910111213141516171819202122232425 |
- slash = "/";
- if (operatingsystem == "windows") {slash = "\\";}
- if (path_to_check != ""
- and path_to_check != "."
- and path_to_check != ".."
- and findstring(path_to_check,"result")== -1
- ) {
- errMsg = "";
- tmp_curdir = pwd;
- try {
- cd(path_to_check);
- cd(tmp_curdir);
- } catch(errMsg);
- if (errMsg == "") {
- full_path = tmp_curdir+slash+path_to_check;
- #?"--> test --> "+full_path;
- if ( findstring(paths_string, full_path+endl) == -1) {
- #?"adding";
- isNewPath = true;
- paths_string = paths_string + full_path+endl;
- }
- }
-
- }
|