Home
last modified time | relevance | path

Searched refs:IsValidPath (Results 1 – 25 of 34) sorted by relevance

12

/ohos5.0/commonlibrary/utils_lite/js/builtin/filekit/src/
H A Dnativeapi_fs_impl.c33 static bool IsValidPath(const char* path) in IsValidPath() function
67 if (!IsValidPath(fileName)) { in RmdirRecursive()
193 if (!IsValidPath(path) || (buf == NULL)) { in StatImpl()
205 if (!IsValidPath(src)) { in DeleteFileImpl()
217 if (!IsValidPath(src) || !IsValidPath(dest)) { in CopyFileImpl()
262 if (!IsValidPath(fileName) || (buf == NULL)) { in WriteTextFile()
290 if (!IsValidPath(fileName) || (buf == NULL)) { in WriteArrayFile()
328 if (!IsValidPath(fileName) || (text == NULL)) { in ReadFileImpl()
369 if (!IsValidPath(dirName) || (fileList == NULL)) { in GetFileListImpl()
440 if (!IsValidPath(fileName)) { in AccessImpl()
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/src/
H A Dbundle_daemon_handler.cpp264 return BundleFileUtils::IsValidPath(STORAGE + HAP_CODE_PATH, codePath) || in IsValideCodePath()
265 BundleFileUtils::IsValidPath(SDCARD + HAP_CODE_PATH, codePath); in IsValideCodePath()
273 return BundleFileUtils::IsValidPath(STORAGE + HAP_DATA_PATH, dataPath) || in IsValideDataPath()
274 BundleFileUtils::IsValidPath(SDCARD + HAP_DATA_PATH, dataPath); in IsValideDataPath()
282 return BundleFileUtils::IsValidPath(STORAGE + JSON_PATH, jsonPath); in IsValideJsonPath()
290 return BundleFileUtils::IsValidPath(SYSTEM_HAP_PATH, path) || in IsValideSystemPath()
291 BundleFileUtils::IsValidPath(THIRD_HAP_PATH, path); in IsValideSystemPath()
H A Dbundle_file_utils.cpp176 bool BundleFileUtils::IsValidPath(const std::string &rootDir, const std::string &path) in IsValidPath() function in OHOS::BundleFileUtils
/ohos5.0/base/security/huks/utils/file_operator/
H A Dhks_file_operator.c79 static int32_t IsValidPath(const char *path) in IsValidPath() function
253 if (IsValidPath(fullFileName) != HKS_SUCCESS) { in HksFileRemove()
270 if (IsValidPath(fullFileName) != HKS_SUCCESS) { in HksIsFileExist()
283 if (IsValidPath(path) != HKS_SUCCESS) { in HksIsDirExist()
291 if (IsValidPath(path) != HKS_SUCCESS) { in HksMakeDir()
309 if (IsValidPath(path) != HKS_SUCCESS) { in HksOpenDir()
344 if (IsValidPath(dirPath) != HKS_SUCCESS) { in HksRemoveDir()
449 if (IsValidPath(path) != HKS_SUCCESS) { in HksDeleteDir()
497 if (IsValidPath(fullFileName) != HKS_SUCCESS) { in HksFileRead()
516 if (IsValidPath(fullFileName) != HKS_SUCCESS) { in HksFileWrite()
[all …]
/ohos5.0/foundation/ability/dmsfwk/common/test/unittest/src/
H A Ddistributed_sched_utils_test.cpp64 EXPECT_FALSE(IsValidPath(inFilePath, realFilePath));
68 EXPECT_FALSE(IsValidPath(inFilePath, realFilePath));
87 EXPECT_TRUE(IsValidPath(inFilePath, realFilePath));
/ohos5.0/foundation/communication/netstack/frameworks/native/tls_socket/src/
H A Dtls_utils.cpp27 bool IsValidPath(const std::string &filePath) in IsValidPath() function
40 if (!IsValidPath(tmpPath)) { in CheckFilePath()
/ohos5.0/base/request/request/frameworks/js/napi/src/upload/
H A Dobtain_file.cpp94 bool ObtainFile::IsValidPath(const std::string &filePath) in IsValidPath() function in OHOS::Request::Upload::ObtainFile
130 if (!IsValidPath(filePath)) { in GetInternalFile()
/ohos5.0/foundation/multimodalinput/input/util/common/src/
H A Dutil.cpp273 static bool IsValidPath(const std::string &rootDir, const std::string &filePath) in IsValidPath() function
280 return IsValidPath(DATA_PATH, filePath) || IsValidPath(INPUT_PATH, filePath); in IsValidJsonPath()
285 return IsValidPath(KEY_PATH, filePath); in IsValidProPath()
290 return IsValidPath(KEY_PATH, filePath); in IsValidTomlPath()
/ohos5.0/base/hiviewdfx/hiview_lite/
H A Dhiview_file.c276 int IsValidPath(const char *path) in IsValidPath() function
297 if (path == NULL || IsValidPath(path) != 0) { in RegisterFileWatcher()
317 if (IsValidPath(fp->outPath) == 0) { in UnRegisterFileWatcher()
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/include/
H A Dbundle_file_utils.h39 static bool IsValidPath(const std::string &rootDir, const std::string &path);
/ohos5.0/foundation/ability/dmsfwk/common/include/
H A Ddistributed_sched_utils.h29 bool IsValidPath(const std::string &inFilePath, std::string &realFilePath);
/ohos5.0/foundation/filemanagement/app_file_service/interfaces/common/include/
H A Dsandbox_helper.h40 static bool IsValidPath(const std::string &path);
/ohos5.0/foundation/ability/dmsfwk/common/src/
H A Ddistributed_sched_utils.cpp60 bool IsValidPath(const std::string &inFilePath, std::string &realFilePath) in IsValidPath() function
129 (g_continueCfgFullPath.empty() || !IsValidPath(tempPath, g_continueCfgFullPath))) { in LoadContinueConfig()
150 if (!IsValidPath(tempPath, g_continueCfgFullPath)) { in LoadContinueConfig()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/
H A Dstd_file.h62 bool IsValidPath(const BASE_NS::string_view path); in CORE_BEGIN_NAMESPACE()
H A Dstd_file.cpp101 bool StdFile::IsValidPath(const string_view /* path */) in IsValidPath() function in StdFile
/ohos5.0/base/request/request/frameworks/js/napi/include/upload/
H A Dobtain_file.h45 bool IsValidPath(const std::string &filePath);
/ohos5.0/foundation/bundlemanager/app_domain_verify/interfaces/inner_api/client/src/
H A Dapp_domain_verify_mgr_client.cpp200 bool AppDomainVerifyMgrClient::IsValidPath(const std::string& path) in IsValidPath() function in OHOS::AppDomainVerify::AppDomainVerifyMgrClient
242 if (!IsValidPath(segments[0])) { in IsValidUrl()
/ohos5.0/base/msdp/device_status/utils/common/src/
H A Dutil.cpp265 bool IsValidPath(const std::string &rootDir, const std::string &filePath) in IsValidPath() function
272 return IsValidPath(SVG_PATH, filePath); in IsValidSvgPath()
/ohos5.0/foundation/bundlemanager/app_domain_verify/interfaces/inner_api/client/include/
H A Dapp_domain_verify_mgr_client.h145 bool IsValidPath(const std::string& url);
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/verify/
H A Dverify_manager_host_impl.cpp43 bool IsValidPath(const std::string &path) in IsValidPath() function
300 if (!IsValidPath(abcPath)) { in CheckFileParam()
500 if (!IsValidPath(path)) { in DeleteAbc()
/ohos5.0/foundation/filemanagement/app_file_service/interfaces/innerkits/native/remote_file_share/src/
H A Dremote_file_share.cpp225 if (!SandboxHelper::IsValidPath(PACKAGE_PATH)) { in CreateSharePath()
282 if (!SandboxHelper::IsValidPath(sandboxPath) || uri.GetScheme() != FILE_SCHEME) { in GetPhysicalPath()
494 if (!SandboxHelper::IsValidPath(sandboxPath) || uri.GetScheme() != FILE_SCHEME) { in TransRemoteUriToLocal()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_install_daemon_test/
H A Dbms_install_daemon_operator_test.cpp742 auto ret = InstalldOperator::IsValidPath("", "");
744 ret = InstalldOperator::IsValidPath("/test/", "");
746 ret = InstalldOperator::IsValidPath("/test", "");
748 ret = InstalldOperator::IsValidPath("..test", "");
750 ret = InstalldOperator::IsValidPath("//", "..");
/ohos5.0/foundation/filemanagement/app_file_service/interfaces/innerkits/native/file_share/src/
H A Dfile_share.cpp143 if (!SandboxHelper::IsValidPath(shareRPath) || !SandboxHelper::IsValidPath(shareRWPath)) { in GetSharePath()
/ohos5.0/base/msdp/device_status/utils/common/include/
H A Dutil.h154 bool IsValidPath(const std::string &rootDir, const std::string &filePath);
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/extend_resource/
H A Dextend_resource_manager_host_impl.cpp46 bool IsValidPath(const std::string &path) in IsValidPath() function
141 if (!IsValidPath(filePath)) { in CheckFileParam()

12