CN104881493B - file cleaning method and device - Google Patents

file cleaning method and device Download PDF

Info

Publication number
CN104881493B
CN104881493B CN201510324966.5A CN201510324966A CN104881493B CN 104881493 B CN104881493 B CN 104881493B CN 201510324966 A CN201510324966 A CN 201510324966A CN 104881493 B CN104881493 B CN 104881493B
Authority
CN
China
Prior art keywords
file
default
user
folder
list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510324966.5A
Other languages
Chinese (zh)
Other versions
CN104881493A (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 CN201510324966.5A priority Critical patent/CN104881493B/en
Publication of CN104881493A publication Critical patent/CN104881493A/en
Application granted granted Critical
Publication of CN104881493B publication Critical patent/CN104881493B/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/11File system administration, e.g. details of archiving or snapshots

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)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a file cleaning method and device, which can determine the data volume of a preset folder corresponding to an application program in a preset application program list installed in electronic equipment, determine a function corresponding to the preset folder when the data volume is larger than a first threshold value, further determine the file characteristics of a file generated by the function, and guide a user to clean the file in the preset folder by using a cleaning guide mode matched with the determined file characteristics. Because the files generated by each function of the application program are generally stored in the corresponding folder, the files to be cleaned are identified by identifying the folder in which the files are located, and the accuracy of identifying the files to be cleaned can be improved. Meanwhile, the invention guides the user to clean the files in the preset folder by using the cleaning guide mode matched with the file characteristics, can use different cleaning guide modes aiming at the files with different file characteristics, and avoids the situations of mistaken deletion and missed deletion.

Description

