大致效果,把分区改成动态读取但是依旧安全🤔😋
👍7🕊2🤔2😡1
std::string 设备名 = 分区;
size_t pos = 设备名.rfind('/');
if (pos != std::string::npos) {
设备名 = 设备名.substr(pos + 1);
}
添加日志("[擦除][w]成功 " + 设备名);
成功计数++;
size_t pos = 设备名.rfind('/');
if (pos != std::string::npos) {
设备名 = 设备名.substr(pos + 1);
}
添加日志("[擦除][w]成功 " + 设备名);
成功计数++;
👍5❤1