CN106557500A - Method and device for cleaning uninstalled residual file and terminal - Google Patents

Method and device for cleaning uninstalled residual file and terminal Download PDF

Info

Publication number
CN106557500A
CN106557500A CN201510626989.1A CN201510626989A CN106557500A CN 106557500 A CN106557500 A CN 106557500A CN 201510626989 A CN201510626989 A CN 201510626989A CN 106557500 A CN106557500 A CN 106557500A
Authority
CN
China
Prior art keywords
catalogue
residual
subfile
cleaning
type
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
CN201510626989.1A
Other languages
Chinese (zh)
Other versions
CN106557500B (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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201510626989.1A priority Critical patent/CN106557500B/en
Publication of CN106557500A publication Critical patent/CN106557500A/en
Application granted granted Critical
Publication of CN106557500B publication Critical patent/CN106557500B/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
    • 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/174Redundancy elimination performed by the file system

Landscapes

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

Abstract

The embodiment of the invention discloses a method, a device and a terminal for cleaning uninstalled residual files. The method comprises the steps of determining a residual directory under a system storage directory; when the residual directory meets a preset filtering condition, acquiring subfiles in the residual directory; judging whether the file type of the subfile is in a pre-established general reserved list or not; and if the judgment result is negative, adding the subfile into the list to be cleaned. By adopting the embodiment of the invention, files which do not need to be reserved under the reserved residual directory can be further cleaned, and the cleaning coverage is enlarged.

Description

A kind of method for cleaning of unloading Stub File, device and terminal
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of method for cleaning of unloading Stub File, device And terminal.
Background technology
At present, user can be in personal terminal (as smart mobile phone, panel computer, notebook computer, intelligence are worn Wear equipment etc.) on load various applications, also can to load application unload.When user unloaded it is a certain Using after, still can personal terminal storage this using catalogue in retain a large amount of unloading Stub Files, for this A little unloading Stub Files, can be processed to which according to the catalogue cleaning type of advance mark.If the catalogue quilt The cleaning type of mark is prudent cleaning, i.e., file or user profile comprising user's establishment in catalogue etc., then The file that the catalogue is included needs to be retained.However, cleaning type is only identified in catalogue, according to cleaning Type need to be uniformly processed to the All Files under catalogue, when such as catalogue cleaning type is cautiously to clear up, then All Files under the catalogue is required to be retained, and potentially includes multiple garbage files due to catalogue under the catalogue The mark of cleaning type cannot be cleaned, causes cleaning coverage rate low, and occupies terminal storage space.
The content of the invention
Embodiments provide a kind of method for cleaning of unloading Stub File, device and terminal.Using this Inventive embodiments, can further be cleared up to the file under the residual catalogue of reservation without the need for reservation, are expanded Cleaning coverage rate.
Embodiments of the invention first aspect provides a kind of method for cleaning of unloading Stub File.The method can Comprise the following steps:
Determine the residual catalogue under system storage catalogue;
When the residual catalogue meets default filtercondition, the subfile in the residual catalogue is obtained;
Judge the file type of the subfile whether in the general reservation list for pre-building;
If the result for judging is no, the subfile is added into list for clearance.
As optional embodiment, the residual catalogue under the determination system storage catalogue, including:
Obtain the first class catalogue under the system storage catalogue;
For the first class catalogue of the acquisition, judge whether the corresponding application program of the first class catalogue has unloaded Carry;
If the corresponding application program of the first class catalogue has been unloaded, it is determined that the first class catalogue and institute It is residual catalogue to state all subdirectories under first class catalogue.
It is as optional embodiment, described to judge whether the corresponding application program of the first class catalogue has unloaded, Including:
Whether there is the corresponding APMB package of the application program in judging the first class catalogue, if there is no then Determine that the corresponding application program of the first class catalogue has been unloaded;Or
Judge that application program whether there is the directory name of the first class catalogue in installing list, if there is no Then determine that the corresponding application program of the first class catalogue has been unloaded.
It is as optional embodiment, described when the residual catalogue meets default filtercondition, obtain described Subfile in residual catalogue, including:
Obtain the default cleaning type of the residual catalogue;
If the default cleaning type of the residual catalogue retains for acquiescence, the institute in the residual catalogue is obtained There is subfile;
If the default cleaning type of the residual catalogue retains for classification, in the residual catalogue is obtained Level subfile.
As optional embodiment, after the default cleaning type for obtaining the residual catalogue, also wrap Include:
If it is described residual catalogue default cleaning type for classification retain, it is determined that it is described residual catalogue in not by The cleaning type of the first level subdirectory of default cleaning type retains for acquiescence.
It is as optional embodiment, after the default cleaning type for obtaining the residual catalogue, described Method also includes:
If the default cleaning type of the residual catalogue is acquiescence cleaning, the residual catalogue is added and treats clear Reason list;
If it is described residual catalogue default cleaning type for classification cleaning, it is determined that it is described residual catalogue in not by The cleaning type of the first level subdirectory of default cleaning type is acquiescence cleaning;
If the default cleaning type of the residual catalogue is not to clear up, storage is performed to the residual catalogue Operation.
Used as optional embodiment, methods described also includes:
Judge that whether the file type of the subfile is pre-building according to the routing information of the subfile In specific reservation list corresponding with the routing information;
If the result for judging is no, the subfile is added into list for clearance.
Used as optional embodiment, methods described also includes:
Judge that whether the file type of the subfile is pre-building according to the routing information of the subfile In delete list corresponding with the routing information;
If the result for judging is yes, the subfile is added into list for clearance.
As optional embodiment, whether pre-building in the file type for judging the subfile Before in general reservation list, methods described also includes:
Receive for the general selection instruction for retaining list;
Select the file type of an at least class of the selection instruction instruction;
Wherein, whether the file type for judging the subfile is in the general reservation list for pre-building Including:
Judge the file type of a subfile whether at least class in the general reservation list of the selection In file type.
As optional embodiment, whether pre-building in the file type for judging the subfile Before in general reservation list, methods described also includes:
Receive for the general modification instruction for retaining list;
The general reservation list is modified according to the modification instruction.
Embodiment of the present invention second aspect provides a kind of cleaning plant of unloading Stub File.The device includes:
Determining module, for determining the residual catalogue under system storage catalogue;
Acquisition module, for when the residual catalogue meets default filtercondition, obtaining the residual catalogue In subfile;
General judge module, for judging the file type of the subfile whether in the general guarantor for pre-building In staying list;
Add module, the result for judging when the judge module are no, then add the subfile and treat Cleaning list.
Used as optional embodiment, the determining module includes:
Catalogue acquiring unit, for obtaining the first class catalogue under the system storage catalogue;
Unloading judging unit, for the first class catalogue for the acquisition, judges that the first class catalogue is corresponding Whether application program has unloaded;
Catalogue determining unit, for judging the corresponding application of the first class catalogue when the unloading judging unit Program has been unloaded, it is determined that all subdirectories under the first class catalogue and the first class catalogue are residual Catalogue.
Used as optional embodiment, the unloading judging unit is additionally operable to:
Whether there is the corresponding APMB package of the application program in judging the first class catalogue, if there is no then Determine that the corresponding application program of the first class catalogue has been unloaded;Or
Judge that application program whether there is the directory name of the first class catalogue in installing list, if there is no Then determine that the corresponding application program of the first class catalogue has been unloaded.
Used as optional embodiment, the acquisition module includes:
Type acquiring unit, for obtaining the default cleaning type of the residual catalogue;
File obtaining unit, if the default cleaning type for the residual catalogue retains for acquiescence, obtains All subfiles in the residual catalogue;
File obtaining unit, if the default cleaning type for being additionally operable to the residual catalogue retains for classification, obtains Take the one-level subfile in the residual catalogue.
Used as optional embodiment, the acquisition module also includes:
Type determining units, if the default cleaning type for the residual catalogue retains for classification, it is determined that The cleaning type that the first level subdirectory of cleaning type is not predetermined in the residual catalogue retains for acquiescence.
As optional embodiment, if the add module is additionally operable to the default cleaning type of the residual catalogue For acquiescence cleaning, then the residual catalogue is added into list for clearance;
If it is classification cleaning that the type determining units are additionally operable to the default cleaning type of the residual catalogue, The cleaning type that the first level subdirectory of cleaning type is not predetermined in determining the residual catalogue is acquiescence cleaning;
Described device also includes:
Memory module, if the default cleaning type for the residual catalogue is not cleaning, to described residual Catalogue is stayed to perform storage operation.
Used as optional embodiment, described device also includes:
Particular decision module, for the files classes of the subfile are judged according to the routing information of the subfile Whether type is in specific reservation list corresponding with the routing information is pre-build;
Wherein, it is no that the add module is additionally operable to when the result that the particular decision module judges, then by institute State subfile and add list for clearance.
Used as optional embodiment, described device also includes:
Judge module is deleted, for the files classes of the subfile are judged according to the routing information of the subfile Whether type is in delete list corresponding with the routing information is pre-build;
Wherein, the add module is additionally operable to when the result that the deletion judge module judges is yes, then by institute State subfile and add list for clearance.
Used as optional embodiment, described device also includes:
Select receiver module, for the subfile is judged in the general judge module file type whether Before in the general reservation list for pre-building, receive for the general selection instruction for retaining list;
Selecting module, for selecting the file type of an at least class of the selection instruction instruction;
Wherein, the general judge module is additionally operable to:
Judge the file type of a subfile whether at least class in the general reservation list of the selection In file type.
Used as optional embodiment, described device also includes:
Command reception module, for receiving for the general modification instruction for retaining list;
Modified module, for being modified to the general reservation list according to the modification instruction.
The embodiment of the present invention third aspect provides a kind of terminal.The terminal include user interface, memorizer and Processor, wherein, the memory storage batch processing code, the processor call the memorizer to deposit The program code of storage is used to perform following operation:
Determine the residual catalogue under system storage catalogue;
When the residual catalogue meets default filtercondition, the subfile in the residual catalogue is obtained;
Judge the file type of the subfile whether in the general reservation list for pre-building;
If the result for judging is no, the subfile is added into list for clearance.
In the embodiment of the present invention, by determining the residual catalogue under system storage catalogue, can enter to remaining catalogue Further scanning judges row, when residual catalogue meets default filtercondition, then can obtain in residual catalogue Subfile, by judging that the file type of subfile, can be right whether in the general reservation list for pre-building File under the residual catalogue of reservation without the need for retaining further is cleared up, and expands cleaning coverage rate.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be to needed for embodiment description Accompanying drawing to be used is briefly described, it should be apparent that, drawings in the following description are some of the present invention Embodiment, for those of ordinary skill in the art, without having to pay creative labor, also Other accompanying drawings can be obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart of an embodiment of the method for cleaning of the unloading Stub File in the present invention;
Fig. 2 is a kind of flow chart of another embodiment of the method for cleaning of the unloading Stub File in the present invention;
Fig. 3 is a kind of structural representation of an embodiment of the cleaning plant of the unloading Stub File in the present invention;
Fig. 4 is a kind of structural representation of another embodiment of the cleaning plant of the unloading Stub File in the present invention Figure;
Fig. 5 is a kind of general reservation list in the embodiment of the present invention;
Fig. 6 is a kind of structural representation of an embodiment of the terminal in the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu, it is fully described by, it is clear that described embodiment is a part of embodiment of the invention, rather than all Embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative labor The every other embodiment obtained under the premise of dynamic, belongs to the scope of protection of the invention.
Below with reference to the accompanying drawings embodiments of the invention are described.Wherein, described in the embodiment of the present invention Terminal may include mobile phone, panel computer, notebook computer etc. can run application program and can to residual Software is scanned all terminals of cleaning.
Referring to Fig. 1, it is a kind of flow process of an embodiment of the method for cleaning of unloading Stub File in the present invention Figure.Wherein, the method can be realized by corresponding device or terminal.The method may include following steps.
Step S101, determines the residual catalogue under system storage catalogue.
In one embodiment, after a certain application program is unloaded, it is thus necessary to determine that system storage mesh in terminal First class catalogue under record is residual catalogue.Specifically, the one-level under storage catalogue can be determined in several ways Catalogue is residual catalogue.Whether there is the unloaded corresponding Bao Wen of application program in such as determining the first class catalogue Part, or in determining the application program installation list of terminal, whether there is the directory name of the first class catalogue;If really There is no the mesh of the first class catalogue in there is no APMB package or application program installation list in making the first class catalogue Record title, then can determine that the first class catalogue for residual catalogue.
Step S102, when the residual catalogue meets default filtercondition, obtains in the residual catalogue Subfile.
In one embodiment, after it is determined that the first class catalogue under system storage is residual catalogue, can be further Judge whether the residual catalogue for determining meets default filtercondition, if meeting default filtercondition, you can obtain Subfile in residual catalogue, if being unsatisfactory for default filtercondition, need not be according to following steps to remaining mesh File in record is cleared up.Specifically, judge whether residual catalogue meets default filtercondition and can pass through to sentence The cleaning type of disconnected residual catalogue.
Wherein remain catalogue cleaning type can be designated in advance acquiescence cleaning, acquiescence retain, classification cleaning, Classification retains and not clears up.As the file for only using for application program is included in a certain catalogue (as temporarily File etc.) when;Or when including user's establishment but unreadable file (such as suffix is video file of dat etc.), The cleaning type that the catalogue then can be identified in advance is acquiescence cleaning, i.e., when user need to be cleared up to residual catalogue, Can advise clearing up the catalogue.And for example in a certain catalogue comprising user set up readable documents (as picture, Audio-video document etc.) when, then the cleaning type that can identify the catalogue in advance retains for acquiescence, i.e., when user need to be right When residual catalogue is cleared up, the confirmation by user is needed, the catalogue of the type could be cleared up, Otherwise give tacit consent to and the catalogue is retained.When there is subdirectory under a certain catalogue, and some or many height The not identified cleaning type of catalogue, then the cleaning type that can identify the catalogue in advance are that classification cleaning or classification retain, I.e. when user need to remain catalogue clear up when, if detection residual catalogue cleaning type for classification cleaning or Classification retains, then need to travel through the subdirectory of the residual catalogue, carries out difference to the subdirectory of different cleaning types Process operation.Further, the cleaning class of the catalogue according to the directory information of a certain catalogue, can be identified in advance Type is classification cleaning or reservation of classifying;Such as the catalogue is created by application program, then can identify the clear of the catalogue in advance Reason type is classification cleaning, if the catalogue is created by user, can identify the cleaning type of the catalogue in advance to divide Class retains.If the file that a certain catalogue is included is the file not cleared up, the clear of the catalogue can be identified in advance Reason type is not cleaning.I.e. when user need to be cleared up to Stub File, not by the text of the cleaning type Part or catalogue detection.
Further, by the above-mentioned classification to clearing up type, can learn Or the residual catalogue that classification retains further is screened in the following manner.Further, clearing up type is The residual catalogue that acquiescence retains then needs to obtain under catalogue due to retaining all subfiles under catalogue Subfile is filtered to which;Cleaning type is the residual catalogue of classification reservation due to the next stage specific item of catalogue The cleaning type of record is possible to different, then need the son under catalogue is obtained according to the cleaning type of next stage subdirectory File, if the cleaning type of next stage subdirectory retains for acquiescence, it is silent to clearing up type to refer to above-mentioned Recognize the processing method of the residual catalogue of reservation, obtain all subfiles of the first level subdirectory, if next stage is sub The not identified cleaning type of catalogue, then can determine the first level subdirectory according to the cleaning type of residual catalogue Cleaning type retains for acquiescence, then processing procedure also refers to above-mentioned to clearing up the residual that type is that acquiescence retains The processing method of catalogue.
Whether step S103, judge the file type of the subfile in the general reservation list for pre-building.
In one embodiment, after residual catalogue meets default filtercondition, then can be according to residual catalogue Whether cleaning type obtains the subfile in residual catalogue, and can determine whether the file type of the subfile advance In the general reservation list set up, so as to the subfile to obtaining further is filtered.Wherein, build in advance Vertical general reservation list can be found in Fig. 5.As shown in figure 5, the file type of subfile can pass through file extent Name embodies, i.e., the file type of subfile is can determine that by file extension.And can under identical file type Including various file extensions, when whether the file type for judging subfile is arranged in the general reservation for pre-building In table, then can specifically judge the file extension of subfile whether in general reservation list as shown in Figure 5.
The subfile, if the result for judging is no, is added list for clearance by step S104.
In one embodiment, when judging the file type of subfile not in general reservation list, then Show to retain the file of the type, i.e., subfile needs are cleaned, then the subfile can be added and be treated Cleaning list, after the confirmation of user is detected, you can the catalogue enumerated in cleaning list for clearance or File.
In the embodiment of the present invention, by determining the residual catalogue under system storage catalogue, can enter to remaining catalogue Further scanning judges row, when residual catalogue meets default filtercondition, then can obtain in residual catalogue Subfile, by judging that the file type of subfile, can be right whether in the general reservation list for pre-building File under the residual catalogue of reservation without the need for retaining further is cleared up, and expands cleaning coverage rate.
Referring to Fig. 2, it is a kind of flow process of another embodiment of the method for cleaning of unloading Stub File in the present invention Figure.Wherein, the method can be realized by corresponding device or terminal.The method may include following steps.
Step S201, obtains the first class catalogue under system storage catalogue.
In one embodiment, when the system storage catalogue to terminal is scanned, can obtain in the terminal First class catalogue under system storage catalogue.Wherein, periodically system storage catalogue can be scanned, to find Residual catalogue, and during residual catalogue can be added the unloading residual storehouse in terminal;Triggering command pair can also be passed through System storage catalogue is scanned, to find to remain catalogue.
Step S202, for the first class catalogue of the acquisition, judges the corresponding application program of the first class catalogue Whether unload.
In one embodiment, in one embodiment, for acquired first class catalogue, can be by judging In terminal, whether the corresponding application program of the first class catalogue has unloaded, and determines whether first class catalogue is residual mesh Record.Wherein, can be judged in several ways:
Such as by judge in the first class catalogue whether there is the corresponding APMB package of the application program.Specifically, Can be inquired about by the local high frequency storehouse set up to terminal or server, be inquired about corresponding Bao Wen under the catalogue The filename of the number of part and corresponding APMB package, and then judge whether also there is the application under the catalogue The corresponding APMB package of program;
And for example, can pass through to judge whether the application program of terminal also has first class catalogue mesh in installing list Record title, due to first class catalogue correspondence application program, if do not exist in application program installs list this one Level catalogue, then show that no longer install list in by application program for its corresponding application program.
Step S203, if the corresponding application program of the first class catalogue has been unloaded, it is determined that the one-level All subdirectories under catalogue and the first class catalogue are residual catalogue.
In one embodiment, the corresponding application journey of the first class catalogue in terminal is judged by the way Sequence has been unloaded, then can determine that the first class catalogue and all subdirectories under first class catalogue are residual catalogue, And all subfiles under the first class catalogue are Stub File.Specifically, when the one-level mesh for judging terminal There is no the corresponding APMB package of the application program in record, or there is no this during the application program of terminal installs list The directory name of catalogue, then can determine that the catalogue for all specific items under residual catalogue, and the first class catalogue Record is also residual catalogue.
Step S204, obtains the default cleaning type of the residual catalogue.
In one embodiment, the default cleaning type for remaining catalogue can be cleared up for acquiescence, acquiescence retains, Classification cleaning, classification retain and not clear up.Wherein, to remain catalogue default cleaning type it is default Standard is can be found in described in the embodiment of the present invention 1, and here wouldn't be repeated.
Step S205, if the default cleaning type of the residual catalogue retains for acquiescence, obtains the residual All subfiles in catalogue.
In one embodiment, when the default cleaning type for getting residual catalogue retains for acquiescence, i.e. table Bright all subfiles under the residual catalogue carry out acquiescence reservation, then can obtain all sons in residual catalogue File, further to be filtered cleaning to all subfiles that these acquiescences retain.Wherein, clear up type The residual catalogue retained for acquiescence includes that the default cleaning type for getting is acquiescence reservation residual catalogue, or clearly Reason type is the first level subdirectory of the residual catalogue of classification cleaning, and the cleaning type of the first level subdirectory is acquiescence Retain, or the first level subdirectory that cleaning type is the residual catalogue that classification retains, the cleaning of the first level subdirectory Type retains for acquiescence or not identified cleaning type.
Step S206, if the default cleaning type of the residual catalogue retains for classification, obtains the residual One-level subfile in catalogue.
In one embodiment, when the default cleaning type for getting residual catalogue retains for classification, can be first The one-level subfile in residual catalogue is first obtained, and needs to travel through the first level subdirectory under the residual catalogue, Because the difference of the cleaning type according to subdirectory, carries out different process to which.Specifically, when cleaning class When type is that the cleaning type of certain first level subdirectory of the residual catalogue that classification retains retains for acquiescence, due to this First level subdirectory is defined as remaining catalogue, can perform step S205, obtains Subfile;When certain first level subdirectory not identified cleaning type, due to the cleaning of current residual catalogue Type retains for classification, then the cleaning type of the definable first level subdirectory retains for acquiescence, therefore can also lead to Execution step S205 is crossed, all subfiles under the first level subdirectory are obtained.
In the embodiment of the present invention, the method can also include the steps of:
If the default cleaning type of the residual catalogue is acquiescence cleaning, the residual catalogue is added and treats clear Reason list;
If it is described residual catalogue default cleaning type for classification cleaning, it is determined that it is described residual catalogue in not by The cleaning type of the first level subdirectory of default cleaning type is acquiescence cleaning;
If the default cleaning type of the residual catalogue is not to clear up, storage is performed to the residual catalogue Operation.
In one embodiment, when the default cleaning type of the residual catalogue for getting is acquiescence cleaning or classification When cleaning or not cleaning, which can be cleared up according to conventional manner of cleaning up, need not follow the steps below. Specifically, when the default cleaning type of the residual catalogue for getting is cleared up for acquiescence, then can be by the residual mesh Record adds list for clearance, so as to clean out all subfiles under the residual catalogue;It is residual when what is got The default cleaning type of catalogue is stayed during classification cleaning, then can further to travel through one-level under the residual catalogue Catalogue, and the cleaning type of first level subdirectory can be obtained, can be by the first level subdirectory of not identified cleaning type Definition cleaning type is acquiescence cleaning;When the default cleaning type of the residual catalogue for getting is not to clear up, Storage operation can be performed to the residual catalogue, wherein, can be the catalogue and file not cleared up by cleaning type The path specified is stored to other, i.e., it is the catalogue and text not cleared up to manage by unified path and clear up type Part;Also can be that the catalogue not cleared up and file are stored under original path by cleaning type, not carry out any Process, also which is not detected.
Step S207, judges that according to the routing information of the subfile whether the file type of the subfile exists In the delete list corresponding with the routing information for pre-building.
In one embodiment, after the subfile under residual catalogue is got, can be according to the path of subfile Information, judges whether the file type of subfile is pre-building delete list corresponding with the routing information In.Wherein, may include in the delete list corresponding with routing information for pre-building that one or more files expand Exhibition name.File in the delete list corresponding to file extension need to be forced to delete under the residual catalogue, The file extension included in the delete list can with it is general retain in list it is identical, such as wrap in delete list It is extension name gif of picture containing file type, even if user have selected one, picture in universal list, also needs In cleaning, the file to extending entitled gif carries out Force Deletion.Judge that whether the file type of subfile exists It is above-mentioned with subfile routing information (i.e. under the residual catalogue) corresponding delete list, if exist, need Which is cleared up, can perform step S210, if not existing, can determine whether whether the subfile needs Retain, then can perform step S209.
Step S209, judges that according to the routing information of the subfile whether the file type of the subfile exists In corresponding with the routing information specific reservation list for pre-building.
In one embodiment, after the subfile under residual catalogue is got, or the text for judging subfile Part type not in delete list when, the file type of subfile can be judged according to the routing information of subfile Whether in specific reservation list corresponding with the routing information is pre-build.Wherein, the spy for pre-building Surely retain list corresponding with the routing information of subfile, i.e., send out only when cleaning being scanned to the residual catalogue The effect of waving.Such as the residual catalogue includes pictorial information and video information, and contains user for video The txt documents that information is set up, then can be directed to the catalogue, set up the specific reservation row comprising file extension txt Table, i.e., when cleaning scanning is carried out to the residual catalogue, in addition to picture file and video file is retained, also need Document retaining is wanted to extend the file of entitled txt.After the subfile under residual catalogue is got, the son is can determine whether File whether pre-build it is corresponding specific with the routing information of the subfile (i.e. under the residual catalogue) In reservation table;If existing, demonstrate the need for storing the subfile, be then storable under original route, Or store to the specific path for Stub File;If not existing, the subfile can be added for clearance List, can also determine whether which whether there is in general reservation list.
Whether step S209, judge the file type of the subfile in the general reservation list for pre-building.
In one embodiment, after the subfile under surviving path is got, or the text for judging subfile Part type is not both not in the corresponding delete list of subfile routing information and corresponding specific in subfile path Retain in list, then the file type of the subfile can be determined whether whether in the general reservation for pre-building In list.Wherein, before being judged, the general reservation list that pre-builds can be selected or is changed, Such as in certain residual catalogue cleaning scanning once to a certain application program, it is known that user is under the application program Only can reserved file type be the file such as picture or video, then can when clearing up to which, select it is general Retain the picture or video file type in list, wherein, a certain file type may include various or all quilts It is identified as the file extension of this document type.Also general reservation list can be modified, to a certain file The file extension of type is added or deletes.If have selected general reservation according to selection instruction before judgement Whether a certain or multiple file types in list, then judge the file extension of subfile in general reservation In list under selected one or more file type.If judging through above-mentioned three times, the file of subfile Subfile then can be added list for clearance not in three lists by extension name.
It should be noted that above three judges that step can be while carry out, also can be according to embodiment of the present invention institute Stating flow process is carried out, and also can be carried out wherein one or two in embodiments of the present invention and be judged step.Send out at this Bright embodiment is not specifically limited.
The subfile is added list for clearance by step S210.
In one embodiment, when judging that the file type of subfile is in delete list, then can be by the son File adds list for clearance;When the file type for judging subfile does not retain list or specific reservation general When in list, then the subfile can be added list for clearance, if the file type of subfile is both deleting row In table, and in general reservation list, then the subfile is added into list for clearance.I.e. subfile path is believed Cease corresponding delete list priority highest, general reservation list due to being not for any surviving path, therefore Priority is minimum.
The subfile is added list to be retained by step S211.
In one embodiment, when the file type for judging subfile is arranged in general reservation list or specific reservation When in table, storage operation can be performed to subfile, that is, is retained under original route, also subfile can be added and be treated Retain list, subfile is retained according to the selection of user, while user also can retain in list to generation Subfile deleted.
In the embodiment of the present invention, by determining the residual catalogue under system storage catalogue, can enter to remaining catalogue Further scanning judges row, when residual catalogue meets default filtercondition, then can obtain in residual catalogue Subfile, by judging that the file type of subfile, can be right whether in the general reservation list for pre-building File under the residual catalogue of reservation without the need for retaining further is cleared up, and expands cleaning coverage rate.
Referring to Fig. 3, it is that a kind of structure of an embodiment of the cleaning plant of unloading Stub File in the present invention is shown It is intended to.Wherein, embodiment of the present invention described device can be configured in terminal, alternatively separate terminal it Device outer and that cleaning scanning can be carried out to unloading Stub File in terminal.The device may include:Determine mould Block 301, acquisition module 302, general judge module 303, add module 304.
Wherein it is determined that module 301, for determining the residual catalogue under system storage catalogue.
In one embodiment, after a certain application program is unloaded, determining module 301 is it needs to be determined that terminal First class catalogue under middle system storage catalogue is residual catalogue.Specifically, storage can be determined in several ways First class catalogue under catalogue is residual catalogue.Whether there is unloaded application journey in such as determining the first class catalogue The corresponding APMB package of sequence, or in determining the application program installation list of terminal, whether there is the mesh of the first class catalogue Record title;If it is determined that there is no this in there is no APMB package or application program installation list in the first class catalogue The directory name of first class catalogue, then can determine that the first class catalogue for residual catalogue.
Acquisition module 302, for when the residual catalogue meets default filtercondition, obtaining the residual mesh Subfile in record.
In one embodiment, when the first class catalogue that determining module 301 is determined under system storage is residual catalogue Afterwards, can determine whether whether the residual catalogue for determining meets default filtercondition, if meeting default filtering rod Part, i.e. acquisition module 302 can obtain the subfile in residual catalogue, if being unsatisfactory for default filtercondition, Without the need for being cleared up to remaining the file in catalogue according to following steps.Specifically, judge whether remain catalogue Meet default filtercondition to pass through to judge the cleaning type of residual catalogue.
Wherein remain catalogue cleaning type can be designated in advance acquiescence cleaning, acquiescence retain, classification cleaning, Classification retains and not clears up.As the file for only using for application program is included in a certain catalogue (as temporarily File etc.) when;Or when including user's establishment but unreadable file (such as suffix is video file of dat etc.), The cleaning type that the catalogue then can be identified in advance is acquiescence cleaning, i.e., when user need to be cleared up to residual catalogue, Can advise clearing up the catalogue.And for example in a certain catalogue comprising user set up readable documents (as picture, Audio-video document etc.) when, then the cleaning type that can identify the catalogue in advance retains for acquiescence, i.e., when user need to be right When residual catalogue is cleared up, the confirmation by user is needed, the catalogue of the type could be cleared up, Otherwise give tacit consent to and the catalogue is retained.When there is subdirectory under a certain catalogue, and some or many height The not identified cleaning type of catalogue, then the cleaning type that can identify the catalogue in advance are that classification cleaning or classification retain, I.e. when user need to remain catalogue clear up when, if detection residual catalogue cleaning type for classification cleaning or Classification retains, then need to travel through the subdirectory of the residual catalogue, carries out difference to the subdirectory of different cleaning types Process operation.Further, the cleaning class of the catalogue according to the directory information of a certain catalogue, can be identified in advance Type is classification cleaning or reservation of classifying;Such as the catalogue is created by application program, then can identify the clear of the catalogue in advance Reason type is classification cleaning, if the catalogue is created by user, can identify the cleaning type of the catalogue in advance to divide Class retains.If the file that a certain catalogue is included is the file not cleared up, the clear of the catalogue can be identified in advance Reason type is not cleaning.I.e. when user need to be cleared up to Stub File, not by the text of the cleaning type Part or catalogue detection.
Further, by the above-mentioned classification to clearing up type, can learn Or the residual catalogue that classification retains further is screened in the following manner.Further, clearing up type is The residual catalogue that acquiescence retains then needs to obtain under catalogue due to retaining all subfiles under catalogue Subfile is filtered to which;Cleaning type is the residual catalogue of classification reservation due to the next stage specific item of catalogue The cleaning type of record is possible to different, then need the son under catalogue is obtained according to the cleaning type of next stage subdirectory File, if the cleaning type of next stage subdirectory retains for acquiescence, it is silent to clearing up type to refer to above-mentioned Recognize the processing method of the residual catalogue of reservation, obtain all subfiles of the first level subdirectory, if next stage is sub The not identified cleaning type of catalogue, then can determine the first level subdirectory according to the cleaning type of residual catalogue Cleaning type retains for acquiescence, then processing procedure also refers to above-mentioned to clearing up the residual that type is that acquiescence retains The processing method of catalogue.
Whether general judge module 303, the file type for judging the subfile are general what is pre-build Retain in list.
In one embodiment, after residual catalogue meets default filtercondition, then acquisition module 302 can root The subfile in residual catalogue is obtained according to the cleaning type of residual catalogue, and general judge module 303 can be passed through The file type of the subfile is judged whether in the general reservation list for pre-building, so as to the son to obtaining File is further filtered.Wherein, the general reservation list for pre-building can be found in Fig. 5.As shown in figure 5, The file type of subfile can be embodied by file extension, i.e., can determine that subfile by file extension File type.And various file extensions are may include under identical file type, when the file for judging subfile Type then can specifically judge that the file extension of subfile is whether in the general reservation list for pre-building It is no in general reservation list as shown in Figure 5.
Add module 304, the result for judging when the general judge module 303 is no, then by the son File adds list for clearance.
In one embodiment, when general judge module 303 judges the file type of subfile not general When in reservation list, then show to retain the file of the type, i.e., subfile needs are cleaned, then add Plus the subfile can be added list for clearance by module 304, after the confirmation of user is detected, you can Clear up the catalogue or file enumerated in list for clearance.
In the embodiment of the present invention, by determining the residual catalogue under system storage catalogue, can enter to remaining catalogue Further scanning judges row, when residual catalogue meets default filtercondition, then can obtain in residual catalogue Subfile, by judging that the file type of subfile, can be right whether in the general reservation list for pre-building File under the residual catalogue of reservation without the need for retaining further is cleared up, and expands cleaning coverage rate.
Referring to Fig. 3, it is a kind of structure of another embodiment of the cleaning plant of unloading Stub File in the present invention Schematic diagram.Wherein, embodiment of the present invention described device can be configured in terminal, alternatively separated in terminal Outside and can in terminal unload Stub File carry out clear up scanning device.The device may include:It is determined that Module 401, acquisition module 402, general judge module 403, deletion judge module 404, particular decision mould Block 405, add module 406.
Wherein it is determined that module 401, for determining the residual catalogue under system storage catalogue.
In the embodiment of the present invention, determining module 401 is may include with lower unit.
Catalogue acquiring unit 4011, for obtaining the first class catalogue under the system storage catalogue.
In one embodiment, when the system storage catalogue to terminal is scanned, catalogue acquiring unit 4011 The first class catalogue under system storage catalogue in the terminal can be obtained.Wherein, periodically system storage catalogue can be entered Row scanning, to find to remain catalogue, and during residual catalogue can be added the unloading residual storehouse in terminal;Also may be used System storage catalogue is scanned by triggering command, to find to remain catalogue.
Unloading judging unit 4012, for the first class catalogue for the acquisition, judges the first class catalogue pair Whether the application program answered has unloaded.
In one embodiment, for acquired first class catalogue, can be judged by unloading judging unit 4012 In terminal, whether the corresponding application program of the first class catalogue has unloaded, and determines whether first class catalogue is residual mesh Record.Wherein, unload judging unit 4012 to be judged in several ways:
Such as by judge in the first class catalogue whether there is the corresponding APMB package of the application program.Specifically, Can be inquired about by the local high frequency storehouse set up to terminal or server, be inquired about corresponding Bao Wen under the catalogue The filename of the number of part and corresponding APMB package, and then judge whether also there is the application under the catalogue The corresponding APMB package of program;
And for example, can pass through to judge whether the application program of terminal also has first class catalogue mesh in installing list Record title, due to first class catalogue correspondence application program, if do not exist in application program installs list this one Level catalogue, then show that no longer install list in by application program for its corresponding application program.
Catalogue determining unit 4013, for judging that the first class catalogue is corresponding when the unloading judging unit Application program has been unloaded, it is determined that all subdirectories under the first class catalogue and the first class catalogue are Residual catalogue.
In one embodiment, it is corresponding when the first class catalogue during unloading judging unit 4012 judges terminal is passed through Application program unloaded, then catalogue determining unit 4013 is can determine that under the first class catalogue and first class catalogue All subdirectories be all subfiles under residual catalogue, and the first class catalogue for Stub File.Tool Body, when there is no the corresponding APMB package of the application program in the first class catalogue for judge terminal, or terminal There is no the directory name of the catalogue in application program, then can determine that the catalogue to remain catalogue in installing list, And all subdirectories under the first class catalogue are also residual catalogue.
Acquisition module 402, for when the residual catalogue meets default filtercondition, obtaining the residual mesh Subfile in record.
In the embodiment of the present invention, acquisition module 402 is may include with lower unit.
Type acquiring unit 4021, for obtaining the default cleaning type of the residual catalogue.
In one embodiment, the default cleaning type for remaining catalogue can be cleared up for acquiescence, acquiescence retains, Classification cleaning, classification retain and not clear up.Wherein, to remain catalogue default cleaning type it is default Standard is can be found in described in the embodiment of the present invention 3, and here wouldn't be repeated.
File obtaining unit 4022, if the default cleaning type for the residual catalogue retains for acquiescence, Obtain all subfiles in the residual catalogue.
In one embodiment, when the default cleaning type that type acquiring unit 4021 gets residual catalogue is When acquiescence retains, that is, show to carry out acquiescence reservation to all subfiles under the residual catalogue, then file acquisition Unit 4022 can obtain all subfiles in residual catalogue, to enter to all subfiles that these acquiescences retain Row further filters cleaning.Wherein, clearing up the residual catalogue that type is that acquiescence retains includes that what is got presets Cleaning type retains residual catalogue, or the one-level specific item of the residual catalogue that cleaning type is classification cleaning for acquiescence Record, the cleaning type of the first level subdirectory retain for acquiescence, or cleaning type is the residual catalogue that classification retains First level subdirectory, the cleaning type of the first level subdirectory retains for acquiescence or not identified cleaning type.
If the default cleaning type that file obtaining unit 4022 is additionally operable to the residual catalogue retains for classification, Obtain the one-level subfile in the residual catalogue.Wherein, acquisition module 402 may also include type determination list Unit 4023, if the default cleaning type for the residual catalogue retains for classification, it is determined that the residual mesh The cleaning type that the first level subdirectory of cleaning type is not predetermined in record retains for acquiescence.
In one embodiment, when the default cleaning type for getting residual catalogue retains for classification, can be first The one-level subfile in residual catalogue is first obtained, and needs to travel through the first level subdirectory under the residual catalogue, Because the difference of the cleaning type according to subdirectory, carries out different process to which.Specifically, when cleaning class When type is that the cleaning type of certain first level subdirectory of the residual catalogue that classification retains retains for acquiescence, due to this First level subdirectory is defined as remaining catalogue, can obtain all subfiles under first level subdirectory, and obtaining should All of subfile under first level subdirectory;When certain first level subdirectory not identified cleaning type, due to working as The cleaning type of front residual catalogue retains for classification, then the cleaning type of the definable first level subdirectory is acquiescence Retain, therefore can also obtain all subfiles under the first level subdirectory.
In the embodiment of the present invention, after type acquiring unit 4021 obtains the default cleaning type of residual catalogue, If it is acquiescence cleaning that add module 406 is additionally operable to the default cleaning type of the residual catalogue, will be described residual Catalogue is stayed to add list for clearance;
If it is classification cleaning that the type determining units are additionally operable to the default cleaning type of the residual catalogue, The cleaning type that the first level subdirectory of cleaning type is not predetermined in determining the residual catalogue is acquiescence cleaning;
Described device also includes memory module, if the default cleaning type for the residual catalogue is not clear Reason, then perform storage operation to the residual catalogue.
In one embodiment, the default cleaning type of the residual catalogue for getting when type acquiring unit 4021 During to give tacit consent to cleaning or classification cleaning or refuse cleaning, which can be cleared up according to conventional manner of cleaning up, Need not follow the steps below.Specifically, the residual catalogue for getting when type acquiring unit 4021 it is default clear When reason type is cleared up for acquiescence, then the residual catalogue can be added list for clearance by add module 406, so as to The all subfiles under the residual catalogue can be cleaned out;When the residual catalogue that type acquiring unit 4021 gets Default cleaning type for classification cleaning when, then can further travel through the first level subdirectory under the residual catalogue, And the cleaning type of first level subdirectory can be obtained, type determining units can be by the one-level of not identified cleaning type Subdirectory definition cleaning type is acquiescence cleaning;When the default cleaning type of the residual catalogue for getting is for not During cleaning, storage operation can be performed to the residual catalogue, wherein, can be the mesh not cleared up by cleaning type Record and file store to other path specified, i.e., not cleared up by unified path management cleaning type Catalogue and file;Also can be that the catalogue not cleared up and file are stored under original path, no by cleaning type Any process is carried out, also which is not detected.
Judge module 403 is deleted, for the file of the subfile is judged according to the routing information of the subfile Whether type is in delete list corresponding with the routing information is pre-build.
In one embodiment, after the subfile under residual catalogue is got, can be according to the path of subfile Information, judges whether the file type of subfile is pre-building delete list corresponding with the routing information In.Wherein, may include in the delete list corresponding with routing information for pre-building that one or more files expand Exhibition name.File in the delete list corresponding to file extension need to be forced to delete under the residual catalogue, The file extension included in the delete list can with it is general retain in list it is identical, such as wrap in delete list It is extension name gif of picture containing file type, even if user have selected one, picture in universal list, also needs In cleaning, the file to extending entitled gif carries out Force Deletion.Judge that whether the file type of subfile exists It is above-mentioned with subfile routing information (i.e. under the residual catalogue) corresponding delete list, if exist, need Which cleared up, add module 406 can be gone to and processed, if not existing, this can be determined whether Whether subfile needs to retain, then can be judged by particular decision module 404.
Particular decision module 404, for the file of the subfile is judged according to the routing information of the subfile Whether type is in specific reservation list corresponding with the routing information is pre-build.
In one embodiment, after the subfile under residual catalogue is got, or delete judge module 403 When judging the file type of subfile not in delete list, can be judged according to the routing information of subfile Whether the file type of subfile is in specific reservation list corresponding with the routing information is pre-build.Its In, the specific reservation list for pre-building is corresponding with the routing information of subfile, i.e., only to the residual catalogue Play a role when being scanned cleaning.Such as the residual catalogue includes pictorial information and video information, and wraps The txt documents that user is set up for video information are contained, then can be directed to the catalogue, set up comprising file extension The specific reservation list of txt, i.e., when cleaning scanning is carried out to the residual catalogue, picture file and regard except retaining Outside frequency file, it is also desirable to which document retaining extends the file of entitled txt.When get residual catalogue under subfile Afterwards, can determine whether that whether the subfile is pre-building and the routing information of the subfile (i.e. residual catalogue Under) in corresponding specific reservation table;If existing, demonstrate the need for storing the subfile, then can deposit Storage is under original route, or stores to the specific path for Stub File;If not existing, can be by adding Plus the subfile is added list for clearance by module 406, also further can be sentenced by general judge module 405 Breaking, which whether there is in general reservation list.
Whether general judge module 405, the file type for judging the subfile are general what is pre-build Retain in list.
In one embodiment, after the subfile under surviving path is got, or the text for judging subfile Part type is not both not in the corresponding delete list of subfile routing information and corresponding specific in subfile path Retain in list, then whether general judge module 405 can determine whether the file type of the subfile pre- In the general reservation list first set up.Wherein, before being judged, the general reservation for pre-building can be arranged Table is selected or is changed, such as in certain residual catalogue cleaning scanning once to a certain application program, it is known that User under the application program only can reserved file type be the file such as picture or video, then which can entered During row cleaning, the general picture or video file type retained in list is selected, wherein, a certain file type May include various or all file extensions for being identified as this document type.Also general reservation list can be entered Row modification, is added or deletes to the file extension of a certain file type.If according to selection before judgement Instruction have selected the general a certain or multiple file types retained in list, then judge that the file of subfile expands Whether exhibition name is under selected one or more file type in general reservation list.If through above-mentioned three times Judge, not in three lists, then subfile can be added the file extension of subfile by add module 406 Enter list for clearance.
It should be noted that above three judge module can be judged simultaneously, also can be according to present invention enforcement The example flow process is carried out, and also can carry out wherein one or two judge module in embodiments of the present invention.Here The embodiment of the present invention is not specifically limited.
Add module 406, the result for judging when the general judge module is no, then by the subfile Add list for clearance.
In one embodiment, when deletion judge module 403 judges the file type of subfile in delete list When middle, then the subfile can be added list for clearance by add module 406;When particular decision module 404 and General judge module 405 judges the file type of subfile not in general reservation list or specific reservation list When, then the subfile can be added list for clearance by add module 406, if the file type of subfile both existed In delete list, and in general reservation list, then the subfile is added row for clearance by add module 406 Table.That is the corresponding delete list priority highest of subfile routing information, general reservation list is due to being not for Any surviving path, therefore priority is minimum.
Wherein add module 406 is additionally operable to for the subfile to add list to be retained.
In one embodiment, when the file type for judging subfile is arranged in general reservation list or specific reservation When in table, storage operation can be performed to subfile, that is, is retained under original route, also subfile can be added and be treated Retain list, subfile is retained according to the selection of user, while user also can retain in list to generation Subfile deleted.
In the embodiment of the present invention, by determining the residual catalogue under system storage catalogue, can enter to remaining catalogue Further scanning judges row, when residual catalogue meets default filtercondition, then can obtain in residual catalogue Subfile, by judging that the file type of subfile, can be right whether in the general reservation list for pre-building File under the residual catalogue of reservation without the need for retaining further is cleared up, and expands cleaning coverage rate.
Referring to Fig. 6, it is a kind of structural representation of an embodiment of terminal in the present invention.The terminal can be wrapped Include:At least one processor 601, such as CPU, at least one user interface 603, memorizer 604 and extremely A few communication bus 602.Wherein, communication bus 602 is used for the connection communication for realizing between these components, User interface 603 can include display screen (Display) and keyboard (Keyboard), optionally, Yong Hujie Mouth 603 can also include the wireline interface and wave point of standard, and memorizer 604 can be that high-speed RAM is deposited Reservoir, or non-labile memorizer (non-volatile memory), such as at least one disk storage Device, optionally, memorizer 604 can also be at least one storage dress for being located remotely from aforementioned processor 601 Put.Wherein, batch processing code is stored in memorizer 604, and during processor 601 calls memorizer 604 The program code of storage, for performing following operation:
Determine the residual catalogue under system storage catalogue;
When the residual catalogue meets default filtercondition, the subfile in the residual catalogue is obtained;
Judge the file type of the subfile whether in the general reservation list for pre-building;
If the result for judging is no, the subfile is added into list for clearance.
Used as optional embodiment, processor 601 determines the concrete side of the residual catalogue under system storage catalogue Formula is:
Obtain the first class catalogue under the system storage catalogue;
For the first class catalogue of the acquisition, judge whether the corresponding application program of the first class catalogue has unloaded Carry;
If the corresponding application program of the first class catalogue has been unloaded, it is determined that the first class catalogue and institute It is residual catalogue to state all subdirectories under first class catalogue.
Used as optional embodiment, whether processor 601 judges the corresponding application program of the first class catalogue Jing unloading concrete mode be:
Whether there is the corresponding APMB package of the application program in judging the first class catalogue, if there is no then Determine that the corresponding application program of the first class catalogue has been unloaded;Or
Judge that application program whether there is the directory name of the first class catalogue in installing list, if there is no Then determine that the corresponding application program of the first class catalogue has been unloaded.
Used as optional embodiment, processor 601 is obtained when the residual catalogue meets default filtercondition Taking the concrete mode for remaining the subfile in catalogue is:
Obtain the default cleaning type of the residual catalogue;
If the default cleaning type of the residual catalogue retains for acquiescence, the institute in the residual catalogue is obtained There is subfile;
If the default cleaning type of the residual catalogue retains for classification, in the residual catalogue is obtained Level subfile.
As optional embodiment, after the default cleaning type for obtaining the residual catalogue, also wrap Include:
If it is described residual catalogue default cleaning type for classification retain, it is determined that it is described residual catalogue in not by The cleaning type of the first level subdirectory of default cleaning type retains for acquiescence.
As optional embodiment, after the default cleaning type that processor 601 obtains the residual catalogue, The program code for calling memorizer 604 to store, is additionally operable to perform following operation:
If the default cleaning type of the residual catalogue is acquiescence cleaning, the residual catalogue is added and treats clear Reason list;
If it is described residual catalogue default cleaning type for classification cleaning, it is determined that it is described residual catalogue in not by The cleaning type of the first level subdirectory of default cleaning type is acquiescence cleaning;
If the default cleaning type of the residual catalogue is not to clear up, storage is performed to the residual catalogue Operation.
Used as optional embodiment, processor 601 calls the program code that memorizer 604 is stored, and is additionally operable to Perform following operation:
Judge that whether the file type of the subfile is pre-building according to the routing information of the subfile In specific reservation list corresponding with the routing information;
If the result for judging is no, the subfile is added into list for clearance.
Used as optional embodiment, processor 601 calls the program code that memorizer 604 is stored, and is additionally operable to Perform following operation:
Judge that whether the file type of the subfile is pre-building according to the routing information of the subfile In delete list corresponding with the routing information;
If the result for judging is yes, the subfile is added into list for clearance.
As optional embodiment, whether pre-building in the file type for judging the subfile Before in general reservation list, processor 601 calls the program code that memorizer 604 is stored, and is additionally operable to hold Row is following to be operated:
Receive for the general selection instruction for retaining list;
Select the file type of an at least class of the selection instruction instruction;
Wherein, whether the file type for judging the subfile is in the general reservation list for pre-building Including:
Judge the file type of a subfile whether at least class in the general reservation list of the selection In file type.
As optional embodiment, whether pre-building in the file type for judging the subfile Before in general reservation list, processor 601 calls the program code that memorizer 604 is stored, and is additionally operable to hold Row is following to be operated:
Receive for the general modification instruction for retaining list;
The general reservation list is modified according to the modification instruction.
In the embodiment of the present invention, by determining the residual catalogue under system storage catalogue, can enter to remaining catalogue Further scanning judges row, when residual catalogue meets default filtercondition, then can obtain in residual catalogue Subfile, by judging that the file type of subfile, can be right whether in the general reservation list for pre-building File under the residual catalogue of reservation without the need for retaining further is cleared up, and expands cleaning coverage rate.
Device embodiment described above is only schematic, wherein described as separating component explanation Unit can be or may not be it is physically separate, as the part that unit shows can be or Can not be physical location, you can local to be located at one, or can also be distributed on multiple NEs. Some or all of module therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.Those of ordinary skill in the art are not in the case where performing creative labour is paid, you can to understand and implement.
Step in present invention method can carry out order adjustment according to actual needs, merge and delete.
Unit or subelement in embodiment of the present invention terminal or equipment can be merged according to actual needs, Divide and delete.
Through the above description of the embodiments, those skilled in the art can be understood that each enforcement Mode can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware. Based on such understanding, the part that above-mentioned technical proposal is substantially contributed to prior art in other words can be with Embodied in the form of software product, the computer software product can be stored in computer-readable storage medium In matter, such as ROM/RAM, magnetic disc, CD etc. are used so that a computer equipment including some instructions (can be personal computer, server, or network equipment etc.) performs each embodiment or embodiment Some parts described in method.
Embodiments described above, does not constitute the restriction to the technical scheme protection domain.It is any upper Modification, equivalent and improvement for being made within the spirit and principle of embodiment etc. are stated, this is should be included in Within the protection domain of technical scheme.

Claims (10)

1. it is a kind of unloading Stub File method for cleaning, it is characterised in that include:
Determine the residual catalogue under system storage catalogue;
When the residual catalogue meets default filtercondition, the subfile in the residual catalogue is obtained;
Judge the file type of the subfile whether in the general reservation list for pre-building;
If the result for judging is no, the subfile is added into list for clearance.
2. method as claimed in claim 1, it is characterised in that the residual under the determination system storage catalogue Catalogue, including:
Obtain the first class catalogue under the system storage catalogue;
For the first class catalogue of the acquisition, judge whether the corresponding application program of the first class catalogue has unloaded Carry;
If the corresponding application program of the first class catalogue has been unloaded, it is determined that the first class catalogue and institute It is residual catalogue to state all subdirectories under first class catalogue.
3. method as claimed in claim 2, it is characterised in that the judgement first class catalogue is corresponding should Whether unloaded with program, including:
Whether there is the corresponding APMB package of the application program in judging the first class catalogue, if there is no then Determine that the corresponding application program of the first class catalogue has been unloaded;Or
Judge that application program whether there is the directory name of the first class catalogue in installing list, if there is no Then determine that the corresponding application program of the first class catalogue has been unloaded.
4. such as the arbitrary methods described of claim 1-3, it is characterised in that described when the residual catalogue meets During default filtercondition, the subfile in the residual catalogue is obtained, including:
Obtain the default cleaning type of the residual catalogue;
If the default cleaning type of the residual catalogue retains for acquiescence, the institute in the residual catalogue is obtained There is subfile;
If the default cleaning type of the residual catalogue retains for classification, in the residual catalogue is obtained Level subfile.
5. method as claimed in claim 4, it is characterised in that obtain the default of the residual catalogue described After cleaning type, also include:
If it is described residual catalogue default cleaning type for classification retain, it is determined that it is described residual catalogue in not by The cleaning type of the first level subdirectory of default cleaning type retains for acquiescence.
6. method as claimed in claim 5, it is characterised in that obtain the default of the residual catalogue described After cleaning type, methods described also includes:
If the default cleaning type of the residual catalogue is acquiescence cleaning, the residual catalogue is added and treats clear Reason list;
If it is described residual catalogue default cleaning type for classification cleaning, it is determined that it is described residual catalogue in not by The cleaning type of the first level subdirectory of default cleaning type is acquiescence cleaning;
If the default cleaning type of the residual catalogue is not to clear up, storage is performed to the residual catalogue Operation.
7. method as claimed in claim 1, it is characterised in that methods described also includes:
Judge that whether the file type of the subfile is pre-building according to the routing information of the subfile In specific reservation list corresponding with the routing information;
If the result for judging is no, the subfile is added into list for clearance.
8. method as claimed in claim 1, it is characterised in that methods described also includes:
Judge that whether the file type of the subfile is pre-building according to the routing information of the subfile In delete list corresponding with the routing information;
If the result for judging is yes, the subfile is added into list for clearance.
9. it is a kind of unloading Stub File cleaning plant, it is characterised in that include:
Determining module, for determining the residual catalogue under system storage catalogue;
Acquisition module, for when the residual catalogue meets default filtercondition, obtaining the residual catalogue In subfile;
General judge module, for judging the file type of the subfile whether in the general guarantor for pre-building In staying list;
Add module, the result for judging when the general judge module is no, then add the subfile Enter list for clearance.
10. a kind of terminal, it is characterised in that including user interface, memorizer and processor, wherein, institute Memory storage batch processing code is stated, the processor calls the program code of the memory storage to be used for Perform following operation:
Determine the residual catalogue under system storage catalogue;
When the residual catalogue meets default filtercondition, the subfile in the residual catalogue is obtained;
Judge the file type of the subfile whether in the general reservation list for pre-building;
If the result for judging is no, the subfile is added into list for clearance.
CN201510626989.1A 2015-09-28 2015-09-28 Method and device for cleaning uninstalled residual file and terminal Active CN106557500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510626989.1A CN106557500B (en) 2015-09-28 2015-09-28 Method and device for cleaning uninstalled residual file and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510626989.1A CN106557500B (en) 2015-09-28 2015-09-28 Method and device for cleaning uninstalled residual file and terminal

Publications (2)

Publication Number Publication Date
CN106557500A true CN106557500A (en) 2017-04-05
CN106557500B CN106557500B (en) 2020-08-25

Family

ID=58415523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510626989.1A Active CN106557500B (en) 2015-09-28 2015-09-28 Method and device for cleaning uninstalled residual file and terminal

Country Status (1)

Country Link
CN (1) CN106557500B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107103092A (en) * 2017-05-15 2017-08-29 努比亚技术有限公司 Quick method for cleaning, terminal and the computer-readable recording medium of data garbage
CN107656743A (en) * 2017-09-28 2018-02-02 努比亚技术有限公司 A kind of discharging method of application, terminal and readable storage medium storing program for executing
CN111712806A (en) * 2017-09-21 2020-09-25 深圳传音通讯有限公司 Method and device for clearing residual file and readable storage medium
CN112328327A (en) * 2020-11-20 2021-02-05 杭州迪普科技股份有限公司 Configuration partition sorting method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929980A (en) * 2012-10-17 2013-02-13 广东欧珀移动通信有限公司 Folder cleaning method and device
CN103092938A (en) * 2013-01-07 2013-05-08 浙江鸿程计算机系统有限公司 Method for intelligently cleaning garbage file of secure digital (SD) card of Android mobile phone
CN103176828A (en) * 2013-03-29 2013-06-26 北京奇虎科技有限公司 Method and device of deleting application program residual files
CN103559276A (en) * 2013-11-05 2014-02-05 广东欧珀移动通信有限公司 Method and device for clearing useless files
CN103646057A (en) * 2013-11-29 2014-03-19 北京奇虎科技有限公司 Junk file analysis method and device and junk file cleaning method
US8682868B2 (en) * 2011-12-02 2014-03-25 International Business Machines Corporation Removal of data remanence in deduplicated storage clouds
CN104021159A (en) * 2014-05-26 2014-09-03 北京金山安全软件有限公司 Client file cleaning method and device
CN104536792A (en) * 2014-12-30 2015-04-22 北京奇虎科技有限公司 Method and device for eliminating application program residual files
CN104866510A (en) * 2014-02-26 2015-08-26 北京金山安全软件有限公司 Method and device for removing residual file and method and device for establishing feature library of residual file

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8682868B2 (en) * 2011-12-02 2014-03-25 International Business Machines Corporation Removal of data remanence in deduplicated storage clouds
CN102929980A (en) * 2012-10-17 2013-02-13 广东欧珀移动通信有限公司 Folder cleaning method and device
CN103092938A (en) * 2013-01-07 2013-05-08 浙江鸿程计算机系统有限公司 Method for intelligently cleaning garbage file of secure digital (SD) card of Android mobile phone
CN103176828A (en) * 2013-03-29 2013-06-26 北京奇虎科技有限公司 Method and device of deleting application program residual files
CN103559276A (en) * 2013-11-05 2014-02-05 广东欧珀移动通信有限公司 Method and device for clearing useless files
CN103646057A (en) * 2013-11-29 2014-03-19 北京奇虎科技有限公司 Junk file analysis method and device and junk file cleaning method
CN104866510A (en) * 2014-02-26 2015-08-26 北京金山安全软件有限公司 Method and device for removing residual file and method and device for establishing feature library of residual file
CN104021159A (en) * 2014-05-26 2014-09-03 北京金山安全软件有限公司 Client file cleaning method and device
CN104536792A (en) * 2014-12-30 2015-04-22 北京奇虎科技有限公司 Method and device for eliminating application program residual files

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107103092A (en) * 2017-05-15 2017-08-29 努比亚技术有限公司 Quick method for cleaning, terminal and the computer-readable recording medium of data garbage
CN111712806A (en) * 2017-09-21 2020-09-25 深圳传音通讯有限公司 Method and device for clearing residual file and readable storage medium
CN107656743A (en) * 2017-09-28 2018-02-02 努比亚技术有限公司 A kind of discharging method of application, terminal and readable storage medium storing program for executing
CN112328327A (en) * 2020-11-20 2021-02-05 杭州迪普科技股份有限公司 Configuration partition sorting method and device
CN112328327B (en) * 2020-11-20 2023-10-27 杭州迪普科技股份有限公司 Configuration partition arrangement method and device

Also Published As

Publication number Publication date
CN106557500B (en) 2020-08-25

Similar Documents

Publication Publication Date Title
CN106557500A (en) Method and device for cleaning uninstalled residual file and terminal
CN102932777B (en) The update method of a kind of terminal applies and user terminal
CN108306956B (en) Information pushing method and device, server and computer readable medium
CN105653582A (en) File management method of electronic equipment and electronic equipment
CN104021160B (en) Client data cleaning method and device
CN106302632A (en) The method for down loading of a kind of foundation image and management node
CN104536792A (en) Method and device for eliminating application program residual files
CN104601683B (en) A kind of file download management method and mobile terminal and communication system
CN104021159B (en) Client file cleaning method and device
CN105868340A (en) Log storage method and device
CN108595503A (en) Document handling method and server
CN104965731B (en) A kind of data processing method and electric terminal
CN102799613A (en) Showing method and device for recently-used file
CN112114849B (en) Resource updating method and device
CN106095793A (en) The method and apparatus of management mobile terminal memory space
CN105243102B (en) Processing method and device for unloading residual file and terminal
CN105183768A (en) File management method, apparatus and terminal device
CN105955847A (en) False deletion preventing method and system for electronic device file
CN104216902A (en) Paging data loading method, device and system based on server paging
CN105893471B (en) Data processing method and electronic equipment
CN104991949B (en) Mobile terminal and its file management system and method
CN106227541A (en) A kind of program updates download process method and mobile terminal
CN105577734A (en) Information backup method, device, server and terminal
CN105243324A (en) Method and device for identifying malicious software in user terminal and user terminal
CN106484814A (en) Data search method and device

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