CN106708912A - Useless file identification method and device, useless file management method and device and terminal - Google Patents

Useless file identification method and device, useless file management method and device and terminal Download PDF

Info

Publication number
CN106708912A
CN106708912A CN201510807437.0A CN201510807437A CN106708912A CN 106708912 A CN106708912 A CN 106708912A CN 201510807437 A CN201510807437 A CN 201510807437A CN 106708912 A CN106708912 A CN 106708912A
Authority
CN
China
Prior art keywords
key element
garbage files
strategy
storage object
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510807437.0A
Other languages
Chinese (zh)
Other versions
CN106708912B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510807437.0A priority Critical patent/CN106708912B/en
Priority to PCT/CN2016/083174 priority patent/WO2016197814A1/en
Publication of CN106708912A publication Critical patent/CN106708912A/en
Application granted granted Critical
Publication of CN106708912B publication Critical patent/CN106708912B/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/17Details of further file system functions
    • G06F16/1727Details of free space management performed by the file system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • 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/17Details of further file system functions
    • G06F16/1724Details of de-fragmentation performed by the file system

Abstract

The invention discloses a useless file identification method and device, a useless file management method and device and a terminal. The useless file identification method comprises the following steps of: obtaining an element set which comprises at least one element and setting a useless file judging strategy according to a threshold value of at least one element, wherein the element is set according to target attribute data of a storage object in a file system; carrying out analysis according to the current practical target attribute data of the storage object in the file system so as to obtain a practical value of each element in a storage object element set; and judging whether the storage object is a useless file according to the threshold value matching condition between the practical value of each element in the storage object element set and corresponding elements in the useless file judging strategy. By adoption of the useless file identification method, the target attribute data of the storage object in the file system can be effectively utilized to set the elements, and the useless file judging strategy can be generated, so that the useless files can be rapidly and correctly identified, the method is suitable for different terminals, and the adaptation and judging correctness of the method are improved.

Description

