Searched refs:fileList (Results 1 - 3 of 3) sorted by relevance
/commonlibrary/utils_lite/js/builtin/filekit/src/ |
H A D | nativeapi_fs.cpp | 173 FileMetaInfo* fileList = reinterpret_cast<FileMetaInfo *>(malloc(fileNum * sizeof(FileMetaInfo)));
in GetFileListInner() local 174 if (fileList == nullptr) {
in GetFileListInner() 177 if (memset_s(fileList, fileNum * sizeof(FileMetaInfo), 0x0, fileNum * sizeof(FileMetaInfo)) != EOK) {
in GetFileListInner() 178 free(fileList);
in GetFileListInner() 181 int ret = GetFileListImpl(g_uriFullPath, fileList, fileNum);
in GetFileListInner() 183 free(fileList);
in GetFileListInner() 189 JSI::SetStringProperty(tmp, FILE_URI, fileList[i].fileName);
in GetFileListInner() 190 JSI::SetNumberProperty(tmp, FILE_LENGTH, fileList[i].fileSize);
in GetFileListInner() 191 JSI::SetNumberProperty(tmp, FILE_LAST_MODIFIED_TIME, fileList[i].fileMtime);
in GetFileListInner() 193 if (S_ISDIR(fileList[ in GetFileListInner() [all...] |
H A D | nativeapi_fs_impl.c | 367 int GetFileListImpl(const char* dirName, FileMetaInfo* fileList, unsigned int listNum)
in GetFileListImpl() argument 369 if (!IsValidPath(dirName) || (fileList == NULL)) {
in GetFileListImpl() 398 if (strcpy_s(fileList[fileIndex].fileName, FILE_NAME_MAX_LEN + 1, fullFileName) != EOK) {
in GetFileListImpl() 401 fileList[fileIndex].fileSize = fileStat.st_size;
in GetFileListImpl() 402 fileList[fileIndex].fileMtime = fileStat.st_mtime;
in GetFileListImpl() 403 fileList[fileIndex].fileMode = fileStat.st_mode;
in GetFileListImpl()
|
/commonlibrary/utils_lite/js/builtin/filekit/include/ |
H A D | nativeapi_fs_impl.h | 43 int GetFileListImpl(const char* dirName, FileMetaInfo* fileList, unsigned int listNum);
|
Completed in 2 milliseconds