String parentPath(String path) { var pathLevels = path.split('/'); pathLevels.removeLast(); return pathLevels.join('/'); }