bool Files::MoveSampleFolder(string src_path,string dst_path)
{
    int index = src_path.find_last_of("\\");
    string tem_path = src_path.substr(index);

    dst_path = dst_path + tem_path;

    rename(src_path.c_str(),dst_path.c_str());
    return true;

}

src_path 待移动文件夹

dst_path存放路径

Files是自己定义的一个类,可无视

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2021-12-24
  • 2022-12-23
猜你喜欢
  • 2022-03-05
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
  • 2022-01-31
  • 2022-12-23
  • 2022-01-07
相关资源
相似解决方案