diff --git a/filefunc.cpp b/filefunc.cpp index 65ff697..d2d26c3 100644 --- a/filefunc.cpp +++ b/filefunc.cpp @@ -31,7 +31,9 @@ void Filefunc::addSynctask(const QString &path) QString cloudPath=task->getRemotePath()+relativePath; headHeader tmpHeaders; preResponse response=cosclient->headObject(cloudPath,"",tmpHeaders); - response.getMetaDatas().isEmpty(); + if(!cosclient->isExist(response)){ + cosclient->putLocalObject(cloudPath,path); + } }