CN105893471B - Data processing method and electronic equipment - Google Patents

Data processing method and electronic equipment Download PDF

Info

Publication number
CN105893471B
CN105893471B CN201610184532.4A CN201610184532A CN105893471B CN 105893471 B CN105893471 B CN 105893471B CN 201610184532 A CN201610184532 A CN 201610184532A CN 105893471 B CN105893471 B CN 105893471B
Authority
CN
China
Prior art keywords
file
target file
data storage
processed
target
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
CN201610184532.4A
Other languages
Chinese (zh)
Other versions
CN105893471A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201610184532.4A priority Critical patent/CN105893471B/en
Publication of CN105893471A publication Critical patent/CN105893471A/en
Application granted granted Critical
Publication of CN105893471B publication Critical patent/CN105893471B/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
    • G06F16/162Delete operations

Abstract

The embodiment of the invention discloses a data processing method, which comprises the following steps: triggering the electronic equipment to carry out a first state; detecting whether the data storage state of at least one target file in a storage unit of the electronic equipment is changed or not; the target file is used for representing information which is stored in the electronic equipment and corresponds to the application program after the application program in the electronic equipment is operated; when the data storage state of the at least one target file is determined to be changed, selecting a file processing strategy corresponding to the at least one target file; and processing the at least one target file based on a file processing strategy corresponding to the at least one target file. The embodiment of the invention also provides the electronic equipment.

Description

