File management method and device, equipment and medium

By aggregating the same file objects in the cloud storage directory and displaying them as aggregated folders in the application, the problem of inconvenience in the management of downloaded files in the existing technology is solved, and the convenience of file display and management is improved.

CN119474017APending Publication Date: 2025-02-18BEIJING DUYOU INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411524481.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The prior art is difficult to find and manage a large number of files easily when displaying downloaded files, especially when the number of files is large.

Method used

By obtaining the cloud storage directory of each downloaded file object, multiple file objects in the same cloud storage directory are aggregated in the same aggregated file list and displayed in the target application as aggregated folders.

Benefits of technology

Improve the display effect of downloaded files in the application, simplifies the process of users viewing and managing downloaded files, and improves convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119474017A_ABST
    Figure CN119474017A_ABST
Patent Text Reader

Abstract

The invention provides a file management method and device, equipment and a medium, and relates to the technical field of computers, in particular to the fields of file management, cloud storage, cloud services and the like. According to the implementation scheme, file information of each file object in multiple file objects is obtained, the multiple file objects are obtained through downloading of a target application program on a client side, and the file information comprises a cloud storage directory; aggregating at least two file objects with the same cloud storage directory in the same aggregated file list; according to the aggregated file list, the aggregated folder is displayed in the target application program, and the aggregated folder comprises at least two file objects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to the fields of file management, cloud storage, cloud services, and specifically to a file management method, device, electronic device, computer-readable storage medium, and computer program product. Background Art

[0002] With the rapid development of Internet technology, cloud storage services for files have also developed rapidly and become popular. Through cloud storage services, users can remotely store, download, read, share, and update files, thus greatly improving the convenience and access flexibility of data.

[0003] The methods described in this section are not necessarily methods that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any method described in this section is considered to be prior art simply because it is included in this section. Similarly, unless otherwise indicated, the issues mentioned in this section should not be considered to have been recognized in any prior art. Summary of the invention

[0004] The present disclosure provides a file management method, apparatus, electronic device, computer-readable storage medium, and computer program product.

[0005] According to one aspect of the present disclosure, a file management method is provided, including: obtaining file information of each file object among a plurality of file objects, the plurality of file objects being obtained by downloading through a target application on a client, the file information including a cloud storage directory; aggregating at least two file objects having the same cloud storage directory into the same aggregated file list; and displaying an aggregated folder in the target application according to the aggregated file list, the aggregated folder including at least two file objects.

[0006] According to another aspect of the present disclosure, a file management device is provided, including: a first acquisition unit, configured to acquire file information of each file object among a plurality of file objects, the plurality of file objects being obtained by downloading through a target application on a client, the file information including a cloud storage directory; an aggregation unit, configured to aggregate at least two file objects having the same cloud storage directory into the same aggregated file list; and a display unit, configured to display an aggregated folder in a target application according to the aggregated file list, the aggregated folder including at least two file objects.

[0007] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned file management method.

[0008] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the above-mentioned file management method.

[0009] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program implements the above file management method when executed by a processor.

[0010] According to one or more embodiments of the present disclosure, the display effect of downloaded files in an application can be improved, thereby improving the convenience of users in viewing files.

[0011] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0013] Figure 1 A schematic diagram showing an exemplary system in which the various methods described herein may be implemented according to an embodiment of the present disclosure;

[0014] Figure 2 A flowchart of a file management method according to an embodiment of the present disclosure is shown;

[0015] Figure 3 A flowchart of obtaining an aggregated file list according to an embodiment of the present disclosure is shown;

[0016] Figure 4 A flowchart of obtaining an aggregated file list according to an exemplary embodiment of the present disclosure is shown;

[0017] Figure 5 A flowchart of obtaining a tree structure according to an embodiment of the present disclosure is shown;

[0018] Fig. 6A A schematic diagram showing a downloaded file list of a target application in the related art;

[0019] Figure 6B A schematic diagram showing a downloaded file list of a target application program obtained according to an embodiment of the present disclosure;

[0020] Figure 7 A flowchart of a file management method according to an embodiment of the present disclosure is shown;

[0021] Figure 8 A flowchart showing a file management method according to an exemplary embodiment of the present disclosure is shown;

[0022] Fig. 9 A structural block diagram of a file management device according to an embodiment of the present disclosure is shown;

[0023] Fig.10 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0024] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0025] In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, temporal relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, based on the description of the context, they may also refer to different instances.

[0026] The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this disclosure covers any one of the listed items and all possible combinations.

[0027] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0028] Figure 1 FIG. 1 is a schematic diagram of an exemplary system 100 in which various methods and apparatuses described herein may be implemented according to an embodiment of the present disclosure. Figure 1, the system 100 includes one or more client devices 101, 102, 103, 104, 105, and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. The client devices 101, 102, 103, 104, 105, and 106 may be configured to execute one or more applications.

[0029] In an embodiment of the present disclosure, the server 120 may run one or more services or software applications that enable the file management method of the present disclosure to be executed.

[0030] In some embodiments, server 120 may also provide other services or software applications, which may include non-virtualized environments and virtualized environments. In some embodiments, these services may be provided as web-based services or cloud services, such as provided to users of client devices 101, 102, 103, 104, 105, and / or 106 under a software as a service (SaaS) model.

