toFilePath function

String toFilePath(
  1. String parent,
  2. String path, {
  3. bool? windows,
})

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);
}