normalizePath static method

String normalizePath(
  1. String path
)

Normalizes a file path according to the platform conventions.

Converts a path to its canonical form, resolving '..' and '.' segments and ensuring proper path separators for the current platform.

path The file path to normalize.

Returns the normalized path.

Implementation

static String normalizePath(String path) {
  return p.normalize(path);
}