[0031] exist Figure 1 In the configuration shown, the server 120 may include one or more components that implement the functions performed by the server 120. These components may include software components, hardware components, or a combination thereof that can be executed by one or more processors. Users operating client devices 101, 102, 103, 104, 105, and / or 106 may in turn utilize one or more client applications to interact with the server 120 to utilize the services provided by these components. It should be understood that a variety of different system configurations are possible, which may differ from the system 100. Therefore, Figure 1 is one example of a system for implementing the various methods described herein and is not intended to be limiting.

[0032] A user may use client devices 101, 102, 103, 104, 105, and / or 106 to download files from server 120 through a target application. The client device may provide an interface that enables a user of the client device to interact with the client device. The client device may also output information to the user via the interface. Figure 1 Only six client devices are depicted, but one skilled in the art will appreciate that the present disclosure may support any number of client devices.

[0033] Client devices 101, 102, 103, 104, 105 and / or 106 may include various types of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptop computers), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, game systems, thin clients, various messaging devices, sensors or other sensing devices, etc. These computer devices may run various types and versions of software applications and operating systems, such as MICROSOFT Windows, APPLE iOS, UNIX-like operating systems, Linux or Linux-like operating systems (such as GOOGLE Chrome OS); or include various mobile operating systems, such as MICROSOFT Windows Mobile OS, iOS, Windows Phone, Android. Portable handheld devices may include cellular phones, smart phones, tablet computers, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays (such as smart glasses) and other devices. Game systems may include various handheld game devices, Internet-enabled game devices, etc. Client devices are capable of executing various different applications, such as various Internet-related applications, communication applications (such as email applications), short message service (SMS) applications, and may use various communication protocols.

[0034] The network 110 may be any type of network known to those skilled in the art that may support data communications using any of a variety of available protocols, including but not limited to TCP / IP, SNA, IPX, etc. By way of example only, the one or more networks 110 may be a local area network (LAN), an Ethernet-based network, a token ring, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a blockchain network, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, WIFI), and / or any combination of these and / or other networks.

[0035] Server 120 may include one or more general purpose computers, dedicated server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and / or combination. Server 120 may include one or more virtual machines running virtual operating systems, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain a server's virtual storage device). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.

[0036] The computing units in the server 120 may run one or more operating systems including any of the above operating systems and any commercially available server operating systems. The server 120 may also run any of a variety of additional server applications and / or middle-tier applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, etc.

[0037] In some implementations, server 120 may include one or more applications to analyze and consolidate data feeds and / or event updates received from users of client devices 101, 102, 103, 104, 105, and / or 106. Server 120 may also include one or more applications to display data feeds and / or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and / or 106.

[0038] In some embodiments, the server 120 may be a server of a distributed system, or a server combined with a blockchain. The server 120 may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. A cloud server is a host product in a cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS) services.

[0039] The system 100 may also include one or more databases 130. In some embodiments, these databases may be used to store data and other information. For example, one or more of the databases 130 may be used to store information such as audio files and video files. The databases 130 may reside in various locations. For example, the database used by the server 120 may be local to the server 120, or may be remote from the server 120 and may communicate with the server 120 via a network-based or dedicated connection. The databases 130 may be of different types. In some embodiments, the databases used by the server 120 may be, for example, relational databases. One or more of these databases may store, update, and retrieve data to and from the databases in response to commands.

[0040] In some embodiments, one or more of the databases 130 may also be used by applications to store application data. The databases used by the applications may be different types of databases, such as a key-value store, an object store, or a conventional store backed by a file system.

[0041] Figure 1The system 100 may be configured and operated in various ways to enable the application of various methods and apparatuses described in the present disclosure.

[0042] According to the embodiments of the present disclosure, Figure 2 As shown, a file management method is provided, including: step S201, obtaining file information of each file object in a plurality of file objects, the plurality of file objects being obtained by downloading through a target application on a client, the file information including a cloud storage directory; step S202, aggregating at least two file objects with the same cloud storage directory in the same aggregated file list; and step S203, displaying an aggregated folder in the target application according to the aggregated file list, the aggregated folder including at least two file objects.

[0043] Therefore, by obtaining the cloud storage directory of each downloaded file object, multiple file objects with the same cloud storage directory are aggregated in the same aggregated file list, and the above-mentioned multiple downloaded file objects are aggregated and displayed in the downloaded list in an aggregated folder, thereby improving the display effect of the target application for the downloaded files, and further improving the convenience of users in viewing and managing downloaded files.

[0044] In some embodiments, the client may be one of the client devices listed above, without limitation herein.

[0045] In some embodiments, the target application may be an application that provides cloud storage services, which allows users to upload files to a cloud server via the Internet for storage, backup, synchronization, and sharing. In some examples, the target application may be a network disk application or an application with network disk functions, which is not limited here.

[0046] For easy viewing, the user can download the files stored in the cloud to the client through the target application, and the target application can display the downloaded files through the downloaded file list.

[0047] In some embodiments, the file information of each downloaded file object may be first obtained. The file object may include at least one of a file or a folder. The file information may include the cloud storage directory where the file object is stored when it is stored in the cloud. For example, a file object is stored in " / My Resources / Subdirectory 1 / Subdirectory 11" in the network disk, that is, the cloud storage directory of the file object is " / My Resources / Subdirectory 1 / Subdirectory 11".

