CN105893471A - Data processing method and electronic equipment - Google Patents

Data processing method and electronic equipment Download PDF

Info

Publication number
CN105893471A
CN105893471A CN201610184532.4A CN201610184532A CN105893471A CN 105893471 A CN105893471 A CN 105893471A CN 201610184532 A CN201610184532 A CN 201610184532A CN 105893471 A CN105893471 A CN 105893471A
Authority
CN
China
Prior art keywords
file
file destination
electronic equipment
data memory
state data
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.)
Granted
Application number
CN201610184532.4A
Other languages
Chinese (zh)
Other versions
CN105893471B (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

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

Embodiments of the invention disclose a data processing method. The data processing method comprises the following steps: triggering 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 changes or not, wherein the target file is used for representing information stored in the electronic equipment and corresponding to an application program in the electronic equipment after the operation of the application program is finished; selecting a file processing strategy corresponding to the at least one target file when determining that the data storage state of the at least one target file changes; processing the at least one target file on the basis of the file processing strategy corresponding to the at least one target file. The embodiments of the invention furthermore provide the electronic equipment.

Description

A kind of data processing method and electronic equipment
Technical field
The present invention relates to data processing technique, particularly relate to a kind of data processing method and electronic equipment.
Background technology
In mobile phone, application software can produce many garbage files and Stub File after running, when mobile phone is in start During state, these garbage files and Stub File can take a large amount of memory headroom;And, along with application software The increase of quantity, available memory space can be more and more less;So, the operation speed of cell phone system has been had a strong impact on Degree.
Prior art generally utilizes garbage-cleaning software to delete produced garbage files after application software runs And Stub File;Specifically, data base is set in garbage-cleaning software, by garbage files and Stub File The mapping relations such as corresponding path and application software title are stored in described data base, so, logical Cross described database realizing cleaning garbage files and the purpose of Stub File;But, in said method, logarithm Have employed unified manner of cleaning up according to the garbage files corresponding to storehouse and Stub File, could not choose for user Go out the manner of cleaning up being accustomed to user behavior being mated of personalization, therefore, reduce Consumer's Experience.
Summary of the invention
For solving the technical problem of existing existence, embodiments provide a kind of data processing method and electricity Subset.
The technical scheme of the embodiment of the present invention is achieved in that
Embodiments provide a kind of data processing method, including:
Trigger electronic equipment and carry out the first state;
Detect whether the state data memory of at least one file destination in the memory element of described electronic equipment is sent out Changing;Wherein, file destination is deposited after characterizing the application program end of run in described electronic equipment The information corresponding with described application program being stored in described electronic equipment;
Determine when the state data memory of at least one file destination described changes, choose with described at least The file process strategy that one file destination is corresponding;
Based on the file process strategy corresponding with at least one file destination described, at least one target described File processes.
The embodiment of the present invention additionally provides a kind of electronic equipment, including:
First processing unit, is used for triggering electronic equipment and carries out the first state, detect depositing of described electronic equipment In storage unit, whether the state data memory of at least one file destination changes;Wherein, file destination is used Be stored in described electronic equipment after the application program end of run characterized in described electronic equipment with institute State the information that application program is corresponding;
Second processing unit, for determining that the state data memory of at least one file destination described changes Time, choose the file process strategy corresponding with at least one file destination described, based on described at least one The file process strategy that file destination is corresponding, processes at least one file destination described.
Data processing method described in the embodiment of the present invention and electronic equipment are relative with file destination by choosing Answer ground file process strategy, carried out targetedly, purposively processed mesh based on file process strategy The operation of mark file, therefore, the embodiment of the present invention achieves electronic equipment according to user individual difference to mesh Mark file carries out the purpose of personalisation process, and such as, the embodiment of the present invention can be to the different mesh of same user The file process strategy that mark file selects behavior usual with user to be mated carries out respective handling, it is also possible to not The file process strategy selecting behavior usual with user to be mated with the same file destination of user carries out corresponding position Reason;And then enrich Consumer's Experience, also improve Consumer's Experience.
Accompanying drawing explanation
Fig. 1 be embodiment of the present invention data processing method realize schematic flow sheet one;
Fig. 2 is the application schematic diagram of embodiment of the present invention data processing method;
Fig. 3 be embodiment of the present invention data processing method realize schematic flow sheet two;
Fig. 4 be embodiment of the present invention data processing method realize schematic flow sheet three;
Fig. 5 is the structural representation of embodiment of the present invention electronic equipment.
Detailed description of the invention
In order to more fully hereinafter understand feature and the technology contents of the present invention, below in conjunction with the accompanying drawings to this Bright realization is described in detail, appended accompanying drawing purposes of discussion only for reference, is not used for limiting the present invention.
Embodiment one
Fig. 1 be embodiment of the present invention data processing method realize schematic flow sheet one;Described method is applied to Electronic equipment;As it is shown in figure 1, described method includes:
Step 101: trigger electronic equipment and carry out the first state;
In the present embodiment, described first state can be specially open state, say, that when described electronics When equipment is in open state, can detect the state data memory of at least one file destination in memory element is No change, and then, at least one file destination described is processed, can be based on for electronic equipment User behavior targetedly, is automatically cleared up garbage files and is laid the foundation.
Or, described first state can also be specially system rubbish cleaning state;It is to say, when described When electronic equipment is in system rubbish cleaning state, the number of at least one file destination in memory element can be detected Whether change according to storage state, and then, at least one file destination described is processed, this process Targetedly, automatically can clear up garbage files for electronic equipment based on user behavior equally to lay the foundation.
In actual applications, the first state can be determined according to practical situation.Further, described first State can be that electronic equipment is arbitrarily arranged according to user's request, it is also possible to is that electronic equipment is before dispatching from the factory It is set.
Step 102: detect the data storage of at least one file destination in the memory element of described electronic equipment Whether state changes;Wherein, file destination runs for characterizing the application program in described electronic equipment The information corresponding with described application program being stored in after end in described electronic equipment;
In the present embodiment, file destination can be specially garbage files, includes but not limited to following information: each Kind of icon, caching picture, buffered video, temporary file, caching voice, journal file, system cache, Empty folder, preview graph etc..
In the present embodiment, when described first state representation open state, now, step 102 can be electronics Device periodically triggers execution, and such as electronic equipment triggers the most every other hour in self detection memory element and deposits Whether the state data memory of at least one file destination of storage there occurs change;Or, step 102 is electricity Whether the state data memory of at least one file destination that subset detects memory element storage in real time there occurs Change, in order to garbage files can be deleted when determining and changing in real time, release busy caches, and then Improve the electronic equipment speed of service, promote Consumer's Experience.
Step 103: determine when the state data memory of at least one file destination described changes, choose The file process strategy corresponding with at least one file destination described;
In the present embodiment, described data storing state changes and can refer specifically to newly increase in memory element one Individual or multiple file destinations, and/or, file destination newly increases one or more target data, above two Situation all can be described as the state data memory of file destination and there occurs change.
In one specifically application, step 103 is chosen at the file corresponding with at least one file destination described Reason strategy, can be particularly as follows: choose the file process that file destination that state data memory changes is corresponding Strategy, and then the file destination changing state data memory processes, say, that this situation Under, the file destination only changed state data memory is deleted or reservation process accordingly, and logarithm The file destination not changed according to storage state does not processes, and this processing mode can reduce electronic equipment Treating capacity, promotes the speed of service of electronic equipment indirectly.Or, choose after state data memory changes , the file process strategy that all file destinations in described memory element are corresponding, and then data are stored shape State change after described memory element in all file destinations delete accordingly or reservation process, this The file destination that file process strategy can be changed by processing mode processes immediately, with as much as possible Delete garbage files, discharge the memory space shared by garbage files, spatial cache etc. most possibly, enter And realize promoting the purpose of the speed of service of electronic equipment.
Step 104: based on the file process strategy corresponding with at least one file destination described, to described extremely A few file destination processes.
In actual applications, for making file process strategy arrange according to user behavior, in the present embodiment, Before step 103 selecting file processes strategy, described method also includes: described electronic equipment receives and institute State the user operation that at least one file destination is corresponding;Based on user operation, determine corresponding with user operation Document handling modus;Based on document handling modus, determine the file process plan of at least one file destination described Slightly.It is to say, the method described in the present embodiment make use of big data processing method, it is achieved that based on user Behavior is the purpose that file destination determines the file process strategy personalizedly matched with user behavior.
In actual applications, the embodiment of the present invention can utilize existing cleaning software, records and analyzes user's The cleaning custom of corresponding file destination, and then determine that file destination is corresponding according to record result and analysis result File process strategy so that the cleaning custom in the electronic equipment that user is corresponding, such as mobile phone is for root Customize according to user self behavior, met the cleaning custom of user, the most more efficient, the most thorough The end file destination is cleared up.Further, the literary composition of file destination is determined due to the embodiment of the present invention Part processes strategy to be carried out based on big data analysis, so, it is civilian with target that the embodiment of the present invention is determined The file process strategy that part is corresponding is more accurate, it can also enough based on the cleaning custom after user's change, The file process strategy of time update file destination, and then meet clear to file destination of user substantially Reason requirement, improves Consumer's Experience.
Here, the file process strategy described in the present embodiment can be specially and quickly remove strategy, this process without Needing user to get involved, electronic equipment can directly be deleted and quickly remove the file destination that strategy is corresponding, it is achieved remove The target of garbage files.Remove it addition, the file process strategy described in the present embodiment can also be specially the degree of depth Strategy, this process needs user to get involved, such as, when electronic equipment is determined at the file that file destination is corresponding When reason strategy removes strategy for the degree of depth, the display at described electronic equipment presents user as shown in Figure 2 and hands over Interface mutually, and then receive user operation by this User Interface, right to determine whether according to user operation File destination carries out degree of depth removing.
So, method described in the embodiment of the present invention, by choosing and file destination file process plan accordingly Slightly, carry out targetedly, purposively processed based on file process strategy the operation of file destination, Therefore, the embodiment of the present invention achieves electronic equipment, according to user individual difference, file destination is carried out individual character The purpose that change processes, such as, the different target file of same user can be selected and use by the embodiment of the present invention The file process strategy that the usual behavior in family is mated carries out respective handling, it is also possible to the same mesh to different user The file process strategy that mark file selects behavior usual with user to be mated carries out respective handling;And then enrich Consumer's Experience, also improves Consumer's Experience.
Embodiment two
Fig. 3 be embodiment of the present invention data processing method realize schematic flow sheet two;Described method is applied to Electronic equipment;As it is shown on figure 3, described method includes:
Step 301: trigger electronic equipment and carry out the first state;
In the present embodiment, described first state can be specially open state, say, that when described electronics When equipment is in open state, can detect the state data memory of at least one file destination in memory element is No change, and then, at least one file destination described is processed, can be based on for electronic equipment User behavior targetedly, is automatically cleared up garbage files and is laid the foundation.
Or, described first state can also be specially system rubbish cleaning state;It is to say, when described When electronic equipment is in system rubbish cleaning state, the number of at least one file destination in memory element can be detected Whether change according to storage state, and then, at least one file destination described is processed, this process Targetedly, automatically can clear up garbage files for electronic equipment based on user behavior equally to lay the foundation.
In actual applications, the first state can be determined according to practical situation.Further, described first State can be that electronic equipment is arbitrarily arranged according to user's request, it is also possible to is that electronic equipment is before dispatching from the factory It is set.
Step 302: detect the data storage of at least one file destination in the memory element of described electronic equipment Whether state changes;Wherein, file destination runs for characterizing the application program in described electronic equipment The information corresponding with described application program being stored in after end in described electronic equipment;
In the present embodiment, file destination can be specially garbage files, includes but not limited to following information: each Kind of icon, caching picture, buffered video, temporary file, caching voice, journal file, system cache, Empty folder, preview graph etc..
In the present embodiment, when described first state representation open state, now, step 302 can be electronics Device periodically triggers execution, and such as electronic equipment triggers the most every other hour in self detection memory element and deposits Whether the state data memory of at least one file destination of storage there occurs change;Or, step 302 is electricity Whether the state data memory of at least one file destination that subset detects memory element storage in real time there occurs Change, in order to garbage files can be deleted when determining and changing in real time, release busy caches, and then Improve the electronic equipment speed of service, promote Consumer's Experience.
In one embodiment, the data storage of at least one file destination described is determined when electronic equipment When state changes, and non-immediate chooses the file process strategy corresponding with at least one file destination described, But judge that in described memory element, the state data memory of at least one file destination is corresponding when changing Variation characteristic whether meet first and preset rule change, such as, it is judged that in described memory element at least one The number of times that file destination is deleted-recovers is more than first threshold, and then determines how process number according to judged result Variation characteristic corresponding when changing according to storage state meets the first file destination presetting rule change. Concretely comprise the following steps 303 and 304.
Step 303: determine when the state data memory of at least one file destination described changes, it is judged that The change that in described memory element, the state data memory of at least one file destination is corresponding when changing is special Levy and whether meet first and preset rule change;
In the present embodiment, described data storing state changes and can refer specifically to newly increase in memory element one Individual or multiple file destinations, and/or, file destination newly increases one or more target data, above two Situation all can be described as the state data memory of file destination and there occurs change.
Step 304: determine when existence meets the first object file that described first presets rule change, choosing Take the file process strategy of described first object file, file process strategy based on described first object file Described first object file is deleted in described memory element;Described first object file is deposited described in being stored in File at least one file destination of storage unit.
In a concrete application scenarios, when electronic equipment judges that what first object file be deleted-was resumed follows Ring number of times meets certain condition, and the number of times deleted the most continuously-recover is more than first threshold, or the unit interval The number of times of interior deletion-recovery is more than first threshold, and now, described electronic equipment is directly in described memory element Delete described first object file, and then eliminate the repeatable operation process of user, improve Consumer's Experience.
In actual applications, for making file process strategy arrange according to user behavior, in the present embodiment, Before step 304 selecting file processes strategy, described method also includes: described electronic equipment receives and institute State the user operation that at least one file destination is corresponding;Based on user operation, determine corresponding with user operation Document handling modus;Based on document handling modus, determine the file process plan of at least one file destination described Slightly.It is to say, the method described in the present embodiment make use of big data processing method, it is achieved that based on user Behavior is the purpose that file destination determines the file process strategy personalizedly matched with user behavior.
In actual applications, the embodiment of the present invention can utilize existing cleaning software, records and analyzes user's The cleaning custom of corresponding file destination, and then determine that file destination is corresponding according to record result and analysis result File process strategy so that the cleaning custom in the electronic equipment that user is corresponding, such as mobile phone is for root Customize according to user self behavior, met the cleaning custom of user, the most more efficient, the most thorough The end file destination is cleared up.Further, the literary composition of file destination is determined due to the embodiment of the present invention Part processes strategy to be carried out based on big data analysis, so, it is civilian with target that the embodiment of the present invention is determined The file process strategy that part is corresponding is more accurate, it can also enough based on the cleaning custom after user's change, The file process strategy of time update file destination, and then meet clear to file destination of user substantially Reason requirement, improves Consumer's Experience.
Here, the file process strategy described in the present embodiment can be specially and quickly remove strategy, this process without Needing user to get involved, electronic equipment can directly be deleted and quickly remove the file destination that strategy is corresponding, it is achieved remove The target of garbage files.Remove it addition, the file process strategy described in the present embodiment can also be specially the degree of depth Strategy, this process needs user to get involved, such as, when electronic equipment is determined at the file that file destination is corresponding When reason strategy removes strategy for the degree of depth, the display at described electronic equipment presents user as shown in Figure 2 and hands over Interface mutually, and then receive user operation by this User Interface, right to determine whether according to user operation File destination carries out degree of depth removing.
So, method described in the embodiment of the present invention, by choosing and file destination file process plan accordingly Slightly, carry out targetedly, purposively processed based on file process strategy the operation of file destination, Therefore, the embodiment of the present invention achieves electronic equipment, according to user individual difference, file destination is carried out individual character The purpose that change processes, such as, the different target file of same user can be selected and use by the embodiment of the present invention The file process strategy that the usual behavior in family is mated carries out respective handling, it is also possible to the same mesh to different user The file process strategy that mark file selects behavior usual with user to be mated carries out respective handling;And then enrich Consumer's Experience, also improves Consumer's Experience.
Embodiment three
Fig. 4 be embodiment of the present invention data processing method realize schematic flow sheet three;Described method is applied to Electronic equipment;As shown in Figure 4, described method includes:
Step 401: trigger electronic equipment and carry out the first state;
In the present embodiment, described first state can be specially open state, say, that when described electronics When equipment is in open state, can detect the state data memory of at least one file destination in memory element is No change, and then, at least one file destination described is processed, can be based on for electronic equipment User behavior targetedly, is automatically cleared up garbage files and is laid the foundation.
Or, described first state can also be specially system rubbish cleaning state;It is to say, when described When electronic equipment is in system rubbish cleaning state, the number of at least one file destination in memory element can be detected Whether change according to storage state, and then, at least one file destination described is processed, this process Targetedly, automatically can clear up garbage files for electronic equipment based on user behavior equally to lay the foundation.
In actual applications, the first state can be determined according to practical situation.Further, described first State can be that electronic equipment is arbitrarily arranged according to user's request, it is also possible to is that electronic equipment is before dispatching from the factory It is set.
Step 402: pending listed files is set;It is single that described pending listed files includes described storage The file feature information of at least one file destination in unit;
In actual applications, targetedly file destination is cleared up for ease of electronic equipment, the present invention Embodiment needs to arrange pending listed files, and then makes electronic equipment targetedly to pending file File destination in list carries out corresponding delete processing.Specifically, described file feature information can specifically be wrapped Include the title of application program corresponding to file destination, the path residing for file destination, such as cache path, enter And described pending listed files can characterize file destination, application program and the mapping of cache path three Relation, and then be easy to described electronic equipment file destination is carried out respective handling.
In one embodiment, the embodiment of the present invention can utilize existing cleaning software, records and analyzes use The cleaning custom of the corresponding file destination at family, and then determine file destination according to record result and analysis result Corresponding file process strategy, so that the cleaning custom in the electronic equipment that user is corresponding, such as mobile phone For customize according to user self behavior, meet the cleaning custom of user, the most more efficient, more Add and up hill and dale file destination is cleared up.Further, file destination is determined due to the embodiment of the present invention File process strategy carry out based on big data analysis, so, the embodiment of the present invention is determined and mesh The file process strategy that mark file is corresponding is more accurate, practises it can also enough based on the cleaning after user's change Used, the file process strategy of time update file destination, and then meet user substantially to file destination Cleaning requirement, improve Consumer's Experience.
Specifically, described pending listed files can specifically be arranged in cleaning software, by removing software Detect at least one file destination that described pending listed files is characterized and whether include target data, Such as the file etc. being newly stored in, and then realize the scale removal process to file destination.
Step 403: the data detecting at least one file destination that described pending listed files is characterized are deposited Whether storage state changes;Wherein, file destination is for characterizing the application program fortune in described electronic equipment The information corresponding with described application program that row is stored in described electronic equipment after terminating;
In one embodiment, at least one target that the described pending listed files of described detection is characterized Whether the state data memory of file changes, can be particularly as follows: detect described pending listed files institute Whether at least one file destination characterized includes target data, such as the file etc. being newly stored in.
In the present embodiment, file destination can be specially garbage files, includes but not limited to following information: each Kind of icon, caching picture, buffered video, temporary file, caching voice, journal file, system cache, Empty folder, preview graph etc..
In the present embodiment, when described first state representation open state, now, step 403 can be electronics Device periodically triggers execution, and such as electronic equipment triggers the most every other hour in self detection memory element and deposits Whether the state data memory of at least one file destination of storage there occurs change;Or, step 403 is electricity Whether the state data memory of at least one file destination that subset detects memory element storage in real time there occurs Change, in order to garbage files can be deleted when determining and changing in real time, release busy caches, and then Improve the electronic equipment speed of service, promote Consumer's Experience.
Step 404: determine when the state data memory of at least one file destination described changes, choose The file process strategy corresponding with at least one file destination described;
In the present embodiment, described data storing state changes and can refer specifically to newly increase in memory element one Individual or multiple file destinations, and/or, file destination newly increases one or more target data, above two Situation all can be described as the state data memory of file destination and there occurs change.
In one specifically application, step 404 is chosen at the file corresponding with at least one file destination described Reason strategy, can be particularly as follows: choose the file process that file destination that state data memory changes is corresponding Strategy, and then the file destination changing state data memory processes, say, that this situation Under, the file destination only changed state data memory is deleted or reservation process accordingly, and logarithm The file destination not changed according to storage state does not processes, and this processing mode can reduce electronic equipment Treating capacity, promotes the speed of service of electronic equipment indirectly.Or, choose after state data memory changes , the file process strategy that all file destinations in described memory element are corresponding, and then data are stored shape State change after described memory element in all file destinations delete accordingly or reservation process, this The file destination that file process strategy can be changed by processing mode processes immediately, with as much as possible Delete garbage files, discharge the memory space shared by garbage files, spatial cache etc. most possibly, enter And realize promoting the purpose of the speed of service of electronic equipment.
Step 405: based on the file process strategy corresponding with at least one file destination described, to described extremely A few file destination processes.
In actual applications, for making file process strategy arrange according to user behavior, in the present embodiment, Before step 404 selecting file processes strategy, described method also includes: described electronic equipment receives and institute State the user operation that at least one file destination is corresponding;Based on user operation, determine corresponding with user operation Document handling modus;Based on document handling modus, determine the file process plan of at least one file destination described Slightly.It is to say, the method described in the present embodiment make use of big data processing method, it is achieved that based on user Behavior is the purpose that file destination determines the file process strategy personalizedly matched with user behavior.
In actual applications, described method also includes: detect at least beyond described pending listed files Whether the state data memory of individual file destination changes;Determine beyond described pending listed files extremely When the state data memory of a few file destination changes, it is judged that the institute that state data memory changes Whether the variation characteristic stating at least one file destination beyond pending listed files meets the second default change Rule;The described pending listed files that state data memory is changed is determined whether according to judged result At least one file destination in addition processes.
Further, described according to judged result determine whether state data memory is changed described in treat Process at least one file destination beyond listed files to process, including:
Beyond the described pending listed files that judged result sign state data memory changes at least The variation characteristic of one file destination meets described second when presetting rule change, obtains state data memory and sends out The file feature information of at least one file destination beyond the described pending listed files of changing;
At least one file destination beyond described pending listed files that state data memory is changed File feature information be stored in described pending listed files.
In one embodiment, detect that user always clears up not at pending listed files when electronic equipment In the second file destination, and cleaning feature meet certain condition, such as clearing times be more than Second Threshold, Or the number of times of cleaning meets Second Threshold in the unit interval, now, described electronic equipment obtains described second The file feature information of file destination, and then the file feature information of described second file destination that will get It is stored in described pending listed files, it is achieved arrange based on pending file described in user behavior real-time update The purpose of table.
In the present embodiment, described pending listed files can also store the file corresponding with file destination Process strategy, so, when electronic equipment detects that needs carry out the file destination cleared up, it is only necessary to from institute State and pending listed files goes obtain file process strategy.Such as, if electronic equipment detects always It is to delete the picture in instant messaging application and small video, and deletion feature meets certain condition, now, if The picture file feature information corresponding with small video in instant messaging application is not stored in described pending file Time in list, described electronic equipment is by file characteristic letter corresponding with small video for the picture in instant messaging application Breath is stored in described pending listed files, and the picture in simultaneously being applied by instant messaging is corresponding with small video The file process strategy setting of file destination for quickly removing strategy, and then save the mistake of user oneself cleaning Journey;Further, if the picture file feature information corresponding with small video in instant messaging application is stored in In described pending listed files, and described instant messaging application in picture corresponding with small video target literary composition When the file process strategy of part is not quickly to remove strategy, described electronic equipment is by the figure in instant messaging application The file process strategy modification of the file destination that sheet is corresponding with small video is for quickly removing strategy.It is to say, Method described in the embodiment of the present invention, can not only revise pending listed files according to user behavior, moreover it is possible to Enough according to the file process plan corresponding to file destination in the user behavior adjustment pending listed files of described amendment Slightly, so, the diversified demand of user is greatly met.
Here, the file process strategy described in the present embodiment can be specially and quickly remove strategy, this process without Needing user to get involved, electronic equipment can directly be deleted and quickly remove the file destination that strategy is corresponding, it is achieved remove The target of garbage files.Remove it addition, the file process strategy described in the present embodiment can also be specially the degree of depth Strategy, this process needs user to get involved, such as, when electronic equipment is determined at the file that file destination is corresponding When reason strategy removes strategy for the degree of depth, the display at described electronic equipment presents user as shown in Figure 2 and hands over Interface mutually, and then receive user operation by this User Interface, right to determine whether according to user operation File destination carries out degree of depth removing.
So, method described in the embodiment of the present invention, by choosing and file destination file process plan accordingly Slightly, carry out targetedly, purposively processed based on file process strategy the operation of file destination, Therefore, the embodiment of the present invention achieves electronic equipment, according to user individual difference, file destination is carried out individual character The purpose that change processes, such as, the different target file of same user can be selected and use by the embodiment of the present invention The file process strategy that the usual behavior in family is mated carries out respective handling, it is also possible to the same mesh to different user The file process strategy that mark file selects behavior usual with user to be mated carries out respective handling;And then enrich Consumer's Experience, also improves Consumer's Experience.
Embodiment four
Fig. 5 is the structural representation of embodiment of the present invention electronic equipment;As it is shown in figure 5, described electronic equipment Including:
First processing unit 51, is used for triggering electronic equipment and carries out the first state, detect described electronic equipment In memory element, whether the state data memory of at least one file destination changes;Wherein, file destination Be stored in described electronic equipment after characterizing the application program end of run in described electronic equipment with The information that described application program is corresponding;
Second processing unit 52, for determining that the state data memory of at least one file destination described becomes During change, choose the file process strategy corresponding with at least one file destination described, based on described at least one The file process strategy that individual file destination is corresponding, processes at least one file destination described.
In the present embodiment, described electronic equipment, also include:
Input block, for receiving the user operation corresponding with at least one file destination described;
3rd processing unit, for based on user operation, determines the document handling modus corresponding with user operation, Based on document handling modus, determine the file process strategy of at least one file destination described.
In the present embodiment, described second processing unit, it is additionally operable to:
Judge that in described memory element, the state data memory of at least one file destination is corresponding when changing Variation characteristic whether meet first and preset rule change;
Determine when existence meets the first object file that described first presets rule change, single in described storage Unit deletes described first object file;Described first object file is to be stored in described memory element at least File in one file destination.
In the present embodiment, described electronic equipment also includes: arrange unit;Wherein,
Described unit is set, is used for arranging pending listed files;Described pending listed files comprises State the file feature information of at least one file destination in memory element;
Described first processing unit, is additionally operable to detect at least one mesh that described pending listed files is characterized Whether the state data memory of mark file changes.
In the present embodiment, described first processing unit, it is additionally operable to detect beyond described pending listed files Whether the state data memory of at least one file destination changes;
Second processing unit, is additionally operable to determine at least one file destination beyond described pending listed files State data memory when changing, it is judged that the described pending file row that state data memory changes Whether the variation characteristic of at least one file destination beyond table meets second is preset rule change;According to judgement Result determines whether at least one beyond the described pending listed files that changes state data memory File destination processes.
In the present embodiment, described second processing unit, it is additionally operable to: when judged result characterizes state data memory The variation characteristic of at least one file destination beyond described pending listed files changed meets described Second when presetting rule change, obtains beyond the described pending listed files that state data memory changes The file feature information of at least one file destination;
At least one file destination beyond described pending listed files that state data memory is changed File feature information be stored in described pending listed files.
It will be appreciated by those skilled in the art that the function of each processing unit in the electronic equipment of the embodiment of the present invention, Can refer to the associated description of aforementioned data processing method and understand, repeat no more here;It addition, the present invention is real Execute each processing unit in the electronic equipment of example, can be by realizing the simulation electricity of the function described in the embodiment of the present invention Road and realize, it is also possible to by performing the software of the function described in the embodiment of the present invention fortune on intelligent terminal Go and realize.
In several embodiments provided herein, it should be understood that disclosed equipment and method, can To realize by another way.Apparatus embodiments described above is only schematically, such as, and institute Stating the division of unit, be only a kind of logic function and divide, actual can have other dividing mode when realizing, As: multiple unit or assembly can be in conjunction with, or it is desirably integrated into another system, or some features can be neglected Slightly, or do not perform.It addition, the coupling each other of shown or discussed each ingredient or directly coupling Close or communication connection can be the INDIRECT COUPLING by some interfaces, equipment or unit or communication connection, can Be electrical, machinery or other form.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, as The parts that unit shows can be or may not be physical location, i.e. may be located at a place, it is possible to To be distributed on multiple NE;Part or all of unit therein can be selected according to the actual needs Realize the purpose of the present embodiment scheme.
It addition, each functional unit in various embodiments of the present invention can be fully integrated in a processing unit, Can also be that each unit is individually as a unit, it is also possible to two or more unit are integrated in one In individual unit;Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ hardware adds soft The form of part functional unit realizes.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can Completing with the hardware relevant by programmed instruction, aforesaid program can be stored in an embodied on computer readable and deposit In storage media, this program upon execution, performs to include the step of said method embodiment;And aforesaid storage Medium includes: movable storage device, read only memory (ROM, Read Only Memory), deposit at random Access to memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
Or, if the above-mentioned integrated unit of the present invention is using the form realization of software function module and as independent Production marketing or use time, it is also possible to be stored in a computer read/write memory medium.Based on so Understanding, the part that prior art is contributed by the technical scheme of the embodiment of the present invention the most in other words can Embodying with the form with software product, this computer software product is stored in a storage medium, bag Include some instructions with so that a computer equipment (can be personal computer, server or network Equipment etc.) perform all or part of of method described in each embodiment of the present invention.And aforesaid storage medium bag Include: movable storage device, read only memory (ROM, Read Only Memory), random access memory Device (RAM, Random Access Memory), magnetic disc or CD etc. are various can store program code Medium.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited to This, any those familiar with the art, in the technical scope that the invention discloses, can readily occur in Change or replacement, all should contain within protection scope of the present invention.Therefore, protection scope of the present invention should It is as the criterion with described scope of the claims.

Claims (12)

1. a data processing method, including:
Trigger electronic equipment and carry out the first state;
Detect whether the state data memory of at least one file destination in the memory element of described electronic equipment is sent out Changing;Wherein, file destination is deposited after characterizing the application program end of run in described electronic equipment The information corresponding with described application program being stored in described electronic equipment;
Determine when the state data memory of at least one file destination described changes, choose with described at least The file process strategy that one file destination is corresponding;
Based on the file process strategy corresponding with at least one file destination described, at least one target described File processes.
Method the most according to claim 1, it is characterised in that described method also includes:
Receive the user operation corresponding with at least one file destination described;
Based on user operation, determine the document handling modus corresponding with user operation;
Based on document handling modus, determine the file process strategy of at least one file destination described.
Method the most according to claim 1, it is characterised in that described method also includes:
Judge that in described memory element, the state data memory of at least one file destination is corresponding when changing Variation characteristic whether meet first and preset rule change;
Determine when existence meets the first object file that described first presets rule change, single in described storage Unit deletes described first object file;Described first object file is to be stored in described memory element at least File in one file destination.
4. according to the method described in any one of claims 1 to 3, it is characterised in that described method also includes:
Pending listed files is set;Described pending listed files includes in described memory element at least The file feature information of one file destination;
Accordingly, in the memory element of the described electronic equipment of described detection, the data of at least one file destination are deposited Whether storage state changes, including:
Whether detect the state data memory of at least one file destination that described pending listed files is characterized Change.
Method the most according to claim 4, it is characterised in that described method also includes:
Whether the state data memory detecting at least one file destination beyond described pending listed files is sent out Changing;
Determine that the state data memory of at least one file destination beyond described pending listed files becomes During change, it is judged that at least one target beyond described pending listed files that state data memory changes Whether the variation characteristic of file meets second is preset rule change;
According to judged result determine whether described pending listed files that state data memory is changed with At least one outer file destination processes.
Method the most according to claim 5, it is characterised in that described determine whether according to judged result At least one file destination beyond described pending listed files changing state data memory is carried out Process, including:
Beyond the described pending listed files that judged result sign state data memory changes at least The variation characteristic of one file destination meets described second when presetting rule change, obtains state data memory and sends out The file feature information of at least one file destination beyond the described pending listed files of changing;
At least one file destination beyond described pending listed files that state data memory is changed File feature information be stored in described pending listed files.
7. an electronic equipment, including:
First processing unit, is used for triggering electronic equipment and carries out the first state, detect depositing of described electronic equipment In storage unit, whether the state data memory of at least one file destination changes;Wherein, file destination is used Be stored in described electronic equipment after the application program end of run characterized in described electronic equipment with institute State the information that application program is corresponding;
Second processing unit, for determining that the state data memory of at least one file destination described changes Time, choose the file process strategy corresponding with at least one file destination described, based on described at least one The file process strategy that file destination is corresponding, processes at least one file destination described.
Electronic equipment the most according to claim 7, it is characterised in that described electronic equipment, also includes:
Input block, for receiving the user operation corresponding with at least one file destination described;
3rd processing unit, for based on user operation, determines the document handling modus corresponding with user operation, Based on document handling modus, determine the file process strategy of at least one file destination described.
Electronic equipment the most according to claim 7, it is characterised in that described second processing unit, also For:
Judge that in described memory element, the state data memory of at least one file destination is corresponding when changing Variation characteristic whether meet first and preset rule change;
Determine when existence meets the first object file that described first presets rule change, single in described storage Unit deletes described first object file;Described first object file is to be stored in described memory element at least File in one file destination.
10. according to the electronic equipment described in any one of claim 7 to 9, it is characterised in that described electronics Equipment also includes: arrange unit;Wherein,
Described unit is set, is used for arranging pending listed files;Described pending listed files comprises State the file feature information of at least one file destination in memory element;
Described first processing unit, is additionally operable to detect at least one mesh that described pending listed files is characterized Whether the state data memory of mark file changes.
11. electronic equipments according to claim 10, it is characterised in that
Described first processing unit, is additionally operable to detect at least one target beyond described pending listed files Whether the state data memory of file changes;
Second processing unit, is additionally operable to determine at least one file destination beyond described pending listed files State data memory when changing, it is judged that the described pending file row that state data memory changes Whether the variation characteristic of at least one file destination beyond table meets second is preset rule change;According to judgement Result determines whether at least one beyond the described pending listed files that changes state data memory File destination processes.
12. electronic equipments according to claim 11, it is characterised in that described second processing unit, It is additionally operable to:
Beyond the described pending listed files that judged result sign state data memory changes at least The variation characteristic of one file destination meets described second when presetting rule change, obtains state data memory and sends out The file feature information of at least one file destination beyond the described pending listed files of changing;
At least one file destination beyond described pending listed files that state data memory is changed File feature information be stored in described pending listed files.
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 true CN105893471A (en) 2016-08-24
CN105893471B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776847A (en) * 2016-11-28 2017-05-31 广东欧珀移动通信有限公司 Delete the method for media file, device and move on to terminal
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
CN110099170A (en) * 2019-04-26 2019-08-06 维沃移动通信有限公司 Image deletion method and mobile terminal
CN110140117A (en) * 2017-11-10 2019-08-16 华为技术有限公司 Terminal is based on the automatic cleaning individual subscriber file of user's habit

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1920828A (en) * 2006-08-28 2007-02-28 华为技术有限公司 Method and system for cleaning garbage files
US20090180145A1 (en) * 2008-01-11 2009-07-16 Oki Data Corporation Image Processing Apparatus
US20120057707A1 (en) * 2010-09-03 2012-03-08 Fang Ko Cheng Method of abolishing unauthorized copying of digital data stored on an optical disc
CN103064675A (en) * 2012-12-24 2013-04-24 广东欧珀移动通信有限公司 Method and device for cleaning up redundant files in mobile terminal automatically
CN103577240A (en) * 2012-07-25 2014-02-12 腾讯科技(深圳)有限公司 Automatic system cleaning method and device and memory medium
CN103678389A (en) * 2012-09-19 2014-03-26 腾讯科技(深圳)有限公司 Method and device for clearing junk files
CN104881493A (en) * 2015-06-12 2015-09-02 北京金山安全软件有限公司 File cleaning method and device
CN105183902A (en) * 2015-09-30 2015-12-23 北京金山安全软件有限公司 File cleaning method and device and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1920828A (en) * 2006-08-28 2007-02-28 华为技术有限公司 Method and system for cleaning garbage files
US20090180145A1 (en) * 2008-01-11 2009-07-16 Oki Data Corporation Image Processing Apparatus
US20120057707A1 (en) * 2010-09-03 2012-03-08 Fang Ko Cheng Method of abolishing unauthorized copying of digital data stored on an optical disc
CN103577240A (en) * 2012-07-25 2014-02-12 腾讯科技(深圳)有限公司 Automatic system cleaning method and device and memory medium
CN103678389A (en) * 2012-09-19 2014-03-26 腾讯科技(深圳)有限公司 Method and device for clearing junk files
CN103064675A (en) * 2012-12-24 2013-04-24 广东欧珀移动通信有限公司 Method and device for cleaning up redundant files in mobile terminal automatically
CN104881493A (en) * 2015-06-12 2015-09-02 北京金山安全软件有限公司 File cleaning method and device
CN105183902A (en) * 2015-09-30 2015-12-23 北京金山安全软件有限公司 File cleaning method and device and terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776847A (en) * 2016-11-28 2017-05-31 广东欧珀移动通信有限公司 Delete the method for media file, device and move on to terminal
CN106776847B (en) * 2016-11-28 2020-01-14 Oppo广东移动通信有限公司 Method and device for deleting media file and mobile terminal
CN110140117A (en) * 2017-11-10 2019-08-16 华为技术有限公司 Terminal is based on the automatic cleaning individual subscriber file of user's habit
CN110140117B (en) * 2017-11-10 2023-11-17 华为技术有限公司 Terminal automatically cleans personal files of users based on 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
CN110099170A (en) * 2019-04-26 2019-08-06 维沃移动通信有限公司 Image deletion method and mobile terminal
CN110099170B (en) * 2019-04-26 2021-01-08 维沃移动通信有限公司 Picture deleting method and mobile terminal

Also Published As

Publication number Publication date
CN105893471B (en) 2020-11-20

Similar Documents

Publication Publication Date Title
CN105893471A (en) Data processing method and electronic equipment
CN104156414B (en) A kind of method for cleaning of garbage files, device and terminal
CN104866510B (en) Method and device for removing residual file and method and device for establishing feature library of residual file
CN104008111B (en) A kind of memory management method and device of data
CN108595503A (en) Document handling method and server
CN104021160B (en) Client data cleaning method and device
CN105989076A (en) Data statistical method and device
CN105279163A (en) Buffer memory data update and storage method and system
CN102456048A (en) Method and system for processing mass data
CN104461711B (en) Adaptive optimization method and adaptive optimization device of computing equipment
CN106445604A (en) Clearing method and device for applications
CN108228341A (en) Method for recovering internal storage and device, terminal device and computer readable storage medium
CN108984295A (en) Method for recovering internal storage, computer installation and computer readable storage medium
CN106708912A (en) Useless file identification method and device, useless file management method and device and terminal
CN108228339A (en) A kind of method for recovering internal storage and device, terminal device and computer readable storage medium
CN107453948A (en) The storage method and system of a kind of network measurement data
CN107943423A (en) The management method and computer-readable recording medium of storage resource in cloud system
CN106815283A (en) Data processing method, device and electronic equipment
CN106156129A (en) File management method and device
CN108646987A (en) A kind of management method of file volume, device, storage medium and terminal
CN108287760A (en) Terminal equipment control method and device, terminal device and computer readable storage medium
CN106569683A (en) Method and equipment for performing batch processing of applications on mobile terminal
CN108287761A (en) Method for recovering internal storage and device, terminal device and computer readable storage medium
CN109213447A (en) A kind of SAN storage volume carry, discharging method and system
CN102780780B (en) Method, equipment and system for data processing in cloud computing mode

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