CN105183902A - File cleaning method and device and terminal - Google Patents

File cleaning method and device and terminal Download PDF

Info

Publication number
CN105183902A
CN105183902A CN201510640564.6A CN201510640564A CN105183902A CN 105183902 A CN105183902 A CN 105183902A CN 201510640564 A CN201510640564 A CN 201510640564A CN 105183902 A CN105183902 A CN 105183902A
Authority
CN
China
Prior art keywords
file
degree
cleaning
attribute
time period
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
CN201510640564.6A
Other languages
Chinese (zh)
Other versions
CN105183902B (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 CN201510640564.6A priority Critical patent/CN105183902B/en
Publication of CN105183902A publication Critical patent/CN105183902A/en
Application granted granted Critical
Publication of CN105183902B publication Critical patent/CN105183902B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1737Details of further file system functions for reducing power consumption or coping with limited storage space, e.g. in mobile devices

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

Abstract

The embodiment of the invention discloses a file cleaning method, a file cleaning device and a terminal, wherein the method comprises the following steps: acquiring a file with a deep cleaning attribute in a terminal; judging whether the use frequency of the file with the deep cleaning attribute in a preset time period meets a preset rule or not; and if so, cleaning the file with the deep cleaning attribute according to a suggested cleaning mode. By applying the embodiment of the invention, the files meeting the preset rules in the files with the deep cleaning attribute are cleaned according to the suggested cleaning mode. The occupation of storage space is reduced, the running speed of the terminal is improved, and the working efficiency and the experience effect of a user are improved.

Description

A kind of file clean-up method, device and terminal
Technical field
The present invention relates to field of terminal technology, particularly a kind of file clean-up method, device and terminal.
Background technology
Constantly use in the process of terminal (such as mobile phone, panel computer etc.) user, terminal can produce various garbage files.Along with the continuous growth of these garbage files, garbage files more and more takies storage space, also can drag the travelling speed of slow terminal simultaneously, affect work efficiency and the experience of user.
In prior art, garbage files is cleared up, mainly garbage-cleaning software is installed, utilizes garbage-cleaning software to clear up garbage files.Utilize garbage-cleaning software to clear up garbage files, mainly contain two kinds of modes:
A kind of mode is: suggestion manner of cleaning up, suggestion cleaning is also Automatic clearance, refer to after the suggestion cleaning instruction receiving user, directly the file meeting the self-defining garbage files rule of garbage-cleaning software in terminal is removed, under normal circumstances, can remove files such as the discarded records produced in the residual installation kit file after the cache file in terminal, application program unloading, application program operational process.
Another kind of mode is: degree of depth manner of cleaning up, degree of depth cleaning is also manual finishing, refer to after the degree of depth cleaning instruction receiving user, to there is the file of degree of depth cleaning attribute (such as file size is greater than a certain value) in terminal, show to user in the form of a list, select whether carry out removing by user and process.
But under normal circumstances, the file that user scans under can not deleting degree of depth manner of cleaning up, but likely there is the file needing cleaning in the file scanned under degree of depth manner of cleaning up.Need the existence of the file of cleaning, taking of storage space will be caused, drag the travelling speed of slow terminal, affect work efficiency and the experience effect of user.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of file clean-up method, device and terminal, to reduce taking of storage space, improves the travelling speed of terminal, improves work efficiency and the experience effect of user.
For achieving the above object, the embodiment of the invention discloses a kind of file clean-up method, be applied to terminal, method comprises:
Obtain in described terminal the file with degree of depth cleaning attribute;
Whether the frequency of utilization of file in preset time period described in judgement with degree of depth cleaning attribute meets the first preset rules;
If meet, the described file with degree of depth cleaning attribute is carried out cleaning operation according to suggestion manner of cleaning up.
Optionally, there is in the described terminal of described acquisition the file of degree of depth cleaning attribute, comprising:
Obtain the All Files in described terminal;
For each file in obtained All Files, judge whether the size of this file is not less than default first threshold, if so, this file is labeled as the file with degree of depth cleaning attribute.
Optionally, there is in the described terminal of described acquisition the file of degree of depth cleaning attribute, comprising:
Obtain the store path of described terminal file;
Judging whether described store path is self-defined path, is if so, the file with degree of depth cleaning attribute by the file mark under described store path.
Optionally, there is in the described terminal of described acquisition the file of degree of depth cleaning attribute, comprising:
Obtain the store path at the file place in described terminal with particular file types;
Judge whether described file store path meets the second preset rules, if so, then by have under described store path particular file types file mark be have the degree of depth cleaning attribute file.
Optionally, whether the frequency of utilization of file in preset time period described in described judgement with degree of depth cleaning attribute meets the first preset rules, comprising:
There is described in acquisition the last access time of the file of degree of depth cleaning attribute;
Judge whether the described last access time is not less than default Second Threshold to the duration of current time, if so, represent that the frequency of utilization of this file in preset time period meets the first preset rules.
Optionally, whether the frequency of utilization of file in preset time period described in described judgement with degree of depth cleaning attribute meets the first preset rules, comprising:
Obtain in preset time period the number of times of the file described in access with degree of depth cleaning attribute;
Judge whether obtained number of times is less than the 3rd default threshold value, if so, represent that the frequency of utilization of this file in preset time period meets the first preset rules.
Optionally, whether the frequency of utilization of file in preset time period described in described judgement with degree of depth cleaning attribute meets the first preset rules, comprising:
There is described in obtaining respectively the times N of file in the first preset time period and the second preset time period of degree of depth cleaning attribute 1and N 2, wherein, described first preset time period is early than described second preset time period;
Judge N 1with N 2ratio whether be greater than the 4th default threshold value, if so, represent that the frequency of utilization of this file in preset time period meets the first preset rules.
Optionally, described by described have the degree of depth cleaning attribute file according to suggestion manner of cleaning up carry out cleaning operation, comprising:
Receive the suggestion cleaning instruction of user; And
According to the suggestion cleaning instruction of user, there is described in deletion the file of degree of depth cleaning attribute.
Optionally, described by described have the degree of depth cleaning attribute file according to suggestion manner of cleaning up carry out cleaning operation, comprising:
By described have the degree of depth cleaning attribute file unloading in default storage area; And
After described unloading completes, according to the suggestion cleaning instruction of user, delete the file described in raw storage area with degree of depth cleaning attribute.
Optionally, described method also comprises:
Judge in predetermined period, whether there is the recovery instruction for default storage area file;
If exist, then recover described recovery instruction for described default storage area in file;
If do not exist, then delete the file exceeding predetermined period in described default storage area storage time.
For achieving the above object, the embodiment of the invention discloses a kind of file clean-up device, be applied to terminal, device comprises: file acquisition module, the first judge module and cleaning module, wherein,
Described file acquisition module, for obtaining in described terminal the file with degree of depth cleaning attribute;
Described first judge module, for judging whether the frequency of utilization of file in preset time period with degree of depth cleaning attribute that described file acquisition module obtains meets the first preset rules;
Described cleaning module, for when described first judge module judged result is for being, carries out cleaning operation by the described file with degree of depth cleaning attribute according to suggestion manner of cleaning up.
Optionally, described file acquisition module, specifically for:
Obtain the All Files in described terminal;
For each file in obtained All Files, judge whether the size of this file is not less than default first threshold, if so, this file is labeled as the file with degree of depth cleaning attribute.
Optionally, described file acquisition module, specifically for:
Obtain the store path of described terminal file;
Judging whether described store path is self-defined path, is if so, the file with degree of depth cleaning attribute by the file mark under described store path.
Optionally, described file acquisition module, specifically for:
Obtain the store path at the file place in described terminal with particular file types;
Judge whether described file store path meets the second preset rules, if so, then by have under described store path particular file types file mark be have the degree of depth cleaning attribute file.
Optionally, described first judge module, specifically for:
There is described in acquisition the last access time of the file of degree of depth cleaning attribute;
Judge whether the described last access time is not less than default Second Threshold to the duration of current time, if so, represent that the frequency of utilization of this file in preset time period meets the first preset rules.
Optionally, described first judge module, specifically for:
Obtain in preset time period the number of times of the file described in access with degree of depth cleaning attribute;
Judge whether obtained number of times is less than the 3rd default threshold value, if so, represent that the frequency of utilization of this file in preset time period meets the first preset rules.
Optionally, described first judge module, specifically for:
There is described in obtaining respectively the times N of file in the first preset time period and the second preset time period of degree of depth cleaning attribute 1and N 2, wherein, described first preset time period is early than described second preset time period;
Judge N 1with N 2ratio whether be greater than the 4th default threshold value, if so, represent that the frequency of utilization of this file in preset time period meets the first preset rules.
Optionally, described cleaning module, specifically for:
When described first judge module judged result is for being, receive the suggestion cleaning instruction of user;
According to the suggestion cleaning instruction of user, there is described in deletion the file of degree of depth cleaning attribute.
Optionally, described cleaning module, comprising: unloading submodule and cleaning submodule, wherein,
Described unloading submodule, for when described first judge module judged result is for being, by described have the degree of depth cleaning attribute file unloading in default storage area;
Described cleaning submodule, in the described file unloading with degree of depth cleaning attribute after default storage area completes, according to the suggestion of user cleaning instruction, delete the file described in raw storage area with degree of depth cleaning attribute.
Optionally, described device also comprises: the second judge module, recovery module and removing module, wherein,
Whether described second judge module, exist the recovery instruction for default storage area file for judging in predetermined period;
Described recovery module, for when described second judge module judged result is for being, recover described recovery instruction for described default storage area in file;
Described removing module, for when described second judge module judged result is no, deletes the file exceeding predetermined period in described default storage area storage time.
For achieving the above object, the embodiment of the invention discloses a kind of terminal, described terminal comprises: housing, processor, storer, circuit board and power circuit, wherein, circuit board is placed in the interior volume that housing surrounds, and processor and storer are arranged on circuit boards; Power circuit, for powering for each circuit of terminal or device; Storer is used for stores executable programs code; Processor runs the program corresponding with executable program code by reading the executable program code stored in storer, for execution following steps:
Obtain in described terminal the file with degree of depth cleaning attribute;
Whether the frequency of utilization of file in preset time period described in judgement with degree of depth cleaning attribute meets the first preset rules;
If meet, the described file with degree of depth cleaning attribute is carried out cleaning operation according to suggestion manner of cleaning up.
As seen from the above technical solutions, embodiments provide a kind of file clean-up method, device and terminal, method comprises: obtain in described terminal the file with degree of depth cleaning attribute; Whether the frequency of utilization of file in preset time period described in judgement with degree of depth cleaning attribute meets the first preset rules; If meet, the described file with degree of depth cleaning attribute is carried out cleaning operation according to suggestion manner of cleaning up.The technical scheme that the application embodiment of the present invention provides, will have in the file of degree of depth cleaning attribute, meet the file of preset rules according to advising that manner of cleaning up is cleared up.Decrease taking of storage space, improve the travelling speed of terminal, improve work efficiency and the experience effect of user.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The first schematic flow sheet of the file clean-up method that Fig. 1 provides for the embodiment of the present invention;
The second schematic flow sheet of the file clean-up method that Fig. 2 provides for the embodiment of the present invention;
The third schematic flow sheet of the file clean-up method that Fig. 3 provides for the embodiment of the present invention;
The first structural representation of the file clean-up device that Fig. 4 provides for the embodiment of the present invention;
The second structural representation of the file clean-up device that Fig. 5 provides for the embodiment of the present invention;
The third structural representation of the file clean-up device that Fig. 6 provides for the embodiment of the present invention;
The structural representation of a kind of terminal that Fig. 7 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In order to solve prior art problem, embodiments provide a kind of file clean-up method, device and terminal.First a kind of file clean-up method that the embodiment of the present invention provides is introduced below.
It should be noted that, embodiments of the invention are preferably applicable to the terminal of having installed iOS operating system (iOS is the handheld equipment operating system developed by Apple) or Android operation system (android system is a kind of based on the freedom of Linux and the operating system of open source code) or WindowsPhone operating system (WindowsPhone is the Mobile phone operating system that Microsoft issues), certainly be also applicable to other-end, the present invention is not construed as limiting this.
It should be noted that, suggestion cleaning is also Automatic clearance, refers to after the suggestion cleaning instruction receiving user, is directly removed by the file meeting the self-defining garbage files rule of garbage-cleaning software in terminal; Degree of depth cleaning is also manual finishing, refer to after the degree of depth cleaning instruction receiving user, to there is the file of degree of depth cleaning attribute (such as file size is greater than a certain value) in terminal, show to user in the form of a list, select whether carry out removing by user and process.
The first schematic flow sheet of the file clean-up method that Fig. 1 provides for the embodiment of the present invention; Can comprise:
S101: obtain in described terminal the file with degree of depth cleaning attribute;
In actual applications, obtain in described terminal the file with degree of depth cleaning attribute, the All Files in described terminal can be obtained; For each file in obtained All Files, judge whether the size of this file is not less than default first threshold, if so, this file is labeled as the file with degree of depth cleaning attribute.
Exemplary, for file A, suppose that the first threshold preset is 50MB, the file A size obtained is 103MB, and the file B size obtained is 40MB, then judge that file A is greater than 50MB, file A is labeled as the file with degree of depth cleaning attribute.
In actual applications, obtain in described terminal the file with degree of depth cleaning attribute, the store path of described terminal file can be obtained; Judging whether described store path is self-defined path, is if so, the file with degree of depth cleaning attribute by the file mark under described store path.
Self-defined path is generally nonsystematic file path, also the associated path of nonusable routine, but user oneself create be used for path corresponding to the file of storage file.Therefore can judge that whether the store path of obtained file is the associated path of system file path and application program, at the store path of obtained file neither system file path, when the associated path of also nonusable routine, then think that the store path of obtained file is self-defined path.
Exemplary, for file A, suppose that user oneself creates file x, store file A in file x, judge that the path that file x is corresponding is self-defined path, the file A in file x is labeled as the file with degree of depth cleaning attribute.
In actual applications, obtain in described terminal the file with degree of depth cleaning attribute, the store path at the file place in described terminal with particular file types can be obtained; Judge whether described file store path meets the second preset rules, if so, then by have under described store path particular file types file mark be have the degree of depth cleaning attribute file.
Exemplary, suppose that the file of particular type is the video file of expansion " .avi " by name, the second preset rules download file that to be file store path be in browser y installation directory.
For file A and file B.
The video file supposing the expansion by name " .avi " obtained is file A, and its store path is in the download file in browser y installation directory.
Judge that the file store path of file A is in the download file in browser y installation directory, then by the file A in the download file in browser y installation directory, be labeled as the file with degree of depth cleaning attribute.
The video file supposing the expansion by name " .avi " obtained is file B, its store path Wei Andriod data video file folder in.
The file store path judging file B in the download file in browser y installation directory, then not by Andriod data file B in video file folder, be labeled as the file with degree of depth cleaning attribute.
S102: whether the frequency of utilization of file in preset time period described in judgement with degree of depth cleaning attribute meets the first preset rules, if so, performs S103;
In actual applications, whether the frequency of utilization of file in preset time period described in judgement with degree of depth cleaning attribute meets the first preset rules, has the last access time of the file of degree of depth cleaning attribute described in can obtaining; Judge whether the described last access time is not less than default Second Threshold to the duration of current time, if so, represent that the frequency of utilization of this file in preset time period meets the first preset rules.
Exemplary, to have the file A of degree of depth cleaning attribute.Suppose the time of the last access file A obtained to the duration of current time be 7 days 15 hours 35 points, the Second Threshold preset is 7 days.Judge that the time of last access file A is greater than 7 days to the duration of current time, then represent that the frequency of utilization of file A in preset time period meets the first preset rules.
In actual applications, whether the frequency of utilization of file in preset time period described in judgement with degree of depth cleaning attribute meets the first preset rules, can obtain in preset time period the number of times of the file described in access with degree of depth cleaning attribute; Judge whether obtained number of times is less than the 3rd default threshold value, if so, represent that the frequency of utilization of this file in preset time period meets the first preset rules.
Exemplary, to have the file A of degree of depth cleaning attribute.Suppose that preset time period is one week, within a week of acquisition distance current time, file A amounts to accessed 2 times, and the 3rd threshold value preset is 7 times, and namely on average every day, needs were accessed once.Judge that within one week of distance current time, the accessed number of times of file A is less than 7 times, then represent that the frequency of utilization of file A in preset time period meets the first preset rules.
In actual applications, whether the frequency of utilization of file in preset time period described in judgement with degree of depth cleaning attribute meets the first preset rules, has the times N of file in the first preset time period and the second preset time period of degree of depth cleaning attribute described in can obtaining respectively 1and N 2, wherein, described first preset time period is early than described second preset time period; Judge N 1with N 2ratio whether be greater than the 4th default threshold value, if so, represent that the frequency of utilization of this file in preset time period meets the first preset rules.
Exemplary, to have the file A of degree of depth cleaning attribute.Suppose that presetting first time period is last month, presetting for the second time period is this month.The 4th threshold value preset is 10.
Suppose accessed 15 times of acquisition file A last month, accessed 1 time of this month file A, the ratio of the accessed number of times of file A last month and the accessed number of times of this month file A is 15, being greater than the 4th default threshold value is 10, represents that the frequency of utilization of file A in preset time period meets the first preset rules.
S103: the described file with degree of depth cleaning attribute is carried out cleaning operation according to suggestion manner of cleaning up.
In actual applications, the described file with degree of depth cleaning attribute is carried out cleaning operation according to suggestion manner of cleaning up, the suggestion cleaning instruction of user can be received; According to the suggestion cleaning instruction of user, there is described in deletion the file of degree of depth cleaning attribute.
Exemplary, to have the file A of degree of depth cleaning attribute.Suppose that the frequency of utilization of file A in preset time period meets the first preset rules.After judging that the frequency of utilization of file A in preset time period meets the first preset rules, receive the suggestion cleaning instruction of user, after the suggestion cleaning instruction receiving user, file A is deleted.
It should be noted that, to be above-mentionedly described for file A and file B, be only an instantiation of the present invention, do not form limitation of the invention.In actual applications, having the file of degree of depth cleaning attribute, can be the off-line map often do not used in various map software, the old dictionary of various input method and/or old skin, the old skin of various chat software, the audio-video document of various unloaded audio-visual application software download etc.
The present invention is embodiment illustrated in fig. 1 in application, will have in the file of degree of depth cleaning attribute, meet the file of preset rules according to advising that manner of cleaning up is cleared up.Decrease taking of storage space, improve the travelling speed of terminal, improve work efficiency and the experience effect of user.
The second schematic flow sheet of the file clean-up method that Fig. 2 provides for the embodiment of the present invention; The present invention is embodiment illustrated in fig. 2 on basis embodiment illustrated in fig. 1, and S103 can comprise S103A and S103B, wherein,
S103A: by described have the degree of depth cleaning attribute file unloading in default storage area;
S103B: after described unloading completes, according to the suggestion cleaning instruction of user, deletes the file described in raw storage area with degree of depth cleaning attribute.
Exemplary, suppose that the file with degree of depth cleaning attribute carrying out cleaning operation according to suggestion manner of cleaning up is A, its raw storage area is in the terminal: Andriod data in picture file folder, default storage area is: backup file.Then A is backed up in backup file, by Andriod data picture file folder file A delete.
It should be noted that, above-mentioned for file A, Andriod data picture file folder and backup file be described, be only an instantiation of the present invention, do not form limitation of the invention.
The present invention is embodiment illustrated in fig. 2 in application, will have in the file of degree of depth cleaning attribute, meet the file of preset rules according to advising that manner of cleaning up is cleared up.Decrease taking of storage space, improve the travelling speed of terminal, improve work efficiency and the experience effect of user.And before cleaning file, file is carried out unloading, under the operation that user deletes by mistake, file can be repaired.
The third schematic flow sheet of the file clean-up method that Fig. 3 provides for the embodiment of the present invention; The present invention is embodiment illustrated in fig. 3 on basis embodiment illustrated in fig. 2, increases:
S104: judge whether there is the recovery instruction for default storage area file in predetermined period, if so, performs S105, if not, performs S106;
S105: recover described recovery instruction for described default storage area in file;
S106: delete the file exceeding predetermined period in described default storage area storage time.
Exemplary, suppose that predetermined period is 1 week, default storage area be above-mentioned backup file, include file A and file B in backup file.
Judge within 1 week, whether receive the recovery instruction for file A and/or file B;
If receive the recovery instruction for file A, then file A is returned to its raw storage area;
If receive the recovery instruction for file B, then file B is returned to its raw storage area;
If receive the recovery instruction for file A and file B, then file A is returned to its raw storage area, and by file B to its raw storage area;
If do not receive the recovery instruction for file A and/or file B within 1 week, then by backup file include file A and file B delete.
It should be noted that, to be above-mentionedly described for file A and file B, be only an instantiation of the present invention, do not form limitation of the invention.In actual applications, carrying out the file with degree of depth cleaning attribute of cleaning operation according to suggestion manner of cleaning up, can be the off-line map often do not used in various map software, the old dictionary of various input method and/or old skin, the old skin of various chat software, the audio-video document of various unloaded audio-visual application software download etc.
It should be noted that, to be above-mentionedly described for file A, file B and backup file, be only an instantiation of the present invention, do not form limitation of the invention.
The present invention is embodiment illustrated in fig. 3 in application, will have in the file of degree of depth cleaning attribute, meet the file of preset rules according to advising that manner of cleaning up is cleared up.Decrease taking of storage space, improve the travelling speed of terminal, improve work efficiency and the experience effect of user.And before cleaning file, file is carried out unloading, under the operation that user deletes by mistake, file can be repaired, avoid the generation that file misses deletion situation.
Corresponding with above-mentioned embodiment of the method, the embodiment of the present invention also provides a kind of file clean-up device.
The first structural representation of the file clean-up device that Fig. 4 provides for the embodiment of the present invention, can comprise: file acquisition module 401, first judge module 402 and cleaning module 403, wherein,
File acquisition module 401, for obtaining in described terminal the file with degree of depth cleaning attribute;
In actual applications, the file acquisition module 401 of illustrated embodiment of the present invention, specifically may be used for:
Obtain the All Files in described terminal;
For each file in obtained All Files, judge whether the size of this file is not less than default first threshold, if so, this file is labeled as the file with degree of depth cleaning attribute.
In actual applications, the file acquisition module 401 of illustrated embodiment of the present invention, specifically may be used for:
Obtain the store path of described terminal file;
Judging whether described store path is self-defined path, is if so, the file with degree of depth cleaning attribute by the file mark under described store path.
In actual applications, the file acquisition module 401 of illustrated embodiment of the present invention, specifically may be used for:
Obtain the store path at the file place in described terminal with particular file types;
Judge whether described file store path meets the second preset rules, if so, then by have under described store path particular file types file mark be have the degree of depth cleaning attribute file.
First judge module 402, for judging whether the frequency of utilization of file in preset time period with degree of depth cleaning attribute that file acquisition module 401 obtains meets the first preset rules;
In actual applications, the first judge module 402 of illustrated embodiment of the present invention, specifically may be used for:
There is described in acquisition the last access time of the file of degree of depth cleaning attribute;
Judge whether the described last access time is not less than default Second Threshold to the duration of current time, if so, represent that the frequency of utilization of this file in preset time period meets the first preset rules.
In actual applications, the first judge module 402 of illustrated embodiment of the present invention, specifically may be used for:
Obtain in preset time period the number of times of the file described in access with degree of depth cleaning attribute;
Judge whether obtained number of times is less than the 3rd default threshold value, if so, represent that the frequency of utilization of this file in preset time period meets the first preset rules.
In actual applications, the first judge module 402 of illustrated embodiment of the present invention, specifically may be used for:
There is described in obtaining respectively the times N of file in the first preset time period and the second preset time period of degree of depth cleaning attribute 1and N 2, wherein, described first preset time period is early than described second preset time period;
Judge N 1with N 2ratio whether be greater than the 4th default threshold value, if so, represent that the frequency of utilization of this file in preset time period meets the first preset rules.
Cleaning module 403, for when the first judge module 402 judged result is for being, carries out cleaning operation by the described file with degree of depth cleaning attribute according to suggestion manner of cleaning up.
In actual applications, the cleaning module 403 of illustrated embodiment of the present invention, specifically may be used for:
When the first judge module 402 judged result is for being, receive the suggestion cleaning instruction of user;
According to the suggestion cleaning instruction of user, there is described in deletion the file of degree of depth cleaning attribute.
The present invention is embodiment illustrated in fig. 4 in application, will have in the file of degree of depth cleaning attribute, meet the file of preset rules according to advising that manner of cleaning up is cleared up.Decrease taking of storage space, improve the travelling speed of terminal, improve work efficiency and the experience effect of user.
The second structural representation of the file clean-up device that Fig. 5 provides for the embodiment of the present invention; The present invention is embodiment illustrated in fig. 5 on basis embodiment illustrated in fig. 4, and cleaning module 403, can comprise: unloading submodule and cleaning submodule, wherein,
Described unloading submodule, for when described first judge module judged result is for being, by described have the degree of depth cleaning attribute file unloading in default storage area;
Described cleaning submodule, in the described file unloading with degree of depth cleaning attribute after default storage area completes, according to the suggestion of user cleaning instruction, delete the file described in raw storage area with degree of depth cleaning attribute.
The present invention is embodiment illustrated in fig. 5 in application, will have in the file of degree of depth cleaning attribute, meet the file of preset rules according to advising that manner of cleaning up is cleared up.Decrease taking of storage space, improve the travelling speed of terminal, improve work efficiency and the experience effect of user.And before cleaning file, file is carried out unloading, under the operation that user deletes by mistake, file can be repaired.
The third structural representation of the file clean-up device that Fig. 6 provides for the embodiment of the present invention; The present invention is embodiment illustrated in fig. 6 on basis embodiment illustrated in fig. 5, increases: the second judge module 404, recovery module 405 and removing module 406, wherein,
Whether the second judge module 404, exist the recovery instruction for default storage area file for judging in predetermined period;
Recover module 405, for when the second judge module 404 judged result is for being, recover described recovery instruction for described default storage area in file;
Removing module 406, for when the second judge module 404 judged result is no, deletes the file exceeding predetermined period in described default storage area storage time.
The present invention is embodiment illustrated in fig. 6 in application, will have in the file of degree of depth cleaning attribute, meet the file of preset rules according to advising that manner of cleaning up is cleared up.Decrease taking of storage space, improve the travelling speed of terminal, improve work efficiency and the experience effect of user.And before cleaning file, file is carried out unloading, under the operation that user deletes by mistake, file can be repaired, avoid the generation that file misses deletion situation.
Corresponding with above-mentioned embodiment of the method and device embodiment, the embodiment of the present invention additionally provides a kind of terminal.
The structural representation of a kind of terminal that Fig. 7 provides for the embodiment of the present invention, this terminal comprises: housing 701, processor 702, storer 703, circuit board 704 and power circuit 705, wherein, circuit board 704 is placed in the interior volume that housing 701 surrounds, and processor 702 and storer 703 are arranged on circuit board 704; Power circuit 705, for powering for each circuit of terminal or device; Storer 703 is for stores executable programs code; Processor 702 runs the program corresponding with executable program code by reading the executable program code stored in storer 703, for execution following steps:
Obtain in described terminal the file with degree of depth cleaning attribute;
Whether the frequency of utilization of file in preset time period described in judgement with degree of depth cleaning attribute meets the first preset rules;
If meet, the described file with degree of depth cleaning attribute is carried out cleaning operation according to suggestion manner of cleaning up.
This terminal exists in a variety of forms, includes but not limited to:
(1) mobile communication equipment: the feature of this kind equipment possesses mobile communication function, and to provide speech, data communication for main target.This Terminal Type comprises: smart mobile phone (such as iPhone), multimedia handset, functional mobile phone, and low-end mobile phone etc.
(2) super mobile personal computer equipment: this kind equipment belongs to the category of personal computer, has calculating and processing capacity, generally also possesses mobile Internet access characteristic.This Terminal Type comprises: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind equipment can show and play multimedia content.This kind equipment comprises: audio frequency, video player (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigator.
(4) server: the equipment that calculation services is provided, the formation of server comprises processor, hard disk, internal memory, system bus etc., server and general computer architecture similar, but owing to needing to provide highly reliable service, therefore require higher in processing power, stability, reliability, security, extensibility, manageability etc.
(5) other have the electronic apparatus of data interaction function.
The present invention is embodiment illustrated in fig. 7 in application, will have in the file of degree of depth cleaning attribute, meet the file of preset rules according to advising that manner of cleaning up is cleared up.Decrease taking of storage space, improve the travelling speed of terminal, improve work efficiency and the experience effect of user.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Each embodiment in this instructions all adopts relevant mode to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device, terminal embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
One of ordinary skill in the art will appreciate that all or part of step realized in said method embodiment is that the hardware that can carry out instruction relevant by program has come, described program can be stored in computer read/write memory medium, here the alleged storage medium obtained, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. a file clean-up method, is applied to terminal, it is characterized in that, described method comprises:
Obtain in described terminal the file with degree of depth cleaning attribute;
Whether the frequency of utilization of file in preset time period described in judgement with degree of depth cleaning attribute meets the first preset rules;
If meet, the described file with degree of depth cleaning attribute is carried out cleaning operation according to suggestion manner of cleaning up.
2. method according to claim 1, is characterized in that, has the file of degree of depth cleaning attribute, comprising in the described terminal of described acquisition:
Obtain the All Files in described terminal;
For each file in obtained All Files, judge whether the size of this file is not less than default first threshold, if so, this file is labeled as the file with degree of depth cleaning attribute.
3. method according to claim 1, is characterized in that, has the file of degree of depth cleaning attribute, comprising in the described terminal of described acquisition:
Obtain the store path of described terminal file;
Judging whether described store path is self-defined path, is if so, the file with degree of depth cleaning attribute by the file mark under described store path.
4. method according to claim 1, is characterized in that, has the file of degree of depth cleaning attribute, comprising in the described terminal of described acquisition:
Obtain the store path at the file place in described terminal with particular file types;
Judge whether described file store path meets the second preset rules, if so, then by have under described store path particular file types file mark be have the degree of depth cleaning attribute file.
5. method according to claim 1, is characterized in that, whether the frequency of utilization of file in preset time period described in described judgement with degree of depth cleaning attribute meets the first preset rules, comprising:
There is described in acquisition the last access time of the file of degree of depth cleaning attribute;
Judge whether the described last access time is not less than default Second Threshold to the duration of current time, if so, represent that the frequency of utilization of this file in preset time period meets the first preset rules.
6. method according to claim 1, is characterized in that, whether the frequency of utilization of file in preset time period described in described judgement with degree of depth cleaning attribute meets the first preset rules, comprising:
Obtain in preset time period the number of times of the file described in access with degree of depth cleaning attribute;
Judge whether obtained number of times is less than the 3rd default threshold value, if so, represent that the frequency of utilization of this file in preset time period meets the first preset rules.
7. method according to claim 1, is characterized in that, whether the frequency of utilization of file in preset time period described in described judgement with degree of depth cleaning attribute meets the first preset rules, comprising:
There is described in obtaining respectively the times N of file in the first preset time period and the second preset time period of degree of depth cleaning attribute 1and N 2, wherein, described first preset time period is early than described second preset time period;
Judge N 1with N 2ratio whether be greater than the 4th default threshold value, if so, represent that the frequency of utilization of this file in preset time period meets the first preset rules.
8. method according to claim 1, is characterized in that, described by described have the degree of depth cleaning attribute file according to suggestion manner of cleaning up carry out cleaning operation, comprising:
Receive the suggestion cleaning instruction of user; And
According to the suggestion cleaning instruction of user, there is described in deletion the file of degree of depth cleaning attribute.
9. a file clean-up device, is applied to terminal, it is characterized in that, described device comprises: file acquisition module, the first judge module and cleaning module, wherein,
Described file acquisition module, for obtaining in described terminal the file with degree of depth cleaning attribute;
Described first judge module, for judging whether the frequency of utilization of file in preset time period with degree of depth cleaning attribute that described file acquisition module obtains meets the first preset rules;
Described cleaning module, for when described first judge module judged result is for being, carries out cleaning operation by the described file with degree of depth cleaning attribute according to suggestion manner of cleaning up.
10. a terminal, is characterized in that, described terminal comprises: housing, processor, storer, circuit board and power circuit, and wherein, circuit board is placed in the interior volume that housing surrounds, and processor and storer are arranged on circuit boards; Power circuit, for powering for each circuit of terminal or device; Storer is used for stores executable programs code; Processor runs the program corresponding with executable program code by reading the executable program code stored in storer, for execution following steps:
Obtain in described terminal the file with degree of depth cleaning attribute;
Whether the frequency of utilization of file in preset time period described in judgement with degree of depth cleaning attribute meets the first preset rules;
If meet, the described file with degree of depth cleaning attribute is carried out cleaning operation according to suggestion manner of cleaning up.
CN201510640564.6A 2015-09-30 2015-09-30 File cleaning method and device and terminal Expired - Fee Related CN105183902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510640564.6A CN105183902B (en) 2015-09-30 2015-09-30 File cleaning method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510640564.6A CN105183902B (en) 2015-09-30 2015-09-30 File cleaning method and device and terminal

Publications (2)

Publication Number Publication Date
CN105183902A true CN105183902A (en) 2015-12-23
CN105183902B CN105183902B (en) 2019-03-15

Family

ID=54905983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510640564.6A Expired - Fee Related CN105183902B (en) 2015-09-30 2015-09-30 File cleaning method and device and terminal

Country Status (1)

Country Link
CN (1) CN105183902B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893471A (en) * 2016-03-28 2016-08-24 联想(北京)有限公司 Data processing method and electronic equipment
CN105912698A (en) * 2016-04-25 2016-08-31 乐视控股(北京)有限公司 Deletion method and system of data file in disk
CN105975400A (en) * 2016-04-27 2016-09-28 北京金山安全软件有限公司 Space management method and device and electronic equipment
CN106844619A (en) * 2017-01-17 2017-06-13 深圳市金立通信设备有限公司 A kind of file clean-up method and terminal
CN107423419A (en) * 2017-07-31 2017-12-01 信利光电股份有限公司 The batch introduction method and system of a kind of Parameter File
CN107832155A (en) * 2017-11-14 2018-03-23 广东欧珀移动通信有限公司 Method, apparatus, storage medium and the electronic equipment of more scaling method
CN108228357A (en) * 2018-01-22 2018-06-29 维沃移动通信有限公司 A kind of memory method for cleaning and mobile terminal
CN109213604A (en) * 2018-10-15 2019-01-15 北京奇艺世纪科技有限公司 A kind of management method and device of data source
CN110140117A (en) * 2017-11-10 2019-08-16 华为技术有限公司 Terminal is based on the automatic cleaning individual subscriber file of user's habit
CN110543451A (en) * 2019-07-30 2019-12-06 华为技术有限公司 Method and device for efficiently cleaning equipment files
CN111639764A (en) * 2020-05-19 2020-09-08 苏州诺达佳自动化技术有限公司 Industrial control operating system with AI reasoning and acceleration computing capability
CN115599752A (en) * 2022-11-24 2023-01-13 统信软件技术有限公司(Cn) Method and device for managing data cleaning and computing equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789456A (en) * 2011-05-17 2012-11-21 宏碁股份有限公司 Method for cleaning redundancy files of disc
CN102880713A (en) * 2012-09-29 2013-01-16 北京奇虎科技有限公司 File deleting method and file deleting device
CN102945159A (en) * 2012-10-24 2013-02-27 深圳市万凯达科技有限公司 Automatic application program cleaning method and system based on mobile terminal
CN104021160A (en) * 2014-05-26 2014-09-03 北京金山安全软件有限公司 Client data cleaning method and device
US20140365451A1 (en) * 2012-03-30 2014-12-11 Beijing Netqin Technology Co., Ltd Method and system for cleaning up files on a device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789456A (en) * 2011-05-17 2012-11-21 宏碁股份有限公司 Method for cleaning redundancy files of disc
US20140365451A1 (en) * 2012-03-30 2014-12-11 Beijing Netqin Technology Co., Ltd Method and system for cleaning up files on a device
CN102880713A (en) * 2012-09-29 2013-01-16 北京奇虎科技有限公司 File deleting method and file deleting device
CN102945159A (en) * 2012-10-24 2013-02-27 深圳市万凯达科技有限公司 Automatic application program cleaning method and system based on mobile terminal
CN104021160A (en) * 2014-05-26 2014-09-03 北京金山安全软件有限公司 Client data cleaning method and device

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893471A (en) * 2016-03-28 2016-08-24 联想(北京)有限公司 Data processing method and electronic equipment
CN105912698A (en) * 2016-04-25 2016-08-31 乐视控股(北京)有限公司 Deletion method and system of data file in disk
CN105975400A (en) * 2016-04-27 2016-09-28 北京金山安全软件有限公司 Space management method and device and electronic equipment
CN106844619A (en) * 2017-01-17 2017-06-13 深圳市金立通信设备有限公司 A kind of file clean-up method and terminal
CN107423419A (en) * 2017-07-31 2017-12-01 信利光电股份有限公司 The batch introduction method and system of a kind of Parameter File
CN110140117A (en) * 2017-11-10 2019-08-16 华为技术有限公司 Terminal is based on the automatic cleaning individual subscriber file of user's habit
CN110140117B (en) * 2017-11-10 2023-11-17 华为技术有限公司 Terminal automatically cleans personal files of users based on user habits
CN107832155A (en) * 2017-11-14 2018-03-23 广东欧珀移动通信有限公司 Method, apparatus, storage medium and the electronic equipment of more scaling method
CN108228357A (en) * 2018-01-22 2018-06-29 维沃移动通信有限公司 A kind of memory method for cleaning and mobile terminal
CN108228357B (en) * 2018-01-22 2021-04-02 维沃移动通信有限公司 Memory cleaning method and mobile terminal
CN109213604A (en) * 2018-10-15 2019-01-15 北京奇艺世纪科技有限公司 A kind of management method and device of data source
CN109213604B (en) * 2018-10-15 2021-08-20 北京奇艺世纪科技有限公司 Data source management method and device
CN110543451A (en) * 2019-07-30 2019-12-06 华为技术有限公司 Method and device for efficiently cleaning equipment files
CN111639764A (en) * 2020-05-19 2020-09-08 苏州诺达佳自动化技术有限公司 Industrial control operating system with AI reasoning and acceleration computing capability
CN111639764B (en) * 2020-05-19 2021-04-09 苏州诺达佳自动化技术有限公司 Industrial control operating system with AI reasoning and acceleration computing capability
CN115599752A (en) * 2022-11-24 2023-01-13 统信软件技术有限公司(Cn) Method and device for managing data cleaning and computing equipment

Also Published As

Publication number Publication date
CN105183902B (en) 2019-03-15

Similar Documents

Publication Publication Date Title
CN105183902A (en) File cleaning method and device and terminal
CN105279236A (en) File cleaning method and device and electronic equipment
CN104731830A (en) Recommendation method, recommendation device and server
CN103369003A (en) A method and a system for scanning redundancy files in a mobile device by using cloud computing
CN105335099A (en) Memory cleaning method and terminal
CN104461504A (en) Managing method of terminal application program
CN105045928A (en) To-be-cleaned data display method and device and electronic equipment
CN103365882A (en) Method and system for cleaning junk files on mobile terminal
CN107016123B (en) File management method and terminal device
CN105159975A (en) To-be-cleaned data identification method and device and electronic equipment
CN105447115A (en) Method and device for cleaning junk files and electronic equipment
CN105468411A (en) Application processing method and device and electronic equipment
CN104536792A (en) Method and device for eliminating application program residual files
CN106776908B (en) Data cleaning method and device and terminal
CN104601683A (en) File download management method, mobile terminal and communication system
CN105989107A (en) Application recommendation method and device
CN104899049A (en) File deletion method and device
CN105574163A (en) File processing method and device and electronic equipment
CN103699673A (en) Mobile terminal, picture processing method and picture processing device for mobile terminal
CN104751870A (en) Information processing method and electronic equipment
CN105808674A (en) Picture display method and device and electronic equipment
CN105320777A (en) Application program recommendation method and device
CN104484212A (en) Method and device for installing and deleting external storage files
CN105808677A (en) Picture deleting method and device and electronic equipment
CN105094881A (en) Terminal and terminal application management method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190315