directory static method

String directory(
  1. String path
)

Returns the directory portion of the specified path.

Implementation

static String directory(String path) => p.dirname(path);