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