Lines Matching defs:srcPath

101             if (infos->taskSignal->CheckCancelIfNeed(infos->srcPath)) {
228 int CopyImpl::CopySubDir(const std::string &srcPath, const std::string &destPath, std::shared_ptr<FileInfos> infos)
254 LOGE("Failed to find infos, srcPath = %{public}s, destPath = %{public}s", infos->srcPath.c_str(),
261 return RecurCopyDir(srcPath, destPath, infos);
264 int CopyImpl::RecurCopyDir(const std::string &srcPath, const std::string &destPath, std::shared_ptr<FileInfos> infos)
271 int num = scandir(srcPath.c_str(), &(pNameList->namelist), FilterFunc, alphasort);
275 std::string src = srcPath + '/' + std::string((pNameList->namelist[i])->d_name);
312 fs::path srcPath = fs::u8path(src);
314 if (srcPath.has_parent_path()) {
315 dirName = srcPath.parent_path().filename();
364 infos->srcPath = srcFileUri.GetRealPath();
366 infos->srcPath = GetRealPath(infos->srcPath);
564 if (IsFile(infos->srcPath) && IsFile(infos->destPath)) {
566 return CopyFile(infos->srcPath.c_str(), infos->destPath.c_str(), infos);
568 if (IsDirectory(infos->srcPath) && IsDirectory(infos->destPath)) {
569 if (infos->srcPath.back() != '/') {
570 infos->srcPath += '/';
576 return CopyDirFunc(infos->srcPath.c_str(), infos->destPath.c_str(), infos);
642 if (IsFile(infos->srcPath)) {
643 if (infos->srcPath == infos->destPath) {
644 LOGE("The src and dest is same, path = %{public}s", infos->srcPath.c_str());
691 if (IsDirectory(infos->srcPath)) {
692 callback->totalSize = GetDirSize(infos, infos->srcPath);
695 auto [err, fileSize] = GetFileSize(infos->srcPath);