Home
last modified time | relevance | path

Searched refs:fileName (Results 1 - 12 of 12) sorted by relevance

/commonlibrary/utils_lite/js/builtin/filekit/include/
H A Dnativeapi_fs_impl.h31 char fileName[FILE_NAME_MAX_LEN + 1]; member
40 int WriteTextFile(const char* fileName, const void* buf, size_t len, bool append);
41 int WriteArrayFile(const char* fileName, const void* buf, size_t len, unsigned int position, bool append);
42 int ReadFileImpl(const char* fileName, void* text, size_t len, unsigned int position, size_t* actualLen);
45 int AccessImpl(const char* fileName);
46 int CreateDirImpl(const char* fileName, bool recursive);
47 int RemoveDirImpl(const char* fileName, bool recursive);
/commonlibrary/utils_lite/js/builtin/filekit/src/
H A Dnativeapi_fs_impl.c65 static int RmdirRecursive(const char* fileName) in RmdirRecursive() argument
67 if (!IsValidPath(fileName)) { in RmdirRecursive()
71 DIR* fileDir = opendir(fileName); in RmdirRecursive()
89 if (sprintf_s(fullPath, FILE_NAME_MAX_LEN + 1, "%s/%s", fileName, dir->d_name) < 0) { in RmdirRecursive()
105 ret = rmdir(fileName); in RmdirRecursive()
260 int WriteTextFile(const char* fileName, const void* buf, size_t len, bool append) in WriteTextFile() argument
262 if (!IsValidPath(fileName) || (buf == NULL)) { in WriteTextFile()
269 if (GetRealPath(fileName, resolvePath, PATH_MAX) != NATIVE_SUCCESS) { in WriteTextFile()
288 int WriteArrayFile(const char* fileName, const void* buf, size_t len, unsigned int position, bool append) in WriteArrayFile() argument
290 if (!IsValidPath(fileName) || (bu in WriteArrayFile()
326 ReadFileImpl(const char* fileName, void* text, size_t len, unsigned int position, size_t* actualLen) ReadFileImpl() argument
438 AccessImpl(const char* fileName) AccessImpl() argument
449 CreateDirImpl(const char* fileName, bool recursive) CreateDirImpl() argument
471 RemoveDirImpl(const char* fileName, bool recursive) RemoveDirImpl() argument
[all...]
H A Dnativeapi_fs.cpp189 JSI::SetStringProperty(tmp, FILE_URI, fileList[i].fileName); in GetFileListInner()
/commonlibrary/c_utils/base/include/
H A Dfile_ex.h47 bool RustFileExists(const rust::String& fileName);
48 bool RustStringExistsInFile(const rust::String& fileName, const rust::String& subStr, bool caseSensitive);
49 int RustCountStrInFile(const rust::String& fileName, const rust::String& subStr, bool caseSensitive);
130 bool FileExists(const std::string& fileName);
136 * @param fileName Indicates the path of the target file.
142 bool StringExistsInFile(const std::string& fileName, const std::string& subStr, bool caseSensitive = true);
148 * @param fileName Indicates the path of the target file.
154 int CountStrInFile(const std::string& fileName, const std::string& subStr, bool caseSensitive = true);
H A Ddirectory_ex.h33 rust::String RustExtractFileExt(const rust::String& fileName);
67 std::string ExtractFileExt(const std::string& fileName);
127 * @brief Removes the file specified by <b>fileName</b>.
132 bool RemoveFile(const std::string& fileName);
147 bool ChangeModeFile(const std::string& fileName, const mode_t& mode);
171 std::string TransformFileName(const std::string& fileName);
/commonlibrary/c_utils/base/src/
H A Dfile_ex.cpp88 bool RustFileExists(const rust::String& fileName) in RustFileExists() argument
90 std::string tmpName(fileName); in RustFileExists()
94 bool RustStringExistsInFile(const rust::String& fileName, const rust::String& subStr, bool caseSensitive) in RustStringExistsInFile() argument
96 std::string tmpName(fileName); in RustStringExistsInFile()
101 int RustCountStrInFile(const rust::String& fileName, const rust::String& subStr, bool caseSensitive) in RustCountStrInFile() argument
103 std::string tmpName(fileName); in RustCountStrInFile()
138 char fileName[PATH_MAX + 1] = {0}; in GetFileNameByFd() local
140 ssize_t ret = readlink(fdPath.c_str(), fileName, PATH_MAX); in GetFileNameByFd()
142 UTILS_LOGD("Get fileName failed, ret is: %{public}d!", ret); in GetFileNameByFd()
145 fileName[re in GetFileNameByFd()
151 string fileName = GetFileNameByFd(fd); LoadStringFromFdToFile() local
352 FileExists(const string& fileName) FileExists() argument
357 StringExistsInFile(const string& fileName, const string& subStr, bool caseSensitive ) StringExistsInFile() argument
399 CountStrInFile(const string& fileName, const string& subStr, bool caseSensitive ) CountStrInFile() argument
[all...]
H A Ddirectory_ex.cpp51 rust::String RustExtractFileExt(const rust::String& fileName) in RustExtractFileExt() argument
53 std::string tmpName = std::string(fileName); in RustExtractFileExt()
118 string ExtractFileExt(const string& fileName) in ExtractFileExt() argument
120 string::size_type pos = fileName.rfind("."); in ExtractFileExt()
125 return string(fileName).substr(pos + 1, fileName.size()); in ExtractFileExt()
327 bool RemoveFile(const string& fileName) in RemoveFile() argument
329 if (access(fileName.c_str(), F_OK) == 0) { in RemoveFile()
330 return remove(fileName.c_str()) == 0; in RemoveFile()
359 bool ChangeMode(const string& fileName, cons argument
364 ChangeModeFile(const string& fileName, const mode_t& mode) ChangeModeFile() argument
443 TransformFileName(const string& fileName) TransformFileName() argument
[all...]
/commonlibrary/c_utils/base/src/rust/
H A Dfile_ex.rs46 pub fn RustFileExists(fileName: &String) -> bool; in RustFileExists()
50 fileName: &String, in RustStringExistsInFile()
56 pub fn RustCountStrInFile(fileName: &String, subStr: &String, caseSensitive: bool) -> i32; in RustCountStrInFile()
H A Ddirectory_ex.rs61 pub fn RustExtractFileExt(fileName: &String) -> String; in RustExtractFileExt()
84 /// Remove the file specified by fileName.
85 pub fn RemoveFile(fileName: &CxxString) -> bool; in RemoveFile()
91 pub fn ChangeModeFile(fileName: &CxxString, mode: &u32) -> bool; in ChangeModeFile()
/commonlibrary/c_utils/base/test/fuzztest/directory_fuzzer/
H A Ddirectory_fuzzer.cpp60 string fileName = dataProvider->ConsumeRandomLengthString(MAX_DIR_LENGTH); in DirectoryTestFunc() local
61 ExtractFileExt(fileName); in DirectoryTestFunc()
63 string fileFullPath = testDir + fileName; in DirectoryTestFunc()
/commonlibrary/ets_utils/js_concurrent_module/common/helper/
H A Dpath_helper.h41 static bool CheckWorkerPath(napi_env env, std::string script, std::string fileName, bool isRelativePath) in CheckWorkerPath() argument
53 return CheckNormalizedWorkerPath(env, script, fileName, isRelativePath); in CheckWorkerPath()
84 static bool CheckNormalizedWorkerPath(napi_env env, std::string script, std::string fileName, bool isRelativePath) in CheckNormalizedWorkerPath() argument
90 size_t prev = fileName.find_first_of(SLASH_TAG); in CheckNormalizedWorkerPath()
92 moduleName = fileName.substr(0, prev); in CheckNormalizedWorkerPath()
113 static void ConcatFileNameForWorker(napi_env env, std::string &script, std::string &fileName, bool &isRelativePath) in ConcatFileNameForWorker() argument
119 reinterpret_cast<NativeEngine*>(env)->GetCurrentModuleInfo(moduleName, fileName, isRelativePath); in ConcatFileNameForWorker()
/commonlibrary/memory_utils/libdmabufheap/test/unittest/libdmabufheap/
H A Ddmabuf_alloc_test.cpp64 std::string fileName = ptr->d_name; in SetUp() local
65 std::string::size_type idx = fileName.find("system"); in SetUp()
67 heapName = fileName; in SetUp()

Completed in 7 milliseconds