Home
last modified time | relevance | path

Searched refs:IsFileExists (Results 1 - 14 of 14) sorted by relevance

/base/hiviewdfx/hisysevent/adapter/native/idl/src/
H A Dfile_util.cpp30 bool IsFileExists(const std::string& file) in IsFileExists() function
49 return !IsFileExists(file) || (remove(file.c_str()) == 0); in RemoveFile()
54 return !IsFileExists(dir) || (rmdir(dir.c_str()) == 0); in RemoveDirectory()
69 if (!IsFileExists(subPath) && mkdir(subPath.c_str(), S_IRWXU) != 0) { in ForceCreateDirectory()
73 return IsFileExists(dir); in ForceCreateDirectory()
H A Dhisysevent_delegate.cpp236 if (FileUtil::IsFileExists(EVENT_DIR)) { in CreateHiviewDir()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/
H A Dfile_util.cpp32 bool IsFileExists(const std::string& file) in IsFileExists() function
51 return !IsFileExists(file) || (remove(file.c_str()) == 0); in RemoveFile()
56 return !IsFileExists(dir) || (rmdir(dir.c_str()) == 0); in RemoveDirectory()
71 if (!IsFileExists(subPath) && mkdir(subPath.c_str(), S_IRWXU) != 0) { in ForceCreateDirectory()
75 return IsFileExists(dir); in ForceCreateDirectory()
156 if (IsFileExists(file)) { in CreateFile()
/base/hiviewdfx/hiappevent/test/unittest/common/native/
H A Dhiappevent_cache_test.cpp227 ASSERT_TRUE(FileUtil::IsFileExists(TEST_DIR)); in HWTEST_F()
228 ASSERT_TRUE(FileUtil::IsFileExists(TEST_DB_PATH)); in HWTEST_F()
231 ASSERT_TRUE(FileUtil::IsFileExists(TEST_DB_PATH)); in HWTEST_F()
232 ASSERT_TRUE(FileUtil::IsFileExists(TEST_DIR)); in HWTEST_F()
234 ASSERT_FALSE(FileUtil::IsFileExists(file)); in HWTEST_F()
/base/hiviewdfx/hisysevent/adapter/native/idl/include/
H A Dfile_util.h26 bool IsFileExists(const std::string& file);
/base/sensors/miscdevice/utils/common/include/
H A Dfile_utils.h34 bool IsFileExists(const std::string &fileName);
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cleaner/
H A Dapp_event_log_cleaner.cpp50 if (!FileUtil::IsFileExists(delFile)) { in ClearSpace()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/include/
H A Dfile_util.h26 bool IsFileExists(const std::string& file);
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/
H A Dhiappevent_write.cpp79 if (!FileUtil::IsFileExists(dirPath) && !FileUtil::ForceCreateDirectory(dirPath)) { in WriteEvent()
/base/sensors/miscdevice/utils/common/src/
H A Dfile_utils.cpp57 if (!IsFileExists(realPath)) { in ReadJsonFile()
177 bool IsFileExists(const std::string &fileName) in IsFileExists() function
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/load/
H A Dmodule_loader.cpp43 if (FileUtil::IsFileExists(tempModulePath)) { in GetModulePath()
/base/hiviewdfx/hiappevent/frameworks/cj/ffi/src/
H A Dhiappevent_impl.cpp104 if (!FileUtil::IsFileExists(dirPath) && !FileUtil::ForceCreateDirectory(dirPath)) { in HiWriteEvent()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/
H A Dos_event_listener.cpp131 if (!FileUtil::IsFileExists(dirPath) && !FileUtil::ForceCreateDirectory(dirPath)) { in InitDir()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cache/
H A Dapp_event_store.cpp188 if (!FileUtil::IsFileExists(dirPath_) && !FileUtil::ForceCreateDirectory(dirPath_)) { in InitDbStoreDir()

Completed in 7 milliseconds