[0048] In some embodiments, the file information of each file object may also include at least one of file identification information (ie, file ID), file name, file size, download task creation time, download completion time, and file source, which is not limited here.

[0049] In some embodiments, based on the cloud storage directory of each downloaded file object, multiple file objects with the same cloud storage directory can be aggregated in the same aggregated file list. For example, if the cloud storage directories of file A and folder B are both " / My Resources", then file A and folder B can be aggregated in the same aggregated file list; if the cloud storage directories of file C and file D are both " / My Resources / Folder B", then file C and file D can be aggregated in the same aggregated file list.

[0050] In some embodiments, aggregating multiple file objects into the same aggregate file list may be integrating file identification information or file names of the multiple file objects into the same aggregate file list.

[0051] In some embodiments, after one or more aggregated file lists are obtained through the above method, the above multiple file objects can be aggregated and displayed in the downloaded list of the target application through the aggregate folders corresponding to each aggregated file list.

[0052] In some embodiments, only the aggregated folders and the cloud storage directory information corresponding to the aggregated folders may be displayed in the downloaded list, and the user may further view the file objects contained in the aggregated folders through interactive operations. In some embodiments, the downloaded list may also display the aggregated folders and the file objects contained in the aggregated folders at the same time.

[0053] In some embodiments, the above-mentioned aggregate folder may be a virtual folder used only for aggregate display of file objects.

[0054] In some examples, for the two file objects, file A and folder B, they can be displayed in the "Aggregate Folder-My Resources" folder in the downloaded list; for the two file objects, file C and file D, they can be displayed in the "Aggregate Folder-Folder B" folder in the downloaded list.

[0055] In some embodiments, the downloaded list including the aggregated folder may be obtained by rendering page elements based on information in each aggregated file list.

[0056] In the related art, the target application usually displays the downloaded files in a tiled display format, for example, all downloaded files are tiled and displayed in a list in the order of download completion time. In this display format, when the number of downloaded files is large, the user cannot easily find and manage the downloaded files.

[0057] According to an embodiment of the present disclosure, in the downloaded file list, file objects in the same cloud storage directory can be aggregated and displayed, so that the storage structure of the downloaded files in the cloud can be displayed more clearly and intuitively, thereby improving the convenience of users in viewing and managing downloaded files.

[0058] In some embodiments, in the case where there are multiple aggregated file lists, before rendering, the multiple aggregated file lists may be integrated into one file list in a certain order, and the downloaded file list may be rendered based on the file list.

[0059] In some embodiments, the above-mentioned multiple downloaded file objects may include file objects that are different from one or more cloud storage directories and other file objects. Before rendering, the file information of the file objects that are different from each cloud storage directory and other file objects and one or more aggregated file lists can be integrated into a file list in a certain order, and the downloaded file list can be rendered based on the file list.

[0060] In some embodiments, file information is stored in a file information database of the client, and aggregating at least two file objects with the same cloud storage directory into the same aggregated file list includes: searching the file information database for file objects that meet preset query conditions, wherein the preset query conditions include the cloud storage directory as the target directory; and in response to querying at least two file objects that meet the preset query conditions, aggregating the at least two file objects into the aggregated file list.

[0061] In some embodiments, the file information of each file object may be stored in a file information database in the client.

[0062] In some embodiments, after a user initiates a download request for a certain file object in a target application, the file object can be downloaded to the client and the file information of the file object can be saved in a file information database at the same time.

[0063] In some embodiments, the file information database may be a relational database. The use of a relational database can better ensure the integrity and consistency of file information while improving the query and processing efficiency of file information.

[0064] In some embodiments, the file information of the downloaded file object may be obtained through a content-provider and saved in a file information database.

[0065] In some embodiments, when obtaining at least two file objects with the same cloud storage directory, a preset query condition of the database can be set to query the file information database for file objects with the cloud storage directory as the target directory. For example, the file information database can be queried for file objects with the cloud storage directory as " / My Resources".

[0066] If at least two file objects with cloud storage directories as target directories are found in the file information database, the found file objects are aggregated into the same aggregated file list.

[0067] In some exemplary embodiments, the above query may be implemented based on a SQL query statement.

[0068] Therefore, by pre-storing the file information in the file information database, the data integrity and consistency of the file information are guaranteed, and the file objects with the same cloud storage directory can be obtained more efficiently through database query.

[0069] In some embodiments, Figure 3 As shown, in the file information database, querying the file objects that meet the preset query conditions may include: step S301, determining the target directory as the target first-level directory, and querying the file information database for the file objects that meet the preset query conditions; and step S302, in response to the first file object that meets the current preset query conditions and contains a second file object of a folder type, repeatedly performing the first operation until the first file object is not queried or the queried first file object does not contain the second file object, the first operation includes: step S3021, updating the target directory to the target subdirectory corresponding to the second file object; and step S3022, querying the file information database for the file objects that meet the updated preset query conditions.

[0070] Considering that a cloud storage directory usually includes multiple levels of directories, and in order to further improve the clarity and intuitiveness of the display of the downloaded file list, the file objects can be integrated accordingly according to the multiple levels in the cloud storage directory.

