Lines Matching refs:path
84 static int CheckFsStatByPath(const string &path, uv_fs_t* req)
86 int ret = uv_fs_stat(nullptr, req, path.c_str(), nullptr);
88 HILOG_ERROR("Failed to stat file with path");
94 static bool GetStat(const string &path, StatEntity &statEntity)
102 auto err = CheckFsStatByPath(path, stat_req.get());
110 static bool CheckDir(const string &path)
113 if (stat(path.c_str(), &fileInformation) == 0 && (fileInformation.st_mode & S_IFDIR)) {
121 static tuple<bool, int> Access(const string &path)
128 int ret = uv_fs_access(nullptr, access_req.get(), path.c_str(), 0, nullptr);
130 HILOG_ERROR("Failed to access file by path");
137 static bool Mkdir(const string &path)
144 int ret = uv_fs_mkdir(nullptr, mkdir_req.get(), path.c_str(), DIR_DEFAULT_PERM, nullptr);
270 static int ScanDir(const string &path)
277 HILOG_INFO("RecursiveFunc: scandir path = %{public}s", path.c_str());
278 return scandir(path.c_str(), &(pNameList->namelist), FilterFunc, alphasort);