FutureOr<String?> saveAt(String rootPath) { var dirPath = pack_path.join(rootPath, directory); return getContentAsBytes().resolveMapped((content) { return storage.saveFileContent(dirPath, name, content); }); }