File clean-up method and device
Technical field
The present invention relates to file clean-up technical fields, more particularly to file clean-up method and device.
Background technology
With the development of science and technology, the application program on the electronic equipment of user is more and more, the function of application program is also got over Come abundanter.
Application program at runtime, usually will produce various files, such as picture, video, chat record file.Due to this A little files occupy a large amount of memory space so that the speed of service of electronic equipment is slack-off, and memory space becomes smaller, it is therefore desirable to right These files are cleared up.
Existing file clean-up scheme determines whether file is the file for needing to clear up by identifying file type, to Prompt user clears up.But the file of same type is not necessarily all the file for needing to clear up.Therefore, existing to pass through text Part type identifies that the mode of file that needs are cleared up often makes the file that need not be cleared up be identified as the text for needing to clear up Part, and the file cleared up is needed to be identified as the file that need not be cleared up, identification needs the accuracy rate for the file cleared up low.
Invention content
The embodiment of the present invention is designed to provide a kind of file clean-up method and device, identifies what needs were cleared up to improve The accuracy rate of file.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of file clean-up methods, are applied to electronic equipment, described Method includes:
Receive the file detection operation of user;
It is detected and is operated according to the file, determine whether the electronic equipment has been equipped in default the application list At least one application program, if it is, determining that the application program in mounted default the application list is corresponding default The data volume of file, the default file folder are the installation of the application program in described mounted default the application list File under catalogue;
When the data volume of default file folder is more than first threshold, journey is applied with described according to default file folder The default correspondence of the function of sequence determines that the default file presss from both sides corresponding function;
The default corresponding of corresponding function and the file characteristic for the file that the function generates is pressed from both sides according to the default file Relationship determines the file characteristic for the file that the function generates;
Guide user to the text in default file folder using with the determining matched cleaning guidance mode of file characteristic Part is cleared up.
Optionally, it when identified file characteristic is fisrt feature, is guided with the determining matched cleaning of file characteristic Mode is:
The special clear list that the default file presss from both sides corresponding application program is added in file in default file folder, is carried Show that user clears up the file in the specially clear list;
Alternatively,
Display exports the default file and presss from both sides corresponding function and/or identified file characteristic, prompts user to described File in default file folder is cleared up.
Optionally, it is being with the determining matched cleaning guidance mode of file characteristic:By the text in default file folder Part is added the special clear list that the default file presss from both sides corresponding application program, prompt user to the file in the specially clear list into When row cleaning, the method further includes:The file clean-up operation for receiving user carries out the file in the specially clear list clear Reason;
It is being with the determining matched cleaning guidance mode of file characteristic:Display exports the default file and presss from both sides corresponding work( Energy and/or identified file characteristic, when user being prompted to clear up the file in default file folder, the method is also Including:The file clean-up operation for receiving user, clears up the file in default file folder.
Optionally, it when identified file characteristic is second feature, is guided with the determining matched cleaning of file characteristic Mode is:
According to the creation time of the file in default file folder, the file in default file folder is arranged Displaying prompts user to clear up the file shown.
Optionally, further include:
Selection operation of the user to the file of displaying is received, the file of user's selection is cleared up.
Optionally, it when identified file characteristic is third feature, is guided with the determining matched cleaning of file characteristic Mode is:
The default file is pressed from both sides and is added in acquiescence cleaning list, prompts user to the file in the acquiescence cleaning list File in folder is scanned and clears up.
Optionally, further include:
It receives user and the default file is pressed from both sides to the operation that acquiescence cleaning list is added, the default file is pressed from both sides, institute is added It states in acquiescence cleaning list.
Optionally, further include:
Count the number cleared up the file in default file folder;
When the number is not less than second threshold, the default file is pressed from both sides and is added in acquiescence cleaning list.
Optionally, further include:
Clicking operation of the user to space management option is received, to the file in the file in the acquiescence cleaning list It is scanned, clears up the file scanned.
A kind of file clean-up device, is applied to electronic equipment, and described device includes:Detection operates receiving unit, using journey Sequence determination unit, data volume determination unit, function determination unit, file characteristic determination unit and cleaning guidance unit,
The detection operates receiving unit, and the file for receiving user detects operation;
Whether the application program determination unit operate for being detected according to the file, determine the electronic equipment At least one of default the application list application program is installed, if it is, triggering the data volume determination unit;
The data volume determination unit, for determining that the application program in mounted default the application list is corresponding The data volume of default file folder, the default file folder are the application program in described mounted default the application list File under installation directory;
The function determination unit is used for when the data volume that the default file presss from both sides is more than first threshold, according to described Default file presss from both sides the default correspondence with the function of the application program, determines that the default file presss from both sides corresponding function;
The file characteristic determination unit, for pressing from both sides what corresponding function was generated with the function according to the default file The default correspondence of the file characteristic of file determines the file characteristic for the file that the function generates;
The cleaning guidance unit, for guiding user couple using with the determining matched cleaning guidance mode of file characteristic File in the default file folder is cleared up.
A kind of file clean-up method and device provided in an embodiment of the present invention, it may be determined that mounted pre- in electronic equipment If the data volume of the corresponding default file folder of application program in the application list, and when data volume is more than first threshold, Determine that default file presss from both sides corresponding function, and further determine that the file characteristic for the file that function generates, using with determining text The cleaning guidance mode guiding user of part characteristic matching clears up the file in default file folder.It is each due to application program The file that function generates generally is stored in corresponding file, therefore is known by way of file where identifying file The file not cleared up can improve the accuracy rate of the file to be cleared up of identification.Meanwhile present invention use is matched with file characteristic Cleaning guidance mode guiding user the file in default file folder is cleared up, can be directed to different file characteristics File uses different cleaning guidance modes, avoids and accidentally deletes and leak the case where deleting.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow chart of file clean-up method provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of file clean-up device provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, a kind of file clean-up method provided in an embodiment of the present invention, is applied to electronic equipment, this method can To include:
S100, the file detection operation for receiving user;
Wherein, file detection operation can be the clicking operation to rubbish detection option, or select space management The clicking operation of item.
S200, operation is detected according to the file, determines whether the electronic equipment has been equipped with default Application Column At least one of table application program, if it is, executing S300;
When electronic equipment is fitted without the application program in default the application list, can be examined using existing file Survey mode is detected garbage files, can also terminate the execution of the present invention.
Specifically, the addition of application program can be carried out in default the application list according to the instruction of user or deleted It removes.Application program in default the application list can be that user be commonly used and to generate garbage files more using journey Sequence.Preferably, it is the application program with social functions, such as wechat, microblogging to preset the application program in the application list.
S300, the data that the corresponding default file of application program in mounted default the application list presss from both sides are determined Amount, the default file folder are the file under the installation directory of the application program in described mounted default the application list Folder;
Wherein, default file folder can be the file where the file that application program generates.Such as:With social functions The picture that is received in chat of application program where file.
It is illustrated by taking wechat as an example below:
The entitled avatar of file where the head portrait that wechat is downloaded, its store path are:tencent/ micromsg/[0-9a-z]{32}/avatar
The entitled favorite of file where the file of user's collection, its store path are:tencent/ micromsg/[0-9a-z]{32}/favorite
The entitled sns of the file where file in circle of friends, its store path are:tencent/ micromsg/[0-9a-z]{32}/sns
The entitled image2 of file where the picture downloaded in chat, its store path are:tencent/ micromsg/[0-9a-z]{32}/image2
The entitled video of file where the video downloaded in chat, its store path are:tencent/ micromsg/[0-9a-z]{32}/video
The entitled xlog of the file where daily record is monitored, its store path is:tencent/micromsg/xlog
The entitled openapi of file where game center icon catalogue, its store path are:tencent/ micromsg/[0-9a-z]{32}/openapi
The entitled image of file where public image cache catalogue, its store path are:tencent/ micromsg/[0-9a-z]{32}/image
It should be noted is that [0-9a-z] { 32 } indicate to be formed length by letter, number and be in path stored above [0-9a-z] { 32 } of 32 character strings, different wechat accounts are different.
The file of above-mentioned wechat is used to preserve the file that wechat is downloaded, it is thus determined that the data volume of each file can To determine the total amount of data of the file of the download in this document folder.
S400, when the default file folder data volume be more than first threshold when, according to the default file folder with it is described The default correspondence of the function of application program determines that the default file presss from both sides corresponding function;
Wherein, which can modify as needed, and optionally, which is 0MB or 1MB.
It, can not be right when the data volume of default file folder is smaller since file clean-up needs to spend system resource File in it is cleared up.It is of course also possible in default file folder, there are cleared up when file.
Each file for preserving generation file is corresponding with corresponding function, such as:Store path is tencent/ The file of micromsg/ [0-9a-z] { 32 }/sns is corresponding with circle of friends function;Store path is tencent/micromsg/ The file of [0-9a-z] { 32 }/image2 is corresponding with chat feature.
S500, pressed from both sides according to the default file file that corresponding function and the function generate file characteristic it is default Correspondence determines the file characteristic for the file that the function generates;
S600, guide user in default file folder using with the determining matched cleaning guidance mode of file characteristic File cleared up.
It is understood that the file that different function generates has different file characteristics.Such as:Circle of friends function generates File clean-up after, can be generated again in the state that electronic equipment is networked.And after the file clean-up that chat feature generates, It can not be generated again in the state of electronic equipment networking.And the monitoring journal file that monitoring function generates belongs to garbage files, clearly Use of the user to application program is not influenced after reason.
Based on whether the repeatable file characteristic generated and whether be garbage files file characteristic, file characteristic can have Three kinds, respectively fisrt feature, second feature and third feature, wherein with fisrt feature file can be can again from The non-junk file that the corresponding server of application program is downloaded;File with second feature can be can not be again from using journey The non-junk file that the corresponding server of sequence is downloaded;File with third feature can be not influence user couple after clearing up The garbage files of application program used.Certainly, in other embodiments of the present invention, fisrt feature may be can be again from answering It is downloaded with the corresponding server of program;Second feature can be to be downloaded again from the corresponding server of application program; Third feature can be not influence use of the user to application program after clearing up.
It, can be with the determining matched cleaning guidance mode of file characteristic when identified file characteristic is fisrt feature For:
The special clear list that the default file presss from both sides corresponding application program is added in file in default file folder, is carried Show that user clears up the file in the specially clear list;
Alternatively,
Display exports the default file and presss from both sides corresponding function and/or identified file characteristic, prompts user to described File in default file folder is cleared up.
Wherein, each application program in default the application list in step S200 can correspond to there are one specially Clear list, for showing the file for clearance under the corresponding application program installation directory of special clear list.
Default file is exported by display and presss from both sides corresponding function and/or identified file characteristic, can help user Whether solution can be again under server after generating the file clean-up in the function and/or default file folder of default file folder It carries, whether be garbage files, to provide more reference informations for the cleaning of user decision.
It is being with the determining matched cleaning guidance mode of file characteristic:Institute is added in file in default file folder The special clear list that default file presss from both sides corresponding application program is stated, user is prompted to clear up the file in the specially clear list When, method shown in Fig. 1 can also include:The file clean-up operation for receiving user carries out the file in the specially clear list clear Reason;
It is being with the determining matched cleaning guidance mode of file characteristic:Display exports the default file and presss from both sides corresponding work( Energy and/or identified file characteristic, when user being prompted to clear up the file in default file folder, side shown in Fig. 1 Method can also include:The file clean-up operation for receiving user, clears up the file in default file folder.
Wherein, the file clean-up operation of user can be to be grasped to the click of " key cleaning " button or " clearing up immediately " button Make.
Specifically, can be by special clear list display on the display screen of electronic equipment, user is it can be seen that be cleared up File.It is of course also possible to which folder name where the file that will be cleared up or the file where the file to be cleared up correspond to Function be shown on the display screen of electronic equipment.It is, of course, also possible to by the data volume of the file to be cleared up or to be cleared up File where the data volume of file show on a display screen.Such as:Show that store path is:tencent/ The data volume of each file in the file of micromsg/ [0-9a-z] { 32 }/sns.It is of course also possible to the text to be cleared up File where part carries out classification displaying, is divided into multiple cleaning items.Such as:In displaying, where the head portrait that wechat is downloaded File where the file that file is collected with user merges, and is shown as temporary file item.It is of course also possible to Data volume statistics is carried out according to classification to the file where the file to be cleared up.
It, can be with the determining matched cleaning guidance mode of file characteristic when identified file characteristic is second feature For:
According to the creation time of the file in default file folder, the file in default file folder is arranged Displaying prompts user to clear up the file shown.
In this case, method shown in Fig. 1 can also include:Selection operation of the user to the file of displaying is received, it is right The file of user's selection is cleared up.
Wherein, user to the selection operation of the file of displaying can by one of displaying file, it is multiple or full choosing Selection operation.
Due to can not be downloaded again after cleaning, user may be not intended to clear up whole files.This hair The bright creation time according to file carries out arrangement displaying to file, user can be allow to be browsed according to creation time sequence each A file, to the file to be cleared up of selection.
It, can be with the determining matched cleaning guidance mode of file characteristic when identified file characteristic is third feature For:
The default file is pressed from both sides and is added in acquiescence cleaning list, prompts user to the file in the acquiescence cleaning list File in folder is scanned and clears up.
Due to not interfering with use of the user to application program after cleaning garbage files, acquiescence cleaning row can be added In table, in this way, user, without individually clearing up garbage files, operation is more convenient.
During above-mentioned displaying to the file to be cleared up, classification displaying can also be carried out according to file type, such as Classification displaying is carried out to picture and video.In practical applications, file can be determined according to file suffixes and reading file header File type.
Certainly, the file clean-up method of the various embodiments described above offer can also include:User is received by the default file The operation of acquiescence cleaning list is added in folder, and default file folder is added in the acquiescence cleaning list.
When all clearing up the file in default file folder automatically when user wishes to clear up every time, the present invention can be according to user Default file is pressed from both sides in operation is added acquiescence cleaning list.In this way, the default file folder in file just no longer need to carry out individually it is clear Reason, it is more convenient.
Certainly, the file clean-up method of the various embodiments described above offer can also include:
Count the number cleared up the file in default file folder;
When the number is not less than second threshold, the default file is pressed from both sides and is added in acquiescence cleaning list.
On this basis, the file clean-up method of another embodiment of the present invention offer can also include:User is received to sky Between management options clicking operation, to it is described acquiescence cleaning list in file in file be scanned, cleaning scanning arrive File.
If user repeatedly clears up the file in default file folder, illustrate user to the text in default file folder Part has very strong cleaning wish, can press from both sides the default file and be added in acquiescence cleaning list, facilitate user.
When user opens space management function, the present invention can automatically clear up acquiescence the text in the file in list Part is scanned and clears up, and sends out scanning and cleaning instruction again without user, more convenient.
A kind of file clean-up method provided in an embodiment of the present invention, it may be determined that mounted default application in electronic equipment The data volume of the corresponding default file folder of application program in program listing, and when data volume is more than first threshold, determine pre- If the corresponding function of file, and further determine that function generate file file characteristic, using with determining file characteristic Matched cleaning guidance mode guiding user clears up the file in default file folder.Since each function of application program is produced Raw file is generally stored in corresponding file, therefore clear to identify by way of file where identifying file The file of reason can improve the accuracy rate of the file to be cleared up of identification.Meanwhile present invention use and the matched cleaning of file characteristic Guidance mode guides user to clear up the file in default file folder, and can be directed to the file with different file characteristics makes With different cleaning guidance modes, avoids and accidentally delete and leak the case where deleting.
As shown in Fig. 2, a kind of file clean-up device provided in an embodiment of the present invention, is applied to electronic equipment, which can To include:Detection operation receiving unit 100, application program determination unit 200, data volume determination unit 300, function determination unit 400, file characteristic determination unit 500 and cleaning guidance unit 600,
The detection operates receiving unit 100, and the file for receiving user detects operation;
Wherein, file detection operation can be the clicking operation to rubbish detection option, or select space management The clicking operation of item.
The application program determination unit 200 operates for being detected according to the file, whether determines the electronic equipment At least one of default the application list application program is installed, if it is, triggering the data volume determination unit 300;
When electronic equipment is fitted without the application program in default the application list, can be examined using existing file Survey mode is detected garbage files, can also terminate the execution of the present invention.
Specifically, the addition of application program can be carried out in default the application list according to the instruction of user or deleted It removes.Application program in default the application list can be that user be commonly used and to generate garbage files more using journey Sequence.Preferably, it is the application program with social functions, such as wechat, microblogging to preset the application program in the application list.
The data volume determination unit 300, for determining the application program pair in mounted default the application list The data volume for the default file folder answered, the default file folder are the application journey in described mounted default the application list File under the installation directory of sequence;
Wherein, default file folder can be the file where the file that application program generates.Such as:With social functions The picture that is received in chat of application program where file.
The function determination unit 400 is used for when the data volume that the default file presss from both sides is more than first threshold, according to institute The default correspondence for stating default file folder and the function of the application program determines that the default file presss from both sides corresponding function;
Wherein, which can modify as needed, and optionally, which is 0MB or 1MB.
It, can not be right when the data volume of default file folder is smaller since file clean-up needs to spend system resource File in it is cleared up.It is of course also possible in default file folder, there are cleared up when file.
The file characteristic determination unit 500 is produced for pressing from both sides corresponding function according to the default file with the function The default correspondence of the file characteristic of raw file determines the file characteristic for the file that the function generates;
The cleaning guidance unit 600, for being used using with the determining matched cleaning guidance mode guiding of file characteristic The file in default file folder is cleared up at family.
It is understood that the file that different function generates has different file characteristics.Such as:Circle of friends function generates File clean-up after, can be generated again in the state that electronic equipment is networked.And after the file clean-up that chat feature generates, It can not be generated again in the state of electronic equipment networking.And the monitoring journal file that monitoring function generates belongs to garbage files, clearly Use of the user to application program is not influenced after reason.
Based on whether the repeatable file characteristic generated and whether be garbage files file characteristic, file characteristic can have Three kinds, respectively fisrt feature, second feature and third feature, wherein with fisrt feature file can be can again from The non-junk file that the corresponding server of application program is downloaded;File with second feature can be can not be again from using journey The non-junk file that the corresponding server of sequence is downloaded;File with third feature can be not influence user couple after clearing up The garbage files of application program used.Certainly, in other embodiments of the present invention, fisrt feature may be can be again from answering It is downloaded with the corresponding server of program;Second feature can be to be downloaded again from the corresponding server of application program; Third feature can be not influence use of the user to application program after clearing up.
When identified file characteristic is fisrt feature, the cleaning guidance unit 600, being specifically used for will be described default The special clear list that the default file presss from both sides corresponding application program is added in file in file, prompts user to the specially clear row File in table is cleared up;
Alternatively,
The cleaning guidance unit 600 is specifically used for display and exports the corresponding function of the default file folder and/or institute really Fixed file characteristic prompts user to clear up the file in default file folder.
Wherein, presetting each application program in the application list can correspond to there are one special clear list, be used for Show the file for clearance under the corresponding application program installation directory of special clear list.
Default file is exported by display and presss from both sides corresponding function and/or identified file characteristic, can help user Whether solution can be again under server after generating the file clean-up in the function and/or default file folder of default file folder It carries, whether be garbage files, to provide more reference informations for the cleaning of user decision.
It is specifically used for the file in the default file folder default file is added in the cleaning guidance unit 600 The special clear list of corresponding application program is pressed from both sides, when user being prompted to clear up the file in the specially clear list, dress shown in Fig. 2 Setting to include:First cleaning unit, the file clean-up for receiving user operate, to the file in the specially clear list into Row cleaning;
It is specifically used for display in the cleaning guidance unit 600 and exports the corresponding function of the default file folder and/or institute Determining file characteristic, when user being prompted to clear up the file in default file folder, Fig. 2 shown devices can also wrap It includes:Second cleaning unit, the file clean-up for receiving user are operated, are cleared up the file in default file folder.
Wherein, the file clean-up operation of user can be to be grasped to the click of " key cleaning " button or " clearing up immediately " button Make.
Specifically, can be by special clear list display on the display screen of electronic equipment, user is it can be seen that be cleared up File.It is of course also possible to which folder name where the file that will be cleared up or the file where the file to be cleared up correspond to Function be shown on the display screen of electronic equipment.It is, of course, also possible to by the data volume of the file to be cleared up or to be cleared up File where the data volume of file show on a display screen.Such as:Show that store path is:tencent/ The data volume of each file in the file of micromsg/ [0-9a-z] { 32 }/sns.It is of course also possible to the text to be cleared up File where part carries out classification displaying, is divided into multiple cleaning items.Such as:In displaying, where the head portrait that wechat is downloaded File where the file that file is collected with user merges, and is shown as temporary file item.It is of course also possible to Data volume statistics is carried out according to classification to the file where the file to be cleared up.
When identified file characteristic is second feature, the cleaning guidance unit 600 can be specifically used for according to institute The creation time for stating the file in default file folder carries out arrangement displaying to the file in default file folder, prompts user The file shown is cleared up.
In this case, Fig. 2 shown devices can also include:Third clears up unit, for receiving user to displaying The selection operation of file clears up the file of user's selection.
Wherein, user to the selection operation of the file of displaying can by one of displaying file, it is multiple or full choosing Selection operation.
Due to can not be downloaded again after cleaning, user may be not intended to clear up whole files.This hair The bright creation time according to file carries out arrangement displaying to file, user can be allow to be browsed according to creation time sequence each A file, to the file to be cleared up of selection.
When identified file characteristic is third feature, the cleaning guidance unit 600, can be specifically used for will be described Default file folder is added in acquiescence cleaning list, and user is prompted to carry out the file in the file in the acquiescence cleaning list It scans and clears up.
Due to not interfering with use of the user to application program after cleaning garbage files, acquiescence cleaning row can be added In table, in this way, user, without individually clearing up garbage files, operation is more convenient.
During above-mentioned displaying to the file to be cleared up, classification displaying can also be carried out according to file type, such as Classification displaying is carried out to picture and video.In practical applications, file can be determined according to file suffixes and reading file header File type.
Certainly, the file clean-up device of the various embodiments described above offer can also include:First list updating unit, for connecing It receives user and the default file is pressed from both sides to the operation that acquiescence cleaning list is added, the acquiescence, which is added, in default file folder clears up In list.
When all clearing up the file in default file folder automatically when user wishes to clear up every time, the present invention can be according to user Default file is pressed from both sides in operation is added acquiescence cleaning list.In this way, the default file folder in file just no longer need to carry out individually it is clear Reason, it is more convenient.
Certainly, the file clean-up device of the various embodiments described above offer can also include:Clear up statistic unit and second list Updating unit,
The cleaning statistic unit, for counting the number cleared up the file in default file folder;
The second list updating unit, for when the number is not less than second threshold, the default file to be pressed from both sides It is added in acquiescence cleaning list.
On this basis, the file clean-up device of another embodiment of the present invention offer can also include:4th cleaning unit, Clicking operation for receiving user to space management option carries out the file in the file in the acquiescence cleaning list The file scanned is cleared up in scanning.
If user repeatedly clears up the file in default file folder, illustrate user to the text in default file folder Part has very strong cleaning wish, can press from both sides the default file and be added in acquiescence cleaning list, facilitate user.
When user opens space management function, the present invention can automatically clear up acquiescence the text in the file in list Part is scanned and clears up, and sends out scanning and cleaning instruction again without user, more convenient.
A kind of file clean-up device provided in an embodiment of the present invention, it may be determined that mounted default application in electronic equipment The data volume of the corresponding default file folder of application program in program listing, and when data volume is more than first threshold, determine pre- If the corresponding function of file, and further determine that function generate file file characteristic, using with determining file characteristic Matched cleaning guidance mode guiding user clears up the file in default file folder.Since each function of application program is produced Raw file is generally stored in corresponding file, therefore clear to identify by way of file where identifying file The file of reason can improve the accuracy rate of the file to be cleared up of identification.Meanwhile present invention use and the matched cleaning of file characteristic Guidance mode guides user to clear up the file in default file folder, and can be directed to the file with different file characteristics makes With different cleaning guidance modes, avoids and accidentally delete and leak the case where deleting.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, identical similar portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (10)

1. a kind of file clean-up method, which is characterized in that it is applied to electronic equipment, the method includes:
Receive the file detection operation of user;
It is detected and is operated according to the file, determine whether the electronic equipment has been equipped in default the application list at least One application program, if it is, determining the corresponding default file of application program in mounted default the application list The data volume of folder, the default file folder are the installation directory of the application program in described mounted default the application list Under file;
When the data volume of default file folder is more than first threshold, according to default file folder and the application program The default correspondence of function determines that the default file presss from both sides corresponding function;
The default correspondence of the file characteristic for the file that corresponding function is generated with the function is pressed from both sides according to the default file, Determine the file characteristic for the file that the function generates;
Using with the matched cleaning guidance mode guiding user of determining file characteristic to the file in default file folder into Row cleaning.
2. and true according to the method described in claim 1, it is characterized in that, when identified file characteristic is fisrt feature The matched cleaning guidance mode of fixed file characteristic is:
The special clear list that the default file presss from both sides corresponding application program is added in file in default file folder, prompts to use The file in the specially clear list is cleared up at family;
Alternatively,
Display exports the default file and presss from both sides corresponding function and/or identified file characteristic, prompts user to described default File in file is cleared up.
3. according to the method described in claim 2, it is characterized in that, with the determining matched cleaning guidance mode of file characteristic For:The special clear list that the default file presss from both sides corresponding application program is added in file in default file folder, prompts to use When the file in the specially clear list is cleared up at family, the method further includes:The file clean-up operation for receiving user, to institute The file stated in specially clear list is cleared up;
It is being with the determining matched cleaning guidance mode of file characteristic:Display exports the default file and presss from both sides corresponding function And/or identified file characteristic, when user being prompted to clear up the file in default file folder, the method is also wrapped It includes:The file clean-up operation for receiving user, clears up the file in default file folder.
4. and true according to the method described in claim 1, it is characterized in that, when identified file characteristic is second feature The matched cleaning guidance mode of fixed file characteristic is:
According to the creation time of the file in default file folder, arrangement exhibition is carried out to the file in default file folder Show, user is prompted to clear up the file shown.
5. according to the method described in claim 4, it is characterized in that, further including:
Selection operation of the user to the file of displaying is received, the file of user's selection is cleared up.
6. and true according to the method described in claim 1, it is characterized in that, when identified file characteristic is third feature The matched cleaning guidance mode of fixed file characteristic is:
The default file is pressed from both sides and is added in acquiescence cleaning list, prompts user in the file in the acquiescence cleaning list File be scanned and clear up.
7. according to the method described in claim 1,3 or 5, which is characterized in that further include:
It receives user and the default file is pressed from both sides to the operation that acquiescence cleaning list is added, default file folder is added described silent See clearly in reason list.
8. according to the method described in claim 1,3 or 5, which is characterized in that further include:
Count the number cleared up the file in default file folder;
When the number is not less than second threshold, the default file is pressed from both sides and is added in acquiescence cleaning list.
9. according to the method described in claim 8, it is characterized in that, further including:
Clicking operation of the user to space management option is received, the file in the file in the acquiescence cleaning list is carried out The file scanned is cleared up in scanning.
10. a kind of file clean-up device, which is characterized in that be applied to electronic equipment, described device includes:Detection operation receives single Member, application program determination unit, data volume determination unit, function determination unit, file characteristic determination unit and cleaning guiding are single Member,
The detection operates receiving unit, and the file for receiving user detects operation;
The application program determination unit operates for being detected according to the file, determines whether the electronic equipment has been installed There is at least one of default the application list application program, if it is, triggering the data volume determination unit;
The data volume determination unit, for determining that the application program in mounted default the application list is corresponding default The data volume of file, the default file folder are the installation of the application program in described mounted default the application list File under catalogue;
The function determination unit, for when the data volume that the default file presss from both sides is more than first threshold, being preset according to described The default correspondence of file and the function of the application program determines that the default file presss from both sides corresponding function;
The file characteristic determination unit, for pressing from both sides the file that corresponding function is generated with the function according to the default file File characteristic default correspondence, determine the file characteristic for the file that the function generates;
The cleaning guidance unit, for guiding user to described using with the determining matched cleaning guidance mode of file characteristic File in default file folder is cleared up.
CN201510324966.5A 2015-06-12 2015-06-12 file cleaning method and device Active CN104881493B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510324966.5A CN104881493B (en) 2015-06-12 2015-06-12 file cleaning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510324966.5A CN104881493B (en) 2015-06-12 2015-06-12 file cleaning method and device

Publications (2)

Publication Number Publication Date
CN104881493A CN104881493A (en) 2015-09-02
CN104881493B true CN104881493B (en) 2018-09-11

Family

ID=53948986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510324966.5A Active CN104881493B (en) 2015-06-12 2015-06-12 file cleaning method and device

Country Status (1)

Country Link
CN (1) CN104881493B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528577B (en) * 2015-09-15 2019-12-24 腾讯科技(深圳)有限公司 Method and device for setting file to be cleaned
CN106557515A (en) * 2015-09-29 2017-04-05 北京国双科技有限公司 File delet method and device
CN106682026A (en) * 2015-11-09 2017-05-17 北京金山安全软件有限公司 File cleaning method and device and electronic equipment
CN105574163A (en) * 2015-12-16 2016-05-11 北京金山安全软件有限公司 File processing method and device and electronic equipment
CN105760518A (en) * 2016-02-29 2016-07-13 四川秘无痕信息安全技术有限责任公司 Method for accurately detecting data of Android WeChat friend circle
CN105893471B (en) * 2016-03-28 2020-11-20 联想(北京)有限公司 Data processing method and electronic equipment
CN105893152A (en) * 2016-03-31 2016-08-24 广东欧珀移动通信有限公司 Memory management method and device and mobile terminal
CN107291483B (en) * 2016-04-01 2021-02-05 深圳富泰宏精密工业有限公司 Method for intelligently deleting application program and electronic equipment
CN106201218A (en) * 2016-07-27 2016-12-07 北京金山安全软件有限公司 Method and device for clearing picture files in chat records and mobile device
CN107273401A (en) * 2017-04-21 2017-10-20 捷开通讯(深圳)有限公司 Management method, mobile device and the storage device of application data file
CN110543451A (en) * 2019-07-30 2019-12-06 华为技术有限公司 Method and device for efficiently cleaning equipment files
CN111104180B (en) * 2019-12-11 2021-08-03 惠州Tcl移动通信有限公司 Application program optimization method and device, storage medium and electronic equipment
CN111917919B (en) * 2020-07-31 2021-10-19 未来穿戴技术有限公司 Mode management method, device, mobile terminal and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651864A (en) * 2008-08-14 2010-02-17 比亚迪股份有限公司 Method for managing file in mobile terminal and mobile terminal
CN102880713A (en) * 2012-09-29 2013-01-16 北京奇虎科技有限公司 File deleting method and file deleting device
CN103365882A (en) * 2012-03-30 2013-10-23 网秦无限(北京)科技有限公司 Method and system for cleaning junk files on mobile terminal
CN103530424A (en) * 2013-10-31 2014-01-22 北京奇虎科技有限公司 Useless file detection method and device
CN104239157A (en) * 2014-08-19 2014-12-24 北京奇虎科技有限公司 Method and device for optimizing and cleaning data of mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9798749B2 (en) * 2013-03-29 2017-10-24 Piriform Ltd. Multiple user profile cleaner

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651864A (en) * 2008-08-14 2010-02-17 比亚迪股份有限公司 Method for managing file in mobile terminal and mobile terminal
CN103365882A (en) * 2012-03-30 2013-10-23 网秦无限(北京)科技有限公司 Method and system for cleaning junk files on mobile terminal
CN102880713A (en) * 2012-09-29 2013-01-16 北京奇虎科技有限公司 File deleting method and file deleting device
CN103530424A (en) * 2013-10-31 2014-01-22 北京奇虎科技有限公司 Useless file detection method and device
CN104239157A (en) * 2014-08-19 2014-12-24 北京奇虎科技有限公司 Method and device for optimizing and cleaning data of mobile terminal

Also Published As

Publication number Publication date
CN104881493A (en) 2015-09-02

Similar Documents

Publication Publication Date Title
CN104881493B (en) file cleaning method and device
KR101334116B1 (en) Mobile communication terminal device and method for providing user information with intergrated user information and SNS
CN103369048B (en) Content share method based on drag operation and system
CN106201170B (en) A kind of the footmark processing method and terminal of application icon
CN104881496B (en) File name identification and file cleaning method and device
CN104820683B (en) A kind of picture processing terminal
CN108230574A (en) Object storage terminal pickup method and device and electronic equipment
CN104951507B (en) Method and device for clearing up files in mobile terminal applications
CN104579902B (en) A kind of method and device showing group chat information
CN104469717B (en) Note transmission method and device
CN104811791B (en) Method, device and the terminal device of video cleaning
CN107222790A (en) A kind of method, terminal and computer-readable recording medium for sending barrage
CN103440247A (en) Method and device for sending photos
CN104809158B (en) Web content filter method and device
CN105068726B (en) Information processing method and terminal
CN105956185A (en) Application search method and system, application search client and user terminal
CN106407358B (en) Image searching method and device and mobile terminal
CN104834687B (en) A kind of image display method
CN107888479A (en) Voice communication method, device, computer equipment and storage medium
CN107506104A (en) Method for sorting, device, mobile terminal and the storage medium of desktop icons
CN102323873A (en) Method and system for triggering icon reply in instant communication
CN105893471B (en) Data processing method and electronic equipment
CN105608216B (en) Method and device for managing registration information and electronic equipment
CN102946401B (en) A kind of data creation method, device and equipment
CN112306590B (en) Screenshot generating method and related device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant