Home
last modified time | relevance | path

Searched refs:absPath (Results 1 - 20 of 20) sorted by relevance

/foundation/filemanagement/storage_service/services/storage_daemon/utils/
H A Dset_flag_utils.cpp72 char absPath[PATH_MAX] = {0}; in SetFileDelFlags() local
73 if (realpath(filepath.c_str(), absPath) == nullptr) { in SetFileDelFlags()
77 FILE *f = fopen(absPath, "r+"); in SetFileDelFlags()
111 char absPath[PATH_MAX] = {0}; in SetDirDelFlags() local
112 if (realpath(dirpath.c_str(), absPath) == nullptr) { in SetDirDelFlags()
116 DIR *dir = opendir(absPath); in SetDirDelFlags()
/foundation/filemanagement/app_file_service/utils/src/b_error/
H A Db_excep_utils.cpp30 string absPath = BExcepUltils::Canonicalize(path); in VerifyPath() local
32 absPath.find(string(BConstants::PATH_BUNDLE_BACKUP_HOME) in VerifyPath()
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/clienttransproxyfilecommon_fuzzer/
H A Dclienttransproxyfilecommon_fuzzer.cpp43 char *absPath = nullptr; in ClientTransProxyFileCommonTest() local
56 GetAndCheckRealPath(filePath, absPath); in ClientTransProxyFileCommonTest()
/foundation/communication/dsoftbus/adapter/common/kernel/liteos_m/
H A Dsoftbus_adapter_file.c164 char *SoftBusRealPath(const char *path, char *absPath) in SoftBusRealPath() argument
167 (void)absPath; in SoftBusRealPath()
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/proxy/
H A Dclient_trans_proxy_file_common_test.cpp192 char absPath[PATH_MAX] = {0}; in HWTEST_F() local
193 ret = GetAndCheckRealPath(g_fileSet1[0], absPath); in HWTEST_F()
196 ret = GetAndCheckRealPath(g_fileSet1[2], absPath); in HWTEST_F()
/foundation/filemanagement/app_file_service/utils/src/b_json/
H A Db_json_entity_ext_manage.cpp55 string absPath; in CheckOwnPackTar() local
57 absPath = IncludeTrailingPathDelimiter(BExcepUltils::Canonicalize(ExtractFilePath(fileName))); in CheckOwnPackTar()
65 string::size_type pathPos = absPath.find(defaultBackupPath); in CheckOwnPackTar()
/foundation/ability/idl_tool/idl_tool_2/util/
H A Dfile.cpp286 char *absPath = _fullpath(realPath, path.c_str(), PATH_MAX); in CreatePartDir() local
288 char *absPath = realpath(path.c_str(), realPath); in CreatePartDir() local
290 return absPath == nullptr ? "" : absPath; in CreatePartDir()
/foundation/communication/dsoftbus/adapter/common/kernel/posix/
H A Dsoftbus_adapter_file.c298 char *SoftBusRealPath(const char *path, char *absPath) in SoftBusRealPath() argument
300 if ((path == NULL) || (absPath == NULL)) { in SoftBusRealPath()
301 COMM_LOGE(COMM_ADAPTER, "softbus realpath [path or absPath is null]"); in SoftBusRealPath()
306 if (realpath(path, absPath) == NULL) { in SoftBusRealPath()
310 realPath = absPath; in SoftBusRealPath()
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/proxy/include/
H A Dclient_trans_proxy_file_common.h48 int32_t GetAndCheckRealPath(const char *filePath, char *absPath);
/foundation/communication/dsoftbus/adapter/common/include/
H A Dsoftbus_adapter_file.h60 char *SoftBusRealPath(const char *path, char *absPath);
/foundation/filemanagement/dfs_service/utils/cloud_disk/src/
H A Dcloud_file_utils.cpp230 unique_ptr<char[]> absPath = make_unique<char[]>(PATH_MAX + 1); in LocalWriteOpen() local
231 if (realpath(dfsPath.c_str(), absPath.get()) == nullptr) { in LocalWriteOpen()
234 string realPath = absPath.get(); in LocalWriteOpen()
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/proxy/src/
H A Dclient_trans_proxy_file_common.c57 int32_t GetAndCheckRealPath(const char *filePath, char *absPath) in GetAndCheckRealPath() argument
59 if ((filePath == NULL) || (absPath == NULL)) { in GetAndCheckRealPath()
64 if (SoftBusRealPath(filePath, absPath) == NULL) { in GetAndCheckRealPath()
69 int32_t pathLength = (int32_t)(strlen(absPath)); in GetAndCheckRealPath()
H A Dclient_trans_proxy_file_manager.c782 char *absPath = (char *)SoftBusCalloc(PATH_MAX + 1); in GetFileSize() local
783 if (absPath == NULL) { in GetFileSize()
788 if (GetAndCheckRealPath(filePath, absPath) != SOFTBUS_OK) { in GetFileSize()
790 SoftBusFree(absPath); in GetFileSize()
794 if (SoftBusGetFileSize(absPath, fileSize) != SOFTBUS_OK) { in GetFileSize()
796 SoftBusFree(absPath); in GetFileSize()
800 SoftBusFree(absPath); in GetFileSize()
1161 char *absPath = realpath(rootDir, NULL); in UpdateFileReceivePath() local
1162 if (absPath == NULL) { in UpdateFileReceivePath()
1168 if (strcpy_s(fileListener->rootDir, FILE_RECV_ROOT_DIR_SIZE_MAX, absPath) ! in UpdateFileReceivePath()
[all...]
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/src/
H A Dclient_trans_file.c435 char *absPath = realpath(rootDir, NULL); in UpdateFileRecvPath() local
436 if (absPath == NULL) { in UpdateFileRecvPath()
443 if (strcpy_s(fileListener->rootDir, FILE_RECV_ROOT_DIR_SIZE_MAX, absPath) != EOK) { in UpdateFileRecvPath()
445 SoftBusFree(absPath); in UpdateFileRecvPath()
448 SoftBusFree(absPath); in UpdateFileRecvPath()
/foundation/filemanagement/app_file_service/tools/backup_tool/src/
H A Dtools_op_restore.cpp241 unique_ptr<char[]> absPath = make_unique<char[]>(PATH_MAX + 1); in GetRealPath() local
242 if (realpath(path.c_str(), absPath.get()) == nullptr) { in GetRealPath()
246 path = absPath.get(); in GetRealPath()
H A Dtools_op_incremental_restore.cpp256 string absPath = BExcepUltils::Canonicalize(path); in GetRealPath() local
257 if (access(absPath.data(), F_OK) != 0) { in GetRealPath()
/foundation/filemanagement/user_file_service/interfaces/kits/native/trash/src/
H A Dfile_trash_n_exporter.cpp78 unique_ptr<char[]> absPath = make_unique<char[]>(PATH_MAX + 1); in GetRealPath() local
79 if (realpath(path.c_str(), absPath.get()) == nullptr) { in GetRealPath()
82 path = absPath.get(); in GetRealPath()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/
H A Dmoving_photo_file_utils.cpp441 string absPath; in IsLivePhoto() local
442 if (!PathToRealPath(path, absPath)) { in IsLivePhoto()
446 UniqueFd livePhotoFd(open(absPath.c_str(), O_RDONLY)); in IsLivePhoto()
/foundation/communication/dsoftbus/sdk/transmission/session/src/
H A Dclient_trans_session_service.c628 char *absPath = realpath(rootDir, NULL); in IsValidFileReceivePath() local
629 if (absPath == NULL) { in IsValidFileReceivePath()
633 SoftBusFree(absPath); in IsValidFileReceivePath()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_file/class_file/
H A Dfile_n_exporter.cpp141 unique_ptr<char[]> absPath = make_unique<char[]>(PATH_MAX + 1); in GetRealPath() local
142 if (realpath(path.c_str(), absPath.get()) == nullptr) { in GetRealPath()
145 path = absPath.get(); in GetRealPath()

Completed in 17 milliseconds