提交 ec900f1c authored 作者: blu's avatar blu

bugfix: check 0 sized file

上级 04b87338
...@@ -1013,9 +1013,8 @@ public: ...@@ -1013,9 +1013,8 @@ public:
try{ try{
ofstream ofs(fname); ofstream ofs(fname);
ofs << postArgs; ofs << postArgs;
fs::path dirDest("/var/data/evsuits/failed_events/");
for(auto &f:fileNames){ for(auto &f:fileNames){
fs::copy(fs::path(string(f)), dirDest); fs::copy(fs::path(string(f)),fs::path(dirDest));
} }
}catch(exception &e) { }catch(exception &e) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论