getDirPath function

String getDirPath(
  1. String path
)

Returns the directory path of a given file path.

Implementation

String getDirPath(String path) {
  final localSystemFilePath = toLocalSystemPathFormat(path);
  return p.dirname(localSystemFilePath);
}