Garbage files are recognized and management method, identifying device, managing device and terminal
Technical field
The present invention relates to a kind of field of computer technology, more particularly to a kind of identification of garbage files and management method, Identifying device, managing device and terminal.
Background technology
With the development of science and technology, dependence of the people to terminals such as computer cell phones is increasing, and it is run The requirement of speed also more and more higher.And after used a period of time, the generation of increasing garbage files But so that the situation of such as interim card, internal memory and interior external memory space inadequate occurs in terminal, terminal is extremely influenceed Use.In order to recover the speed of service of terminal, it is necessary to clear up the garbage files of terminal, release is more Many memory spaces.
At present, the general garbage files recognition methods that uses is:User selectes the file for needing to judge, then This document is added in certain detection application, the detection default rubbish judgment models of applications exploiting itself go to know The file of other user's addition is garbage files.If identifying that certain file is garbage files, detection application Just garbage files are cleaned out to user's suggestion.In existing method for cleaning, default rubbish judgment models pair User and for be unknowable, the model is in use constant, but many texts in terminal Part can change with use pattern and the difference of use time, rubbish degree, go to know based on preset model The method applicability of other garbage files is poor, can produce error, reduces the accuracy for judging.
The content of the invention
The main technical problem to be solved in the present invention is to provide a kind of garbage files identification and management method, knowledge Other device, managing device and terminal, solve the adaptability that the method for identification garbage files in the prior art has The low problem of difference, accuracy.
In order to solve the above technical problems, the present invention provides a kind of garbage files recognition methods, including:
The key element collection comprising at least one key element is obtained, the threshold value according at least one key element sets garbage files Determination strategy;Key element is set according to the objective attribute target attribute data of storage object in file system;
Obtaining the storage object according to the current realistic objective attribute data analysis of storage object in file system will Element concentrates the actual value of each key element;
According to correspondence key element in the actual value and garbage files determination strategy of storage object key element each key element of concentration Threshold value match condition, judges whether the storage object is garbage files.
Further, storage object includes:File and/or file.
Further, objective attribute target attribute data include operational attribute data and/or size attribute data, and key element includes The operational attribute key element set according to operational attribute data and/or the size category set according to size attribute data Property key element.
Further, match condition includes when storage object key element collection includes operational attribute key element:Operational attribute Key element is whether actual value matches with the threshold value of the operational attribute key element;Storage object key element collection includes size During attribute key element, match condition includes:Size attribute key element be actual value whether with the size attribute key element Threshold value matching.
Further, objective attribute target attribute data also dispaly state attribute data, key element also includes according to dispaly state The status display key element that attribute data is set.
Further, when storage object key element collection includes status display key element, match condition includes:Display shape Whether the actual value of state key element matches with the threshold value of the dispaly state key element.
Further, when objective attribute target attribute data include operational attribute data, operational attribute data include operation class Type, the operating time, the operating time interval at least one, operational attribute key element include action type key element, At least one in operating time key element and operating time spacing elements;
When objective attribute target attribute data include size attribute data, size number attribute data include that storage object is currently big The space size of size variation amount of the small, storage object in preset time period and storage area where storage object In at least one;Size attribute key element includes the current size key element of storage object, storage object size variation At least one in the space size key element of storage area where amount key element and storage object.
Further, also include:The strategy modification instruction that user sends is received, it is right to be instructed according to strategy modification Garbage files determination strategy is modified.
Further, strategy modification instruction is for wanting that the key element to garbage files determination strategy is adjusted Plain adjust instruction;Garbage files determination strategy is modified including:According to key element adjust instruction to key element collection In key element be updated, according to the key element collection more new strategy after renewal;
Or, strategy modification instruction is for wanting that the threshold value of the key element to garbage files determination strategy is adjusted Plain adjusting thresholds instruction;Garbage files determination strategy is modified including:The whole instruction of threshold value is adjusted according to key element Threshold value to correspondence key element is updated, according to the more new strategy of the threshold value after renewal.
In order to preferably manage a kind of rubbish text of the garbage files present invention on the basis of above-mentioned technical problem is solved Part management method, including:
Garbage files are identified by the recognition methods of above-mentioned garbage files;
Garbage files are managed.
Further, garbage files are managed including:
Directly garbage files are deleted;
Or garbage files are presented to user are confirmed, the first confirmation instruction according to user is to rubbish text Part is managed;
Or garbage files and garbage files determination strategy are presented to user are confirmed, according to the of user Two confirm that instruction is managed to garbage files.
The present invention also provides a kind of garbage files identifying device, including:
Strategy setting module, for obtaining the key element collection comprising at least one key element, according at least one key element Threshold value set garbage files determination strategy;Key element is the objective attribute target attribute number according to storage object in file system According to what is set;
Analysis module, for being analyzed according to the current realistic objective attribute data of storage object in file system The actual value of each key element is concentrated to the storage object key element;
Judge module, actual value and garbage files for concentrating each key element according to storage object key element judge plan The threshold value match condition of slightly middle correspondence key element, judges whether the storage object is garbage files.
Further, objective attribute target attribute data include operational attribute data and/or size attribute data, and key element includes The operational attribute key element set according to operational attribute data and/or the size category set according to size attribute data Property key element.
Further, objective attribute target attribute data also include dispaly state attribute data, and key element also includes according to display The status display key element that status attribute data are set.
Further, strategy setting module also includes:Receiver module:Strategy for receiving user's transmission is repaiied Change instruction;Modification submodule:For being modified to garbage files determination strategy according to strategy modification instruction.
Further, receiver module includes the first receiving submodule, for receiving key element adjust instruction, key element Adjust instruction is the strategy modification instruction being adjusted for the key element to garbage files determination strategy;Modification Module includes the first modification submodule:For being updated to the key element that key element is concentrated according to key element adjust instruction, According to the key element collection more new strategy after renewal;
Or, receiver module includes the second receiving submodule, for receiving the instruction of key element adjusting thresholds, key element threshold Value adjust instruction is that the strategy modification being adjusted for the threshold value of the key element to garbage files determination strategy refers to Order;Modification submodule includes the second modification submodule:For adjusting the whole instruction of threshold value to correspondence key element according to key element Threshold value be updated, according to the more new strategy of the threshold value after renewal.
The present invention also provides a kind of garbage files managing device, including:
Garbage files identifying device as described above, for knowing to the garbage files in terminal document system Not;
Management module, for being managed to garbage files.
Further, management module includes management submodule:
For directly garbage files to be deleted;
Or confirmed for garbage files to be presented into user, the first confirmation instruction according to user is to rubbish Rubbish file is managed;
Or confirmed for garbage files and garbage files determination strategy to be presented into user, according to user Second confirmation instruction garbage files are managed.
The present invention also provides a kind of terminal, including:
Garbage files identifying device as described above and garbage files managing device;Garbage files identifying device is used Garbage files in terminal document system are identified;Garbage files managing device is used for garbage files The garbage files that identifying device is identified are managed.
Beneficial effect:
Using the recognition methods of garbage files of the invention, the mesh of the storage object in file system can be utilized Mark attribute data, the key element collection comprising at least one key element is set according to these data, and according to these key elements Threshold value be provided with the garbage files determination strategy that can judge garbage files, then according in file system store The current realistic objective attribute data of object, analysis obtains the actual value of key element, according to storage object key element collection In each key element actual value and garbage files determination strategy judge whether the storage object is garbage files, use The recognition methods that the present invention is provided, with judgment accuracy higher, and because the rubbish text of this method use Part determination strategy is set according to the key element set by the objective attribute target attribute data of actual storage object, can be with The need for adapting to difference according to the difference of the key element chosen, so this method has good adaptability.
Further, in order to improve the accuracy of judgement, and existing resource is better profited from, the present invention is being deposited Operational attribute data are have selected in the objective attribute target attribute data for storing up object and/or size attribute data are used as setting The significant data source of key element, and it is respectively provided with operational attribute key element and size attribute according to the two data Key element.
Further, it is contemplated that requirement of the different users to garbage files determination strategy may be different, are Adapt to be actually needed and improves judgment accuracy, the present invention can also refer to according to the strategy modification of user's transmission Order goes to change garbage files determination strategy.
Brief description of the drawings
Fig. 1 is the garbage files recognition methods schematic flow sheet that the embodiment of the present invention one is provided;
Fig. 2 is the garbage files management method schematic flow sheet that the embodiment of the present invention two is provided;
Fig. 3 is the terminal structure schematic diagram that the embodiment of the present invention three is provided;
Fig. 4 is the method for cleaning schematic flow sheet of the garbage files that the embodiment of the present invention four is provided.
Specific embodiment
During the use of terminal, system or various applications can produce corresponding file or folder, These file or folders have oneself corresponding attribute data.Runtime or application, corresponding file or The attribute of file has, such as the operation such as read-write, modification, the data and file related to these operations are corresponding Other attribute datas can all be recorded by terminal, embodiments herein is namely based on to these original numbers According to deep excavation identify garbage files.
The present invention is described in further detail below by specific embodiment combination accompanying drawing.
Embodiment one:
The present embodiment provides one kind can more accurately be judged and clear up garbage files, improve judging efficiency, be reduced The cleaning garbage files method of judgement time, the method refers to Fig. 1, including:
S101:The key element collection comprising at least one key element is obtained, the threshold value according at least one key element sets rubbish Rubbish file determination strategy;;Key element is set according to the objective attribute target attribute data of storage object in file system;
S102:The storage is obtained according to the realistic objective attribute data analysis that storage object in file system is current Object element concentrates the actual value of each key element;
S103:Correspondence in the actual value and garbage files determination strategy of each key element is concentrated according to storage object key element The threshold value match condition of key element, judges whether the storage object is garbage files;
In the present embodiment, the storage object in file system in S101 includes file or folder, certainly Including storing data in the terminal otherwise, be system or it is all kinds of apply during use by Gradually produce, the time is more long, the quantity and size of file can all increase, the speed of terminal operating can be produced Influence, in order to recover the service speed of terminal, improves the experience of user, it is necessary to be carried out to file or folder Cleaning.
In order to improve the judgment accuracy of garbage object, also for making full use of existing data, the present embodiment The rubbish of storage object is analyzed based on the data target of each storage object each side in file system Degree, the data target of certain storage object is varied, the judgement of not all data all to us It is helpful, so based on the present embodiment have chosen the objective attribute target attribute data of storage object.
The objective attribute target attribute data that the present embodiment is chosen are included but is not limited to:Operational attribute data, size attribute number According to dispaly state attribute data, peration data include the various data relevant with storage object operation, such as, Data, the Yi Jiyu of the time correlation of the data related to storage object action type and storage object operation The data of storage object operating time interval correlation;Size attribute data include the size phase with storage object The data of pass, such as storage object the size of place storage region, the size of storage object region, The increment of size of the storage object within certain time, if storage object is file, size category here Property data also including file subfile quantity;Dispaly state attribute data is various aobvious with storage object Show the relevant data of state, such as the founder of storage object, the form (being file/folder) of storage object, Whether storage object readable, whether storage object writeable, storage object be display/hide etc..
Corresponding, the key element set according to objective attribute target attribute data in S101 includes:Set according to operational attribute data The operational attribute key element put, the size attribute key element set according to size attribute data, belonged to according to dispaly state Property data set status display key element, but three kinds of above-mentioned key elements are not to be taken separated from out Judge garbage files for formulating garbage files determination strategy.
Key element formulates rubbish based on preferably choosing above-mentioned operational attribute key element and/or size attribute key element Rubbish strategy, when storage object key element collection includes operational attribute key element, match condition includes:Operational attribute key element Be whether actual value matches with the threshold value of the operational attribute key element;
When storage object key element collection includes size attribute key element, match condition includes:Size attribute key element is Whether actual value matches with the threshold value of the size attribute key element.
The operational attribute key element of the present embodiment is including action type key element, operating time key element, between the operating time Every key element, above-mentioned action type key element includes all operational motions of the file for monitoring, such as deletes, wound Build, it is mobile, replicate, open, change, readable write permission modification etc.;It is right that operating time pressure key element includes Should be in the time of above-mentioned various operations, such as the time of establishment file, the time for changing file etc.;Operation Time interval key element is considered as the time period being derived according to the operating time, such as last modification time distance Duration interval that current duration is spaced, the time gap of last time opening file is current etc., will according to above-mentioned , it is necessary to for corresponding key element sets threshold value, the threshold value of key element refers to choosing when element sets rubbish Rule of judgment Key element meet condition, threshold value here can be not only certain specific numerical value, can also be expression certain Plant the information of particular state.
Just garbage files determination strategy can be set according to the threshold value of key element after key element has been chosen, chosen Key element be the above-mentioned time, then threshold value is exactly the numerical value relevant with the time, and the key element chosen is operation class Type, threshold value is exactly certain specific action type, and rubbish strategy is determined according to above-mentioned operational attribute key element Including following several ways:
First, action type key element, garbage files determination strategy is chosen to could be arranged to, when detecting to certain The type of the operation that file is carried out is when deletion, this document to be judged into garbage files.
2nd, operating time key element, garbage files determination strategy is chosen to could be arranged to certain operation of certain file Time before certain time point, judges that this document is garbage files, and specifically setting to be, file Modification time is complete before August 8 in 2015, judges that this document is garbage files.What above-mentioned matching referred to It is, if the actual modification time of this document is August 6 in 2015, the reality of the modification time of this document Threshold value of the actual value just with the modification time in garbage files determination strategy is matched.
3rd, operating time spacing elements are chosen, garbage files determination strategy can be defined to certain of certain file The current maximum time interval of operating distance, more than the interval, judges that this document is garbage files, specifically Setting can be that the current duration of the time gap of file last visit judged that this document was rubbish more than 10 days Rubbish file, it is also possible to set within tool current time one week, the Effective activity time of the owner of file is less than 30s, judges that this document is garbage files..
4th, at least two in selection operation Type elements, operating time key element, operating time spacing elements Key element is gone to set rubbish judgement and is processed, and such as the modification time of file is complete before August 8 in 2015 and file The current duration of the time gap of last visit judged that this document was garbage files more than 10 days.
The size attribute key element of the present embodiment includes the current size key element of storage object, storage object size variation Size key element of memory block etc., the current size key element of above-mentioned storage object where amount key element and storage object Size including storage object, if storage object is file, what the key element referred to is exactly the entirety of file Size;Storage object size variation amount key element includes the amount of size variation of the storage object within certain time, Can with or increment or residual quantity;Memory block where the size key element of storage area includes storage object where storage object Total size in domain, the threshold value that correspondence is set with size key element is the variable quantity satisfaction of certain size or size Value conditions.
In above-mentioned several size attribute key elements, only the size key element of memory block according to where storage object is set Rubbish Rule of judgment generally require and the rubbish Rule of judgment combination formulated according to other key elements judges rubbish File, the rubbish strategy of determining according to above-mentioned size attribute key element includes following several ways:
First, choosing the current size key element of storage object, garbage files determination strategy can be:Single file is tired out Meter write-in size more than 1G, or file overall size more than 800M etc..
2nd, storage object size variation amount key element, garbage files determination strategy could be arranged to:Certain time Memory storage object size variable quantity exceedes certain value, is judged to garbage files, can be specifically, works as in evidence In 7 days preceding time, the increment of certain file judges that this document may be garbage files more than 300M.Above-mentioned If matching refers to this document in the actual size increment 200M in current time 7 days, this article The actual value of the storage object size variation amount key element of part is just big with storage object in garbage files determination strategy The threshold value of small variable quantity key element is unmatched.
3rd, choose in the current size key element of storage object and storage object size variation amount key element any one or it is complete Choosing, garbage files determination strategy is set with the size factor combination of storage object place storage area,
If the accumulative write-in size of single file is more than 1G, and file place subregion remaining space is less than 10%, and This document size accounts for top 10 in the subregion, judges that this document is garbage files;
Or within current 7 weeks, the increment of certain file is more than subregion remaining space where 300M, and file not Foot 10%, and this document size accounts for top 10 in the subregion, judges that this document is garbage files;
Or within current 7 weeks, the increment of certain file surpasses more than 300M, and the accumulative write-in size of this document Subregion remaining space is less than 10% where crossing 1G, and this document, and this document size accounts for top 10 in the subregion, Judge that this document is garbage files.
When the storage object key element collection of the present embodiment includes status display key element, match condition includes:Display shape Whether the actual value of state key element matches with the threshold value of the dispaly state key element.
The status display key element of the present embodiment includes form key element, represents that storage object is file or file; Attribute-readable key element, represents whether file is readable;Writeable attribute key element, represents whether file is writeable;It is original Person's key element, represents the founder of storage object;Display/hide key element, represents that storage object is to hide or aobvious Show state.
Rubbish strategy of determining according to above-mentioned status display key element includes following several ways:
First, form key element is only selected, strategy setting is that storage object is file or storage object is file.
2nd, attribute-readable key element or writeable attribute key element are only selected, strategy setting is that storage object is readable or deposits Storage object is writeable, and file is probably garbage files.
3rd, founder's key element is only selected, strategy setting is that the founder of storage object is easily to produce rubbish Using or system, such as file founder is that QQ, wechat, microblogging are also easy to produce the application of rubbish.Above-mentioned If being QQ with the founder for referring to this document, the actual value of founder's key element of this document is just and rubbish The threshold value of the founder's key element in rubbish file determination strategy is matching.
4th, only choosing shows/hiding key element, and strategy setting is that file or folder is hidden file, then will File or folder is judged to garbage files.
5th, the above-mentioned garbage files determination strategy set according to above-mentioned four kinds of status display key elements can be selected Any combination obtains new garbage files determination strategy.
It is above-mentioned according to three major types key element:Operational attribute key element, size attribute key element, status display key element, system Fixed garbage files determination strategy can be optionally combined into new garbage files determination strategy, but should be noted It is that the garbage files determination strategy formulated according to status display key element is wanted and according to the rubbish of other key elements formulation File determination strategy is used together.
The garbage files determination strategy formulated according to operational attribute key element and size attribute key element can be according to each From the set of rubbish Rule of judgment that sets of sub- key element, for example, the access time of certain file is away from present More than more than 7 days, and the accumulative write-in size of this document met or exceeded this document in more than 1GB, and a week Time of owner's (application or system) effectively activity be less than or equal to 30s, judge that this document is garbage files.
Can be according to the garbage files determination strategy that operational attribute key element and status display key element are formulated, certain text The operating time of part last time, the access time of file alreadyd exceed 7 away from present before October No. 30 More than it, and file is non-hidden file, judges that this document is garbage files.
Can be according to the garbage files determination strategy that three big key elements are specified:During the operation of certain file last time Between before October No. 30;And the size of file is more than 1G;And the remaining insufficient space of subregion where file 10%;And increment of the file in one week is more than 800M.
Certainly, in addition to above-mentioned attribute data, the present embodiment key element can also be available for data to dig according to other The data of pick are set.
If garbage files determination strategy is set by above-mentioned mode, the key element more than one chosen, if The garbage files determination strategy put is more than one, may be not every to want for certain storage object The actual value of element all matches the threshold value of the key element in garbage files determination strategy, but can only match a part, One judgment rule so at this time can be again set, garbage files are judged according to actual match condition, The judgment rule can be that storage object key element is concentrated with the actual value of key element and garbage files determination strategy The key element of the threshold value matching of correspondence key element, certainly, must include operational attribute mentioned above in these key elements At least one in key element and size attribute key element, and the key element of matching number more than it is default certain each and every one Numerical value, just judges that the storage object is garbage files.The key element for example chosen be operating time spacing elements, The current size key element of operating time key element, storage object, dispaly state key element, are set according to these key elements Garbage files determination strategy is:1st, the current duration of the time gap of file last visit is more than 10 days, 2, The size of file more than 1G, 3, the founder of storage object be application or the system for easily producing rubbish, such as text Part founder is the application that QQ, wechat, microblogging etc. are also easy to produce rubbish, 4, the modification time of file it is complete 2015 Year August 8 is before.Judgment rule could be arranged to, and the actual value of the key element that storage object key element is concentrated is extremely The threshold value of few key element with strategy 1 is matched, or storage object key element concentration key element actual value at least with The threshold value matching of the key element in strategy 2, on this basis, the key element of the matching that storage object key element is concentrated Number judges that storage object is garbage files more than 2.
The garbage files determination strategy set in the present embodiment S101 can be set in advance in terminal, institute Can also be the default garbage files determination strategy of direct access with S101.
The attribute data of the storage object on different terminals is not quite similar, so different users is to garbage files The requirement of determination strategy might have difference.In order to meet the demand of user and improve the present invention in different terminals Adaptability, it is preferable that the treatment modification instruction of user's transmission can be received in this implementation, according to using the plan Slightly modification instruction is modified to garbage files determination strategy.
Preferably, strategy modification instruction can be adjusted for the key element to garbage files determination strategy Key element adjust instruction or adjusting thresholds are instructed;, it is necessary to be concentrated to key element when instruction is key element adjust instruction Key element is updated, and according to the key element collection more new strategy after renewal, the updated core elements that key element is concentrated is included, The key element that key element is concentrated is deleted or increased, can correspondingly be deleted in strategy or be increased corresponding garbage files and sentenced Disconnected strategy, and when the current objective attribute target attribute data of storage object are obtained, the objective attribute target attribute data of acquisition Also there can be corresponding deletion or increase with the increase of key element or deletion.For example concentrated when key element and delete storage The size key element of storage area where object, the garbage files determination strategy set according to the key element in determination strategy Can be deleted, when the objective attribute target attribute data of storage object are obtained, will not also obtain storage where storage object The size data in area.
Strategy modification instruction can also be adjusted for the threshold value of the key element to garbage files determination strategy When adjusting thresholds are instructed, the threshold value to correspondence key element is updated according to adjusting thresholds instruction, according to renewal The instruction of the more new strategy of threshold value afterwards, such as adjusting thresholds is indicated " size of file is more than 1G " this strategy Threshold modifying be 900M, then update after garbage files determination strategy be " size of file is more than 900M ".
Using the garbage files recognition methods of the present embodiment, attribute data original in terminal is taken full advantage of, And the key element collection comprising at least one key element is provided with according to these attribute datas, and set according to these key elements Garbage files determination strategies, then on the basis of the current actual attribute data of storage object are obtained, obtain To the actual value of key element, further according to the threshold value matching feelings of correspondence key element in actual value and garbage files determination strategy Condition, judges whether storage object is garbage files, and such determination methods have good adaptability, and compared with Judgment accuracy high.
Embodiment two:
A kind of waste management method is present embodiments provided, the garbage files to identifying are managed, referring to Fig. 2, including:
S201:Garbage files are identified by the garbage files recognition methods shown in embodiment one;
S202:Garbage files are managed.
After garbage files are identified, it is necessary to which garbage files are processed, but can in garbage files The file of user itself needs, the video or photo not read for a long time for example, although be judged can be had Garbage files, but being in practice likely to be user needs what is retained, if cleaned up, can cause user data Loss.In order to avoid such case, it is preferable that the present embodiment has provided the user the difference of garbage files Way to manage is selected for user:
The first, directly deletes garbage files;
Second, garbage files are presented to user and are confirmed, the first confirmation instruction according to user is to rubbish Rubbish file is managed, if first confirms that instruction, to delete file, directly deletes the garbage files, such as Really first confirms instruction not delete file, then it is non-junk file to change the original sentence to this document.
The third, garbage files and garbage files determination strategy corresponding with the garbage files are presented into user is carried out Confirm, the second confirmation instruction according to user is managed to garbage files, if second confirms instruction to delete Except file, then the garbage files are directly deleted, if second confirms instruction not delete file, by this article It is non-junk file that part is changed the original sentence to.
If user selects the management method to garbage files in above-mentioned second or the 3rd, then in rubbish text After part identifying device, garbage files first can be labeled as file for clearance, after meeting certain rule again Garbage files to identifying are processed, in addition to confirmation of the rule except receiving above-mentioned user's transmission is instructed, Other conditions are can also be, for example, presets the deletion cycle, it is stipulated that terminal is deleted according to the default deletion cycle The file scanned within the deletion cycle, or be when storage object region is remaining by the rule setting When space is less than certain threshold value, garbage files in deletion region etc..
The present embodiment has provided the user different way to manages to manage the garbage files for identifying, can meet The different needs of user, lift user's use feeling, especially for user is presented garbage files and garbage files are sentenced Disconnected strategy, allows user to get information about garbage files and its decision plan, helps which user finally determines A little files need to delete.
Embodiment three:
The present embodiment provides a kind of terminal 3, and the terminal refers to Fig. 3, including:
Garbage files identifying device 31, for being identified to the garbage files in terminal document system;
Garbage files managing device 32, is carried out for the garbage files that the identifying device to garbage files is identified Management.
Garbage files identifying device 31 and garbage files managing device 32 are carried out in detail respectively with reference to Fig. 3 Thin explanation.
Garbage files identifying device 31, referring to Fig. 3, including:
311:Strategy setting module, for obtaining the key element collection comprising at least one key element, according at least one The threshold value of key element sets garbage files determination strategy;Key element is the target category according to storage object in file system Property data set;
312:Analysis module, for according to the current realistic objective attribute data of storage object in file system point Analysis obtains the actual value that the storage object key element concentrates each key element;
313:Judge module, actual value and garbage files for concentrating each key element according to storage object key element are sentenced The threshold value match condition of correspondence key element, judges whether the storage object is garbage files in disconnected strategy.
Preferably, the storage object in the present embodiment is file or folder.
What the present embodiment was utilized is the data target of each side of the storage object in file system, these data It is probably that storage object is recorded when being created, it is also possible to the correlation recorded in use Information, these information are very numerous and diverse, storage have chosen in order to better profit from the information, in the present embodiment right The objective attribute target attribute data of elephant are used.
Preferably, the objective attribute target attribute data that the strategy setting module 311 of the present embodiment is obtained include operational attribute Data and/or size attribute data, key element include according to operational attribute data set operational attribute key element and/ Or the size attribute key element set according to size attribute data.
Preferably, the objective attribute target attribute data that the present embodiment strategy setting module 311 is obtained also include dispaly state Attribute data, corresponding, key element also includes the status display key element set according to dispaly state attribute data.
The particular content of above-mentioned key element, and the method for garbage files determination strategy is set referring to this hair according to key element Bright embodiment one.
The attribute data of the storage object on different terminals is not quite similar, so different users is to garbage files The requirement of determination strategy might have difference.In order to meet the demand of user and improve the present invention in different terminals Adaptability, it is preferable that the strategy setting module 311 of this implementation also include receiver module 3111, for connecing Receive the strategy modification instruction that user sends, and modification submodule 3112:For being instructed to rubbish according to strategy modification Rubbish file determination strategy is modified.
Preferably, strategy modification instruction can be key element adjust instruction or adjusting thresholds instruction;Receiver module 3111 include the first receiving submodule 31111, and for receiving key element adjust instruction, the key element adjust instruction is For the strategy modification instruction that the key element to garbage files determination strategy is adjusted.Correspondingly, submodule is changed Block 3112 includes the first modification submodule 31121:For the key element concentrated to key element according to key element adjust instruction It is updated, according to the key element collection more new strategy after renewal;Above-mentioned first modification submodule 31121 is to key element The updated core elements of concentration include, delete or increase the key element of key element concentration, can correspondingly be deleted in strategy or Increase corresponding garbage files determination strategy, correspondingly, strategy setting module 311 is obtaining storage object During current objective attribute target attribute data, the objective attribute target attribute data of acquisition can also have with the increase of key element or deletion It is corresponding to delete or increase.For example when key element concentrates the size key element for deleting storage area where storage object, judge The garbage files determination strategy set according to the key element in strategy can also be deleted, and obtain the mesh of storage object During mark attribute data, the size data of memory block where storage object will not be also obtained.
Or receiver module 3111 includes the second receiving submodule 31112, for receiving key element adjust instruction, Key element adjusting thresholds instruction is the strategy being adjusted for the threshold value of the key element to garbage files determination strategy Modification instruction.Correspondingly, modification submodule 3112 includes the second modification submodule 31122:Will for basis Plain adjust instruction is updated to the key element that key element is concentrated, according to the key element collection more new strategy after renewal;For example Second modification submodule 31122 according to will the threshold modifying of " size of file is more than 1G " this strategy be 900M Threshold modifying instruction, former garbage files determination strategy is updated to " size of file is more than 900M ".
Garbage files identifying device 32, referring to Fig. 3, including:
Rubbish identifying device 31, for being identified to the garbage files in terminal document system;
Management module 321, for being managed to garbage files.
Preferably, for the method for passing through different management garbage files to user, the management mould of the present embodiment Block 321, also including management submodule 3211:
For directly garbage files to be deleted;
Or confirmed for garbage files to be presented into user, the first confirmation instruction according to user is to rubbish File is managed, if first confirms that instruction, to delete file, directly deletes the garbage files, if First confirms instruction not delete file, then it is non-junk file to change the original sentence to this document.
Or for garbage files and garbage files determination strategy corresponding with the garbage files to be presented to user and entered Row confirms that the second confirmation instruction according to user is managed to garbage files, if the second confirmation instruction is File is deleted, then directly deletes the garbage files, if second confirms that instruction, should not delete file It is non-junk file that file is changed the original sentence to.
Using the terminal of the present embodiment, the key element set according to the attribute data of storage object can be got, so The threshold value according to these key elements sets garbage files determination strategy afterwards, according to the current category of the storage object for obtaining Property data analysis has obtained the actual value of the corresponding key element of storage object, is sentenced according to the actual value and garbage files The threshold value match condition of correspondence key element, judges whether storage object is garbage files in disconnected strategy, then selects again Select management method to be managed garbage files, the terminal of the present embodiment can fast and accurately identify rubbish text Part, the way to manage then chosen according to user is managed to garbage files, makes judgment accuracy and user Use feeling is obtained for lifting.
Example IV:
The present embodiment as a example by judging whether a certain file be garbage files, to the method for cleaning of garbage files A detailed description is done, in the present embodiment, garbage files determination strategy is set in advance in terminal, But Fig. 4 should be referred to, idiographic flow is as follows:
S401:When certain file is accessed, the related data of this document is recorded;
These data include but is not limited to the read/write type of file, the read/write time, size are read and write, after read-write Size variation of this document etc..
S402:Key element collection is obtained, the key element that the key element is concentrated is set according to the related data of the file of record 's;
S403:Obtain garbage files determination strategy;
S404:Obtain the current actual attribute data of this document;
S405:Actual attribute data analysis based on file obtains the actual value of key element;
S406:Actual value according to garbage files determination strategy and key element judges whether this document is garbage files, If it is judged that being yes, into S307, if it is judged that being no, S401 is returned to;
S407:Garbage files and corresponding garbage files determination strategy are presented to user;
S408:The instruction of user is received, if the instruction of user is to delete garbage files, into S409, such as The instruction of fruit user is not delete this document, into S410;
S409:Delete the garbage files that user chooses;
S410:It is non-junk file that the garbage files are changed the original sentence to.
Obviously, those skilled in the art should be understood that each module or each step of the invention described above can be used General computing device realizes that they can be concentrated on single computing device, or be distributed in multiple On the network that computing device is constituted, alternatively, they can with computing device can perform program code come Realize, it is thus possible to by calculating dress in being stored in storage medium (ROM/RAM, magnetic disc, CD) Put to perform, and in some cases, can be shown or described to perform different from order herein Step, or they are fabricated to each integrated circuit modules respectively, or by the multiple modules in them or Step is fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware Combined with software.
Above content is to combine specific embodiment further description made for the present invention, it is impossible to recognized Fixed specific implementation of the invention is confined to these explanations.For the ordinary skill of the technical field of the invention For personnel, without departing from the inventive concept of the premise, some simple deduction or replace can also be made, Protection scope of the present invention should be all considered as belonging to.