Data processing method and electronic equipment
Technical Field
The present invention relates to data processing technologies, and in particular, to a data processing method and an electronic device.
Background
After application software in the mobile phone runs, a plurality of junk files and residual files can be generated, and when the mobile phone is in a starting state, the junk files and the residual files occupy a large amount of memory space; moreover, with the increase of the number of application software, the available memory space is smaller and smaller; thus, the operation speed of the mobile phone system is seriously influenced.
In the prior art, garbage cleaning software is generally used for deleting garbage files and residual files generated after application software runs; specifically, a database is set in the garbage cleaning software, and mapping relations, such as paths corresponding to garbage files and residual files, application software names and the like, are stored in the database, so that the purpose of cleaning the garbage files and the residual files is achieved through the database; however, in the above method, a unified cleaning method is adopted for the junk files and the residual files corresponding to the database, and a personalized cleaning method matching with the behavior habits of the user cannot be selected for the user, so that the user experience is reduced.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a data processing method and an electronic device.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a data processing method, which comprises the following steps:
triggering the electronic equipment to carry out a first state;
detecting whether the data storage state of at least one target file in a storage unit of the electronic equipment is changed or not; the target file is used for representing information which is stored in the electronic equipment and corresponds to the application program after the application program in the electronic equipment is operated;
when the data storage state of the at least one target file is determined to be changed, selecting a file processing strategy corresponding to the at least one target file;
and processing the at least one target file based on a file processing strategy corresponding to the at least one target file.
An embodiment of the present invention further provides an electronic device, including:
the first processing unit is used for triggering the electronic equipment to carry out a first state and detecting whether the data storage state of at least one target file in the storage unit of the electronic equipment is changed or not; the target file is used for representing information which is stored in the electronic equipment and corresponds to the application program after the application program in the electronic equipment is operated;
and the second processing unit is used for selecting a file processing strategy corresponding to the at least one target file when the data storage state of the at least one target file is determined to be changed, and processing the at least one target file based on the file processing strategy corresponding to the at least one target file.
According to the data processing method and the electronic equipment, the file processing strategy corresponding to the target file is selected, and the target file is processed based on the file processing strategy in a targeted and purposeful manner, so that the electronic equipment can perform personalized processing on the target file according to the personalized difference of the user, for example, the file processing strategy matched with the common behavior of the user can be selected for different target files of the same user to perform corresponding processing, and the file processing strategy matched with the common behavior of the user can be selected for the same target file of different users to perform corresponding processing; thereby enriching the user experience and improving the user experience.
Drawings
FIG. 1 is a first schematic flow chart illustrating an implementation of a data processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an application of a data processing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a second implementation flow of the data processing method according to the embodiment of the present invention;
FIG. 4 is a third schematic flow chart illustrating an implementation of the data processing method according to the embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
So that the manner in which the features and aspects of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
Example one
FIG. 1 is a first schematic flow chart illustrating an implementation of a data processing method according to an embodiment of the present invention; the method is applied to the electronic equipment; as shown in fig. 1, the method includes:
step 101: triggering the electronic equipment to carry out a first state;
in this embodiment, the first state may be specifically a power-on state, that is, when the electronic device is in the power-on state, it is detected whether a data storage state of at least one target file in the storage unit changes, and then the at least one target file is processed, so that a foundation is laid for the electronic device to be able to specifically and automatically clean the junk files based on user behavior.
Or, the first state may also be specifically a system garbage disposal state; that is to say, when the electronic device is in the system garbage clearing state, whether the data storage state of at least one target file in the storage unit changes or not is detected, and then the at least one target file is processed, so that the process can also lay a foundation for the electronic device to purposefully and automatically clear the garbage files based on user behaviors.
In practical applications, the first state may be determined according to practical situations. Further, the first state may be arbitrarily set by the electronic device according to a user requirement, or may be set by the electronic device before shipping.
Step 102: detecting whether the data storage state of at least one target file in a storage unit of the electronic equipment is changed or not; the target file is used for representing information which is stored in the electronic equipment and corresponds to the application program after the application program in the electronic equipment is operated;
in this embodiment, the target file may be specifically a junk file, including but not limited to the following information: various icons, cached pictures, cached video, temporary files, cached voice, log files, system caches, empty folders, preview images, etc.
In this embodiment, when the first state represents a power-on state, at this time, step 102 may be executed by periodically triggering the electronic device, for example, the electronic device triggers itself to detect whether a data storage state of at least one target file stored in the storage unit changes every hour; or, step 102 is to detect whether the data storage state of at least one target file stored in the storage unit is changed in real time by the electronic device, so that the junk file can be deleted in real time when the change is determined, and occupied cache is released, thereby improving the operating speed of the electronic device and improving user experience.
Step 103: when the data storage state of the at least one target file is determined to be changed, selecting a file processing strategy corresponding to the at least one target file;
in this embodiment, the change of the data storage state may specifically refer to that one or more target files are newly added to the storage unit, and/or one or more target data are newly added to the target file, and both of the above two cases may be referred to as that the data storage state of the target file is changed.
In a specific application, the selecting a file processing policy corresponding to the at least one target file in step 103 may specifically be: the file processing method includes the steps that a file processing strategy corresponding to a target file with a changed data storage state is selected, and then the target file with the changed data storage state is processed, namely, only the target file with the changed data storage state is correspondingly deleted or reserved, and the target file with the unchanged data storage state is not processed. Or selecting a file processing strategy corresponding to all target files in the storage unit after the data storage state is changed, and further performing corresponding deletion or retention processing on all target files in the storage unit after the data storage state is changed.
Step 104: and processing the at least one target file based on a file processing strategy corresponding to the at least one target file.
In practical applications, in order to enable the file processing policy to be set according to the user behavior, in this embodiment, before the file processing policy is selected in step 103, the method further includes: the electronic equipment receives user operation corresponding to the at least one target file; determining a file processing mode corresponding to the user operation based on the user operation; and determining the file processing strategy of the at least one target file based on the file processing mode. That is to say, the method described in this embodiment utilizes a big data processing manner, and achieves the purpose of determining a personalized file processing policy matching with the user behavior for the target file based on the user behavior.
In practical application, the embodiment of the invention can utilize the existing cleaning software to record and analyze the cleaning habit of the corresponding target file of the user, and further determine the file processing strategy corresponding to the target file according to the recording result and the analysis result, so that the cleaning habit of the electronic equipment corresponding to the user, such as a mobile phone, is customized according to the self behavior of the user, the cleaning habit of the user is met, and meanwhile, the target file is cleaned more effectively and thoroughly. Furthermore, the file processing strategy of the target file is determined based on big data analysis, so that the file processing strategy corresponding to the target file is more accurate, and the file processing strategy of the target file can be timely modified based on the cleaning habit changed by the user, so that the cleaning requirement of the user on the target file is met to the maximum extent, and the user experience is improved.
Here, the file processing policy described in this embodiment may specifically be a fast clearing policy, and in this process, without user intervention, the electronic device may directly delete the target file corresponding to the fast clearing policy, so as to achieve the target of clearing the junk file. In addition, the file processing policy described in this embodiment may also be specifically a deep removal policy, and this process requires user intervention, for example, when the electronic device determines that the file processing policy corresponding to the target file is the deep removal policy, a user interaction interface shown in fig. 2 is presented on a display of the electronic device, and then user operation is received through the user interaction interface, so as to determine whether to perform deep removal on the target file according to the user operation.
Thus, the method of the embodiment of the invention performs the operation of processing the target file based on the file processing strategy in a targeted and purposeful manner by selecting the file processing strategy corresponding to the target file, so that the embodiment of the invention realizes the purpose that the electronic equipment performs the personalized processing on the target file according to the personalized difference of the user, for example, the embodiment of the invention can select the file processing strategy matched with the common behavior of the user for the corresponding processing on different target files of the same user, and can also select the file processing strategy matched with the common behavior of the user for the corresponding processing on the same target file of different users; thereby enriching the user experience and improving the user experience.
Example two
FIG. 3 is a schematic diagram of a second implementation flow of the data processing method according to the embodiment of the present invention; the method is applied to the electronic equipment; as shown in fig. 3, the method includes:
step 301: triggering the electronic equipment to carry out a first state;
in this embodiment, the first state may be specifically a power-on state, that is, when the electronic device is in the power-on state, it is detected whether a data storage state of at least one target file in the storage unit changes, and then the at least one target file is processed, so that a foundation is laid for the electronic device to be able to specifically and automatically clean the junk files based on user behavior.
Or, the first state may also be specifically a system garbage disposal state; that is to say, when the electronic device is in the system garbage clearing state, whether the data storage state of at least one target file in the storage unit changes or not is detected, and then the at least one target file is processed, so that the process can also lay a foundation for the electronic device to purposefully and automatically clear the garbage files based on user behaviors.
In practical applications, the first state may be determined according to practical situations. Further, the first state may be arbitrarily set by the electronic device according to a user requirement, or may be set by the electronic device before shipping.
Step 302: detecting whether the data storage state of at least one target file in a storage unit of the electronic equipment is changed or not; the target file is used for representing information which is stored in the electronic equipment and corresponds to the application program after the application program in the electronic equipment is operated;
in this embodiment, the target file may be specifically a junk file, including but not limited to the following information: various icons, cached pictures, cached video, temporary files, cached voice, log files, system caches, empty folders, preview images, etc.
In this embodiment, when the first state represents a power-on state, step 302 may be executed by the electronic device periodically, for example, the electronic device triggers itself to detect whether a data storage state of at least one target file stored in the storage unit changes every hour; or, step 302 is to detect whether the data storage state of at least one target file stored in the storage unit is changed in real time by the electronic device, so that the junk file can be deleted in real time when the change is determined, and the occupied cache is released, thereby improving the operating speed of the electronic device and improving the user experience.
In a specific embodiment, when the electronic device determines that the data storage state of the at least one target file changes, instead of immediately selecting a file processing policy corresponding to the at least one target file, it determines whether a change characteristic corresponding to the change of the data storage state of the at least one target file in the storage unit satisfies a first preset change rule, for example, it determines that the number of times of deletion-recovery of the at least one target file in the storage unit is greater than a first threshold, and then determines how to process the target file whose change characteristic satisfies the first preset change rule when the data storage state changes according to the determination result. The specific steps are 303 and 304.
Step 303: when the data storage state of the at least one target file is determined to be changed, whether the change characteristic corresponding to the change of the data storage state of the at least one target file in the storage unit meets a first preset change rule or not is judged;
in this embodiment, the change of the data storage state may specifically refer to that one or more target files are newly added to the storage unit, and/or one or more target data are newly added to the target file, and both of the above two cases may be referred to as that the data storage state of the target file is changed.
Step 304: when determining that a first target file meeting the first preset change rule exists, selecting a file processing strategy of the first target file, and deleting the first target file in the storage unit based on the file processing strategy of the first target file; the first object file is a file stored in at least one object file of the storage unit.
In a specific application scenario, when the electronic device determines that the number of deletion-recovery cycles of the first target file satisfies a certain condition, for example, the number of continuous deletion-recovery cycles is greater than a first threshold, or the number of deletion-recovery cycles in unit time is greater than the first threshold, at this time, the electronic device directly deletes the first target file in the storage unit, thereby omitting a repeated operation process of a user and improving user experience.
In practical applications, in order to make the document processing policy set according to the user behavior, in this embodiment, before the selecting the document processing policy in step 304, the method further includes: the electronic equipment receives user operation corresponding to the at least one target file; determining a file processing mode corresponding to the user operation based on the user operation; and determining the file processing strategy of the at least one target file based on the file processing mode. That is to say, the method described in this embodiment utilizes a big data processing manner, and achieves the purpose of determining a personalized file processing policy matching with the user behavior for the target file based on the user behavior.
In practical application, the embodiment of the invention can utilize the existing cleaning software to record and analyze the cleaning habit of the corresponding target file of the user, and further determine the file processing strategy corresponding to the target file according to the recording result and the analysis result, so that the cleaning habit of the electronic equipment corresponding to the user, such as a mobile phone, is customized according to the self behavior of the user, the cleaning habit of the user is met, and meanwhile, the target file is cleaned more effectively and thoroughly. Furthermore, the file processing strategy of the target file is determined based on big data analysis, so that the file processing strategy corresponding to the target file is more accurate, and the file processing strategy of the target file can be timely modified based on the cleaning habit changed by the user, so that the cleaning requirement of the user on the target file is met to the maximum extent, and the user experience is improved.
Here, the file processing policy described in this embodiment may specifically be a fast clearing policy, and in this process, without user intervention, the electronic device may directly delete the target file corresponding to the fast clearing policy, so as to achieve the target of clearing the junk file. In addition, the file processing policy described in this embodiment may also be specifically a deep removal policy, and this process requires user intervention, for example, when the electronic device determines that the file processing policy corresponding to the target file is the deep removal policy, a user interaction interface shown in fig. 2 is presented on a display of the electronic device, and then user operation is received through the user interaction interface, so as to determine whether to perform deep removal on the target file according to the user operation.
Thus, the method of the embodiment of the invention performs the operation of processing the target file based on the file processing strategy in a targeted and purposeful manner by selecting the file processing strategy corresponding to the target file, so that the embodiment of the invention realizes the purpose that the electronic equipment performs the personalized processing on the target file according to the personalized difference of the user, for example, the embodiment of the invention can select the file processing strategy matched with the common behavior of the user for the corresponding processing on different target files of the same user, and can also select the file processing strategy matched with the common behavior of the user for the corresponding processing on the same target file of different users; thereby enriching the user experience and improving the user experience.
EXAMPLE III
FIG. 4 is a third schematic flow chart illustrating an implementation of the data processing method according to the embodiment of the present invention; the method is applied to the electronic equipment; as shown in fig. 4, the method includes:
step 401: triggering the electronic equipment to carry out a first state;
in this embodiment, the first state may be specifically a power-on state, that is, when the electronic device is in the power-on state, it is detected whether a data storage state of at least one target file in the storage unit changes, and then the at least one target file is processed, so that a foundation is laid for the electronic device to be able to specifically and automatically clean the junk files based on user behavior.
Or, the first state may also be specifically a system garbage disposal state; that is to say, when the electronic device is in the system garbage clearing state, whether the data storage state of at least one target file in the storage unit changes or not is detected, and then the at least one target file is processed, so that the process can also lay a foundation for the electronic device to purposefully and automatically clear the garbage files based on user behaviors.
In practical applications, the first state may be determined according to practical situations. Further, the first state may be arbitrarily set by the electronic device according to a user requirement, or may be set by the electronic device before shipping.
Step 402: setting a list of files to be processed; the file list to be processed comprises file characteristic information of at least one target file in the storage unit;
in practical application, in order to facilitate the electronic device to specifically clean the target file, the embodiment of the invention needs to set the file list to be processed, so that the electronic device specifically deletes the target file in the file list to be processed. Specifically, the file feature information may specifically include a name of an application program corresponding to the target file, a path where the target file is located, for example, a cache path, and the to-be-processed file list may represent a mapping relationship among the target file, the application program, and the cache path, so that the electronic device may perform corresponding processing on the target file.
In a specific embodiment, the embodiment of the present invention may utilize the existing cleaning software to record and analyze the cleaning habits of the user corresponding to the target file, and further determine the file processing policy corresponding to the target file according to the recording result and the analysis result, so that the cleaning habits of the electronic device corresponding to the user, for example, a mobile phone, are customized according to the user's own behavior, which conforms to the cleaning habits of the user, and at the same time, the target file is cleaned more effectively and more thoroughly. Furthermore, the file processing strategy of the target file is determined based on big data analysis, so that the file processing strategy corresponding to the target file is more accurate, and the file processing strategy of the target file can be timely modified based on the cleaning habit changed by the user, so that the cleaning requirement of the user on the target file is met to the maximum extent, and the user experience is improved.
Specifically, the to-be-processed file list may be specifically set in the cleaning software, and the cleaning software detects whether at least one target file represented by the to-be-processed file list includes target data, such as a newly-stored file, and further implements a cleaning process for the target file.
Step 403: detecting whether the data storage state of at least one target file represented by the file list to be processed changes; the target file is used for representing information which is stored in the electronic equipment and corresponds to the application program after the application program in the electronic equipment is operated;
in a specific embodiment, the detecting whether the data storage state of at least one target file represented by the to-be-processed file list changes may specifically be: and detecting whether at least one target file represented by the file list to be processed contains target data, such as a newly stored file.
In this embodiment, the target file may be specifically a junk file, including but not limited to the following information: various icons, cached pictures, cached video, temporary files, cached voice, log files, system caches, empty folders, preview images, etc.
In this embodiment, when the first state represents a power-on state, in this case, step 403 may be executed by periodically triggering the electronic device, for example, the electronic device triggers itself to detect whether a data storage state of at least one target file stored in the storage unit changes every hour; or, in step 403, the electronic device detects in real time whether the data storage state of at least one target file stored in the storage unit changes, so that when it is determined that the change occurs, the junk file can be deleted in real time, and occupied cache is released, thereby increasing the operating speed of the electronic device and improving user experience.
Step 404: when the data storage state of the at least one target file is determined to be changed, selecting a file processing strategy corresponding to the at least one target file;
in this embodiment, the change of the data storage state may specifically refer to that one or more target files are newly added to the storage unit, and/or one or more target data are newly added to the target file, and both of the above two cases may be referred to as that the data storage state of the target file is changed.
In a specific application, the selecting a file processing policy corresponding to the at least one target file in step 404 may specifically be: the file processing method includes the steps that a file processing strategy corresponding to a target file with a changed data storage state is selected, and then the target file with the changed data storage state is processed, namely, only the target file with the changed data storage state is correspondingly deleted or reserved, and the target file with the unchanged data storage state is not processed. Or selecting a file processing strategy corresponding to all target files in the storage unit after the data storage state is changed, and further performing corresponding deletion or retention processing on all target files in the storage unit after the data storage state is changed.
Step 405: and processing the at least one target file based on a file processing strategy corresponding to the at least one target file.
In practical applications, in order to make the document processing policy set according to the user behavior, in this embodiment, before the selecting the document processing policy in step 404, the method further includes: the electronic equipment receives user operation corresponding to the at least one target file; determining a file processing mode corresponding to the user operation based on the user operation; and determining the file processing strategy of the at least one target file based on the file processing mode. That is to say, the method described in this embodiment utilizes a big data processing manner, and achieves the purpose of determining a personalized file processing policy matching with the user behavior for the target file based on the user behavior.
In practical applications, the method further comprises: detecting whether the data storage state of at least one target file outside the file list to be processed changes; when the data storage state of at least one target file outside the file list to be processed is determined to be changed, judging whether the change characteristics of the at least one target file outside the file list to be processed with the changed data storage state meet a second preset change rule or not; and determining whether to process at least one target file outside the file list to be processed with the changed data storage state according to the judgment result.
Further, the determining whether to process at least one target file outside the to-be-processed file list with a changed data storage state according to the determination result includes:
when the judgment result indicates that the change characteristics of at least one target file outside the to-be-processed file list with the changed data storage state meet the second preset change rule, acquiring file characteristic information of at least one target file outside the to-be-processed file list with the changed data storage state;
and storing the file characteristic information of at least one target file with changed data storage state except the file list to be processed in the file list to be processed.
In a specific embodiment, when the electronic device detects that a user always cleans a second target file that is not in a to-be-processed file list and a cleaning characteristic meets a certain condition, for example, the cleaning frequency is greater than a second threshold, or the cleaning frequency in a unit time meets the second threshold, at this time, the electronic device obtains file characteristic information of the second target file, and further stores the obtained file characteristic information of the second target file in the to-be-processed file list, so as to achieve a purpose of updating the to-be-processed file list in real time based on user behavior.
In this embodiment, the to-be-processed file list may further store a file processing policy corresponding to the target file, so that when the electronic device detects the target file that needs to be cleaned, the electronic device only needs to obtain the file processing policy from the to-be-processed file list. For example, if the electronic device detects that the picture and the small video in the instant messaging application are always deleted and the deletion characteristics meet a certain condition, at this time, if the file characteristic information corresponding to the picture and the small video in the instant messaging application is not stored in the to-be-processed file list, the electronic device stores the file characteristic information corresponding to the picture and the small video in the instant messaging application in the to-be-processed file list, and sets the file processing strategy of the target file corresponding to the picture and the small video in the instant messaging application as a quick removal strategy, so that the self-cleaning process of the user is omitted; further, if the file feature information corresponding to the picture and the small video in the instant messaging application is stored in the to-be-processed file list, and the file processing strategy of the target file corresponding to the picture and the small video in the instant messaging application is not a quick removal strategy, the electronic device modifies the file processing strategy of the target file corresponding to the picture and the small video in the instant messaging application into the quick removal strategy. That is to say, the method according to the embodiment of the present invention can modify the to-be-processed file list according to the user behavior, and can adjust the file processing policy for modifying the target file in the to-be-processed file list according to the user behavior, thereby greatly satisfying the diversified requirements of the user.
Here, the file processing policy described in this embodiment may specifically be a fast clearing policy, and in this process, without user intervention, the electronic device may directly delete the target file corresponding to the fast clearing policy, so as to achieve the target of clearing the junk file. In addition, the file processing policy described in this embodiment may also be specifically a deep removal policy, and this process requires user intervention, for example, when the electronic device determines that the file processing policy corresponding to the target file is the deep removal policy, a user interaction interface shown in fig. 2 is presented on a display of the electronic device, and then user operation is received through the user interaction interface, so as to determine whether to perform deep removal on the target file according to the user operation.
Thus, the method of the embodiment of the invention performs the operation of processing the target file based on the file processing strategy in a targeted and purposeful manner by selecting the file processing strategy corresponding to the target file, so that the embodiment of the invention realizes the purpose that the electronic equipment performs the personalized processing on the target file according to the personalized difference of the user, for example, the embodiment of the invention can select the file processing strategy matched with the common behavior of the user for the corresponding processing on different target files of the same user, and can also select the file processing strategy matched with the common behavior of the user for the corresponding processing on the same target file of different users; thereby enriching the user experience and improving the user experience.
Example four
FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the invention; as shown in fig. 5, the electronic device includes:
the first processing unit 51 is configured to trigger the electronic device to perform a first state, and detect whether a data storage state of at least one target file in a storage unit of the electronic device changes; the target file is used for representing information which is stored in the electronic equipment and corresponds to the application program after the application program in the electronic equipment is operated;
the second processing unit 52 is configured to select a file processing policy corresponding to the at least one target file when it is determined that the data storage state of the at least one target file changes, and process the at least one target file based on the file processing policy corresponding to the at least one target file.
In this embodiment, the electronic device further includes:
an input unit for receiving a user operation corresponding to the at least one target file;
and the third processing unit is used for determining a file processing mode corresponding to the user operation based on the user operation and determining a file processing strategy of the at least one target file based on the file processing mode.
In this embodiment, the second processing unit is further configured to:
judging whether the change characteristics corresponding to the change of the data storage state of at least one target file in the storage unit meet a first preset change rule or not;
deleting the first target file in the storage unit when the first target file meeting the first preset change rule is determined to exist; the first object file is a file stored in at least one object file of the storage unit.
In this embodiment, the electronic device further includes: a setting unit; wherein the content of the first and second substances,
the setting unit is used for setting a file list to be processed; the file list to be processed comprises file characteristic information of at least one target file in the storage unit;
the first processing unit is further configured to detect whether a data storage state of at least one target file represented by the to-be-processed file list changes.
In this embodiment, the first processing unit is further configured to detect whether a data storage state of at least one target file outside the to-be-processed file list changes;
the second processing unit is further configured to determine whether a change characteristic of at least one target file outside the to-be-processed file list, of which the data storage state is changed, satisfies a second preset change rule when the data storage state of the at least one target file outside the to-be-processed file list is changed; and determining whether to process at least one target file outside the file list to be processed with the changed data storage state according to the judgment result.
In this embodiment, the second processing unit is further configured to: when the judgment result indicates that the change characteristics of at least one target file outside the to-be-processed file list with the changed data storage state meet the second preset change rule, acquiring file characteristic information of at least one target file outside the to-be-processed file list with the changed data storage state;
and storing the file characteristic information of at least one target file with changed data storage state except the file list to be processed in the file list to be processed.
Those skilled in the art should understand that the functions of each processing unit in the electronic device according to the embodiment of the present invention can be understood by referring to the related description of the foregoing data processing method, and are not described herein again; in addition, each processing unit in the electronic device according to the embodiment of the present invention may be implemented by an analog circuit that implements the functions described in the embodiment of the present invention, or may be implemented by running software that executes the functions described in the embodiment of the present invention on an intelligent terminal.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a mobile storage device, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (12)

