Method, device, medium and equipment for searching files under multi-level folder
By segmenting and paginating multi-level folders, the problems of low search efficiency and high computational resource consumption in existing technologies are solved, achieving efficient file search.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GAODING XIAMEN TECH CO LTD
- Filing Date
- 2022-11-15
- Publication Date
- 2026-07-21
AI Technical Summary
In multi-level folders, existing pagination search technologies are inefficient. While snapshots combined with cursors can solve the performance problem of deep pagination, the initial query is inefficient and consumes a lot of memory, leading to excessive service pressure.
By receiving search requests from the target terminal, the subfolders within the target folder are segmented according to the folder identifier, dividing them into subfolder sets. Each set is then queried one by one based on file feature information. If a match is found, pagination is performed and the results are returned, reducing the amount of data queried each time.
It improves search efficiency, reduces computing resource consumption, and enhances user experience and search performance.
Smart Images

Figure CN115827562B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of computer and communication technology, and more specifically, to a method, apparatus, medium, and device for searching files in a multi-level folder. Background Technology
[0002] Current technical solutions typically employ either pagination or a combination of snapshots and cursors to retrieve search results from large datasets. However, pagination is inefficient in hierarchical data scenarios, while the snapshot-cursor approach, although addressing the performance issues of deep pagination, suffers from low efficiency on the first query and consumes significant memory, potentially leading to excessive service pressure with frequent use. Therefore, improving search efficiency while reducing computational resource consumption has become a pressing technical challenge. Summary of the Invention
[0003] The embodiments of this application provide a method, apparatus, medium, and device for searching files in multi-level folders, which can at least to some extent improve search efficiency and reduce the computing resources occupied.
[0004] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.
[0005] According to one aspect of the embodiments of this application, a method for searching files in a multi-level folder is provided, the method comprising:
[0006] Receive a search request sent by the target terminal for a target file in a target folder, the search request including the folder identifier of the target folder and the file feature information of the target file;
[0007] Based on the folder identifier, the subfolders within the target folder are segmented to divide the subfolders into at least one set of subfolders.
[0008] Based on the file characteristic information of the target file, each of the subfolder sets is queried one by one;
[0009] If at least one file to be displayed exists in the currently queried subfolder set that matches the file feature information, the at least one file to be displayed will be paginated to obtain at least one corresponding file pagination;
[0010] The at least one file is paginated and fed back to the target terminal in sequence.
[0011] According to one aspect of the embodiments of this application, a file search device under a multi-level folder is provided, the device comprising:
[0012] The receiving module is used to receive a search request sent by the target terminal for a target file in a target folder. The search request includes the folder identifier of the target folder and the file feature information of the target file.
[0013] The segmentation module is used to segment several subfolders within the target folder according to the folder identifier, so as to divide the several subfolders into at least one set of subfolders;
[0014] The query module is used to query each of the subfolder sets one by one based on the file feature information of the target file.
[0015] The pagination module is used to paginate the at least one file to be displayed if there is at least one file to be displayed that matches the file feature information in the currently queried subfolder set, so as to obtain at least one file pagination.
[0016] The processing module is used to sequentially send the at least one file page to the target terminal.
[0017] According to one aspect of the embodiments of this application, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the file search method under multi-level folders as described in the above embodiments.
[0018] According to one aspect of the embodiments of this application, an electronic device is provided, including: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the file search method under multi-level folders as described in the above embodiments.
[0019] According to one aspect of the embodiments of this application, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the file search method under multi-level folders provided in the above embodiments.
[0020] In some embodiments of this application, the technical solutions involve receiving a search request from a target terminal for target files within a target folder. This search request includes the folder identifier of the target folder and the file characteristic information of the target files. Based on the folder identifier, several sub-files within the target folder are segmented into at least one set of sub-folders. Then, based on the file characteristic information of the target files, each set of sub-folders is queried sequentially. If at least one file matching the file characteristic information exists in the currently queried set of sub-folders, this file is paginated to obtain at least one corresponding file pagination. This at least one file pagination is then sequentially sent back to the target terminal. This approach divides a large number of sub-folders into multiple sets for sequential querying, reducing the amount of data in each query. If a corresponding file exists in the currently queried set of sub-folders, a corresponding file pagination is generated for display, thereby improving search efficiency and reducing computational resource consumption.
[0021] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0022] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:
[0023] Figure 1 A flowchart illustrating a file search method under a multi-level folder according to an embodiment of this application is shown;
[0024] Figure 2 A block diagram of a file search apparatus under a multi-level folder according to an embodiment of this application is shown;
[0025] Figure 3 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown. Detailed Implementation
[0026] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art.
[0027] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0028] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0029] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0030] Figure 1 A flowchart illustrating a file search method under a multi-level folder according to an embodiment of this application is shown. This method can be applied to a terminal device or a server, wherein the terminal device may include, but is not limited to, one or more of smartphones, tablets, laptops, and desktop computers. The server may be a physical server or a cloud server, and may be a single server or a server cluster consisting of multiple servers, etc., without particular limitation.
[0031] Reference Figure 1 As shown, the file search method under this multi-level folder includes at least steps S110 to S150, which are described in detail below (the following explanation uses the application of this method to a server as an example):
[0032] In step S110, a search request for a target file within a target folder is received from the target terminal. The search request includes the folder identifier of the target folder and the file feature information of the target file.
[0033] Among them, file feature information can be relevant feature information of the file that the user wants to search for, that is, search conditions, which may include, but are not limited to, one or more of the following: file name, file size, modification time, file type or file content keywords.
[0034] In one embodiment, when a user needs to perform a file search, the search scope (i.e., the target folder) can be predetermined. For example, the user can enter the target folder, input the file characteristic information of the target file in the search box of the target folder's display interface, and click search to generate a corresponding search request, which is then sent to the server. When the server receives the search request for the target file within the target folder sent by the target terminal (i.e., the terminal device used by the user), it can parse the search request to obtain the folder identifier of the target folder and the file characteristic information of the target file. The folder identifier can be a folder number or folder name, etc., and is not specifically limited thereto.
[0035] In step S120, based on the folder identifier, several subfolders within the target folder are segmented to divide the several subfiles into at least one set of subfolders.
[0036] Specifically, it should be understood that a folder can contain one or more subfolders or files. Therefore, the server can determine the corresponding target folder and the number of subfolders within that target folder based on the folder identifier. Furthermore, the server can segment these subfolders into at least one set of subfolders. For example, if the target folder contains 5000 subfolders, it can be segmented into 50 sets of subfolders, each set containing 100 subfolders, and so on.
[0037] In one example, subfolders can be segmented based on their folder names; that is, first sorted by filename, then grouped into sets of subfolders with a predetermined number of subfolders in the sorted order. In another example, a predetermined number of subfolders can be randomly selected to form a set of subfolders. Those skilled in the art can determine the appropriate segmentation method based on actual implementation needs, and no special limitations are imposed on this.
[0038] It should be noted that the number of subfolders contained in the subfolder set can be preset by those skilled in the art, or it can be adaptively determined based on the total number of subfolders contained in the target folder, and no special limitation is made in this regard.
[0039] In step S130, each of the subfolder sets is queried one by one according to the file feature information of the target file.
[0040] In this embodiment, the server can query each subfolder set based on the file feature information of the target file. Specifically, it can compare the file feature information with the file information of the files contained in the subfolder set to determine whether there are any files in the subfolder set that match the file feature information of the target file.
[0041] In step S140, if there is at least one file to be displayed in the currently queried subfolder set that matches the file feature information, the at least one file to be displayed is paginated to obtain at least one corresponding file pagination.
[0042] In this embodiment, during the query process of a set of subfolders, if a file matching the file feature information exists within the currently queried set, the server can perform pagination on the file to be displayed, resulting in at least one corresponding file pagination. It should be understood that a set of subfolders can correspond to one or more file paginations, for example, every 10 or 20 files to be displayed constitute one file pagination. In one example, this file pagination can contain general information about each file to be displayed, including the filename and a highlighted representation of the portion matching the file feature information. For example, if the file feature information is file content keywords, the server can extract the portion of the file containing those keywords and display it in the file pagination, thus allowing the user to clearly determine whether the file to be displayed is the desired target file.
[0043] In step S150, the at least one file page is sequentially fed back to the target terminal.
[0044] In this embodiment, if the currently queried subfolder set contains a corresponding file to be displayed, the server can paginate the files corresponding to that subfolder set and send them one by one to the target terminal for the user to view. Specifically, when viewing the file pagination, the user can switch pages by clicking buttons on the interface, such as previous page, next page, etc., and the server can respond to the user's operation and send the corresponding file pagination.
[0045] Therefore, in Figure 1In the illustrated embodiment, a search request for target files within a target folder is received from the target terminal. This search request includes the folder identifier of the target folder and the file feature information of the target files. Based on the folder identifier, several sub-files within the target folder are segmented to divide the several sub-folders into at least one set of sub-folders. Then, based on the file feature information of the target files, each set of sub-folders is queried one by one. If at least one file matching the file feature information exists in the currently queried set of sub-folders, this at least one file is paginated to obtain at least one corresponding file pagination. This at least one file pagination is then sequentially sent back to the target terminal. Therefore, dividing a large number of sub-folders into multiple sets of sub-folders for sequential querying reduces the amount of data in each query. If the currently queried set of sub-folders contains a corresponding file, a corresponding file pagination is generated for display, thereby improving search efficiency and reducing the computational resource consumption of the search.
[0046] In one embodiment of this application, if no file matching the file feature information is found in the currently queried subfolder set, the next subfolder set is actively queried. Thus, through this active retrieval configuration, when no corresponding search result exists in a single subfolder set, the next subfolder set is actively queried, eliminating the need for manual user confirmation and improving user experience and search efficiency.
[0047] In one embodiment of this application, if no file matching the file feature information is found within a predetermined time range, empty information is sent to the target terminal to indicate that no corresponding file was found.
[0048] In this embodiment, the predetermined time range can be a time range pre-determined by those skilled in the art based on prior experience. If no file matching the file feature information is found within the predetermined time, the server can generate an empty message indicating that no corresponding file was found and send it back to the target terminal for the user's information. This avoids the user waiting idly, thereby improving the user experience.
[0049] In one embodiment of this application, the search request further includes an initialized folder cursor and a file cursor, wherein the folder cursor is used to represent the set of subfolders currently being queried, and the file cursor is used to represent the current file pagination position to be returned;
[0050] Sending the at least one file pagination sequentially to the target terminal includes:
[0051] Update the folder cursor and the file cursor based on the currently queried set of subfolders and the currently pending file pagination;
[0052] The currently pending file pagination, along with the updated folder cursor and file cursor, are fed back to the target terminal.
[0053] In this embodiment, when a user clicks the search button, the target terminal can initialize the folder cursor and file cursor, and add the initialized folder cursor and file cursor to the search request. When performing a search, the server can update the folder cursor and file cursor based on the currently queried subfolder set and the currently pending file page. It should be noted that the currently pending file page is the file page that will be sent to the target terminal.
[0054] In one example, the initialized cursor structure is: cursor = {"folder_page": 0, "file_page": 0, finish: false}, where "fold_page" is the folder cursor, "file_page" is the file cursor, and "finish" is used to determine whether the current search has ended; it is "true" if so, and "false" otherwise. Thus, the initial folder cursor is 0. When querying the first set of subfolders, it is updated to 1; when querying the second set of subfolders, it is updated to 2, and so on. When the first file page is returned, the file cursor is updated to 1; when the second file page is returned, the file cursor is updated to 2, and so on.
[0055] Next, when the file pagination is sent to the target terminal, the server can send the currently pending file pagination, along with the updated folder cursor and file cursor, to the target terminal so that the target terminal can display the file pagination and know the current search position.
[0056] Based on the foregoing embodiments, in one embodiment of this application, the file search method under multi-level folders further includes:
[0057] Receive a file pagination switching request sent by the target terminal, wherein the file pagination switching request includes the folder cursor and the file cursor that were previously fed back;
[0058] Based on the folder cursor and the file cursor in the file pagination switching request, the file pagination that follows the last file pagination and the updated folder cursor and file cursor are fed back to the target terminal;
[0059] If the last page of the file pagination feedback was the last page of the currently queried subfolder set, then the next subfolder set is queried according to the folder cursor so that the query result can be fed back to the target terminal.
[0060] In this embodiment, when the user determines that the currently displayed file page does not contain the desired target file, the target terminal can send a file page switching request to the server. At this time, the target terminal can add the folder cursor and file cursor, which were returned along with the previous file page, to the file page switching request. Based on the folder cursor and file cursor included in the file page switching request, the server can determine the previously returned file page position—that is, which subfolder set it corresponds to and which file page it is. Therefore, the server can then return the file page following the previously returned file page, along with the updated folder cursor and file cursor, to the target terminal. Thus, by setting the folder cursor and file cursor, the server can quickly locate the query position, thereby improving search efficiency.
[0061] In addition, if the last file pagination feedback was the last page corresponding to the currently queried subfolder set, the server can query the next subfolder set based on the folder cursor included in the file pagination switch request, and then provide feedback to the target terminal based on the query results. The feedback method is the same as in the aforementioned embodiment, and will not be repeated here.
[0062] In one embodiment of this application, before querying the set of subfolders, the method further includes:
[0063] Perform permission verification on the subfolders contained in the subfolder set, and filter out the subfolders that fail the permission verification.
[0064] In this embodiment, the server can perform permission verification based on the permission information of the subfolder to determine whether the current user can search it, or whether the subfolder can be searched. It should be understood that some subfolders may have corresponding encryption policies. To ensure the security of the subfolder, if the subfolder fails the permission verification, it will not be searched.
[0065] In one example, the search request may also include user identity information, such as a user ID. The server can compare this identity information with the permission information of the subfolder to determine whether the user has permission to search the subfolder, thereby ensuring the security of the subfolder.
[0066] The following describes an apparatus embodiment of this application, which can be used to execute the file search method under multi-level folders in the above embodiments of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the file search method under multi-level folders described above.
[0067] Figure 2 A block diagram of a file search apparatus under a multi-level folder according to an embodiment of this application is shown.
[0068] Reference Figure 2 As shown, a file search device under a multi-level folder according to an embodiment of this application includes:
[0069] The receiving module 210 is used to receive a search request for a target file in a target folder sent by the target terminal. The search request includes the folder identifier of the target folder and the file feature information of the target file.
[0070] The segmentation module 220 is used to segment several subfolders within the target folder according to the folder identifier, so as to divide the several subfolders into at least one set of subfolders.
[0071] The query module 230 is used to query each of the subfolder sets one by one according to the file feature information of the target file;
[0072] The pagination module 240 is used to paginate the at least one file to be displayed if there is at least one file to be displayed that matches the file feature information in the currently queried subfolder set, so as to obtain at least one file pagination.
[0073] The processing module 250 is used to sequentially feed back the at least one file pagination to the target terminal.
[0074] In one embodiment of this application, the query module 230 is further configured to: if the currently queried set of subfolders does not contain a file to be displayed that matches the file feature information, then actively query the next set of subfolders.
[0075] In one embodiment of this application, the processing module 250 is further configured to: if no file matching the file feature information is found within a predetermined time range, then send empty information to the target terminal to indicate that no corresponding file was found.
[0076] In one embodiment of this application, the search request further includes an initialized folder cursor and a file cursor, wherein the folder cursor represents the currently queried set of subfolders, and the file cursor represents the current file page position to be returned; the processing module 250 is configured to: update the folder cursor and the file cursor according to the currently queried set of subfolders and the current file page to be returned; and send the current file page to be returned, as well as the updated folder cursor and the file cursor, to the target terminal.
[0077] In one embodiment of this application, the processing module 250 is configured to: receive a file pagination switching request sent by the target terminal, the file pagination switching request including the previously fed-in folder cursor and the file cursor; according to the folder cursor and the file cursor in the file pagination switching request, feed back the file pagination following the previously fed-in file pagination, as well as the updated folder cursor and the file cursor, to the target terminal; if the previously fed-in file pagination is already the last page corresponding to the currently queried subfolder set, then according to the folder cursor, query the next subfolder set to feed back the query result to the target terminal.
[0078] In one embodiment of this application, before querying the set of subfolders, the query module 230 is further configured to: perform permission verification on the subfolders contained in the set of subfolders, and filter out subfolders that fail the permission verification.
[0079] Figure 3 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown.
[0080] It should be noted that, Figure 3 The computer system of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0081] like Figure 3As shown, the computer system includes a Central Processing Unit (CPU) 301, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 302 or programs loaded from storage portion 308 into Random Access Memory (RAM) 303, such as performing the methods described in the above embodiments. The RAM 303 also stores various programs and data required for system operation. The CPU 301, ROM 302, and RAM 303 are interconnected via a bus 304. An Input / Output (I / O) interface 305 is also connected to the bus 304.
[0082] The following components are connected to I / O interface 305: an input section 306 including a keyboard, mouse, etc.; an output section 307 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 308 including a hard disk, etc.; and a communication section 309 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 309 performs communication processing via a network such as the Internet. A drive 310 is also connected to I / O interface 305 as needed. Removable media 311, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 310 as needed so that computer programs read from them can be installed into storage section 308 as needed.
[0083] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 309, and / or installed from removable medium 311. When the computer program is executed by central processing unit (CPU) 301, it performs various functions defined in the system of this application.
[0084] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. The transmitted data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0085] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0086] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0087] In another aspect, this application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods described in the above embodiments.
[0088] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0089] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the method according to the embodiments of this application.
[0090] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.
[0091] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for searching for a file under a multi-level folder, characterized by, include: Receive a search request sent by the target terminal for a target file in a target folder, the search request including the folder identifier of the target folder and the file feature information of the target file; Based on the folder identifier, the subfolders within the target folder are segmented to divide the subfolders into at least one set of subfolders. Based on the file characteristic information of the target file, each of the subfolder sets is queried one by one; If at least one file to be displayed exists in the currently queried subfolder set that matches the file feature information, the at least one file to be displayed will be paginated to obtain at least one corresponding file pagination; The at least one file is paginated and sequentially fed back to the target terminal; The search request also includes an initialized folder cursor and a file cursor, wherein the folder cursor is used to represent the set of subfolders currently being queried, and the file cursor is used to represent the current file pagination position to be returned; Sending the at least one file pagination sequentially to the target terminal includes: Update the folder cursor and the file cursor based on the currently queried set of subfolders and the currently pending file pagination; The currently pending file pagination, the updated folder cursor, and the file cursor are fed back to the target terminal; Receive a file pagination switching request sent by the target terminal, wherein the file pagination switching request includes the folder cursor and the file cursor that were previously fed back; Based on the folder cursor and the file cursor in the file pagination switching request, the file pagination that follows the last file pagination and the updated folder cursor and file cursor are fed back to the target terminal; If the last page of the file pagination feedback was the last page of the currently queried subfolder set, then the next subfolder set is queried according to the folder cursor so that the query result can be fed back to the target terminal.
2. The method of claim 1, wherein, If no file matching the file feature information is found in the currently queried set of subfolders, then the next set of subfolders will be actively queried.
3. The method of claim 2, wherein, If no file matching the file feature information is found within the predetermined time range, empty information indicating that no corresponding file was found is sent to the target terminal.
4. The method according to any one of claims 1 to 3, characterized in that, Before querying the set of subfolders, the method further includes: Perform permission verification on the subfolders contained in the subfolder set, and filter out the subfolders that fail the permission verification.
5. A file search apparatus under a multi-level folder, characterized by, include: The receiving module is used to receive a search request sent by the target terminal for a target file in a target folder. The search request includes the folder identifier of the target folder and the file feature information of the target file. The segmentation module is used to segment several subfolders within the target folder according to the folder identifier, so as to divide the several subfolders into at least one set of subfolders; The query module is used to query each of the subfolder sets one by one based on the file feature information of the target file; The pagination module is used to paginate the at least one file to be displayed if there is at least one file to be displayed that matches the file feature information in the currently queried subfolder set, so as to obtain at least one file pagination. The processing module is used to sequentially feed back the at least one file pagination to the target terminal; The search request also includes an initialized folder cursor and a file cursor, wherein the folder cursor is used to represent the set of subfolders currently being queried, and the file cursor is used to represent the current file pagination position to be returned; Sending the at least one file pagination sequentially to the target terminal includes: Update the folder cursor and the file cursor based on the currently queried set of subfolders and the currently pending file pagination; The currently pending file pagination, the updated folder cursor, and the file cursor are fed back to the target terminal; Receive a file pagination switching request sent by the target terminal, wherein the file pagination switching request includes the folder cursor and the file cursor that were previously fed back; Based on the folder cursor and the file cursor in the file pagination switching request, the file pagination that follows the last file pagination and the updated folder cursor and file cursor are fed back to the target terminal; If the last page of the file pagination feedback was the last page of the currently queried subfolder set, then the next subfolder set is queried according to the folder cursor so that the query result can be fed back to the target terminal.
6. The apparatus of claim 5, wherein, The query module is also used to: if there is no file to be displayed that matches the file feature information in the currently queried set of subfolders, then actively query the next set of subfolders.
7. A computer readable medium having stored thereon a computer program, characterized in that When the computer program is executed by the processor, it implements the file search method under a multi-level folder as described in any one of claims 1 to 4.
8. An electronic device, comprising: include: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the file search method under a multi-level folder as described in any one of claims 1 to 4.