Claims (19)

1. a kind of garbage files recognition methods, it is characterised in that including:
The key element collection comprising at least one key element is obtained, the threshold value of key element sets rubbish according at least one File determination strategy;The key element is set according to the objective attribute target attribute data of storage object in file system;
The storage is obtained according to the current realistic objective attribute data analysis of storage object in the file system right The actual value of each key element is concentrated as key element;
According to right in the actual value and the garbage files determination strategy of the storage object key element each key element of concentration The threshold value match condition of key element is answered, judges whether the storage object is garbage files.
2. garbage files recognition methods as claimed in claim 1, it is characterised in that the storage is right As including:File and/or file.
3. garbage files recognition methods as claimed in claim 1, it is characterised in that the target category Property data include operational attribute data and/or size attribute data, the key element include according to the operational attribute Operational attribute key element and/or the size attribute key element according to size attribute data setting that data are set.
4. garbage files recognition methods as claimed in claim 3, it is characterised in that the storage is right When including operational attribute key element as key element collection, the match condition includes:The operational attribute key element is real Whether actual value matches with the threshold value of the operational attribute key element;
When the storage object key element collection includes size attribute key element, the match condition includes:The size Attribute key element is whether actual value matches with the threshold value of the size attribute key element.
5. garbage files recognition methods as claimed in claim 3, it is characterised in that the target category Property data also include dispaly state attribute data, the key element also include according to the dispaly state attribute data The status display key element of setting.
6. garbage files recognition methods as claimed in claim 5, it is characterised in that the storage is right When including status display key element as key element collection, the match condition includes:The reality of the dispaly state key element Whether value matches with the threshold value of the dispaly state key element.
7. garbage files recognition methods as claimed in claim 3, it is characterised in that the target category Property data include operational attribute data when, the operational attribute data include action type, operating time, behaviour Make at least one in time interval, the operational attribute key element includes that action type key element, operating time will At least one in element and operating time spacing elements;
When the objective attribute target attribute data include size attribute data, the size attribute data include storage object The current size variation amount of size, storage object in preset time period and memory block where storage object At least one in space size;The size attribute key element includes the current size key element of storage object, storage At least one in the space size key element of storage area where object size variable quantity key element and storage object.
8. the garbage files recognition methods as described in claim any one of 1-7, it is characterised in that also Including:The strategy modification instruction that user sends is received, according to strategy modification instruction to the garbage files Determination strategy is modified.
9. garbage files recognition methods as claimed in claim 8, it is characterised in that the strategy is repaiied It is the key element adjust instruction being adjusted for the key element to garbage files determination strategy to change instruction;It is described to rubbish Rubbish file determination strategy modify including:According to the key element that the key element adjust instruction is concentrated to the key element It is updated, garbage files determination strategy is updated according to the key element collection after renewal;
Or, strategy modification instruction is to be adjusted for the threshold value of the key element to garbage files determination strategy Key element adjusting thresholds instruction;It is described garbage files determination strategy is modified including:According to the key element The whole instruction of threshold value is adjusted to be updated the threshold value of correspondence key element, updating garbage files according to the threshold value after renewal sentences Disconnected strategy.
10. a kind of garbage files management method, it is characterised in that including:
Garbage files are identified by the recognition methods of the garbage files as described in claim any one of 1-9;
The garbage files are managed.
11. garbage files management methods as claimed in claim 10, it is characterised in that described to rubbish File be managed including:
Directly the garbage files are deleted;
Or the garbage files are presented to user are confirmed, the first confirmation instruction according to user is to institute Garbage files are stated to be managed;
Or the garbage files and the garbage files determination strategy are presented to user and are confirmed, according to The second confirmation instruction of user is managed to the garbage files.
A kind of 12. garbage files identifying devices, it is characterised in that including:
Strategy setting module, for obtaining the key element collection comprising at least one key element, according at least one The threshold value of key element sets garbage files determination strategy;The key element is the mesh according to storage object in file system Mark attribute data is set;
Analysis module, for according to the current realistic objective attribute data of storage object in the file system point Analysis obtains the actual value that the storage object key element concentrates each key element;
Judge module, actual value and the rubbish text for concentrating each key element according to the storage object key element The threshold value match condition of correspondence key element, judges whether the storage object is garbage files in part determination strategy.
13. garbage files identifying devices as claimed in claim 12, it is characterised in that the target category Property data include operational attribute data and/or size attribute data, the key element include according to the operational attribute Operational attribute key element and/or the size attribute key element according to size attribute data setting that data are set.
14. garbage files identifying devices as claimed in claim 13, it is characterised in that the target category Property data also include dispaly state attribute data, the key element also include according to the dispaly state attribute data The status display key element of setting.
The 15. garbage files identifying device as described in claim any one of 12-14, it is characterised in that The strategy setting module also includes:
Receiver module:Strategy modification instruction for receiving user's transmission;
Modification submodule:For being repaiied to the garbage files determination strategy according to strategy modification instruction Change.
16. garbage files identifying devices as claimed in claim 15, it is characterised in that the reception mould Block includes the first receiving submodule, and for receiving key element adjust instruction, the key element adjust instruction is for right The strategy modification instruction that the key element of garbage files determination strategy is adjusted;The modification submodule includes first Modification submodule:For being updated to the key element that the key element is concentrated according to the key element adjust instruction, root Garbage files determination strategy is updated according to the key element collection after renewal;
Or, the receiver module includes the second receiving submodule, for receiving the instruction of key element adjusting thresholds, institute It is the strategy being adjusted for the threshold value of the key element to garbage files determination strategy to state the instruction of key element adjusting thresholds Modification instruction;Modification submodule includes the second modification submodule:For adjusting the whole instruction of threshold value according to the key element Threshold value to correspondence key element is updated, and garbage files determination strategy is updated according to the threshold value after renewal.
A kind of 17. garbage files managing devices, it is characterised in that including:
Garbage files identifying device as described in claim any one of 12-16, for terminal document system In garbage files be identified;
Management module, for being managed to the garbage files.
18. garbage files managing devices as claimed in claim 17, it is characterised in that the management mould Block includes management submodule:
For directly the garbage files to be deleted;
Or confirmed for the garbage files to be presented into user, the first confirmation instruction according to user The garbage files are managed;
Or for the garbage files and the garbage files determination strategy to be presented to user and confirmed, The second confirmation instruction according to user is managed to the garbage files.
19. a kind of terminals, it is characterised in that including the rubbish as described in claim any one of 12-16 File identification device and the garbage files managing device as described in claim 17 or 18;The garbage files Identifying device is used to be identified the garbage files in terminal document system;The garbage files managing device For being managed to the garbage files that the garbage files identifying device is identified.
CN201510807437.0A 2015-11-18 2015-11-18 Junk file identification and management method, identification device, management device and terminal Active CN106708912B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510807437.0A CN106708912B (en) 2015-11-18 2015-11-18 Junk file identification and management method, identification device, management device and terminal
PCT/CN2016/083174 WO2016197814A1 (en) 2015-11-18 2016-05-24 Junk file identification and management method, identification device, management device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510807437.0A CN106708912B (en) 2015-11-18 2015-11-18 Junk file identification and management method, identification device, management device and terminal