1. A method of data processing, comprising:
triggering the electronic equipment to carry out a first state; wherein the first state represents a system garbage disposal state;
detecting whether the data storage state of at least one target file in a storage unit of the electronic equipment is changed or not; the target file is used for representing information which is stored in the electronic equipment and corresponds to the application program after the application program in the electronic equipment is operated;
determining that the data storage state of the at least one target file changes, and selecting a file processing strategy corresponding to the at least one target file when the number of times of deleting and recovering the at least one target file in the storage unit is greater than a first threshold;
and processing the at least one target file based on a file processing strategy corresponding to the at least one target file.
2. The method of claim 1, further comprising:
receiving user operation corresponding to the at least one target file;
determining a file processing mode corresponding to the user operation based on the user operation;
and determining the file processing strategy of the at least one target file based on the file processing mode.
3. The method of claim 1, further comprising:
judging whether the change characteristics corresponding to the change of the data storage state of at least one target file in the storage unit meet a first preset change rule or not;
deleting the first target file in the storage unit when the first target file meeting the first preset change rule is determined to exist; the first object file is a file stored in at least one object file of the storage unit.
4. The method according to any one of claims 1 to 3, further comprising:
setting a list of files to be processed; the file list to be processed comprises file characteristic information of at least one target file in the storage unit;
correspondingly, the detecting whether the data storage state of at least one target file in the storage unit of the electronic device changes includes:
and detecting whether the data storage state of at least one target file represented by the file list to be processed is changed.
5. The method of claim 4, further comprising:
detecting whether the data storage state of at least one target file outside the file list to be processed changes;
when the data storage state of at least one target file outside the file list to be processed is determined to be changed, judging whether the change characteristics of the at least one target file outside the file list to be processed with the changed data storage state meet a second preset change rule or not;
and determining whether to process at least one target file outside the file list to be processed with the changed data storage state according to the judgment result.
6. The method according to claim 5, wherein the determining whether to process at least one target file outside the list of files to be processed whose data storage state has changed according to the determination result includes:
when the judgment result indicates that the change characteristics of at least one target file outside the to-be-processed file list with the changed data storage state meet the second preset change rule, acquiring file characteristic information of at least one target file outside the to-be-processed file list with the changed data storage state;
and storing the file characteristic information of at least one target file with changed data storage state except the file list to be processed in the file list to be processed.
7. An electronic device, comprising:
the first processing unit is used for triggering the electronic equipment to carry out a first state and detecting whether the data storage state of at least one target file in the storage unit of the electronic equipment is changed or not; the target file is used for representing information which is stored in the electronic equipment and corresponds to the application program after the application program in the electronic equipment is operated; the first state represents a system garbage disposal state;
and the second processing unit is used for selecting a file processing strategy corresponding to the at least one target file when the data storage state of the at least one target file is determined to be changed and the number of times of deleting and recovering the at least one target file in the storage unit is greater than a first threshold value, and processing the at least one target file based on the file processing strategy corresponding to the at least one target file.
8. The electronic device of claim 7, further comprising:
an input unit for receiving a user operation corresponding to the at least one target file;
and the third processing unit is used for determining a file processing mode corresponding to the user operation based on the user operation and determining a file processing strategy of the at least one target file based on the file processing mode.
9. The electronic device of claim 7, wherein the second processing unit is further configured to:
judging whether the change characteristics corresponding to the change of the data storage state of at least one target file in the storage unit meet a first preset change rule or not;
deleting the first target file in the storage unit when the first target file meeting the first preset change rule is determined to exist; the first object file is a file stored in at least one object file of the storage unit.
10. The electronic device of any of claims 7-9, further comprising: a setting unit; wherein the content of the first and second substances,
the setting unit is used for setting a file list to be processed; the file list to be processed comprises file characteristic information of at least one target file in the storage unit;
the first processing unit is further configured to detect whether a data storage state of at least one target file represented by the to-be-processed file list changes.
11. The electronic device of claim 10,
the first processing unit is further configured to detect whether a data storage state of at least one target file outside the to-be-processed file list changes;
the second processing unit is further configured to determine whether a change characteristic of at least one target file outside the to-be-processed file list, of which the data storage state is changed, satisfies a second preset change rule when the data storage state of the at least one target file outside the to-be-processed file list is changed; and determining whether to process at least one target file outside the file list to be processed with the changed data storage state according to the judgment result.
12. The electronic device of claim 11, wherein the second processing unit is further configured to:
when the judgment result indicates that the change characteristics of at least one target file outside the to-be-processed file list with the changed data storage state meet the second preset change rule, acquiring file characteristic information of at least one target file outside the to-be-processed file list with the changed data storage state;
and storing the file characteristic information of at least one target file with changed data storage state except the file list to be processed in the file list to be processed.
CN201610184532.4A 2016-03-28 2016-03-28 Data processing method and electronic equipment Active CN105893471B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610184532.4A CN105893471B (en) 2016-03-28 2016-03-28 Data processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610184532.4A CN105893471B (en) 2016-03-28 2016-03-28 Data processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105893471A CN105893471A (en) 2016-08-24
CN105893471B true CN105893471B (en) 2020-11-20

Family

ID=57014293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610184532.4A Active CN105893471B (en) 2016-03-28 2016-03-28 Data processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105893471B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776847B (en) * 2016-11-28 2020-01-14 Oppo广东移动通信有限公司 Method and device for deleting media file and mobile terminal
WO2019090725A1 (en) * 2017-11-10 2019-05-16 华为技术有限公司 Terminal removing personal file of user on basis of user habits
CN108153862A (en) * 2017-12-22 2018-06-12 联想(北京)有限公司 File clean-up methods, devices and systems
CN109766392A (en) * 2019-01-21 2019-05-17 北京字节跳动网络技术有限公司 Data processing method and device
CN110099170B (en) * 2019-04-26 2021-01-08 维沃移动通信有限公司 Picture deleting method and mobile terminal

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100426298B9 (en) * 2006-08-28 2016-10-26 华为技术有限公司 A kind of cleaning garbage files method and system
JP4521446B2 (en) * 2008-01-11 2010-08-11 株式会社沖データ Image processing device
TW201212009A (en) * 2010-09-03 2012-03-16 Ko-Cheng Fang Method for preventing optical disks from malicious copy
CN103577240B (en) * 2012-07-25 2018-12-11 腾讯科技(深圳)有限公司 System automatic cleaning method, device and storage medium
CN103678389B (en) * 2012-09-19 2018-04-27 腾讯科技(深圳)有限公司 The method and apparatus for clearing up garbage files
CN103064675A (en) * 2012-12-24 2013-04-24 广东欧珀移动通信有限公司 Method and device for cleaning up redundant files in mobile terminal automatically
CN104881493B (en) * 2015-06-12 2018-09-11 北京金山安全软件有限公司 file cleaning method and device
CN105183902B (en) * 2015-09-30 2019-03-15 北京金山安全软件有限公司 File cleaning method and device and terminal

