relativeToCurrent static method

String relativeToCurrent(
  1. String folder
)

Returns a normalized, absolute path to the specified folder name from the current working directory. Supporting ../ and ./ traversal

since 0.4.0

Implementation

static String relativeToCurrent(String folder) {
  return path.normalize(
    const LocalFileSystem()
        .currentDirectory
        .childDirectory(folder)
        .absolute
        .path,
  );
}