joinPath static method

String joinPath(
  1. List<String> components
)

Joins multiple path components into a single path

Example:

  • joinPath('path', 'to', 'file.dart') returns 'path/to/file.dart'

Implementation

static String joinPath(List<String> components) {
  if (components.isEmpty) {
    throw ArgumentError('Path components cannot be empty');
  }

  return p.joinAll(components);
}