Also Published As

Publication number Publication date
CN105893471A (en) 2016-08-24

Similar Documents

Publication Publication Date Title
CN105893471B (en) Data processing method and electronic equipment
US20190272193A1 (en) Responsive application task management
US9836346B2 (en) Error troubleshooting using a correlated knowledge base
CN105095107A (en) Buffer memory data cleaning method and apparatus
CN109542361B (en) Distributed storage system file reading method, system and related device
CN106909855B (en) File hiding method and device
CN108063818B (en) Data downloading method, device, terminal and computer readable storage medium
CN109740089A (en) Collecting method, device, system, readable storage medium storing program for executing and electronic equipment
CN102929980B (en) Folder cleaning method and device
US9069949B2 (en) Non-transitory computer readable storage medium, access filtering device, and access filtering method
US10901947B2 (en) Method for recognizing infrequently-used data and terminal
US20140094156A1 (en) Method and apparatus relating to a mood state of a user
CN106708912B (en) Junk file identification and management method, identification device, management device and terminal
CN104601683A (en) File download management method, mobile terminal and communication system
WO2021017899A1 (en) Method for efficiently cleaning equipment files and device
CN105574163A (en) File processing method and device and electronic equipment
CN104965731A (en) Data processing method and electronic terminal
CN106776908B (en) Data cleaning method and device and terminal
US10402370B2 (en) Information processing method and electronic apparatus
CN107633080B (en) User task processing method and device
CN110780820A (en) Method and device for determining continuous storage space, electronic equipment and storage medium
CN107168648B (en) File storage method and device and terminal
CN112463741A (en) Cleaning method for aggregated large files and related equipment
CN110471793B (en) Data backup method, data recovery method, first terminal and second terminal
CN113805864A (en) Project engineering generation method and device, electronic equipment and storage medium

Legal Events

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