[0071] In some embodiments, the target first-level directory can be first used as the target directory in the preset query condition, and the cloud storage directory can be queried in the file information database for file objects of the target first-level directory. If one or more first file objects whose cloud storage directory is the target first-level directory are obtained, it can be further determined whether these first file objects contain second file objects of the folder type. If the second file object of the folder type is contained, the target directory can be updated with the target subdirectory corresponding to the second file object, and based on the updated preset query condition, the cloud storage directory can be further queried in the file information database for file objects of the target subdirectory.

[0072] If the file objects of the target subdirectory in the queried cloud storage directory still contain file objects of the folder type (that is, the first file object that meets the current preset query conditions contains the second file object of the folder type), the target directory can be updated again with the target subdirectory corresponding to the current second file object, and based on the updated preset query conditions, the cloud storage directory can be further queried in the file information database for file objects of the target subdirectory.

[0073] The same process is repeated until all file objects contained in the current target directory are of file type or no file objects in the current target directory are found.

[0074] Therefore, by querying the file objects layer by layer according to the hierarchical order of the directory hierarchy, when the second file object cannot be found in a certain level of directory, there is no need to further query the next level of directory, thereby saving the workload of file object query and further improving the efficiency of file object query.

[0075] In some embodiments, in response to querying at least two file objects that meet preset query conditions, aggregating the at least two file objects in an aggregated file list may include: in response to the number of file objects in the queried target first-level directory and target subdirectory being at least two, aggregating the at least two file objects in the aggregated file list according to the directory hierarchy relationship.

[0076] After the file objects in the target primary directory and each target subdirectory are queried in the above manner, the file names or file identifiers of the above file objects may be aggregated in the same aggregated file list according to the hierarchical relationship of the directories.

[0077] Therefore, the file objects are integrated according to the hierarchical relationship in the cloud storage directory, and the aggregated folders obtained by rendering the aggregated file list containing the directory hierarchical relationship can further reflect the hierarchical relationship between each file object, thereby further improving the clarity and intuitiveness of the display of the downloaded file list.

[0078] Figure 4 A flowchart of obtaining an aggregated file list according to an exemplary embodiment of the present disclosure is shown.

[0079] In some exemplary embodiments, Figure 4 As shown, the steps of obtaining the aggregated file list may include: step S401, after initiating a download request for multiple file objects in the target application, downloading each file object to the client, and saving the file information of each file object to the file information database; step S402, in the file information database, querying and obtaining all file objects whose cloud storage directory is the target first-level directory; step S403, for each file object, determining whether the file object is a folder; step S404, if it is a folder, further querying and obtaining all file objects whose cloud storage directory is the second-level directory corresponding to the folder in the file information database; step S405, if it is not a folder, no second-level directory query is performed on it; step S406, merging the file information of all file objects under the target first-level directory and the file information of all file objects under each second-level directory; step S407, aggregating the file information of each file object according to the corresponding directory hierarchy relationship in the cloud storage directory; step S408, obtaining the aggregated file list obtained by aggregation.

[0080] In some embodiments, displaying an aggregated folder in a target application based on an aggregated file list may include: displaying the aggregated folder and at least two file objects in a tree structure in the target application based on the aggregated file list, wherein the root node of the tree structure corresponds to the aggregated folder, and the leaf nodes of the tree structure correspond to the file objects included in the aggregated folder.

[0081] As a result, the aggregated folder and the file objects it contains can be displayed through a tree structure, which further improves the clarity and intuitiveness of the displayed downloaded file list and improves the convenience for users to view and manage downloaded files.

[0082] In some embodiments, based on a preset tree component, the file objects at each level in the aggregated folder can be rendered according to the hierarchical relationship of the file objects in the above-mentioned aggregated file list and the file information of each file object, so as to obtain an aggregated folder with a tree structure. The tree component is usually composed of a root node and the leaf nodes it contains, forming a tree structure, which can usually be used to display data with a parent-child relationship, such as a file system structure, an organizational structure, categories and subcategories, etc.

[0083] In some examples, if an aggregated file list only includes multiple file objects at the same directory level, the aggregated folder may be represented by a root node in a tree structure, and each file object may be represented by a leaf node of the root node.

[0084] In some examples, if an aggregated file list contains file objects of multiple nested directory levels, the aggregated folder can be represented by a root node, and the leaf nodes of the next level below the root node can be used to represent the file objects of the next level directory of the cloud storage directory corresponding to the aggregated folder, and the leaf nodes of the next level below the leaf nodes of this layer can be used to represent the file objects of the next level directory, and so on.

[0085] In some embodiments, Figure 5 As shown, the above-mentioned tree structure is obtained by performing the following rendering operations on the tree component: step S501, based on the directory hierarchical relationship between at least two file objects, determine the file object corresponding to each leaf node in the tree component and the hierarchical relationship between the leaf nodes; step S502, for each leaf node in the tree component, based on the type of the file object corresponding to the leaf node, determine the first preset style of the leaf node; and step S503, based on the first preset style of each leaf node in the tree component, the directory hierarchical relationship between the leaf nodes and the second preset style of the root node, render each node in the tree component to obtain a tree structure.

[0086] In some embodiments, different display styles (i.e., first preset styles) may be pre-set for different types of file objects, where different types of file objects may include folders and files of different formats, such as video files, picture files, document files, and audio files. The first preset style may include icons corresponding to the corresponding category of file objects. In some embodiments, the first preset style may also include the file names to be displayed together and the layout of the file names and file object icons.

