toFilePath function
Build a file path.
Implementation
String toFilePath(String parent, String path, {bool? windows}) {
var uri = Uri.parse(path);
path = uri.toFilePath(windows: windows);
if (isRelative(path)) {
return normalize(join(parent, path));
}
return normalize(path);
}