Folder processing method, computing device and readable storage medium
By calculating the popularity value of items in a folder and sorting the folders based on the number of times they are opened and the usage time using an exponential function, the problem of users having difficulty quickly locating frequently used files or folders in existing technologies is solved, thus improving the user experience.
Patent Information
- Application Number
- CN202210043282.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-25
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2041-08-25
AI Technical Summary
In existing graphical operating systems, the way files or folders are displayed is insufficient to meet users' needs for quickly locating frequently used files or folders, especially when the number of files is large. Existing solutions cannot effectively meet users' needs.
By obtaining the number of times each content item in the folder is opened and the usage time, its popularity value is calculated. A first popularity value and a second popularity value are generated using a power function relationship. Based on these popularity values, the content items in the folder are sorted, and the content items with higher popularity are displayed first.
It improves the efficiency of users quickly locating files or folders of interest within a folder, thus enhancing the user experience.
Smart Images

Figure CN114398325B_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application numbered 2021109783435 filed on August 25, 2021 Technical Field
[0002] The present invention relates to the field of computer technology, and in particular to a folder processing method, a computing device, and a readable storage medium. Background Art
[0003] In today's graphical operating systems, as the number of files stored by users in computer systems continues to increase, the existing display method of files or folders in the operating system is not sufficient to meet the user's usage needs.
[0004] In traditional graphical operating systems currently available on the market, the display of files or folders is limited to sorting by file name, file modification date, file type, and file size. Although the current file or folder display method can meet the user's needs for file or folder sorting to a certain extent, when the number of files or folders is large, if the user needs to view frequently used files or folders, the current processing solution cannot effectively meet the user's needs.
[0005] Therefore, there is an urgent need for a file processing solution that can quickly display files or folders frequently used by users. Summary of the Invention
[0006] To this end, the present invention provides a folder processing method, a computing device, and a readable storage medium, in an effort to solve or at least alleviate the above problems.
[0007] According to one aspect of the present invention, a folder processing method is provided, which is suitable for execution in a computing device, and the method includes: in response to a user operation of opening a folder, obtaining a configuration file of the folder, the configuration file including the number of times each content item in the folder is opened and the usage time, the content item being a sub-file or sub-folder of the folder; based on the number of times it is opened and the usage time, obtaining a first heat value and / or a second heat value of each content item in the folder, the first heat value being related to the number of times each content item is opened, and the second heat value being related to the usage time of each content item; and sorting the content items in the folder based on the first heat value and / or the second heat value.
[0008] Optionally, in the folder processing method according to the present invention, the step of obtaining the first heat value of each content item in the folder based on the number of openings and usage time includes: obtaining the total number of openings of the content items in the folder based on the number of openings of each content item in the folder; generating a corresponding opening probability for each content item in the folder based on the number of openings of each content item and the total number of openings; generating a first heat value for each content item in the folder based on the power function relationship between the opening probability and the first heat value.
[0009] Optionally, in the folder processing method according to the present invention, the step of obtaining the second heat value of each content item in the folder based on the number of openings and usage time includes: obtaining the total usage time of the content items in the folder based on the usage time of each content item in the folder; generating a corresponding usage probability for each content item in the folder based on the usage time and the total usage time of each content item; and generating a second heat value for each content item in the folder based on the power function relationship between the usage probability and the second heat value.
[0010] Optionally, in the folder processing method according to the present invention, the step of sorting the content items in the folder based on the first heat value and the second heat value includes: generating a third heat value based on the first heat value and the second heat value; and sorting the content items in the folder based on the third heat value.
[0011] Optionally, in the folder processing method according to the present invention, the third heat value is generated by the following formula: in, Indicates the third popularity value of the nth content item, represents the first popularity value of the nth content item, a represents the weight corresponding to the first popularity value, represents the second popularity value of the nth content item, and b represents the weight corresponding to the second popularity value.
[0012] Optionally, in the folder processing method according to the present invention, the computing device includes a file manager, and the method further includes: in response to the user's opening operation on the content item in the folder, obtaining the current opening number of the content item in the folder through the file manager; based on the current opening number of the content item, updating the opening number of the content item in the folder included in the configuration file.
[0013] Optionally, the folder processing method according to the present invention further includes: in response to an opening operation on a content item in a folder, counting the current usage time of the content item in the folder; in response to a closing operation on the content item in the folder by the user, stopping the timing of the current usage time of the content item, obtaining the current usage time of the content item through the file manager, and updating the usage time of the content item in the folder included in the configuration file based on the obtained current usage time.
[0014] Optionally, the folder processing method according to the present invention further includes: obtaining the updated first heat value and second heat value of each content item in the folder based on the updated opening times and usage time; and re-sorting the content items in the folder based on the updated first heat value and / or second heat value.
[0015] Optionally, in the folder processing method according to the present invention, the step of sorting the content items in the folder includes: arranging the content items in the folder in descending order based on the first heat value and / or the second heat value.
[0016] Optionally, in the folder processing method according to the present invention, the first heat value is constructed by the following formula: Indicates the first popularity value of the nth content item, represents the opening probability of the nth content item.
[0017] Optionally, in the folder processing method according to the present invention, the second heat value is constructed by the following formula: in, Indicates the second popularity value of the nth content item, represents the usage probability of the nth content item.
[0018] Optionally, the folder processing method according to the present invention further includes: if a corresponding configuration file does not exist for the folder, creating a configuration file corresponding to the folder; and initializing the number of openings and usage time included in the configuration file.
[0019] Optionally, the folder processing method according to the present invention further includes: storing and encrypting the updated configuration file.
[0020] Optionally, in the folder processing method according to the present invention, before the step of obtaining the first popularity value and / or second popularity value of each content item in the folder based on the number of openings and usage time, it also includes: decrypting the obtained configuration file.
[0021] Optionally, in the folder processing method according to the present invention, the configuration file of the folder is stored in the folder.
[0022] According to another aspect of the present invention, a computing device is provided, which includes: one or more processors; and a memory; one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include instructions for executing any of the above-mentioned folder processing methods.
[0023] According to another aspect of the present invention, a computer-readable storage medium storing one or more programs is provided, wherein the one or more programs include instructions that, when executed by a computing device, cause the computing device to execute any one of the above-mentioned folder processing methods.
[0024] According to the folder processing method of the present invention, sub-files or sub-folders are sorted by their heat values. Since the heat values of sub-files or sub-folders are related to the number of times users open them and the time they use them, as well as the probability of opening and using them, sorting by heat values can help users quickly locate the sub-files or sub-folders they are interested in, thereby improving the user experience.
[0025] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] To achieve the above and related purposes, certain illustrative aspects are described herein in conjunction with the following description and accompanying drawings, which indicate various ways in which the principles disclosed herein may be practiced, and all aspects and their equivalents are intended to fall within the scope of the claimed subject matter. The above and other objects, features, and advantages of the present disclosure will become more apparent by reading the following detailed description in conjunction with the accompanying drawings. Throughout this disclosure, the same reference numerals generally refer to the same parts or elements.
[0027] Figure 1 A flowchart of a folder processing method 100 according to an embodiment of the present invention is shown;
[0028] Figure 2 A flowchart of a folder processing method 200 according to another embodiment of the present invention is shown;
[0029] Figure 3 shows a function graph of the first popularity value and the opening probability according to one embodiment of the present invention;
[0030] Figure 4 shows a function graph of the second popularity value and the usage probability according to one embodiment of the present invention;
[0031] Figure 5 A schematic diagram showing a folder processing method in the prior art is shown;
[0032] Figure 6 A schematic diagram showing a configuration file according to an embodiment of the present invention is shown;
[0033] Figure 7A schematic diagram showing a folder processing method according to an embodiment of the present invention is shown;
[0034] Figure 8 FIG. 8 is a schematic structural diagram of a computing device 800 according to an embodiment of the present invention. DETAILED DESCRIPTION
[0035] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0036] In current traditional graphical operating systems, such as Windows desktop operating systems, the arrangement and display of sub-files and sub-folders contained in folders is limited to arranging according to file name, file modification date, file type and file size. Figure 5 The following is a schematic diagram showing a folder processing method of the prior art. The arrangement of sub-files and sub-folders in the current desktop operating system is as follows: Figure 5 As shown, when the user clicks on a certain arrangement display method with the mouse, the sub-files and sub-folders will be arranged according to the method selected by the user. For example, if the user chooses to sort by file type, the sub-files and sub-folders in the folder will be arranged together according to the file type. Figure 5 File 1, File 2, and File 3 of file type are arranged together, and then Folder 1, Folder 2, and Folder 3 of folder type are arranged together. The existing folder processing method arranges sub-files or sub-folders in one of several ways specified by the system. Even if a user opens the same file multiple times or frequently uses a file, the file may not be displayed at the top of the display list. For users, files that are opened multiple times and files that have been used for a long time represent content that the user is interested in within the current period of time. Therefore, how to provide a folder processing method that better arranges files and folders according to heat values so that users can quickly find the required sub-files or sub-folders when using them is an urgent problem that needs to be solved.
[0037] In view of the problems existing in the prior art, the present invention provides a folder processing method. The folder processing method of this solution is described in detail below.
[0038] Figure 1 FIG. 1 is a flowchart of a folder processing method 100 according to an embodiment of the present invention. Figure 2As shown, the folder processing method 100 starts at step S110. In step S110, in response to the user's operation of opening the folder, it is detected whether there is a configuration file for the folder. According to one embodiment, the configuration file includes the number of times each content item in the folder is opened and the usage time, and the content item is a sub-file or sub-folder in the folder. Specifically, the number of times a content item is opened indicates the total number of times the content item is opened. For example, if the user has opened file 1 15 times in total, then the number of times file 1 is opened is 15 times; the usage time of a content item indicates the total time the content item is opened. For example, if the user opened file 1 for 200 seconds the first time and opened file 1 for 300 seconds the second time, then the usage time of file 1 is the sum of the two usage times, that is, 500 seconds.
[0039] Figure 6 FIG. 1 shows a schematic diagram of a configuration file according to an embodiment of the present invention. Figure 6 As shown, CountHoT indicates the number of times each content item is opened. The configuration file records the number of times each content item is opened. For example, if the number of times file 1 in the folder is opened is 15, the number of times file 1 is opened corresponding to the number of times file 1 is recorded in the CountHot part of the configuration file, which is represented by file 1 = 15. Figure 6 As shown, UseHot represents the usage time of each content item. The configuration file records the usage time of each content item. For example, if the usage time of File 1 in a folder is 255 seconds, the usage time of File 1 relative to the usage time of File 1 is recorded in the UseHot section of the configuration file, represented by File 1 = 255. The unit of usage time can be set as needed, for example, seconds or milliseconds. Optionally, the configuration file can be named with any name, for example, the file name .hot represents the configuration file. According to one embodiment of the present invention, the configuration file corresponding to the folder is stored in the folder.
[0040] After detecting whether there is a configuration file in the folder at step S110, if there is a configuration file corresponding to the folder, step S120 is directly executed to read the corresponding configuration file. If the configuration file is stored in an encrypted form, the configuration file is first decrypted and then read.
[0041] After step S110 detects whether there is a configuration file for the folder, if the result is that the configuration file for the folder does not exist, step S112 is executed to create a configuration file corresponding to the folder. Optionally, a configuration file corresponding to the folder is created in the folder and stored in the folder to facilitate searching and managing the configuration file. Then step S114 is entered to initialize the created configuration file. According to one embodiment, initial values are set for the number of times each content item is opened and the usage time included in the configuration file. Optionally, when creating the configuration file, the number of times each content item is opened and the usage time are set to 0. According to one embodiment of the present invention, the created configuration file is encrypted. Then, step S120 is entered to read the configuration file. According to one embodiment of the present invention, if the configuration file is in an encrypted state, the encrypted configuration file is decrypted by the file manager, and the data of the number of times the configuration file is opened and the usage time is written into the configuration file.
[0042] Subsequently, after step S120, step S130 may be executed. In step S130, based on the number of times each content item in the folder has been opened, the total number of times the content item in the folder has been opened is obtained. According to one embodiment of the present invention, the number of times each content item in the folder has been opened is summed to obtain the total number of times the content item has been opened. The total number of times the content item has been opened is generated using the following formula:
[0043] C (总打开次数) =C (内容项1) +C (内容项2) +...+C (内容项n)
[0044] Among them, C (总打开次数) Indicates the total number of times all items in the folder are opened, C (内容项1) Indicates the number of times the first content item is opened, C (内容项2) Indicates the number of times the second content item is opened, C (内容项n) Indicates the number of times the nth content item has been opened.
[0045] by Figure 6 For example, the configuration file Figure 6 The configuration file shown can be used to obtain the number of times each content item is opened. Since the total number of times opened is equal to the sum of the number of times each content item is opened, it can be concluded that the total number of times opened is 100, that is, C (总打开次数) =C (文件1) +C (文件2) +C (文件3) +C (文件夹1) +C (文件夹2) +C (文件夹3) =15+38+2+5+25+15=100.
[0046] Then, in step S140, based on the number of times each content item in the folder has been opened and the total number of times the content item has been opened, a corresponding open probability is generated for each content item in the folder. According to one embodiment of the present invention, the probability of each sub-file or sub-folder being opened by the user can be calculated based on the number of times the sub-file or sub-folder has been opened. The open probability is generated using the following formula:
[0047]
[0048] in, represents the opening probability of the nth content item, C (内容项n) Indicates the number of times the nth content item is opened, C (总打开次数) Represents the total number of times all content items in the folder have been opened.
[0049] by Figure 6 For example, the configuration file Figure 6 The configuration file shown in FIG. 1 shows that the number of times file 1 is opened is 15. According to step S130, the total number of times the content item is opened is 100. According to the above opening probability formula, the opening probability of file 1 is 0.15, that is,
[0050] Then, in step S150 , based on the power function relationship between the opening probability and the opening frequency heat value (ie, the first heat value), an opening frequency heat value is generated for each content item in the folder.
[0051] According to an embodiment of the present invention, it is found in actual use that the relationship between the opening frequency heat value and the opening probability conforms to a power function relationship. Figure 3 The function graph of the first heat value and the opening probability according to one embodiment of the present invention is shown. Figure 3 In the image shown, the horizontal axis represents the probability of opening a content item, and the vertical axis represents the popularity value of the number of times the content item is opened. As the number of times a content item is opened increases, the growth trend of the popularity value of the number of times ...
[0052]
[0053] in, Indicates the popularity value of the number of times the nth content item is opened. represents the opening probability of the nth content item.
[0054] by Figure 6 As an example, the configuration file of is obtained through step S140. The opening probability of file 1 is 0.15, and the opening times heat value of file 1 is 0.387.
[0055] After step S120, step S132 may also be performed. In step S132, based on the usage time of each content item in the folder, the total usage time of the content items in the folder is obtained. According to one embodiment of the present invention, the usage time of each content item in the folder is summed to obtain the total usage time of the content items. The total number of openings is generated using the following formula:
[0056] T (总使用时间) =t (内容项1) +t (内容项2) +...+t (内容项n)
[0057] Among them, T (总使用时间) Represents the total usage time of all content items in the folder, t (内容项1) Indicates the usage time of the first content item, t (内容项2) Indicates the usage time of the second content item, t (内容项n) Indicates the usage time of the nth content item.
[0058] by Figure 6 For example, the configuration file Figure 6 The configuration file shown can be used to obtain the usage time of each content item. Since the total usage time is equal to the sum of the usage time of each content item, the total usage time can be obtained to be 36553 seconds, that is, T (总使用时间) =t (文件1) +t (文件2) +t (文件3) +t (文件夹1) +t (文件夹2) +t (文件夹3) =255+8513+6512+1322+15466+4485=36553.
[0059] Then, in step S142, a usage probability is generated for each content item in the folder based on the usage time of each content item and the total usage time of the content item. According to one embodiment of the present invention, the probability of each sub-file or sub-folder being used by the user can be calculated based on the usage time of the sub-file or sub-folder. The usage probability is generated by the following formula:
[0060]
[0061] in, represents the usage probability of the nth content item, t (内容项n) Indicates the usage time of the nth content item, T (总使用时间) Represents the total usage time of all content items in the folder.
[0062] by Figure 6 For example, the configuration file Figure 6The configuration file shown in the figure shows that the usage time of file 1 is 255 seconds. According to step S132, the total usage time of the content item is 36553 seconds. According to the above usage probability formula, the usage probability of file 1 is 0.00698, that is,
[0063] Subsequently, in step S152 , based on the power function relationship between the usage probability and the usage time heat value (ie, the second heat value), a usage time heat value is generated for each content item in the folder.
[0064] According to an embodiment of the present invention, it is found in actual use that the relationship between the usage time heat value and the usage probability conforms to a power function relationship. Figure 4 The function graph of the second heat value and the usage probability according to one embodiment of the present invention is shown. Figure 4 In the image shown, the horizontal axis represents the usage probability of the content item, and the vertical axis represents the usage time heat value of the content item. As the usage time of the content item increases, the growth trend of the usage time heat value gradually increases. The usage time heat value is constructed using the following formula:
[0065]
[0066] in, Indicates the usage time heat value of the nth content item, represents the usage probability of the nth content item.
[0067] by Figure 6 As an example, the usage probability of file 1 can be obtained as 0.00698 through step S142, so the usage time heat value of file 1 is
[0068] Then, in step S160 , the content items in the folder are sorted based on the opening times heat value and / or the usage time heat value.
[0069] According to one embodiment of the present invention, the content items in the folder are arranged in descending order according to the heat value of the number of times they are opened or the heat value of the usage time, so that the content items with high heat values are presented to the user first, making it easier for the user to find and view the content items with high heat values.
[0070] According to another embodiment of the present invention, the content items in the folder are sorted according to the opening times heat value and the usage time heat value. Specifically, based on the opening times heat value and the usage time heat value, the total heat value (i.e., the third heat value) of the content item is generated, and then the content items in the folder are sorted in descending order based on the total heat value. The total heat value of the content item is constructed by the following formula:
[0071]
[0072] in, Indicates the third popularity value of the nth content item, represents the first popularity value of the nth content item, a represents the weight corresponding to the first popularity value, represents the second popularity value of the nth content item, and b represents the weight corresponding to the second popularity value.
[0073] Optionally, the values of weights a and b are selected to satisfy the following conditions: a+b=1, a,b∈[0,1].
[0074] Figure 2 FIG2 shows a flowchart of a folder processing method 200 according to another embodiment of the present invention. When a user opens a content item in a folder, the number of times each content item in the folder is opened and the usage time are updated. Figure 2 As shown, method 200 begins at step S210. In step S210, in response to a user opening an item in a folder, the file manager obtains the current opening count of the item in the folder. According to one embodiment of the present invention, when a user opens an item in the folder, the file manager obtains the current opening count of the item as 1.
[0075] Subsequently, in step S220 , based on the current opening count of the content item, the opening count of the content item in the folder included in the configuration file is updated.
[0076] According to one embodiment of the present invention, the opening count corresponding to the content item in the configuration file is increased by 1. That is, when the file manager detects that a content item is opened, the current opening count is 1. Each time the file manager detects that a content item is opened, the opening count corresponding to the content item is increased by 1. Figure 6 For example, the configuration file shows that the number of times file 1 has been opened is 15. If the user opens file 1, the number of times file 1 has been opened is updated to 16 (that is, the current number of times opened is increased). If the user closes file 1 and then opens it again, the number of times file 1 has been opened is updated to 17.
[0077] Then, in step S230 , in response to the user opening an operation on a content item in the folder, the current usage time of the content item starts to be counted.
[0078] Subsequently, in step S240, in response to the user closing the content item in the folder, the current usage time of the content item is stopped, the current usage time of the content item is obtained through the file manager, and based on the obtained current usage time, the usage time of the content item in the folder included in the configuration file is updated.
[0079] According to one embodiment of the present invention, in response to a user opening a content item in a folder, the current usage time of the content item starts to be counted, and in response to a user closing a content item in a folder, the current usage time of the content item stops to be counted. The current usage time that is stopped at this time is the length of time that the content item is used by the user. Then, the usage time of the content item in the configuration file is updated using the obtained current usage time. Specifically, the current usage time is summed with the usage time of the content item recorded in the configuration file, and the result of the sum calculation is used as the updated usage time of the content item. Figure 6 Take the configuration file as an example, assuming that when the user opens file 1, the current usage time starts from zero, and then when the user closes file 1, the current usage time stops. Assuming that the current usage time at this time is 45 seconds, the usage time of file 1 recorded in the configuration file is updated based on the current usage time, that is, the sum of the current usage time and the usage time of file 1 recorded in the configuration file (45+255=300 seconds) is used as the updated usage time of file 1, that is, the usage time of file 1 in the updated configuration folder is 300.
[0080] Then, in step S250, based on the updated opening times and usage time, the updated opening times heat value (ie, the first heat value) and usage time heat value (ie, the second heat value) of each content item in the folder are obtained.
[0081] Specifically, the number of times each content item is opened after the update is used to obtain the opening number heat value of each content item, and the usage time heat value of each content item is used to obtain the usage time heat value of each content item after the update. Among them, the method for obtaining the opening number heat value based on the updated opening number can be implemented by the method for calculating the opening number heat value based on the opening number recorded in steps S130, S140 and S150, which will not be repeated here. The method for obtaining the usage time heat value based on the updated usage time can be implemented by the method for calculating the usage time heat value based on the usage time recorded in steps S132, S142 and S152, which will not be repeated here.
[0082] Subsequently, in step S260, the content items in the folder are reordered based on the updated opening count heat value and / or usage time heat value. This step can be implemented using the method for sorting the content items in the folder based on the opening count heat value and / or usage time heat value described in step S160, which will not be described in detail here. As files in the folder are opened and used, the heat values of the content items in the folder will change. If the sorting of the content items changes, the sorting of the content items will be updated at this time.
[0083] According to the folder processing method of the present invention, it is possible to sort the content items in the folder based on the heat value. Figure 7 FIG. 1 is a schematic diagram showing a folder processing method according to an embodiment of the present invention. Figure 7 As shown, according to the folder processing method of the present invention, the user can sort the content items in the folder according to the popularity value of the content items. Figure 7 The heat values of file 2, folder 3, ..., folder 2 presented from top to bottom are arranged from large to small. When the user chooses to arrange content items by heat value, the content items will be arranged in descending order according to the heat value.
[0084] The folder processing method of the present invention is suitable for execution in a computing device. Figure 8 FIG. 8 is a schematic diagram showing the structure of a computing device 800 according to an embodiment of the present invention. Figure 8 The computing device 800 is shown in FIG. Figure 8 As shown, in a basic configuration 802, computing device 800 typically includes a system memory 806 and one or more processors 804. A memory bus 808 may be used for communication between processor 804 and system memory 806.
[0085] Depending on the desired configuration, the processor 804 can be any type of processor, including but not limited to a microprocessor (μP), a microcontroller (μC), a digital signal processing unit (DSP), or any combination thereof. The processor 804 can include one or more levels of cache, such as a level 1 cache 810 and a level 2 cache 812, a processor core 814, and registers 816. An example processor core 814 can include an arithmetic logic unit (ALU), a floating point unit (FPU), a digital signal processing core (DSP core), or any combination thereof. An example memory controller 818 can be used with the processor 804, or in some implementations, the memory controller 818 can be an internal part of the processor 804.
[0086] Depending on the desired configuration, the system memory 806 can be any type of memory, including but not limited to volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. The system memory 806 can include an operating system 820, one or more applications 822, and program data 824. In some embodiments, the application 822 can be arranged to operate on the operating system using the program data 824. The program data 824 includes instructions. In the computing device 800 according to the present invention, the program data 824 includes instructions for executing the folder processing method 100 or 200.
[0087] Computing device 800 also includes a storage device 832, which includes a removable storage device 836 and a non-removable storage device 838. Both removable storage device 836 and non-removable storage device 838 are connected to storage interface bus 834. In the present invention, data related to various events occurring during program execution and information indicating the time when each event occurred can be stored in storage device 832. Operating system 820 is suitable for managing storage device 832. Storage device 832 can be a magnetic disk.
[0088] The computing device 800 may also include an interface bus 840 that facilitates communication from various interface devices (e.g., output devices 842, peripheral interfaces 844, and communication devices 846) to the basic configuration 802 via the bus / interface controller 830. Example output devices 842 include a graphics processing unit 848 and an audio processing unit 850. These can be configured to facilitate communication with various external devices such as a display or speakers via one or more A / V ports 852. Example peripheral interfaces 844 may include a serial interface controller 854 and a parallel interface controller 856, which can be configured to facilitate communication with external devices such as input devices (e.g., a keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., a printer, scanner, etc.) via one or more I / O ports 858. Example communication devices 846 may include a network controller 860, which can be arranged to facilitate communication with one or more other computing devices 862 via a network communication link via one or more communication ports 864.
[0089] A network communication link can be an example of a communication medium. Communication media can generally be embodied as computer-readable instructions, data structures, program modules in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium. A "modulated data signal" can be a signal in which one or more of its data sets or changes thereto can be performed in a manner that encodes information in the signal. As non-limiting examples, communication media can include wired media such as a wired network or a dedicated line network, and various wireless media such as sound, radio frequency (RF), microwave, infrared (IR) or other wireless media. The term computer-readable medium as used herein can include both storage media and communication media.
[0090] The computing device 800 can be implemented as a server, such as a file server, a database server, an application server, and a WEB server, or can be implemented as part of a small-sized portable (or mobile) electronic device, such as a cellular phone, a personal digital assistant (PDA), a personal media player device, a wireless network browsing device, a personal head-mounted device, an application-specific device, or a hybrid device that can include any of the above functions. The computing device 800 can also be implemented as a personal computer including a desktop computer and a notebook computer configuration. In some embodiments, the computing device 800 is configured to execute a folder processing method 100 or 200 according to the present invention.
[0091] According to the folder processing method of the present invention, sub-files or sub-folders are sorted by their heat values. Since the heat values of sub-files or sub-folders are related to the number of times users open them and the time they use them, as well as the probability of opening and using them, sorting by heat values can help users quickly locate the sub-files or sub-folders they are interested in, thereby improving the user experience.
[0092] Furthermore, the technical solution of the present invention has low dependency, strong versatility, and high operating performance, and can be widely used in file sorting solutions for file managers of various platforms.
[0093] The various techniques described herein may be implemented in conjunction with hardware or software, or a combination thereof. Thus, the methods and apparatus of the present invention, or certain aspects or portions of the methods and apparatus of the present invention, may be implemented in the form of program codes (i.e., instructions) embedded in a tangible medium, such as a removable hard disk, a USB flash drive, a floppy disk, a CD-ROM, or any other machine-readable storage medium, wherein when the program is loaded into a machine such as a computer and executed by the machine, the machine becomes an apparatus for practicing the present invention.
[0094] When the program code is executed on a programmable computer, the computing device generally includes a processor, a storage medium readable by the processor (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The memory is configured to store the program code; the processor is configured to execute the folder processing method of the present invention according to the instructions in the program code stored in the memory.
[0095] By way of example and not limitation, readable media include readable storage media and communication media. Readable storage media store information such as computer-readable instructions, data structures, program modules, or other data. Communication media typically embody computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and include any information delivery medium. Combinations of any of the above are also included within the scope of readable media.
[0096] In the description provided herein, the algorithm and display are not inherently relevant to any particular computer, virtual system or other equipment. Various general-purpose systems can also be used together with examples of the present invention. According to the above description, it is apparent that the structure required for constructing this type of system. In addition, the present invention is not directed to any specific programming language yet. It should be understood that various programming languages can be utilized to realize the content items of the present invention described herein, and the above description of the specific language done is for disclosing the best mode of the present invention.
[0097] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of this description.
[0098] Similarly, it should be understood that in order to streamline the disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together into a single embodiment, figure, or description thereof.
[0099] Those skilled in the art will appreciate that the modules, units, or components of the devices in the examples disclosed herein may be arranged in the device described in the embodiment, or alternatively may be located in one or more devices different from the devices in the examples. The modules in the foregoing examples may be combined into one module or further divided into multiple submodules.
[0100] Those skilled in the art will appreciate that the modules in the devices in the embodiments can be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and in addition they can be divided into multiple submodules or subunits or subassemblies. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification and all processes or units of any method or device disclosed in this manner can be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification can be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0101] Furthermore, those skilled in the art will appreciate that although some embodiments described herein include certain features and not other features included in other embodiments, the combination of features from different embodiments is intended to be within the scope of the invention and to form different embodiments.
[0102] In addition, some of the embodiments are described herein as methods or combinations of method elements that can be implemented by a processor of a computer system or by other devices that perform the functions described. Thus, a processor having the necessary instructions for implementing the method or method element forms a device for implementing the method or method element. Furthermore, the elements described herein of the device embodiments are examples of devices for implementing the functions performed by the elements for the purpose of implementing the invention.
[0103] As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved and are not intended to imply that the objects so described must have a given order in time, space, ranking, or in any other manner.
[0104] Throughout this specification, unless otherwise expressly specified or limited, terms such as "connected" and "fixed" should be understood in a broad sense. Furthermore, terms such as "upper," "lower," "inner," "outer," "top," and "bottom" indicating orientations or positional relationships are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate and simplify the description of the present invention. They do not indicate or imply that the device or unit referred to must have a specific orientation, be constructed, or operate in a specific position. Therefore, they should not be construed as limiting the present invention.
[0105] Although the present invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of the foregoing description, will appreciate that other embodiments are contemplated within the scope of the invention thus described. Furthermore, it should be noted that the language used in this specification has been selected primarily for readability and instructional purposes and is not selected to explain or limit the subject matter of the present invention.
Claims
1. A folder processing method, adapted to be executed in a computing device, the method comprising: In response to a user opening a folder, obtaining a configuration file of the folder, the configuration file including the number of times each content item in the folder has been opened and the usage time, the content item being a sub-file or sub-folder of the folder; Based on the number of times each content item is opened and the usage time, obtaining a first popularity value and a second popularity value of each content item in the folder, wherein the first popularity value is related to the number of times each content item is opened, and the second popularity value is related to the usage time of each content item; sorting the content items in the folder based on the first popularity value and the second popularity value; The step of obtaining the first popularity value of each content item in the folder based on the number of openings and usage time includes: Get the total number of times the content items in the folder are opened based on the number of times each content item in the folder is opened; generating a corresponding opening probability for each content item in the folder based on the opening count and the total opening count of each content item; generating a first popularity value for each content item in the folder based on a power function relationship between the opening probability and the first popularity value; The step of obtaining the second popularity value of each content item in the folder based on the number of openings and the usage time includes: Based on the usage time of each content item in the folder, obtain the total usage time of the content items in the folder; generating a corresponding usage probability for each content item in the folder based on the usage time and total usage time of each content item; Based on the power function relationship between the usage probability and the second popularity value, a second popularity value is generated for each content item in the folder.
2. The method according to claim 1, wherein The step of sorting the content items in the folder based on the first popularity value and the second popularity value includes: generating a third heat value based on the first heat value and the second heat value; The content items in the folder are sorted based on the third popularity value.
3. The method according to claim 2, wherein: The third heat value is generated by the following formula: in, Indicates the third popularity value of the nth content item, represents the first popularity value of the nth content item, a represents the weight corresponding to the first popularity value, represents the second popularity value of the nth content item, and b represents the weight corresponding to the second popularity value.
4. The method according to claim 1, wherein The step of sorting the content items in the folder based on the first popularity value and the second popularity value includes: The content items in the folder are arranged in descending order based on the first popularity value and the second popularity value.
5. The method according to claim 1, wherein The first heat value is constructed by the following formula: in, Indicates the first popularity value of the nth content item, represents the opening probability of the nth content item.
6. A computing device comprising: one or more processors; and Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for executing any one of the methods according to claims 1-5.
7. A computer-readable storage medium storing one or more programs, the one or more programs comprising instructions, which, when executed by a computing device, cause the computing device to perform any one of the methods according to claims 1-5.
Citation Information
Patent Citations
File sorting display method and device
CN104537082A
Popularity value collection method and device
CN111666486A
A folder processing method, a computing device, and a readable storage medium
CN113419998B