[0087] In some embodiments, the display style of the aggregated folder (i.e., the second preset style of the root node of the tree component) may also be preset, such as the icon of the aggregated folder. Usually, the aggregated folder corresponds to a target directory of a certain level in the cloud storage directory (e.g., a first-level directory). In some embodiments, the preset style of the aggregated folder may also include the corresponding target directory information and the layout of the information and the icon.

[0088] In some embodiments, the rendering of the aggregate folder in the tree structure displayed in the downloaded list can be a process of instantiating a tree component based on the information in the aggregate file list. First, according to the directory hierarchy relationship between the various file objects in the aggregate file list, the leaf nodes corresponding to the various file objects in the tree component instance and the hierarchical relationship between the nodes are determined, so as to obtain a preliminary tree framework; on this basis, the first preset style corresponding to each leaf node can be determined based on the file type of the file object corresponding to each leaf node, and the corresponding tree structure is generated based on the first preset style of each leaf node, the hierarchical relationship between the leaf nodes, and the preset style of the aggregate folder corresponding to the root node.

[0089] Therefore, by defining preset display styles based on various types of file objects and aggregated folders, as well as the hierarchical relationship between various file objects in the aggregated file list, efficient rendering of the tree structure can be achieved.

[0090] In some embodiments, the file information also includes at least one of the file size, the download task creation time, the download completion time and the file source. The aggregated file list also includes the file information of each file object of at least two file objects. The rendering operation may also include: for each leaf node in the tree component, perform the following operations: determine the third preset style of the leaf node according to the type of the file object corresponding to the leaf node, the third preset style includes a file information display category and a file information display style; obtain the first file information of the file object corresponding to the leaf node from the aggregated file list according to the file information display category corresponding to the leaf node; and render the first file information at the leaf node in the tree structure according to the file information display style corresponding to the leaf node.

[0091] In some embodiments, richer file information may be displayed in the tree-structured aggregate folder displayed in the downloaded list, including but not limited to at least one of the file size of each file object, the download task creation time, the download completion time, and the file source.

[0092] In some embodiments, when generating the aggregated file list, the above-mentioned file information can be extracted from the file information database and aggregated in the aggregated file list according to a preset data structure.

[0093] In some embodiments, for different types of files or leaf nodes at different levels, different display styles of relevant file information (i.e., a third preset style) can be set, for example, which may include specifically which file information or files to display (i.e., file information display category) and the style and layout of each file information (i.e., file information display style), etc.

[0094] In some embodiments, in the process of generating the above-mentioned tree structure, the first file information of the file object corresponding to each leaf node can be obtained according to the file information display category corresponding to the leaf node, and when generating the tree structure, the above-mentioned first file information can be rendered according to the corresponding file information display style, so as to obtain the effect after rendering each leaf node in the tree structure.

[0095] As a result, the file information displayed in the aggregated folder is further enriched, and the key information of the downloaded files can be displayed to the user more intuitively, further improving the convenience of users managing downloaded files and improving the user experience.

[0096] In some embodiments, various types of file objects (including folders and files of different file formats) and display types (view-type) corresponding to various types of file information can be defined through an enumeration class, and a display style (view-holder) corresponding to each display type can be determined. The above solution can improve the convenience of managing and expanding new display styles.

[0097] In some embodiments, an abstract class BaseDataItem can be defined, and a set of common behaviors or attributes can be defined using the abstract class. Specific operations (such as filling the corresponding file information into a preset display style) can be implemented through specific subclasses, thereby ensuring the uniformity of the data structure while providing sufficient flexibility to adapt to different business logic requirements.

[0098] In the related art, the target application usually displays the downloaded files in a tiled display format, for example Fig. 6A In the example of the downloaded file list of the target application in the related art, all downloaded files are displayed in a tiled manner in the order of download completion time. In this display format, when the number of downloaded files is large, the user cannot easily find and manage the downloaded files.

[0099] Figure 6B FIG. 1 is a schematic diagram showing a list of downloaded files of a target application program obtained according to an embodiment of the present disclosure. Figure 6B As shown, in the downloaded file list, file objects in the same cloud storage directory can be aggregated and displayed, so that the storage structure of the downloaded files in the cloud can be displayed more clearly and intuitively, thereby improving the convenience of users in viewing and managing downloaded files.

[0100] In some embodiments, Figure 7As shown, the above-mentioned file management method may also include: step S701, real-time detection of file update operations performed by users through the target application, the file update operation including downloading new file objects from the cloud to the client or deleting downloaded file objects; step S702, in response to detecting the file update operation, and the third file object involved in the file update operation is associated with the aggregated file list, updating the aggregated file list, wherein the third file object is associated with the aggregated file list to indicate that the cloud storage directory of the third file object and the cloud storage directory of the file object in the aggregated file list contain at least the same first-level directory; and step S703, re-rendering the tree structure based on the updated aggregated file list.

[0101] In some embodiments, if the above-mentioned file update operation of the user is detected, the file information of the third file object related to the file information in the file information database can be added or deleted first; on this basis, the aggregated file list associated with the third file object can be determined based on the cloud storage directory of the third file object, and the file information can be inserted or deleted from the aggregated file list, wherein the cloud storage directory of the file object in the aggregated file list and the cloud storage directory of the third file object contain at least the same first-level directory.

