Lines Matching defs:path
140 std::string CopyImpl::GetRealPath(const std::string& path)
142 fs::path tempPath(path);
143 fs::path realPath{};
156 bool CopyImpl::IsFile(const std::string &path)
159 int ret = stat(path.c_str(), &buf);
167 std::tuple<int, uint64_t> CopyImpl::GetFileSize(const std::string &path)
170 int ret = stat(path.c_str(), &buf);
217 int CopyImpl::MakeDir(const std::string &path)
219 std::filesystem::path destDir(path);
252 receiveInfo->path = destPath;
294 bool CopyImpl::IsDirectory(const std::string &path)
297 int ret = stat(path.c_str(), &buf);
299 LOGE("stat failed, errno is %{public}d, path is %{public}s", errno, path.c_str());
312 fs::path srcPath = fs::u8path(src);
321 uint64_t CopyImpl::GetDirSize(std::shared_ptr<FileInfos> infos, std::string path)
328 int num = scandir(path.c_str(), &(pNameList->namelist), FilterFunc, alphasort);
333 std::string dest = path + '/' + std::string((pNameList->namelist[i])->d_name);
468 std::string fileName = receivedInfo->path;
644 LOGE("The src and dest is same, path = %{public}s", infos->srcPath.c_str());
689 receiveInfo->path = infos->destPath;