Returns the directory path of a given file path.
path
String getDirPath(String path) { final localSystemFilePath = toLocalSystemPathFormat(path); return p.dirname(localSystemFilePath); }