[0102] After the aggregated file list is updated, the aggregated folder portion corresponding to the aggregated file list and displayed in the target application's downloaded list may be re-rendered to update the file objects displayed in the aggregated folder.

[0103] Therefore, by partially updating only the page area corresponding to the updated aggregate file list, the page update efficiency can be further improved.

[0104] In some embodiments, the Diff-Util component can be applied to calculate the differences before and after the list is updated to determine which file information in the list is newly added or deleted, and then only render the parts with differences and insert them into the corresponding positions in the page or delete the content corresponding to the parts with differences from the page, thereby further improving the efficiency of page updates.

[0105] In some embodiments, the above-mentioned file management method may also include: in response to detecting a user's filtering operation on multiple file objects according to file type, and the aggregated file list includes at least one fourth file object of the file type, re-rendering the tree structure so that the tree structure only displays the aggregated folder and at least one fourth file object.

[0106] In some embodiments, a tool for performing file type filtering operations may be provided on the user interface of the downloaded list of the target application, for example, the user may be supported to filter videos, audios, images or documents in the downloaded files. The user may use the tool to filter the downloaded files according to the file type, so that only files of a certain file type are displayed in the corresponding aggregate folder in the downloaded list.

[0107] Therefore, by still displaying the filtered files through aggregate folders, the convenience of document management can be further improved and the user experience can be enhanced.

[0108] In some embodiments, the above-mentioned file management method may also include: in response to detecting that the user performs a selection operation on the first folder, adding the first folder and all file objects under the first folder to the list to be processed, wherein the first folder is an aggregate folder or any folder under the aggregate folder.

[0109] Therefore, by further optimizing the file selection mechanism, after detecting that a user has selected a folder, the folder and all file objects under the folder are directly selected together, thereby further simplifying user operations and improving the convenience of file management.

[0110] In some embodiments, the above-mentioned file management method may also include: in response to detecting that the user performs a selection operation on all file objects under the second folder, adding all file objects under the second folder and the second folder to be processed list, wherein the second folder is an aggregate folder or any folder under the aggregate folder.

[0111] Therefore, by further optimizing the file selection mechanism, after detecting that the user has selected all the files in a folder, the folder is also directly selected, which can further simplify user operations and improve the convenience of file management.

[0112] In some embodiments, the MVVM architecture (Model-View-ViewModel architecture) can be applied to define different user interface states, such as display data state, selected data state, editing state, empty page state, etc., to monitor user operations in real time and update the user interface state according to the user operations; in response to changes in the user interface state, the user interface is updated according to the current user interface state.

[0113] In some embodiments, the aggregated file list also includes status information of each file object, including display status, selected status, edit status, etc. In some embodiments, different status information may correspond to different preset display styles.

[0114] In some embodiments, in response to detecting that the user has performed an operation of selecting a file, the user interface state can be updated from the data display state to the selected data state, and the state of the corresponding file object in the aggregated file list can be updated to the selected state. The difference before and after the list update is calculated through the Diff-Util component, and the file object that needs to be re-rendered is determined. It is re-rendered based on the preset display style corresponding to the selected state of the file object, and the corresponding position in the tree structure is updated.

[0115] Figure 8 A flowchart of a file management method according to an exemplary embodiment of the present disclosure is shown.

[0116] In some exemplary embodiments, Figure 8 As shown, the above-mentioned file management method may include: step S801, generating a corresponding tree structure based on the aggregated file list; step S802, monitoring user operations in real time; step S803, in response to monitoring the user's operation, determining whether the operation is used to select a certain file object; step S804, if the operation is used to select a certain file object, determining whether the type of the file object is a file or a folder; step S805, in response to the file object being a file, adding it to the selected list; step S806, in response to the file object being a folder, adding it and all sub-files contained therein to the selected list; step S807, updating the user interface status; step S808, updating the status of the corresponding file object in the aggregated file list to the selected status; step S809, re-rendering based on the preset display style corresponding to the selected status of the file object, and updating the corresponding position in the tree structure; step S810, if the operation is not used to select a certain file object, continuing to monitor.

[0117] In some embodiments, Fig. 9 As shown, a file management device 900 is provided, including: a first acquisition unit 910, configured to obtain file information of each file object in a plurality of file objects, the plurality of file objects are obtained by downloading through a target application on a client, and the file information includes a cloud storage directory; an aggregation unit 920, configured to aggregate at least two file objects with the same cloud storage directory into the same aggregated file list; and a display unit 930, configured to display an aggregated folder in the target application according to the aggregated file list, the aggregated folder including at least two file objects.

[0118] The operations performed by units 910 to 930 in the file management device 900 are similar to the operations of steps S201 to S203 in the above-mentioned file management method, and are not described in detail here.

[0119] In some embodiments, file information can be stored in a file information database of the client, and the aggregation unit may include: a first query sub-unit, configured to query the file information database for file objects that meet preset query conditions, wherein the preset query conditions include a cloud storage directory as a target directory; and a first aggregation sub-unit, configured to aggregate at least two file objects in an aggregated file list in response to querying at least two file objects that meet the preset query conditions.

