| 142 | } |
| 143 | |
| 144 | inline string joinpath(const string& dirname, const string& basename){ |
| 145 | if(dirname[dirname.length()-1] == '/'){ |
| 146 | return dirname + basename; |
| 147 | } else { |
| 148 | return dirname + "/" + basename; |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | //Check if a string is a file or directory |
| 153 | inline bool file_exists(const string& s) |
no test coverage detected