Lines Matching refs:realPath
301 char realPath[PATH_MAX] = {};
302 CHKPV(realpath(filePath.c_str(), realPath));
303 if (!IsValidProPath(realPath)) {
307 if (!IsFileExists(realPath)) {
311 if (!CheckFileExtendName(realPath, "pro")) {
315 auto fileSize = GetFileSize(realPath);
320 ReadProConfigFile(realPath, deviceId, configMap);
330 void ReadProConfigFile(const std::string &realPath, int32_t deviceId,
334 std::ifstream reader(realPath);
384 char realPath[PATH_MAX] = {};
385 CHKPS(realpath(filePath.c_str(), realPath));
386 if (!IsValidJsonPath(realPath)) {
390 if (!CheckFileExtendName(realPath, "json")) {
394 if (!IsFileExists(realPath)) {
398 int32_t fileSize = GetFileSize(realPath);
437 static int32_t ReadConfigFile(const std::string &realPath, DeviceConfig &devConf)
440 std::ifstream cfgFile(realPath);
481 char realPath[PATH_MAX] = {};
482 CHKPR(realpath(filePath.c_str(), realPath), RET_ERR);
483 if (!IsValidTomlPath(realPath)) {
487 if (!IsFileExists(realPath)) {
491 if (!CheckFileExtendName(realPath, "TOML")) {
495 int32_t fileSize = GetFileSize(realPath);
500 if (ReadConfigFile(realPath, devConf) == RET_ERR) {
518 char realPath[PATH_MAX] = {};
519 CHKPR(realpath(filePath.c_str(), realPath), RET_ERR);
520 int32_t fileSize = GetFileSize(realPath);
551 char realPath[PATH_MAX] = {};
552 CHKPS(realpath(filePath.c_str(), realPath));
553 if (!IsFileExists(realPath)) {
557 if (!CheckFileExtendName(realPath, checkExtension)) {
561 int32_t fileSize = GetFileSize(realPath);
566 return realPath;