[0120] In some embodiments, the first query sub-unit can be further configured to: determine the target directory as the target first-level directory, and search the file information database for file objects that meet the preset query conditions; and in response to the first file object found to meet the current preset query conditions and containing a second file object of a folder type, repeat the first operation until the first file object is not found or the first file object found does not contain the second file object, the first operation including: updating the target directory to the target sub-directory corresponding to the second file object; and searching the file information database for file objects that meet the updated preset query conditions.

[0121] In some embodiments, the first aggregation subunit may be further configured to: in response to the number of file objects in the queried target primary directory and target subdirectory being at least two, aggregate at least two file objects in an aggregated file list according to a directory hierarchy relationship.

[0122] In some embodiments, the display unit can be further configured to: display an aggregated folder and at least two file objects in a tree structure in the target application based on the aggregated file list, wherein the root node of the tree structure corresponds to the aggregated folder, and the leaf nodes of the tree structure correspond to the file objects included in the aggregated folder.

[0123] In some embodiments, a tree structure can be obtained by performing the following rendering operations on a tree component: based on the directory hierarchical relationship between at least two file objects, determining the file object corresponding to each leaf node in the tree component and the hierarchical relationship between the leaf nodes; for each leaf node in the tree component, based on the type of the file object corresponding to the leaf node, determining a first preset style of the leaf node; and based on the first preset style of each leaf node in the tree component, the directory hierarchical relationship between the leaf nodes, and the second preset style of the root node, rendering each node in the tree component to obtain a tree structure.

[0124] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0125] According to an embodiment of the present disclosure, an electronic device, a readable storage medium and a computer program product are also provided.

[0126] refer to Fig.10 , a block diagram of an electronic device 1000 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0127] like Fig.10 As shown, the electronic device 1000 includes a computing unit 1001, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1002 or a computer program loaded from a storage unit 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the electronic device 1000 can also be stored. The computing unit 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0128] Multiple components in the electronic device 1000 are connected to the I / O interface 1005, including: an input unit 1006, an output unit 1007, a storage unit 1008, and a communication unit 1009. The input unit 1006 can be any type of device that can input information to the electronic device 1000. The input unit 1006 can receive input digital or character information, and generate key signal input related to user settings and / or function control of the electronic device, and can include but is not limited to a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone, and / or a remote controller. The output unit 1007 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 1008 can include but is not limited to a disk and an optical disk. The communication unit 1009 allows the electronic device 1000 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver and / or a chipset, such as a Bluetooth device, an 802.11 device, a WiFi device, a WiMax device, a cellular communication device and / or the like.

[0129] The computing unit 1001 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1001 performs the various methods and processes described above, such as the above-mentioned file management method. For example, in some embodiments, the above-mentioned file management method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 1008. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 1000 via the ROM 1002 and / or the communication unit 1009. When the computer program is loaded into the RAM 1003 and executed by the computing unit 1001, one or more steps of the above-mentioned file management method may be performed. Alternatively, in other embodiments, the computing unit 1001 may be configured to perform the above-mentioned file management method in any other appropriate manner (e.g., by means of firmware).

[0130] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0131] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0132] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0133] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0134] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0135] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0136] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0137] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but only by the claims after authorization and their equivalent scope. Various elements in the embodiments or examples can be omitted or replaced by their equivalent elements. In addition, each step can be performed in an order different from that described in the present disclosure. Further, the various elements in the embodiments or examples can be combined in various ways. It is important that with the evolution of technology, many elements described herein can be replaced by equivalent elements that appear after the present disclosure.

Claims

1. A file management method, comprising: Obtaining file information of each file object among a plurality of file objects, wherein the plurality of file objects are obtained by downloading through a target application on the client, and the file information includes a cloud storage directory; Aggregate at least two of the file objects having the same cloud storage directory into the same aggregated file list; as well as An aggregate folder is displayed in the target application according to the aggregate file list, wherein the aggregate folder includes the at least two file objects.

2. The method according to claim 1, wherein: The file information is stored in a file information database of the client, and aggregating at least two file objects having the same cloud storage directory into the same aggregated file list comprises: In the file information database, searching for file objects that meet a preset query condition, wherein the preset query condition includes that a cloud storage directory is a target directory; and In response to finding the at least two file objects that meet the preset query condition, the at least two file objects are aggregated in the aggregated file list.

3. The method according to claim 2, wherein: In the file information database, searching for file objects that meet the preset query conditions includes: Determine the target directory as a target primary directory, and search the file information database for file objects that meet the preset query conditions; and In response to a first file object that meets the current preset query condition being found to contain a second file object of a folder type, repeatedly performing a first operation until the first file object is not found or the first file object found to contain the second file object, the first operation comprising: Updating the target directory to the target subdirectory corresponding to the second file object; and The file information database is searched for file objects that meet the updated preset query condition.

4. The method according to claim 3, wherein: In response to finding the at least two file objects that meet the preset query condition, aggregating the at least two file objects in the aggregated file list includes: In response to the queried number of file objects in the target primary directory and the target subdirectory being at least two, the at least two file objects are aggregated in the aggregated file list according to a directory hierarchy relationship.

5. The method according to claim 3 or 4, wherein: The displaying of the aggregated folder in the target application according to the aggregated file list comprises: According to the aggregated file list, the aggregated folder and the at least two file objects are displayed in a tree structure in the target application, wherein the root node of the tree structure corresponds to the aggregated folder, and the leaf nodes of the tree structure correspond to the file objects included in the aggregated folder.

