[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113419998B - Folder processing method, computing device and readable storage medium - Google Patents

Folder processing method, computing device and readable storage medium Download PDF

Info

Publication number
CN113419998B
CN113419998B CN202110978343.5A CN202110978343A CN113419998B CN 113419998 B CN113419998 B CN 113419998B CN 202110978343 A CN202110978343 A CN 202110978343A CN 113419998 B CN113419998 B CN 113419998B
Authority
CN
China
Prior art keywords
folder
heat value
content item
opening
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110978343.5A
Other languages
Chinese (zh)
Other versions
CN113419998A (en
Inventor
张�浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Tongxin Software Technology Co ltd
Original Assignee
Chengdu Tongxin Software Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Tongxin Software Technology Co ltd filed Critical Chengdu Tongxin Software Technology Co ltd
Priority to CN202210043282.8A priority Critical patent/CN114398325A/en
Priority to CN202110978343.5A priority patent/CN113419998B/en
Publication of CN113419998A publication Critical patent/CN113419998A/en
Application granted granted Critical
Publication of CN113419998B publication Critical patent/CN113419998B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a folder processing method, a computing device and a readable storage medium, wherein the method is suitable for being executed in the computing device and comprises the following steps: responding to the operation of opening the folder by a user, acquiring a configuration file of the folder, wherein the configuration file comprises the opening times and the use time of each content item in the folder, and the content items are subfiles or subfolders of the folder; acquiring a first heat value and/or a second heat value of each content item in the folder based on the opening times and the use time, wherein the first heat value is related to the opening times of each content item, and the second heat value is related to the use time of each content item; the content items in the folder are ordered based on the first heat value and/or the second heat value. The invention can help the user to quickly locate the subfiles or subfolders which are interested by the user by sequencing according to the heat value, thereby improving the user experience.

Description

Folder processing method, computing device and readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a folder processing method, a computing device, and a readable storage medium.
Background
In the current graphical operating system, with the increasing of files stored in a computer system by a user, the existing display mode of the files or folders in the operating system is not enough to meet the use requirement of the user.
In the conventional graphical operating system on the market, the display mode of the files or folders is limited to sorting according to the file name, the file modification date, the file type and the file size. Although the existing display mode of files or folders can meet the requirement of a user on the sequencing display of the files or folders to a certain extent, when the number of the files or folders is large, if the user needs to check frequently used files or folders, the existing processing scheme cannot well meet the requirement of the user.
Therefore, a file processing scheme for rapidly displaying files or folders frequently used by a user is needed.
Disclosure of Invention
To this end, the present invention provides a folder handling method, a computing device and a readable storage medium, in an attempt to solve or at least alleviate the problems presented above.
According to an aspect of the present invention, there is provided a folder processing method adapted to be executed in a computing device, the method comprising: responding to the operation of opening the folder by a user, acquiring a configuration file of the folder, wherein the configuration file comprises the opening times and the use time of each content item in the folder, and the content items are subfiles or subfolders of the folder; acquiring a first heat value and/or a second heat value of each content item in the folder based on the opening times and the use time, wherein the first heat value is related to the opening times of each content item, and the second heat value is related to the use time of each content item; the content items in the folder are ordered based on the first heat value and/or the second heat value.
Alternatively, 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 times of opening and the usage time includes: acquiring the total opening times of the content items in the folder based on the opening times of each content item in the folder; generating a corresponding opening probability for each content item in the folder based on the opening times and the total opening times of each content item; a first heat value is generated for each content item in the folder based on a power function relationship of the opening probability and the first heat value.
Alternatively, 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 times of opening and the usage time includes: acquiring the total use time of the content items in the folder based on the use time of each content item in the folder; generating a respective usage probability for each content item in the folder based on the usage time and the total usage time of each content item; a second heat value is generated for each content item in the folder based on a power function relationship of the usage probability and the second heat value.
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; the content items in the folder are ordered based on the third heat value.
Alternatively, in the folder processing method according to the present invention, the third heat value is generated by the following formula:
Figure 829537DEST_PATH_IMAGE001
wherein,
Figure 558459DEST_PATH_IMAGE002
a third heat value representing an nth content item,
Figure 637273DEST_PATH_IMAGE003
a first heat value representing the nth content item, a representing a weight corresponding to the first heat value,
Figure 135251DEST_PATH_IMAGE004
represents a second heat value of the nth content item, and b represents a weight corresponding to the second heat value.
Optionally, in a folder processing method according to the present invention, the computing device includes a file manager, and the method further includes: responding to the opening operation of a user on the content item in the folder, and acquiring the current opening times of the content item in the folder through a file manager; the number of times the content item is opened in the folder included in the configuration file is updated based on the current number of times the content item is opened.
Optionally, the folder processing method according to the present invention further includes: responding to the opening operation of the content item in the folder, and responding to the current use time of the content item in the folder; in response to the closing operation of the user on the content item in the folder, stopping the timing of the current use time of the content item, acquiring the current use time of the content item through the file manager, and updating the use time of the content item in the folder included in the configuration file based on the acquired current use time.
Optionally, the folder processing method according to the present invention further includes: acquiring a first updated heat value and a second updated heat value of each content item in the folder based on the updated opening times and the updated use time; reordering the content items in the folder based on the updated first and/or second heat value.
Optionally, in the folder processing method according to the present invention, the step of sorting the content items in the folder includes: the content items in the folder are arranged based on the order of the first heat value and/or the second heat value from high to low.
Optionally according toIn the folder processing method of the present invention, the first heat value is constructed by the following formula:
Figure 906897DEST_PATH_IMAGE005
wherein,
Figure 919853DEST_PATH_IMAGE003
a first heat value representing an nth content item,
Figure 802358DEST_PATH_IMAGE006
representing the probability of opening the nth content item.
Alternatively, in the folder processing method according to the present invention, the second heat value is constructed by the following formula:
Figure 154842DEST_PATH_IMAGE007
wherein,
Figure 97390DEST_PATH_IMAGE004
a second heat value representing an nth content item,
Figure 535325DEST_PATH_IMAGE008
representing the probability of use of the nth content item.
Optionally, the folder processing method according to the present invention further includes: if the folder does not have the corresponding configuration file, creating the configuration file corresponding to the folder; the number of times of opening and the use time included in the configuration file are initialized.
Optionally, the folder processing method according to the present invention further includes: and storing and encrypting the updated configuration file.
Optionally, in the folder processing method according to the present invention, before the step of obtaining the first heat value and/or the second heat value of each content item in the folder based on the number of opens and the usage time, the method further includes: and decrypting the acquired configuration file.
Alternatively, in the folder processing method according to the present invention, the configuration file of the folder is stored in the folder.
According to another aspect of the present invention, there is provided a computing device comprising: one or more processors; and a 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 including instructions for performing any of the above-described folder handling methods.
According to yet another aspect of the present invention, there is provided 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 of the above-described folder processing methods.
According to the folder processing method, the subfiles or the subfolders are sorted according to the heat value of the subfiles or the subfolders, and the heat value of the subfiles or the subfolders is related to the opening times and the using time of the user and also related to the opening probability and the using probability, so that the user can be helped to quickly locate the subfiles or the subfolders which are interested by the user by sorting according to the heat value, and the user experience is improved.
The above description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 shows a flow diagram of a folder handling method 100 according to one embodiment of the invention;
FIG. 2 shows a flow diagram of a folder handling method 200 according to another embodiment of the invention;
FIG. 3 illustrates an image of a first heat value as a function of opening probability in accordance with one embodiment of the present invention;
FIG. 4 illustrates an image of a second heat value as a function of probability of use, according to one embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating a prior art folder handling method;
FIG. 6 shows a schematic diagram of a configuration file according to one embodiment of the invention;
FIG. 7 is a diagram illustrating a folder handling method according to one embodiment of the invention;
FIG. 8 illustrates a block diagram of a computing device 800, according to one embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In a conventional graphical operating system, such as a Windows desktop operating system, the subfiles and the arrangement of the subfolders contained in the folder are limited to be arranged according to the file name, the file modification date, the file type and the file size. Fig. 5 shows a schematic diagram of a related art folder handling method. The arrangement of the subfiles and the subfolders in the current desktop operating system is shown in fig. 5, when a user clicks a certain arrangement display mode with a mouse, the subfiles and the subfolders are arranged according to a mode selected by the user, for example, the user selects to sequence in a file type mode, the subfiles and the subfolders in the folder arrange the subfiles or the subfolders of the same file type together according to the file type, for example, files 1, 2 and 3 of which the file types are files in fig. 5 are arranged together, and then folder 1, folder 2 and folder 3 of which the file types are folders are arranged together. Existing folder handling methods arrange subfiles or subfolders in one of several ways specified by the system, and even if a user opens the same file multiple times or uses a file frequently, the file is not necessarily displayed in the display list in the front column. For a user, files opened many times and files with long use time all represent the content of interest of the user in the current period of time, so how to provide a folder processing method for better arranging files and folders according to the heat value so that the user can quickly find needed subfiles or subfolders in use is an urgent problem to be solved.
Aiming at the problems in the prior art, the invention provides a folder processing method. The following describes the folder processing method according to this embodiment in detail.
FIG. 1 shows a flow diagram of a folder processing method 100 according to one embodiment of the invention. As shown in fig. 2, the folder processing method 100 starts at step S110. In step S110, in response to an operation of opening a folder by a user, it is detected whether a configuration file of the folder exists. According to one embodiment, the configuration file includes the number of times each content item in the folder is opened and the time of use, and the content items are subfiles or subfolders in the folder. Specifically, the number of times a content item is opened represents the total number of times the content item is opened, for example, the number of times a user has opened file 1 altogether is 15 times, and then the number of times file 1 is opened is 15 times; the usage time of a content item represents the total time the content item was opened, e.g. the user used 200 seconds to open file 1 for the first time and 300 seconds to open file 1 for the second time, the usage time of file 1 is the sum of the two usage times, i.e. 500 seconds.
FIG. 6 shows a schematic diagram of a configuration file according to one embodiment of the invention. As shown in fig. 6, CountHoT indicates the number of times of opening of each content item, and the configuration file records the number of times of opening of each content item, for example, if the number of times of opening of file 1 in the folder is 15, then the number of times of opening corresponding to file 1 is recorded in the CountHoT part of the configuration file, and is indicated by file 1= 15. As shown in fig. 6, UseHot indicates the usage time of each content item, and the profile records the usage time of each content item, for example, if the usage time of file 1 in the folder is 255 seconds, then the usage time of file 1 relative to file 1 is recorded in the UseHot part of the profile, and is indicated as file 1= 255. The unit of usage time may be set as desired, and may be, for example, seconds or milliseconds. Optionally, the configuration files are named by any name, such as the hot file name representing the configuration file. According to one embodiment of the invention, the configuration file corresponding to the folder is stored in the folder.
After detecting whether the configuration file of the folder exists in step S110, if the configuration file corresponding to the folder exists, step S120 is directly performed to read the corresponding configuration file. If the configuration file is stored in an encrypted form, the configuration file is decrypted first and then read.
After detecting whether the configuration file of the folder exists in step S110, if the result is that the configuration file of the folder does not exist, step S112 is executed to create the configuration file corresponding to the folder. Optionally, a configuration file corresponding to the folder is created in the folder and stored in the folder, so that the configuration file is conveniently searched and managed. The process then proceeds to step S114, where the initialization process is performed on the created profile. According to one embodiment, initial values are set for the number of times each content item included in the configuration file is opened and the time of use. Alternatively, the number of times each content item is opened and the time of use in the configuration file is set to 0 when the configuration file is created. According to one embodiment of the invention, the created configuration file is encrypted. Then, the process proceeds to step S120, where the configuration file is read. According to one embodiment of the invention, if the configuration file is in an encrypted state, the encrypted configuration file is decrypted through the file manager, and data of the opening times and the use time are written into the configuration file.
Subsequently, after step S120, step S130 may be performed. In step S130, the total number of times of opening of the content items in the folder is acquired based on the number of times of opening of each content item in the folder. According to one embodiment of the present invention, the total number of times of opening of each content item in a folder is summed to obtain the total number of times of opening of the content item, which is generated by the following formula:
Figure 955942DEST_PATH_IMAGE009
wherein,
Figure 992293DEST_PATH_IMAGE010
representing the total number of opens of all content items in the folder,
Figure 105743DEST_PATH_IMAGE011
indicating the number of times the first content item was opened,
Figure 30973DEST_PATH_IMAGE012
indicating the number of times the second content item was opened,
Figure 255281DEST_PATH_IMAGE013
indicating the number of times the nth content item is opened.
Taking the configuration file of fig. 6 as an example, the number of times each content item is opened can be obtained from the configuration file as shown in fig. 6, and since the total number of times is equal to the sum of the number of times each content item is opened, it can be obtained that the total number of times is 100, that is, the total number of times is 100
Figure 316778DEST_PATH_IMAGE014
Subsequently, in step S140, a corresponding opening probability is generated for each content item in the folder based on the number of times each content item in the folder is opened and the total number of times the content item is opened. According to one embodiment of the present invention, the probability of each subfile or subfolder being opened by the user can be calculated according to the number of times that the subfile or subfolder is opened, and the opening probability is generated by the following formula:
Figure 601129DEST_PATH_IMAGE015
wherein,
Figure 75973DEST_PATH_IMAGE006
indicating the probability of opening the nth content item,
Figure 103972DEST_PATH_IMAGE013
indicates the number of times the nth content item is opened,
Figure 285554DEST_PATH_IMAGE010
representing the total number of opens of all content items in the folder.
Taking the configuration file of fig. 6 as an example, the number of times of opening of file 1 is 15 can be obtained from the configuration file shown in fig. 6, the total number of times of opening of the content item is 100 according to step S130, and the opening probability of file 1 can be obtained according to the opening probability formula as described above as 0.15, that is, the file 1 is opened according to the opening probability formula
Figure 475227DEST_PATH_IMAGE016
Subsequently, in step S150, an opening heat value is generated for each content item in the folder based on a power functional relationship of the opening probability and the opening heat value (i.e., the first heat value).
According to one embodiment of the invention, the opening times heat value and the opening probability are in accordance with a power function relationship in practical use. Fig. 3 shows a functional image of a first heat value and an opening probability, in which the abscissa represents the opening probability of a content item and the ordinate represents the heat value of the opening times of the content item, and the increasing trend of the heat value of the opening times becomes gradually slower as the opening times of the content item increases, according to an embodiment of the invention. The opening times heat value is constructed by the following formula:
Figure 375050DEST_PATH_IMAGE017
wherein,
Figure 941161DEST_PATH_IMAGE003
represents the opening times heat value of the nth content item,
Figure 305146DEST_PATH_IMAGE006
representing the probability of opening the nth content item.
Taking the configuration file of fig. 6 as an example, the opening probability of the file 1 is 0.15, and the heat value of the number of times of opening the file 1 is 0.387, that is, the opening probability is obtained through the step S140
Figure 665720DEST_PATH_IMAGE018
After step S120, step S132 may also be performed. In step S132, the total usage time of the content items in the folder is acquired based on the usage time of each content item in the folder. 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 item, and the total number of times of opening is generated by the following formula:
Figure 52839DEST_PATH_IMAGE019
wherein,
Figure 422641DEST_PATH_IMAGE020
representing the total usage time of all content items in the folder,
Figure 313236DEST_PATH_IMAGE021
indicating the time of use of the first content item,
Figure 110291DEST_PATH_IMAGE022
indicating the time of use of the second content item,
Figure 781444DEST_PATH_IMAGE023
indicating the time of use of the nth content item.
Taking the configuration file of fig. 6 as an example, the usage time of each content item can be obtained from the configuration file as shown in fig. 6, and since the total usage time is equal to the sum of the usage times of the content items, it can be found that the total usage time is 36553 seconds, i.e., it is
Figure 954936DEST_PATH_IMAGE024
Subsequently, in step S142, a respective usage probability is generated for each content item in the folder based on the usage time of each content item in the folder and the total usage time of the content items. According to one embodiment of the invention, the probability of each subfile or subfolder being used by the user can be calculated according to the usage time of the subfile or subfolder, and the usage probability is generated by the following formula:
Figure 965617DEST_PATH_IMAGE025
wherein,
Figure 933573DEST_PATH_IMAGE008
indicating the probability of use of the nth content item,
Figure 29705DEST_PATH_IMAGE023
indicating the time of use of the nth content item,
Figure 741309DEST_PATH_IMAGE020
representing the total usage time of all content items in the folder.
Taking the configuration file of fig. 6 as an example, the usage time of file 1 is 255 seconds, the total usage time of the content items is 36553 seconds, which is obtained from the configuration file shown in fig. 6, and the usage probability of file 1 is 0.00698, that is, 0.00698, which is obtained from the above usage probability formula
Figure 158560DEST_PATH_IMAGE026
Subsequently, in step S152, a usage time heat value is generated for each content item in the folder based on the power function relationship of the usage probability and the usage time heat value (i.e., the second heat value).
According to one embodiment of the invention, in practical use, the usage time heat value and the usage probability are in accordance with a power function relationship. Fig. 4 shows a functional image of a second heat value and a usage probability, in which the abscissa indicates the usage probability of a content item and the ordinate indicates a time-of-use heat value of the content item, and the increasing trend of the time-of-use heat value gradually increases as the time-of-use of the content item increases, according to an embodiment of the present invention. The heat value using time is constructed by the following formula:
Figure 297418DEST_PATH_IMAGE027
wherein,
Figure 880846DEST_PATH_IMAGE004
representing a time-of-use heat value for the nth content item,
Figure 130561DEST_PATH_IMAGE008
representing the probability of use of the nth content item.
Taking the configuration file of fig. 6 as an example, it can be found through step S142 that the probability of using file 1 is 0.00698, and the heat value of using time of file 1
Figure 115835DEST_PATH_IMAGE028
Subsequently, in step S160, the content items in the folder are sorted based on the opening number heat value and/or the usage time heat value.
According to one embodiment of the invention, the content items in the folder are arranged according to the sequence of the opening times heat value or the use time heat value from high to low, so that the content items with high heat values are presented to the user preferentially, and the user can search and view the content items with high heat values conveniently.
According to another embodiment of the invention, content items in a folder are ordered according to a hot value of opening times and a hot value of usage time. Specifically, a total heat value (i.e., a third heat value) of the content items is generated based on the opening number heat value and the usage time heat value, and then the content items in the folder are sorted in order from high to low based on the total heat value. The total heat value of the content item is constructed by the following formula:
Figure 487910DEST_PATH_IMAGE029
wherein,
Figure 558635DEST_PATH_IMAGE002
a third heat value representing an nth content item,
Figure 612041DEST_PATH_IMAGE003
a first heat value representing the nth content item, a representing a weight corresponding to the first heat value,
Figure 451821DEST_PATH_IMAGE004
represents a second heat value of the nth content item, and b represents a weight corresponding to the second heat value.
Optionally, the values of the weights a and b are selected to satisfy the following condition:
Figure 932481DEST_PATH_IMAGE030
Figure 224922DEST_PATH_IMAGE031
FIG. 2 shows a flowchart of a folder processing method 200 according to another embodiment of the invention. When the user opens the content items in the folder, the number of times each content item in the folder is opened and the usage time of each content item in the folder included in the configuration file are updated. As shown in FIG. 2, the method 200 begins at step S210, where in step S210, in response to a user opening a content item in a folder, a current number of times the content item in the folder is opened is obtained by a file manager. According to one embodiment of the present invention, when a user opens a certain content item in a folder, the file manager acquires that the current opening number of the content item is 1.
Subsequently, in step S220, the number of times of opening of the content item in the folder included in the configuration file is updated based on the current number of times of opening of the content item.
According to one embodiment of the invention, the number of times of opening corresponding to the content item in the configuration file is increased by 1. That is, when the file manager detects that a certain content item is opened, the current opening number is 1, and each time the file manager detects that a content item is opened, the file manager increases the opening number corresponding to the content item by 1. Taking the configuration file of fig. 6 as an example, the number of times of opening the file 1 is known to be 15 currently from the record of the configuration file, and assuming that the user opens the file 1 at this time, the number of times of opening the file 1 is updated to 16 (i.e., the current number of times of opening is increased based on the number of times of opening). If the user opens file 1 again after closing file 1, the number of times file 1 is opened is updated to 17.
Subsequently, in step S230, in response to a user' S opening operation on a certain content item in the folder, the current usage time of the content item is counted.
Subsequently, in step S240, in response to a closing operation of the content item in the folder by the user, the counting of the current usage time of the content item is stopped, the current usage time of the content item is acquired by the file manager, and the usage time of the content item in the folder included in the configuration file is updated based on the acquired current usage time.
According to one embodiment of the invention, in response to a user opening operation on a certain content item in a folder, the current usage time of the content item is counted, in response to a user closing operation on the certain content item in the folder, the current usage time of the content item is stopped, and then the current usage time stopped is the time length of the content item used by the user. Then, the usage time of the content item in the configuration file is updated by 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 summation calculation is used as the updated usage time of the content item. Taking the configuration file in fig. 6 as an example, assuming that when the user opens file 1, the current usage time is counted from zero, and then when the user closes file 1, the current usage time stops counting, 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 (45 +255=300 seconds) of the current usage time and the usage time of file 1 recorded in the configuration file is used as the usage time of updated file 1, that is, the usage time of file 1 in the updated configuration folder is 300.
Subsequently, in step S250, an updated opening number heat value (i.e., a first heat value) and usage time heat value (i.e., a second heat value) for each content item in the folder are acquired based on the updated opening number and usage time.
Specifically, the updated number of times of opening of each content item is used to obtain a heat of times of opening value of each content item, and the updated heat of time of use value of each content item is used to obtain a heat of time of use value of each content item. The method for obtaining the opening heat value based on the updated opening times may be implemented by the method for calculating the opening heat value based on the opening times, which is described in steps S130, S140, and S150, and is not described herein again. The method for obtaining the heat value of the use time based on the updated use time can be implemented by the method for calculating the heat value of the use time based on the use time, which is described in steps S132, S142, and S152, and will not be described herein again.
Subsequently, in step S260, the content items in the folder are reordered based on the updated heat of opening count value and/or heat of age value. This step can be implemented by using the method of sorting the content items in the folder based on the opening number heat value and/or the usage time heat value recorded in step S160, which is not described herein again. When a file in a folder is opened and used, the heat value of the content items in the folder will change, and if the ordering of the content items changes, the ordering of the content items will be updated.
According to the folder processing method, the content items in the folder can be sorted based on the hot value. Fig. 7 shows a schematic diagram of a folder processing method according to an embodiment of the present invention. As shown in fig. 7, according to the folder processing method of the present invention, a user may sort content items according to the heat values of the content items in the folder, and assuming that the heat values of the file 2, the folder 3, the folder …, and the folder 2 presented in the order from top to bottom in fig. 7 are arranged from large to small, when the user selects to arrange the content items according to the heat values, the content items will be arranged according to the order from large to small.
The folder processing method of the present invention is suitable for being executed in a computing device, and fig. 8 is a schematic structural diagram of a computing device 800 according to an embodiment of the present invention. A folder processing method of the present invention is suitable for execution in a computing device such as that shown in fig. 8, a schematic diagram of a computing device 800 is shown in fig. 8, and in a basic configuration 802, the computing device 800 typically includes a system memory 806 and one or more processors 804. A memory bus 808 may be used for communicating between the processor 804 and the system memory 806.
Depending on the desired configuration, the processor 804 may be any type of processing, including but not limited to: a microprocessor (μ P), a microcontroller (μ C), a digital information processor (DSP), or any combination thereof. Processor 804 may include one or more levels of cache, such as a level one cache 810 and a level two cache 812, a processor core 814, and registers 816. Example processor cores 814 may include Arithmetic Logic Units (ALUs), Floating Point Units (FPUs), digital signal processing cores (DSP cores), or any combination thereof. The example memory controller 818 may be used with the processor 804, or in some implementations the memory controller 818 may be an internal part of the processor 804.
Depending on the desired configuration, the system memory 806 may 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. System memory 806 may include an operating system 820, one or more applications 822, and program data 824. In some implementations, the application 822 can be arranged to operate with program data 824 on an operating system. The program data 824 includes instructions, and in the computing device 800 according to the present invention, the program data 824 contains instructions for performing the folder processing method 100 or 200.
Computing device 800 also includes storage 832, storage 832 including removable storage 836 and non-removable storage 838, removable storage 836 and non-removable storage 838 each connected with storage interface bus 834. In the present invention, data related to each event occurring during the execution of the program and time information indicating the occurrence of each event may be stored in the storage device 832, and the operating system 820 is adapted to manage the storage device 832. Storage devices 832 may be disks, among others.
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. The example output devices 842 include a graphics processing unit 848 and an audio processing unit 850. They may 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 may be configured to facilitate communication with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 858. An example communication device 846 may include a network controller 860, which may be arranged to facilitate communications with one or more other computing devices 862 over a network communication link via one or more communication ports 864.
A network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media, such as carrier waves or other transport mechanisms, in a modulated data signal. A "modulated data signal" may be a signal that has one or more of its data set or its changes made in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or private-wired network, and various wireless media such as acoustic, Radio Frequency (RF), microwave, Infrared (IR), or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
Computing device 800 may be implemented as a server, such as a file server, a database server, an application server, a WEB server, etc., or as part of a small-form factor portable (or mobile) electronic device, such as a cellular telephone, a Personal Digital Assistant (PDA), a personal media player device, a wireless WEB-watch device, a personal headset device, an application specific device, or a hybrid device that include any of the above functions. Computing device 800 may also be implemented as a personal computer including both desktop and notebook computer configurations. In some embodiments, the computing device 800 is configured to perform a folder handling method 100 or 200 in accordance with the present invention.
According to the folder processing method, the subfiles or the subfolders are sorted according to the heat value of the subfiles or the subfolders, and the heat value of the subfiles or the subfolders is related to the opening times and the using time of the user and also related to the opening probability and the using probability, so that the user can be helped to quickly locate the subfiles or the subfolders which are interested by the user by sorting according to the heat value, and the user experience is improved.
In addition, the technical scheme of the invention has small dependence, strong universality and high running performance, and can be widely applied to file manager file ordering solutions of various platforms.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U.S. disks, floppy disks, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include 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. Wherein the memory is configured to store program code; the processor is configured to execute the folder handling method of the present invention according to instructions in the program code stored in the memory.
By way of example, and not limitation, readable media may comprise 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 embodies 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 includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with examples of this invention. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the inventive subject matter described herein, and any descriptions of specific languages are provided above to disclose the best modes of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification, and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except that at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification may be replaced by an alternative feature serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
In the description of the present specification, the terms "connected", "fixed", and the like are to be construed broadly unless otherwise explicitly specified or limited. Furthermore, the terms "upper", "lower", "inner", "outer", "top", "bottom", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the referred device or unit must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present invention.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter.

Claims (8)

1. A folder processing method, adapted to be executed in a computing device, the method comprising:
responding to an operation of opening a folder by a user, and acquiring a configuration file of the folder, wherein the configuration file comprises the opening times and the use time of each content item in the folder, and the content items are subfiles or subfolders of the folder;
obtaining a first heat value and a second heat value of each content item in the folder based on the opening times and the use time, wherein the first heat value is related to the opening times of each content item, and the second heat value is related to the use time of each content item;
ordering content items in the folder based on the first and second heat values;
wherein the step of obtaining a second heat value for each content item in the folder comprises:
acquiring the total use time of the content items in the folder based on the use time of each content item in the folder;
generating a respective usage probability for each content item in the folder based on the usage time and the total usage time of each content item;
generating a second heat value for each content item in the folder based on a power function relationship of the usage probability and the second heat value, the second heat value being constructed by the following formula:
Figure FDA0003376440130000011
wherein,
Figure FDA0003376440130000012
a second heat value representing an nth content item,
Figure FDA0003376440130000013
representing the probability of use of the nth content item.
2. The method of claim 1, wherein the step of obtaining a first heat value for each content item in the folder based on the number of opens and the time of use comprises:
acquiring the total opening times of the content items in the folder based on the opening times of each content item in the folder;
generating a corresponding opening probability for each content item in the folder based on the opening times and the total opening times of each content item;
a first heat value is generated for each content item in the folder based on a power function relationship of the opening probability and the first heat value.
3. The method of claim 1 or 2, wherein ordering content items in the folder based on the first and second heat values comprises:
generating a third heat value based on the first heat value and the second heat value;
ordering the content items in the folder based on the third heat value.
4. The method of claim 3, wherein the third heat value is generated by the following equation:
Figure FDA0003376440130000021
wherein,
Figure FDA0003376440130000022
a third heat value representing an nth content item,
Figure FDA0003376440130000023
a first heat value representing the nth content item, a representing a weight corresponding to the first heat value,
Figure FDA0003376440130000024
represents a second heat value of the nth content item, and b represents a weight corresponding to the second heat value.
5. The method of claim 1, wherein the step of ordering the content items in the folder based on the first and second heat values comprises:
and arranging the content items in the folder based on the sequence from high to low of the first heat value and the second heat value.
6. The method of claim 2, wherein the first heat value is constructed by the formula:
Figure FDA0003376440130000025
wherein,
Figure FDA0003376440130000026
a first heat value representing an nth content item,
Figure FDA0003376440130000027
representing the probability of opening the nth content item.
7. A computing device, comprising:
one or more processors; and
a 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 performing any of the methods of claims 1-6.
8. 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 of the methods of claims 1-6.
CN202110978343.5A 2021-08-25 2021-08-25 Folder processing method, computing device and readable storage medium Active CN113419998B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210043282.8A CN114398325A (en) 2021-08-25 2021-08-25 Folder processing method, computing device and readable storage medium
CN202110978343.5A CN113419998B (en) 2021-08-25 2021-08-25 Folder processing method, computing device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110978343.5A CN113419998B (en) 2021-08-25 2021-08-25 Folder processing method, computing device and readable storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202210043282.8A Division CN114398325A (en) 2021-08-25 2021-08-25 Folder processing method, computing device and readable storage medium

Publications (2)

Publication Number Publication Date
CN113419998A CN113419998A (en) 2021-09-21
CN113419998B true CN113419998B (en) 2022-02-25

Family

ID=77719376

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110978343.5A Active CN113419998B (en) 2021-08-25 2021-08-25 Folder processing method, computing device and readable storage medium
CN202210043282.8A Pending CN114398325A (en) 2021-08-25 2021-08-25 Folder processing method, computing device and readable storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202210043282.8A Pending CN114398325A (en) 2021-08-25 2021-08-25 Folder processing method, computing device and readable storage medium

Country Status (1)

Country Link
CN (2) CN113419998B (en)

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009110167A (en) * 2007-10-29 2009-05-21 Hitachi Software Eng Co Ltd Information processing system
CN101425039A (en) * 2007-11-02 2009-05-06 鹏智科技(深圳)有限公司 Electronic appliance and method for controlling file copy for storage apparatus
CN101788986A (en) * 2009-01-23 2010-07-28 沈阳晨讯希姆通科技有限公司 Method and corresponding electronic equipment for intelligently sequencing and positioning file lists
CN102811371B (en) * 2012-07-10 2016-05-11 Tcl集团股份有限公司 The method, system and device that intelligent television application program is recommended
CN103198116B (en) * 2013-03-29 2018-02-13 东莞宇龙通信科技有限公司 Method and system for displaying folder cover and picture in folder
CN104301337A (en) * 2013-07-16 2015-01-21 苏州精易会信息技术有限公司 Cloud-based multi-application managing method
CN103473343A (en) * 2013-09-23 2013-12-25 深圳市金立通信设备有限公司 File management method, device and terminal
US10178158B1 (en) * 2015-06-09 2019-01-08 Amazon Technologies, Inc. Trending media content in an online membership group
US20190180295A1 (en) * 2017-12-13 2019-06-13 Edwin Geoffrey Hartnell Method for applying conjoint analysis to rank customer product preference
CN109408471B (en) * 2018-10-12 2021-05-04 厦门市美亚柏科信息股份有限公司 Compressed packet decompression method and device based on matching tree and storage medium
CN111177538B (en) * 2019-12-13 2023-05-05 杭州顺网科技股份有限公司 User interest label construction method based on unsupervised weight calculation

Also Published As

Publication number Publication date
CN113419998A (en) 2021-09-21
CN114398325A (en) 2022-04-26

Similar Documents

Publication Publication Date Title
US7747616B2 (en) File search method and system therefor
US9116879B2 (en) Dynamic rule reordering for message classification
US11755641B2 (en) Image searches based on word vectors and image vectors
CN110968765B (en) Book searching method, computing device and computer storage medium
CN107515904B (en) Job searching method and computing equipment
CN114416252A (en) Window display method and device, computing equipment and storage medium
CN113377289A (en) Cache management method, system, computing device and readable storage medium
CN114048136B (en) Test type determining method, device, server, medium and product
CN113535650B (en) File naming method and computing device
CN113419998B (en) Folder processing method, computing device and readable storage medium
CN107402886B (en) Storehouse analysis method and relevant apparatus
CN107766537B (en) Position searching and sorting method and computing device
CN114880289A (en) File grouping display method and computing device
CN111985217B (en) Keyword extraction method, computing device and readable storage medium
CN112507229A (en) Document recommendation method and system and computer equipment
CN107463590B (en) Automatic session phase discovery
CN114265533A (en) Resource access method, computing device and storage medium
US11687575B1 (en) Efficient search for combinations of matching entities given constraints
CN113311983B (en) Address bar-based interaction method and computing device
CN114461113B (en) Interaction method, processing device and computing equipment based on task bar
CN114138142B (en) Desktop icon processing method, computing device and readable storage medium
CN112799565A (en) Content list display method and computing device
CN113342756B (en) Temporary file occupying storage method, client and computing device
CN113741777B (en) Method for opening file based on drag operation, computing device and storage medium
CN113032038B (en) Application program management method and device, computing equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant