CN104391850A - Method and device for cleaning garbage files of disks, and terminal device - Google Patents

Method and device for cleaning garbage files of disks, and terminal device Download PDF

Info

Publication number
CN104391850A
CN104391850A CN201410375322.4A CN201410375322A CN104391850A CN 104391850 A CN104391850 A CN 104391850A CN 201410375322 A CN201410375322 A CN 201410375322A CN 104391850 A CN104391850 A CN 104391850A
Authority
CN
China
Prior art keywords
garbage files
disk
files
garbage
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.)
Pending
Application number
CN201410375322.4A
Other languages
Chinese (zh)
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.)
Zhuhai Juntian Electronic Technology Co Ltd
Original Assignee
Zhuhai Juntian Electronic Technology 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 Zhuhai Juntian Electronic Technology Co Ltd filed Critical Zhuhai Juntian Electronic Technology Co Ltd
Priority to CN201410375322.4A priority Critical patent/CN104391850A/en
Publication of CN104391850A publication Critical patent/CN104391850A/en
Pending legal-status Critical Current

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/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations

Landscapes

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

Abstract

The embodiment of the invention discloses a method and a device for cleaning garbage files of disks, and a terminal device, which can be used for improving the garbage file cleaning efficiency. The method comprises the following steps: receiving an instruction of scanning the garbage files of the disks; reading a garbage file list pre-stored in a cache according to the instruction and displaying the garbage file list; receiving a garbage file cleaning instruction and cleaning corresponding garbage files of the disks according to the garbage file list. The device for cleaning the garbage files of the disks comprises a first receiving unit, a list reading unit and a garbage file cleaning unit, wherein the first receiving unit is used for receiving the instruction of scanning the garbage files of the disks and the garbage file cleaning instruction; the list reading unit is used for reading the garbage file list pre-stored in the cache according to the instruction of scanning the garbage files of the disks and displaying the garbage file list; the garbage file cleaning unit is used for cleaning the corresponding garbage files of the disks according to the garbage file cleaning instruction and the garbage file list. The method and the device are suitable for cleaning the garbage files.

Description

A kind of method for cleaning of disk garbage files, cleaning plant and terminal device
Technical field
The present invention relates to cleaning garbage files technical field, particularly relate to a kind of method for cleaning of disk garbage files, cleaning plant and terminal device.
Background technology
Along with the system of terminal device is run for a long time, in the disk of terminal device, a large amount of garbage files can be produced.These garbage files not only take the space of disk, go back the speed that influential system runs, therefore need to clear up these garbage files.
In prior art, when clearing up garbage files, need to carry out scanner uni coupling to all files of disk, the speed of so each cleaning garbage files is very slow, just causes the chronic of cleaning.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method for cleaning of disk garbage files, cleaning plant and terminal device, can improve the efficiency of cleaning garbage files.
On the one hand, the embodiment of the present invention provides a kind of method for cleaning of disk garbage files, comprising:
Receive the instruction of the garbage files of scanning disk;
According to described instruction, the garbage files list prestored in reading buffer memory is also shown;
Receive cleaning garbage files instruction, according to described garbage files list, garbage files corresponding on described disk is cleared up.
Alternatively, according to described instruction, the garbage files list prestored in reading buffer memory also, before displaying, comprising: detect in buffer memory whether have the garbage files list prestored; If there is the garbage files list prestored in described buffer memory, then the garbage files list started prestoring in described buffer memory is read.
Alternatively, before the instruction of garbage files receiving scanning disk, comprising: the garbage files obtaining described disk in advance, and the call number of the described garbage files got and/or path are write buffer memory, generate garbage files list.
Alternatively, the described garbage files obtaining described disk in advance, and the call number of the described garbage files got and/or address are write buffer memory, generate garbage files list, comprise: the garbage files obtaining whole disk in advance, and the call number of the described garbage files got and/or path are write buffer memory, generate garbage files list.
Alternatively, the described garbage files obtaining described disk in advance, and the call number of the described garbage files got and/or address are write buffer memory, generate garbage files list, comprise: the garbage files obtaining described disk in advance on backstage, and the call number of the described garbage files got and/or path are write buffer memory, generate garbage files list.
Alternatively, the described garbage files obtaining described disk in advance, and the call number of the described garbage files got and/or address are write buffer memory, generate garbage files list and comprise: detect in buffer memory whether have the garbage files list prestored; If the garbage files list prestored described in not having in described buffer memory, then obtain the listed files of described disk; File in the listed files of described disk is done with disk garbage files rule and mates; The call number of the file matched with described disk garbage files rule in the listed files of described disk and/or path are written in buffer memory, and generate garbage files list.
Alternatively, the described garbage files obtaining described disk in advance, and the call number of the described garbage files got and/or address are write buffer memory, generate garbage files list and comprise: after system starts the schedule time, obtain the listed files of described disk; File in the listed files of described disk is done with disk garbage files rule and mates; The call number of the file matched with described disk garbage files rule in the listed files of described disk and/or path are written in buffer memory, and generate garbage files list.
Alternatively, the listed files of the described disk of described acquisition comprises: whether detect described disk is the disk carrying out subregion under New Technology File System form; If so, then read the USN daily record of described disk, obtain the listed files of described disk.
Alternatively, in the instruction of reception cleaning garbage files, according to described garbage files list, before garbage files corresponding on described disk is cleared up, comprising: receive the instruction that user selects the garbage files in the described garbage files list shown.
Alternatively, receive cleaning garbage files instruction, according to described garbage files list, garbage files corresponding on described disk is cleared up, comprise: receive cleaning garbage files instruction, according to the garbage files in the described garbage files list that user selects, garbage files corresponding on described disk is cleared up.
The method for cleaning of the disk garbage files of the embodiment of the present invention, when the instruction of garbage files receiving scanning disk, only need according to the instruction of the garbage files of scanning disk, the garbage files list prestored in reading buffer memory is also shown, and according to this garbage files list, can clear up garbage files corresponding on this disk.Relative to prior art, the embodiment of the present invention does not need after the instruction of the garbage files receiving scanning disk, just starts to scan to obtain garbage files to all files of disk, can improve the efficiency of cleaning garbage files thus.
On the other hand, the embodiment of the present invention provides a kind of cleaning plant of disk garbage files, comprising:
First receiving element, for receiving the instruction of the garbage files of scanning disk and clearing up the instruction of garbage files;
List reading unit, for the instruction of the garbage files according to described scanning disk, the garbage files list prestored in reading buffer memory is also shown;
Cleaning garbage files unit, for the instruction according to described cleaning garbage files, according to described garbage files list, clears up garbage files corresponding on described disk.
Alternatively, the cleaning plant of described disk garbage files also comprises: the first detecting unit, and the garbage files list for prestoring in reading buffer memory detects in buffer memory whether have the garbage files list prestored before also showing; If also for there being the garbage files list prestored in described buffer memory, the garbage files list started prestoring in described buffer memory is read.
Alternatively, the cleaning plant of described disk garbage files also comprises: garbage files list generation unit, for obtaining the garbage files of described disk, and the call number of the described garbage files got and/or path being write buffer memory, generating garbage files list.
Alternatively, described garbage files list generation unit, for before the instruction of the garbage files of the first receiving element reception scanning disk, obtains the garbage files of whole disk in advance, and the call number of the described garbage files got and/or path are write buffer memory, generate garbage files list.
Alternatively, described garbage files list generation unit, for before the instruction of the garbage files of the first receiving element reception scanning disk, the garbage files of described disk is obtained in advance on backstage, and the call number of the described garbage files got and/or path are write buffer memory, generate garbage files list.
Alternatively, described garbage files list generation unit comprises: the first acquisition module, for obtaining the listed files of described disk; First matching module, mates for being done with disk garbage files rule by the file in the listed files of described disk; First writing module, for the call number of the file matched with described disk garbage files rule in the listed files of described disk and/or path being written in buffer memory, and generates garbage files list.
Alternatively, described garbage files list generation unit comprises: the second acquisition module, for after system starts the schedule time, obtains the listed files of described disk; Second matching module, mates for being done with disk garbage files rule by the file in the listed files of described disk; Second writing module, for the call number of the file matched with described disk garbage files rule in the listed files of described disk and/or path being written in buffer memory, and generates garbage files list.
Whether alternatively, described first acquisition module or the second acquisition module comprise: the 3rd detection sub-module, be the disk carrying out subregion under New Technology File System form for detecting described disk; 3rd obtains submodule, if be the disk carrying out subregion under New Technology File System form for described disk, read the USN daily record of described disk, obtains the listed files of described disk.
Alternatively, the cleaning plant of described disk garbage files also comprises: the second receiving element, for before clearing up garbage files corresponding on described disk, receives the instruction that user selects the garbage files in the described garbage files list shown.
Alternatively, described cleaning garbage files unit, for receiving cleaning garbage files instruction, according to the garbage files in the described garbage files list that user selects, clears up garbage files corresponding on described disk.
Again on the one hand, the embodiment of the present invention provides a kind of terminal device, and described terminal device is provided with the cleaning plant of the disk garbage files described in aforementioned any one.
The cleaning plant of the disk garbage files of the embodiment of the present invention and mobile terminal, when the first receiving element receives the instruction of the garbage files of scanning disk, list reading unit only need according to the instruction of the garbage files of scanning disk, the garbage files list prestored in reading buffer memory is also shown, cleaning garbage files unit, according to this garbage files list, can be cleared up garbage files corresponding on this disk.Relative to prior art, the embodiment of the present invention does not need after the instruction of the garbage files receiving scanning disk, just starts to scan to obtain garbage files to all files of disk, can improve the efficiency of cleaning garbage files thus.
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.
Fig. 1 is the schematic flow sheet of method for cleaning one embodiment of disk garbage files of the present invention;
Fig. 2 is the structural representation of cleaning plant one embodiment of disk garbage files of the present invention;
Fig. 3 is the structural representation of another embodiment of cleaning plant of inventive disk garbage files;
Fig. 4 is the structural representation of garbage files list generation unit one embodiment in the cleaning plant of inventive disk garbage files;
Fig. 5 is the structural representation of another embodiment of garbage files list generation unit in the cleaning plant of inventive disk garbage files;
Fig. 6 is the structural representation of the another embodiment of cleaning plant of disk garbage files of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the method for cleaning of a kind of disk garbage files of the embodiment of the present invention, cleaning plant and terminal device are described in detail.
Should be clear and definite, 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 other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
Shown in Fig. 1, the embodiment of the method for cleaning of a kind of disk garbage files of the present invention, comprising:
The instruction of the garbage files of S1, reception scanning disk;
Alternatively, the instruction of the garbage files of the whole disk of scanning is received; Or receive the instruction of the garbage files of the disk that scanning user selects.
S2, according to described instruction, read in buffer memory the garbage files list prestored and also show;
S3, the instruction of reception cleaning garbage files, according to described garbage files list, clear up garbage files corresponding on described disk.
The method for cleaning of the disk garbage files of the embodiment of the present invention, when the instruction of garbage files receiving scanning disk, only need according to the instruction of the garbage files of scanning disk, the garbage files list prestored in reading buffer memory is also shown, and according to this garbage files list, can clear up garbage files corresponding on this disk.Relative to prior art, the embodiment of the present invention does not need after the instruction of the garbage files receiving scanning disk, just starts to scan to obtain garbage files to all files of disk, can improve the efficiency of cleaning garbage files thus.
In the embodiment of the method for cleaning of aforementioned disk garbage files, in order to avoid reading invalid buffer memory, the operation of influential system, alternatively, according to described instruction, read in buffer memory the garbage files list that prestores and before showing (S2), comprising: detect in buffer memory whether have the garbage files list prestored; If there is the garbage files list prestored in described buffer memory, then start the step that the garbage files list prestored in described buffer memory is read.
In the embodiment of the method for cleaning of aforementioned disk garbage files, alternatively, before the instruction (S1) of garbage files receiving scanning disk, comprise: the garbage files obtaining described disk in advance, and the call number of the described garbage files got and/or path are write buffer memory, generate garbage files list; Thus, obtain the garbage files list of disk in advance.
In the embodiment of the present invention, also the filename of the described garbage files got and/or path can be write buffer memory, generate garbage files list, the present invention is not limited thereto.
In the embodiment of the method for cleaning of aforementioned disk garbage files, alternatively, the described garbage files obtaining described disk in advance, and the call number of the described garbage files got and/or address are write buffer memory, generate garbage files list, comprise: the garbage files obtaining whole disk in advance, and the call number of the described garbage files got and/or path are write buffer memory, generate garbage files list.
In the present embodiment, the garbage files of whole disk can be obtained in advance, and the call number of the garbage files got and/or path are write buffer memory, generate garbage files list; Also according to the setting of user, the garbage files of certain disk as D dish can be obtained in advance, and the call number of the garbage files got and/or path are write buffer memory, generate garbage files list.
In the embodiment of the method for cleaning of aforementioned disk garbage files, in order to not affect the normal running of user, alternatively, the described garbage files obtaining described disk in advance, and the call number of the described garbage files got and/or address are write buffer memory, generate garbage files list, comprising: the garbage files obtaining described disk in advance on backstage, and the call number of the described garbage files got and/or path are write buffer memory, generate garbage files list.
In the embodiment of the method for cleaning of aforementioned disk garbage files, the described garbage files obtaining described disk in advance, and the call number of the described garbage files got and/or address are write buffer memory, generate garbage files list, can comprise: the listed files obtaining described disk; File in the listed files of described disk is done with disk garbage files rule and mates; The call number of the file matched with described disk garbage files rule in the listed files of described disk and/or path are written in buffer memory, and generate garbage files list.
In the embodiment of the present invention, being done by the file in the listed files of described disk mate with disk garbage files rule, can be the type of the type of the file in listed files with the disk garbage files pre-set in disk garbage files rule mated.But the present invention is not limited thereto, being done with disk garbage files rule by file in the listed files of described disk and mate, can also be the part field in the path of the listed files file of this disk mated with the path field in disk garbage files rule; Or the part field in the filename of the listed files file of this disk is mated with the filename field in disk garbage files rule.
The described garbage files obtaining described disk in advance, and the call number of the described garbage files got and/or address are write buffer memory, generate garbage files list, can comprise: after system starts the schedule time (such as 1 hour), obtain the listed files of described disk; File in the listed files of described disk is done with disk garbage files rule and mates; The call number of the file matched with described disk garbage files rule in the listed files of described disk and/or path are written in buffer memory, and generate garbage files list.
In the embodiment of the method for cleaning of aforementioned disk garbage files, alternatively, the listed files of the described disk of described acquisition comprises: whether detect described disk is the disk carrying out subregion under NTFS (New Technology File System, New Technology File System) form; If so, then read the USN daily record of described disk, obtain the listed files of described disk.
In embodiments of the present invention, USN is the english abbreviation of Update Service Number Journal or Change Journal, USN daily record be to carry out under NTFS form in the disk of subregion the information revised carry out the function of relative recording.
In the embodiment of the method for cleaning of aforementioned disk garbage files, in order to avoid deleting the mistake of file, in the instruction of reception cleaning garbage files, according to described garbage files list, before garbage files corresponding on described disk is cleared up, comprising: receive the instruction that user selects the garbage files in the described garbage files list shown.
Alternatively, receive cleaning garbage files instruction, according to described garbage files list, garbage files corresponding on described disk is cleared up, comprise: receive cleaning garbage files instruction, according to the garbage files in the described garbage files list that user selects, garbage files corresponding on described disk is cleared up.
Shown in Fig. 2, the embodiment of the cleaning plant of a kind of disk garbage files of the present invention, comprising: the first receiving element 1, for receiving the instruction of the garbage files of scanning disk and clearing up the instruction of garbage files; List reading unit 2, for the instruction of the garbage files according to described scanning disk, the garbage files list prestored in reading buffer memory is also shown; Cleaning garbage files unit 3, for the instruction according to described cleaning garbage files, according to described garbage files list, clears up garbage files corresponding on described disk.
The cleaning plant of the disk garbage files of the embodiment of the present invention, when the first receiving element 1 receives the instruction of the garbage files of scanning disk, list reading unit 2 only need according to the instruction of the garbage files of scanning disk, the garbage files list prestored in reading buffer memory is also shown, cleaning garbage files unit 3, according to this garbage files list, can be cleared up garbage files corresponding on this disk.Relative to prior art, the embodiment of the present invention does not need after the instruction of the garbage files receiving scanning disk, just starts to scan to obtain garbage files to all files of disk, can improve the efficiency of cleaning garbage files thus.
Shown in Fig. 3, in the embodiment of the cleaning plant of aforementioned disk garbage files, in order to avoid reading invalid buffer memory, the operation of influential system, alternatively, the cleaning plant of described disk garbage files also comprises: the first detecting unit 4, and the garbage files list for prestoring in reading buffer memory detects in buffer memory whether have the garbage files list prestored before also showing; If also for there being the garbage files list prestored in described buffer memory, the garbage files list started prestoring in described buffer memory is read.
In the embodiment of the cleaning plant of aforementioned disk garbage files, alternatively, the cleaning plant of described disk garbage files also comprises: garbage files list generation unit 5, before receiving the instruction of the garbage files of scanning disk at the first receiving element 1, obtain the garbage files of described disk in advance, and the call number of the described garbage files got and/or path are write buffer memory, generate garbage files list; Thus, obtain the garbage files list of disk in advance.
In the embodiment of the present invention, the filename of the described garbage files got and/or path also can be write buffer memory by garbage files list generation unit 5, generate garbage files list, the present invention is not limited thereto.
In the embodiment of the cleaning plant of aforementioned disk garbage files, alternatively, described garbage files list generation unit 5, before receiving the instruction of the garbage files of scanning disk at the first receiving element 1, obtain the garbage files of whole disk in advance, and the call number of the described garbage files got and/or path are write buffer memory, generate garbage files list.
In the present embodiment, the garbage files of whole disk can be obtained in advance, and the call number of the garbage files got and/or path are write buffer memory, generate garbage files list; Also according to the setting of user, the garbage files of certain disk as D dish can be obtained in advance, and the call number of the garbage files got and/or path are write buffer memory, generate garbage files list.
In the embodiment of the cleaning plant of aforementioned disk garbage files, in order to not affect the normal running of user, alternatively, described garbage files list generation unit 5, before receiving the instruction of the garbage files of scanning disk at the first receiving element 1, obtain the garbage files of described disk in advance on backstage, and the call number of the described garbage files got and/or path are write buffer memory, generate garbage files list.
Shown in Fig. 4, in the embodiment of the cleaning plant of aforementioned disk garbage files, alternatively, described garbage files list generation unit 5 comprises: the first acquisition module 52 a, for obtaining the listed files of described disk; First matching module 53 a, mates for being done with disk garbage files rule by the file in the listed files of described disk; First writing module 54 a, for the call number of the file matched with described disk garbage files rule in the listed files of described disk and/or path being written in buffer memory, and generates garbage files list.
In the embodiment of the present invention, being done by the file in the listed files of described disk mate with disk garbage files rule, can be the type of the type of the file in listed files with the disk garbage files pre-set in disk garbage files rule mated.But the present invention is not limited thereto, being done with disk garbage files rule by file in the listed files of described disk and mate, can also be the part field in the path of the listed files file of this disk mated with the path field in disk garbage files rule; Or the part field in the filename of the listed files file of this disk is mated with the filename field in disk garbage files rule.
Shown in Fig. 5, alternatively, described garbage files list generation unit 5 comprises: the second acquisition module 51b, for after system starts the schedule time (such as 1 hour), obtains the listed files of described disk; Second matching module 52 b, mates for being done with disk garbage files rule by the file in the listed files of described disk; Second writing module 53 b, for the call number of the file matched with described disk garbage files rule in the listed files of described disk and/or path being written in buffer memory, and generates garbage files list.
Whether in the embodiment of the cleaning plant of aforementioned disk garbage files, alternatively, described first acquisition module 52a or the second acquisition module 51b comprises: the 3rd detection sub-module, be the disk carrying out subregion under NTFS form for detecting described disk; 3rd obtains submodule, if be the disk carrying out subregion under New Technology File System form for described disk, read the USN daily record of described disk, obtains the listed files of described disk.
In embodiments of the present invention, USN is the english abbreviation of Update Service Number Journal or Change Journal, USN daily record be to carry out under NTFS form in the disk of subregion the information revised carry out the function of relative recording.
Shown in Fig. 6, in the embodiment of the cleaning plant of aforementioned disk garbage files, in order to avoid deleting the mistake of file, in the instruction of reception cleaning garbage files, alternatively, the cleaning plant of described disk garbage files also comprises: the second receiving element 6, for before clearing up garbage files corresponding on described disk, receives the instruction that user selects the garbage files in the described garbage files list shown.
In the embodiment of the cleaning plant of aforementioned disk garbage files, alternatively, described cleaning garbage files unit 3, for receiving cleaning garbage files instruction, according to the garbage files in the described garbage files list that user selects, garbage files corresponding on described disk is cleared up.
The embodiment of the present invention also provides a kind of terminal device, and described terminal device is provided with the cleaning plant of the disk garbage files described in aforementioned any embodiment.
The mobile terminal of the embodiment of the present invention, when the first receiving element 1 receives the instruction of the garbage files of scanning disk, list reading unit 2 only need according to the instruction of the garbage files of scanning disk, the garbage files list prestored in reading buffer memory is also shown, cleaning garbage files unit 3, according to this garbage files list, can be cleared up garbage files corresponding on this disk.Relative to prior art, the embodiment of the present invention does not need after the instruction of the garbage files receiving scanning disk, just starts to scan to obtain garbage files to all files of disk, can improve the efficiency of cleaning garbage files thus.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (RandomAccess Memory, RAM) etc.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (21)

1. a method for cleaning for disk garbage files, is characterized in that, comprising:
Receive the instruction of the garbage files of scanning disk;
According to described instruction, the garbage files list prestored in reading buffer memory is also shown;
Receive cleaning garbage files instruction, according to described garbage files list, garbage files corresponding on described disk is cleared up.
2. the method for cleaning of disk garbage files according to claim 1, is characterized in that, according to described instruction, the garbage files list prestored in reading buffer memory also, before displaying, comprising:
Detect in buffer memory and whether have the garbage files list prestored;
If there is the garbage files list prestored in described buffer memory, then the garbage files list started prestoring in described buffer memory is read.
3. the method for cleaning of disk garbage files according to claim 1, is characterized in that, before the instruction of garbage files receiving scanning disk, comprising:
Obtain the garbage files of described disk in advance, and the call number of the described garbage files got and/or path are write buffer memory, generate garbage files list.
4. the method for cleaning of disk garbage files according to claim 3, is characterized in that, the described garbage files obtaining described disk in advance, and the call number of the described garbage files got and/or address are write buffer memory, generates garbage files list, comprising:
Obtain the garbage files of whole disk in advance, and the call number of the described garbage files got and/or path are write buffer memory, generate garbage files list.
5. the method for cleaning of disk garbage files according to claim 3, is characterized in that, the described garbage files obtaining described disk in advance, and the call number of the described garbage files got and/or address are write buffer memory, generates garbage files list, comprising:
Obtain the garbage files of described disk in advance on backstage, and the call number of the described garbage files got and/or path are write buffer memory, generate garbage files list.
6. the method for cleaning of disk garbage files according to claim 3, is characterized in that, the described garbage files obtaining described disk in advance, and the call number of the described garbage files got and/or address are write buffer memory, generates garbage files list and comprises:
Obtain the listed files of described disk in advance;
File in the listed files of described disk is done with disk garbage files rule and mates;
The call number of the file matched with described disk garbage files rule in the listed files of described disk and/or path are written in buffer memory, generate garbage files list.
7. the method for cleaning of disk garbage files according to claim 3, is characterized in that, the described garbage files obtaining described disk in advance, and the call number of the described garbage files got and/or address are write buffer memory, generates garbage files list and comprises:
After system starts the schedule time, obtain the listed files of described disk;
File in the listed files of described disk is done with disk garbage files rule and mates;
The call number of the file matched with described disk garbage files rule in the listed files of described disk and/or path are written in buffer memory, generate garbage files list.
8. the method for cleaning of the disk garbage files according to claim 6 or 7, is characterized in that, the listed files of the described disk of described acquisition comprises:
Whether detect described disk is the disk carrying out subregion under New Technology File System form;
If so, then read the USN daily record of described disk, obtain the listed files of described disk.
9. the method for cleaning of disk garbage files according to claim 1, is characterized in that, in the instruction of reception cleaning garbage files, according to described garbage files list, before clearing up, comprising garbage files corresponding on described disk:
Receive the instruction that user selects the garbage files in the described garbage files list shown.
10. the method for cleaning of disk garbage files according to claim 9, is characterized in that, receives cleaning garbage files instruction, according to described garbage files list, clears up, comprising garbage files corresponding on described disk:
Receive cleaning garbage files instruction, according to the garbage files in the described garbage files list that user selects, garbage files corresponding on described disk is cleared up.
The cleaning plant of 11. 1 kinds of disk garbage files, is characterized in that, comprising:
First receiving element, for receiving the instruction of the garbage files of scanning disk and clearing up the instruction of garbage files;
List reading unit, for the instruction of the garbage files according to described scanning disk, the garbage files list prestored in reading buffer memory is also shown;
Cleaning garbage files unit, for the instruction according to described cleaning garbage files, according to described garbage files list, clears up garbage files corresponding on described disk.
The cleaning plant of 12. disk garbage files according to claim 11, is characterized in that, also comprise:
First detecting unit, before garbage files list for prestoring in reading buffer memory is also shown, detect in buffer memory and whether have the garbage files list prestored, if there is the garbage files list prestored in described buffer memory, the garbage files list started prestoring in described buffer memory is read.
The cleaning plant of 13. disk garbage files according to claim 11, is characterized in that, also comprise:
Garbage files list generation unit, for before the instruction of the garbage files of the first receiving element reception scanning disk, obtain the garbage files of described disk in advance, and the call number of the described garbage files got and/or path are write buffer memory, generate garbage files list.
The cleaning plant of 14. disk garbage files according to claim 13, is characterized in that:
Described garbage files list generation unit, for before the instruction of the garbage files of the first receiving element reception scanning disk, obtain the garbage files of whole disk in advance, and the call number of the described garbage files got and/or path are write buffer memory, generate garbage files list.
The cleaning plant of 15. disk garbage files according to claim 13, is characterized in that:
Described garbage files list generation unit, for before the instruction of the garbage files of the first receiving element reception scanning disk, obtain the garbage files of described disk in advance on backstage, and the call number of the described garbage files got and/or path are write buffer memory, generate garbage files list.
The cleaning plant of 16. disk garbage files according to claim 13, is characterized in that, described garbage files list generation unit comprises:
First acquisition module, for obtaining the listed files of described disk;
First matching module, mates for being done with disk garbage files rule by the file in the listed files of described disk;
First writing module, for the call number of the file matched with described disk garbage files rule in the listed files of described disk and/or path being written in buffer memory, and generates garbage files list.
The cleaning plant of 17. disk garbage files according to claim 13, is characterized in that, described garbage files list generation unit comprises:
Second acquisition module, for after system starts the schedule time, obtains the listed files of described disk;
Second matching module, mates for being done with disk garbage files rule by the file in the listed files of described disk;
Second writing module, for the call number of the file matched with described disk garbage files rule in the listed files of described disk and/or path being written in buffer memory, and generates garbage files list.
The cleaning plant of 18. disk garbage files according to claim 16 or 17, it is characterized in that, described first acquisition module or the second acquisition module comprise:
Whether the 3rd detection sub-module is the disk carrying out subregion under New Technology File System form for detecting described disk;
3rd obtains submodule, if be the disk carrying out subregion under New Technology File System form for described disk, read the USN daily record of described disk, obtains the listed files of described disk.
The cleaning plant of 19. disk garbage files according to claim 1, is characterized in that, also comprise:
Second receiving element, for before clearing up garbage files corresponding on described disk, receives the instruction that user selects the garbage files in the described garbage files list shown.
The cleaning plant of 20. disk garbage files according to claim 19, is characterized in that:
Described cleaning garbage files unit, for receiving cleaning garbage files instruction, according to the garbage files in the described garbage files list that user selects, clears up garbage files corresponding on described disk.
21. 1 kinds of terminal devices, is characterized in that, described terminal device is provided with the cleaning plant of the disk garbage files described in aforementioned any one of claim 11-20.
CN201410375322.4A 2014-07-31 2014-07-31 Method and device for cleaning garbage files of disks, and terminal device Pending CN104391850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410375322.4A CN104391850A (en) 2014-07-31 2014-07-31 Method and device for cleaning garbage files of disks, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410375322.4A CN104391850A (en) 2014-07-31 2014-07-31 Method and device for cleaning garbage files of disks, and terminal device

Publications (1)

Publication Number Publication Date
CN104391850A true CN104391850A (en) 2015-03-04

Family

ID=52609754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410375322.4A Pending CN104391850A (en) 2014-07-31 2014-07-31 Method and device for cleaning garbage files of disks, and terminal device

Country Status (1)

Country Link
CN (1) CN104391850A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965916A (en) * 2015-07-06 2015-10-07 北京金山安全软件有限公司 Method and device for determining file to be cleaned
CN105068844A (en) * 2015-08-26 2015-11-18 广东欧珀移动通信有限公司 Method and apparatus for solving problem of no startup of Android terminal
CN105574163A (en) * 2015-12-16 2016-05-11 北京金山安全软件有限公司 File processing method and device and electronic equipment
CN106294576A (en) * 2016-07-28 2017-01-04 Tcl集团股份有限公司 The method for cleaning of a kind of Android system memory space and system
CN106682043A (en) * 2015-11-11 2017-05-17 腾讯科技(深圳)有限公司 Junk file prompting method and junk file prompting device
CN107423300A (en) * 2016-05-24 2017-12-01 中兴通讯股份有限公司 A kind of method, device and mobile terminal of terminal document processing
CN110083576A (en) * 2019-05-06 2019-08-02 珠海天燕科技有限公司 A kind of recognition methods of CACHE DIRECTORY and device
CN110471764A (en) * 2019-08-01 2019-11-19 郑州阿帕斯科技有限公司 A kind of processing method and processing device of memory cleaning
CN112328327A (en) * 2020-11-20 2021-02-05 杭州迪普科技股份有限公司 Configuration partition sorting method and device

Citations (4)

* 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
CN102654872A (en) * 2011-03-03 2012-09-05 腾讯科技(深圳)有限公司 Method and device for cleaning junk files generated by application programs
CN103324639A (en) * 2012-03-23 2013-09-25 腾讯科技(深圳)有限公司 Useless item clearing method and device
CN103617023A (en) * 2013-11-20 2014-03-05 北京先进数通信息技术股份公司 Method and device for recycling system garbage resources

Patent Citations (4)

* 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
CN102654872A (en) * 2011-03-03 2012-09-05 腾讯科技(深圳)有限公司 Method and device for cleaning junk files generated by application programs
CN103324639A (en) * 2012-03-23 2013-09-25 腾讯科技(深圳)有限公司 Useless item clearing method and device
CN103617023A (en) * 2013-11-20 2014-03-05 北京先进数通信息技术股份公司 Method and device for recycling system garbage resources

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周利荣: "磁盘垃圾文件快速清理工具设计及实现", 《微型机与应用》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965916A (en) * 2015-07-06 2015-10-07 北京金山安全软件有限公司 Method and device for determining file to be cleaned
CN105068844A (en) * 2015-08-26 2015-11-18 广东欧珀移动通信有限公司 Method and apparatus for solving problem of no startup of Android terminal
CN106682043A (en) * 2015-11-11 2017-05-17 腾讯科技(深圳)有限公司 Junk file prompting method and junk file prompting device
CN106682043B (en) * 2015-11-11 2020-08-25 腾讯科技(深圳)有限公司 Junk file prompting method and device
CN105574163A (en) * 2015-12-16 2016-05-11 北京金山安全软件有限公司 File processing method and device and electronic equipment
CN107423300A (en) * 2016-05-24 2017-12-01 中兴通讯股份有限公司 A kind of method, device and mobile terminal of terminal document processing
CN107423300B (en) * 2016-05-24 2021-12-28 中兴通讯股份有限公司 Terminal file processing method and device and mobile terminal
CN106294576A (en) * 2016-07-28 2017-01-04 Tcl集团股份有限公司 The method for cleaning of a kind of Android system memory space and system
CN110083576A (en) * 2019-05-06 2019-08-02 珠海天燕科技有限公司 A kind of recognition methods of CACHE DIRECTORY and device
CN110471764A (en) * 2019-08-01 2019-11-19 郑州阿帕斯科技有限公司 A kind of processing method and processing device of memory cleaning
CN112328327A (en) * 2020-11-20 2021-02-05 杭州迪普科技股份有限公司 Configuration partition sorting method and device
CN112328327B (en) * 2020-11-20 2023-10-27 杭州迪普科技股份有限公司 Configuration partition arrangement method and device

Similar Documents

Publication Publication Date Title
CN104391850A (en) Method and device for cleaning garbage files of disks, and terminal device
US20140189674A1 (en) Information processing apparatus and information processing method
CN104834645B (en) Method and apparatus for showing format document
TW200736869A (en) Program preparation supporting device, method for supporting program preparation, program for computer to execute the above method, and recording medium having the above program recorded therein
CN100382049C (en) Data processing apparatus and method for flash memory
CN104899114B (en) A kind of continuous time data guard method on solid state hard disc
JP6231135B2 (en) Data protection method, apparatus and equipment
JP2005209188A (en) Data recovery apparatus and method used for flash memory
CN103631603A (en) Software cleaning method and system
CN103744912A (en) Video file scanning method and electronic device
CN104461526A (en) Widget traversing method and device of terminal application program
CN105389268B (en) Data storage system and its operation method
CN102402524A (en) Method and device for displaying scanning progress
CN104375977A (en) Answer message processing method and device for question-answer communities
CN102750213B (en) Disk detects, disposal route and detection, disposal system
US7680980B2 (en) Image forming apparatus
CN102722456A (en) Flash memory device and data writing method thereof
CN104317955A (en) File scanning method and device for storage space of mobile terminal
CN103714179A (en) Multi-language supporting method and system for system blog
CN111061429B (en) Data access method, device, equipment and medium
CN104102411A (en) Text editing method and text editing device
CN103823610A (en) Electronic equipment and information processing method thereof
US20130003112A1 (en) Scanner device and scanning method
CN101620575B (en) Flash card and method for flash memory to prevent data from being damaged
CN102426581A (en) Method and device for generating file preview

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150304

RJ01 Rejection of invention patent application after publication