6. The method according to claim 5, wherein: The tree structure is obtained by performing the following rendering operation on the tree component: Based on the directory hierarchical relationship between the at least two file objects, determining the file object corresponding to each leaf node in the tree component and the hierarchical relationship between the leaf nodes; For each leaf node in the tree component, determining a first preset style of the leaf node based on the type of the file object corresponding to the leaf node; as well as Based on the first preset style of each leaf node in the tree component, the directory hierarchy relationship between the leaf nodes, and the second preset style of the root node, each node in the tree component is rendered to obtain the tree structure.

7. The method according to claim 6, wherein: The file information further includes at least one of a file size, a download task creation time, a download completion time, and a file source, the aggregated file list further includes file information of each file object of the at least two file objects, and the rendering operation further includes: For each leaf node in the tree component, perform the following operations: Determine a third preset style of the leaf node according to the type of the file object corresponding to the leaf node, wherein the third preset style includes a file information display category and a file information display style; According to the file information display category corresponding to the leaf node, acquiring first file information of the file object corresponding to the leaf node from the aggregated file list; and At the leaf node in the tree structure, the first file information is rendered according to the file information display style corresponding to the leaf node.

8. The method according to any one of claims 5 to 7, further comprising: Real-time detection of file update operations performed by the user through the target application, wherein the file update operations include downloading a new file object from the cloud to the client or deleting a downloaded file object; In response to detecting the file update operation, and the third file object involved in the file update operation is associated with the aggregated file list, updating the aggregated file list, wherein the association of the third file object with the aggregated file list indicates that the cloud storage directory of the third file object and the cloud storage directory of the file object in the aggregated file list contain at least the same primary directory; as well as The tree structure is re-rendered based on the updated aggregated file list.

9. The method according to any one of claims 5 to 8, further comprising: In response to detecting a user's filtering operation on the multiple file objects according to file type, and the aggregated file list includes at least one fourth file object of the file type, the tree structure is re-rendered so that the tree structure only displays the aggregated folder and the at least one fourth file object.

10. The method according to any one of claims 5 to 9, further comprising: In response to detecting that a user performs a selection operation on a first folder, the first folder and all file objects under the first folder are added to a list to be processed, wherein the first folder is the aggregate folder or any folder under the aggregate folder.

11. The method according to any one of claims 5 to 10, further comprising: In response to detecting that the user performs a selection operation on all file objects under a second folder, all file objects under the second folder and the second folder are added to the to-be-processed list, wherein the second folder is the aggregate folder or any folder under the aggregate folder.

12. A file management device, comprising: A first acquisition unit is configured to acquire file information of each file object among a plurality of file objects, wherein the plurality of file objects are obtained by downloading through a target application on the client, and the file information includes a cloud storage directory; An aggregation unit, configured to aggregate at least two of the file objects having the same cloud storage directory into the same aggregated file list; as well as The display unit is configured to display an aggregate folder in the target application according to the aggregate file list, wherein the aggregate folder includes the at least two file objects.

13. The device according to claim 12, wherein: The file information is stored in a file information database of the client, and the aggregation unit includes: A first query subunit is configured to query the file information database for file objects that meet a preset query condition, wherein the preset query condition includes that a cloud storage directory is a target directory; and The first aggregation subunit is configured to aggregate the at least two file objects in the aggregated file list in response to finding the at least two file objects that meet the preset query condition.

14. The device according to claim 13, wherein: The first query subunit is further configured to: Determine the target directory as a target primary directory, and search the file information database for file objects that meet the preset query conditions; as well as In response to a first file object that meets the current preset query condition being found to contain a second file object of a folder type, repeatedly performing a first operation until the first file object is not found or the first file object found to contain the second file object, the first operation comprising: Updating the target directory to the target subdirectory corresponding to the second file object; as well as The file information database is searched for file objects that meet the updated preset query condition.

15. The device according to claim 14, wherein: The first aggregation subunit is further configured as follows: In response to the queried number of file objects in the target primary directory and the target subdirectory being at least two, the at least two file objects are aggregated in the aggregated file list according to a directory hierarchy relationship.

16. The device according to claim 14 or 15, wherein: The display unit is further configured as: According to the aggregated file list, the aggregated folder and the at least two file objects are displayed in a tree structure in the target application, wherein the root node of the tree structure corresponds to the aggregated folder, and the leaf nodes of the tree structure correspond to the file objects included in the aggregated folder.

17. The device according to claim 16, wherein: The tree structure is obtained by performing the following rendering operation on the tree component: Based on the directory hierarchical relationship between the at least two file objects, determining the file object corresponding to each leaf node in the tree component and the hierarchical relationship between the leaf nodes; For each leaf node in the tree component, determining a first preset style of the leaf node based on the type of the file object corresponding to the leaf node; as well as Based on the first preset style of each leaf node in the tree component, the directory hierarchy relationship between the leaf nodes, and the second preset style of the root node, each node in the tree component is rendered to obtain the tree structure.

18. An electronic device comprising: at least one processor; as well as a memory communicatively coupled to the at least one processor; in The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 11.

19. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to make a computer execute the method according to any one of claims 1-11.

20. A computer program product comprising a computer program, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.