getcwd static method

String getcwd()

Returns the path of the current directory.

Implementation

static String getcwd() {
  var path = Directory.current.path;
  if (_isWindows) {
    path = path.replaceAll('\\', '/');
  }

  return path;
}