📅  最后修改于: 2022-03-11 14:48:09.433000             🧑  作者: Mango
var fileToCompressPath = fileToCompress.absolute.path;
final fileFormat = fileToCompressPath.substring(fileToCompressPath.lastIndexOf('.'));
fileToCompressPath = fileToCompressPath.replaceAll(fileFormat, '');