Publications (2)

Publication Number Publication Date
CN106708912A true CN106708912A (en) 2017-05-24
CN106708912B CN106708912B (en) 2021-06-25

Family

ID=57502878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510807437.0A Active CN106708912B (en) 2015-11-18 2015-11-18 Junk file identification and management method, identification device, management device and terminal

Country Status (2)

Country Link
CN (1) CN106708912B (en)
WO (1) WO2016197814A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021630A (en) * 2017-11-21 2018-05-11 深圳市雷鸟信息科技有限公司 Cleaning garbage files method, intelligent terminal and computer-readable recording medium
CN108255930A (en) * 2017-11-30 2018-07-06 维沃移动通信有限公司 The data clearing method and mobile terminal of a kind of mobile terminal
CN109656875A (en) * 2018-12-05 2019-04-19 广东小天才科技有限公司 Sort management method, device, terminal and the storage medium of memory space
CN111177075A (en) * 2019-12-26 2020-05-19 浪潮电子信息产业股份有限公司 Junk data identification method and system, electronic equipment and storage medium
CN112131189A (en) * 2020-09-29 2020-12-25 珠海海鸟科技有限公司 Method and device for cleaning junk files and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111263936A (en) * 2017-08-22 2020-06-09 深圳传音通讯有限公司 Electronic terminal and junk file processing method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012167392A3 (en) * 2011-06-06 2013-02-28 ETH Zürich Method and devices for secure deletion of data in a log structured file system
CN103530424A (en) * 2013-10-31 2014-01-22 北京奇虎科技有限公司 Useless file detection method and device
CN103631934A (en) * 2013-12-06 2014-03-12 贝壳网际(北京)安全技术有限公司 Garbage-file detecting method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464904A (en) * 2009-01-09 2009-06-24 华为技术有限公司 File identification method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012167392A3 (en) * 2011-06-06 2013-02-28 ETH Zürich Method and devices for secure deletion of data in a log structured file system
CN103530424A (en) * 2013-10-31 2014-01-22 北京奇虎科技有限公司 Useless file detection method and device
CN103631934A (en) * 2013-12-06 2014-03-12 贝壳网际(北京)安全技术有限公司 Garbage-file detecting method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021630A (en) * 2017-11-21 2018-05-11 深圳市雷鸟信息科技有限公司 Cleaning garbage files method, intelligent terminal and computer-readable recording medium
CN108021630B (en) * 2017-11-21 2021-03-30 深圳市雷鸟网络传媒有限公司 Junk file cleaning method, intelligent terminal and computer readable storage medium
CN108255930A (en) * 2017-11-30 2018-07-06 维沃移动通信有限公司 The data clearing method and mobile terminal of a kind of mobile terminal
CN108255930B (en) * 2017-11-30 2020-06-05 维沃移动通信有限公司 Data cleaning method of mobile terminal and mobile terminal
CN109656875A (en) * 2018-12-05 2019-04-19 广东小天才科技有限公司 Sort management method, device, terminal and the storage medium of memory space
CN111177075A (en) * 2019-12-26 2020-05-19 浪潮电子信息产业股份有限公司 Junk data identification method and system, electronic equipment and storage medium
CN111177075B (en) * 2019-12-26 2022-04-22 浪潮电子信息产业股份有限公司 Junk data identification method and system, electronic equipment and storage medium
US11687489B2 (en) 2019-12-26 2023-06-27 Inspur Electronic Information Industry Co., Ltd. Method and system for identifying garbage data, electronic device, and storage medium
CN112131189A (en) * 2020-09-29 2020-12-25 珠海海鸟科技有限公司 Method and device for cleaning junk files and electronic equipment

