truepath function

String truepath(
  1. String part1, [
  2. String? part2,
  3. String? part3,
  4. String? part4,
  5. String? part5,
  6. String? part6,
  7. String? part7,
])

truepath creates an absolute and normalized path.

True path provides a safe and consistent manner for manipulating, accessing and displaying paths.

Works like join in that it concatenates a set of directories into a path. truepath then goes on to create an absolute path which is then normalize to remove any segments (.. or .).

Implementation

String truepath(
  String part1, [
  String? part2,
  String? part3,
  String? part4,
  String? part5,
  String? part6,
  String? part7,
]) =>
    normalize(absolute(join(part1, part2, part3, part4, part5, part6, part7)));