pathJoin function
Joins the given path parts into a single path
Implementation
String pathJoin(List<String> parts) {
if (parts.isEmpty) {
return '';
}
String path = parts[0];
for (int i = 1; i < parts.length; i++) {
path = path_path.join(path, parts[i]);
}
return pathExpand(path);
}