Also Published As

Publication number Publication date
WO2016197814A1 (en) 2016-12-15
CN106708912B (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN106708912A (en) Useless file identification method and device, useless file management method and device and terminal
CN100501732C (en) Displaying events by category based on a logarithmic timescale
CN104361018B (en) Electronic archives information reorganization method and device
CN108491266A (en) Data processing method, device based on block chain and electronic equipment
CN110334274A (en) Information-pushing method, device, computer equipment and storage medium
CN106022708A (en) Method for predicting employee resignation
CN107330464A (en) Data processing method and device
CN105335491A (en) Method and system for recommending books to users on basis of clicking behavior of users
CN102902752A (en) Method and system for monitoring log
CN103701934A (en) Resource optimal scheduling method and virtual machine host machine optimal selection method
CN108648068A (en) A kind of assessing credit risks method and system
CN105005711A (en) Method and device for acquiring statistical line loss
CN102262664A (en) Quality estimating method and quality estimating device
CN107507088A (en) Collection management method and server
CN110059190A (en) A kind of user's real-time point of view detection method based on social media content and structure
CN106095939A (en) The acquisition methods of account authority and device
CN108470071A (en) A kind of data processing method and device
CN107465739A (en) The method and device of entity channel user drainage
CN105045911A (en) Label generating method for user to mark and label generating equipment for user to mark
CN109819098A (en) Menu option display methods, server, system and computer readable storage medium
CN104915388A (en) Book tag recommendation method based on spectral clustering and crowdsourcing technology
CN104102411B (en) A kind of method for editing text and text editing apparatus
CN107239853B (en) Intelligent housekeeper system based on cloud computing and working method thereof
CN109522336A (en) A kind of decision analysis system and method based on E-government Intranet information resources
CN103617221A (en) Software recommendation method and software recommendation system

Legal Events

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