CN102880714B - File clean-up method and device - Google Patents
File clean-up method and device Download PDFInfo
- Publication number
- CN102880714B CN102880714B CN201210379631.XA CN201210379631A CN102880714B CN 102880714 B CN102880714 B CN 102880714B CN 201210379631 A CN201210379631 A CN 201210379631A CN 102880714 B CN102880714 B CN 102880714B
- Authority
- CN
- China
- Prior art keywords
- file
- type
- undetermined
- destination
- size
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000012217 deletion Methods 0.000 claims abstract description 47
- 230000037430 deletion Effects 0.000 claims abstract description 47
- 239000000203 mixture Substances 0.000 claims description 18
- 230000000694 effects Effects 0.000 claims description 7
- 238000001914 filtration Methods 0.000 claims description 5
- 108010001267 Protein Subunits Proteins 0.000 claims description 3
- 230000009471 action Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 230000009897 systematic effect Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000007596 consolidation process Methods 0.000 description 2
- 235000014510 cooky Nutrition 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000013011 mating Effects 0.000 description 1
- 108700039855 mouse a Proteins 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000001681 protective effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000009958 sewing Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses file clean-up method and device, wherein, described method may include that and obtains the attribute information of each file in disk;Choose attribute information and meet the file of prerequisite as file destination;Obtain the description information of each file destination and represent;There is provided for described file destination and delete entrance, in order to when receiving removal request by described deletion entrance, corresponding file destination is deleted;Wherein, in described acquisition disk, the attribute information of each file includes: by the way of inquiry disk MFT, obtains the attribute information of each file in disk.By means of the invention it is possible to user-friendly, that improves file clean-up realizes efficiency.
Description
Technical field
The present invention relates to file clean-up technical field, be specifically related to file clean-up method and device.
Background technology
Along with the long-play of computer system, file constantly accumulates, and the mass file in computer also gets more and more.Example
As, when using Windows operating system and running application program, very many temporary files can be produced, work as operating system
After having updated security patch, useless service packs that may have the most hundreds of million etc. under windows directory, these files can cause
The disk space of computer is taken increasing, including system disk (generally C dish).In this case, not only
Can take substantial amounts of memory space, computer can become to run slowly, the most also has some application program because of system disk space
Not enough and cannot install, etc..But, for domestic consumer, often do not know how to process system just can be made to obtain
To optimizing, improve above situation.
Summary of the invention
In view of the above problems, it is proposed that the present invention in case provide one overcome the problems referred to above or at least in part solve on
State the file clean-up method of problem and corresponding file clean-up device.
According to one aspect of the present invention, it is provided that a kind of file clean-up method, including:
Obtain the attribute information of each file in disk;
Choose attribute information and meet the file of prerequisite as file destination;
Obtain the description information of each file destination and represent;
There is provided for described file destination and delete entrance, in order to when receiving removal request by described deletion entrance, will
Corresponding file destination is deleted.
Wherein, in described acquisition disk, the attribute information of each file includes:
By the way of inquiry disk MFT, obtain the attribute information of each file in disk.
Alternatively, described attribute information includes the size of file, path, place catalogue, filename, suffix name and/or literary composition
Part type, described in choose attribute information and meet the file of prerequisite and include as file destination:
Size according to file chooses file undetermined;
Path, place catalogue, filename, suffix name and/or file type according to file, mistake from described file undetermined
Filter system core file and vital document, remaining file is defined as described file destination.
Alternatively, the described size according to file is chosen file undetermined and is included:
Preset number the file of selecting file size maximum is as file undetermined;
Or,
Selecting file size exceedes the file of preset threshold value as file undetermined.
Alternatively, described from described file undetermined, system core file is filtered out and vital document includes:
Judge that the path of described file undetermined, place catalogue, filename, suffix name and/or file type are treated described in judging
Determine whether file hits preset white list rule, if it is, be system core file or vital document, and filtered
Fall.
Alternatively, described white list rule includes the special key words in file path, particular category, specific file
Name, specific suffix name, or, the canonical matching condition set up according to file path, filename and file type.
Alternatively, the description information of described file destination includes: for stating descriptive information and/or the use of file effect
The descriptive information of the consequence that may cause after statement is deleted.
Alternatively, the description information representing of described each file destination of acquisition includes:
Type according to each file destination adds up the size summation of all kinds file, and all kinds file respectively
The ratio shared in the size summation of target complete file of size summation;
According to the ratio shared by all kinds file, represent in the way of ring-type figure.
Alternatively, described for described file destination provide delete entrance include:
Total deletion entrance is provided respectively, in order to when being connect by described total deletion entrance for the file destination of each type
When receiving removal request, the file destination of corresponding types is all deleted.
Alternatively, also include:
When operation focus enters certain type target file region, the description of file destinations all under the type is believed
Breath represents in the form of a list;
Described for described file destination provide delete entrance include:
The offer of each file destination under the type is provided and individually deletes entrance.
According to a further aspect in the invention, it is provided that a kind of file clean-up device, including
Attribute information acquiring unit, for obtaining the attribute information of each file in disk;
File destination acquiring unit, meets the file of prerequisite as file destination for choosing attribute information;
Description information represents unit, for obtaining the description information of each file destination and representing;
Delete entrance provide unit, for for described file destination provide delete entrance, in order to when by described delete into
When mouth receives removal request, corresponding file destination is deleted.
Alternatively, described attribute information acquiring unit includes:
MFT inquiry subelement, for, by the way of inquiry disk MFT, obtaining each file in disk
Attribute information.
Alternatively, described attribute information includes the size of file, path, place catalogue, filename, suffix name and/or literary composition
Part type, described file destination acquiring unit includes:
File acquisition subelement undetermined, for choosing file undetermined according to the size of file;
Filter subelement, for path, place catalogue, filename, suffix name and/or file type according to file, from institute
State and file undetermined filters out system core file and vital document, remaining file is defined as described file destination.
Alternatively, described file acquisition subelement undetermined includes:
First candidates selection subelement, for maximum preset number the file of selecting file size as file undetermined;
Or,
Second candidates selection subelement, exceedes the file of preset threshold value as file undetermined for selecting file size.
Alternatively, described filtration subelement includes:
Judgment sub-unit, for judging the path of described file undetermined, place catalogue, filename, suffix name and/or file
Type judges whether described file undetermined hits preset white list rule, if it is, be system core file or important literary composition
Part, and filter this out.
Alternatively, described white list rule includes the special key words in file path, particular category, specific file
Name, specific suffix name, or, the canonical matching condition set up according to file path, filename and file type.
Alternatively, the description information of described file destination includes: for stating explanatory information and/or the use of file effect
The help information of the consequence that may cause after statement is deleted.
Alternatively, described description information represents unit and includes:
Statistics subelement, for adding up the size summation of all kinds file respectively according to the type of each file destination,
And the ratio that the size summation of all kinds file is shared in the size summation of target complete file;
Pattern exhibition subelement, for according to the ratio shared by all kinds file, represents in the way of ring-type figure.
Alternatively, described deletion entrance provides unit to include:
First deletes entrance provides subelement, for providing total deletion entrance respectively for the file destination of each type,
When receiving removal request by described total deletion entrance, the file destination of corresponding types all to be deleted.
Alternatively, also include:
Launch unit, for when operation focus enters certain type target file region, by mesh all under the type
The description information of mark file represents in the form of a list;
Described deletion entrance provides unit to include:
Second deletes entrance provides subelement, and each file destination under respectively the type provides individually to be deleted
Entrance.
File clean-up method and device according to the present invention, it is possible to select some file destinations according to preset rule,
And file name and description information etc. thereof are presented to user, provide the deletion entrance of each file, so, when user needs simultaneously
When deleting certain file, it is possible to directly entered by this entrance, perform deletion action, user-friendly, improve file clear
That manages realizes efficiency.
It addition, by the setting of specific rules, only systematic function can will may be impacted and is not belonging to system
The file of critical file or user's vital document is presented to user, as such, it is possible to make user more intuitively be found to be deleted
The file removed, it is to avoid cause the situation that system core file or user's vital document are deleted by mistake.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of description, and in order to allow above and other objects of the present invention, the feature and advantage can
Become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Accompanying drawing explanation
By reading the detailed description of hereafter preferred implementation, various other advantage and benefit common for this area
Technical staff will be clear from understanding.Accompanying drawing is only used for illustrating the purpose of preferred implementation, and is not considered as the present invention
Restriction.And in whole accompanying drawing, it is denoted by the same reference numerals identical parts.In the accompanying drawings:
Fig. 1 shows the flow chart of method according to an embodiment of the invention;
Fig. 2 shows and first represents interface schematic diagram according to an embodiment of the invention;
Fig. 3 shows and second represents interface schematic diagram according to an embodiment of the invention;
Fig. 4 shows and the 3rd represents interface schematic diagram according to an embodiment of the invention;
Fig. 5 shows and the 4th represents interface schematic diagram according to an embodiment of the invention;And
Fig. 6 shows the schematic diagram of an apparatus in accordance with one embodiment of the invention.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing shows the disclosure
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure and should be by embodiments set forth here
Limited.On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
In embodiments of the present invention, in order to help user that the file in disk is managed, can first obtain
The attribute information of each file in disk, therefrom selects some file destinations according to certain strategy, then by these mesh
Attribute and the description information thereof of mark file are presented to user, at the same time it can also be provide deleting of file in interface in representing of file
Except entrance, by the description information etc. of file, user can determine which file is to need to delete, then by correspondence
Delete entrance and just can specify deletion action, and the deletion action of file need not be performed by the way of conventional.Wherein, so-called normal
The mode of rule refers to the path according to file to be deleted and finds the catalogue at file place, then manually performs the deletion behaviour of file
Make (in right button menu, after including filesselected, to select " deletion " option, or the side with Macintosh " shift+delete "
Formula is by file deletion of choosing etc.).Visible, the method for the embodiment of the present invention can provide a kind of way arranged the document easily
Footpath, it is possible to increase file consolidation realize efficiency.The most just the method is introduced in detail by step.
Seeing Fig. 1, the file clean-up method that the embodiment of the present invention provides may comprise steps of:
S101: obtain the attribute information of each file in disk;
In embodiments of the present invention, in order to help user that the file in disk is managed, it is necessary first to obtain disk
In the attribute information of each file, it may for example comprise the size of each file, title, path etc..When implementing, can adopt
The attribute information of each file in disk is obtained with various ways, for example, it is possible to the All Files directly enumerated on disk, but this
It it is a process the most time-consuming.In view of the importance of search efficiency, the embodiment of the present invention can use inquiry MFT
The acquisition attribute information of (Master File Table, MFT) mode.Wherein, based on the Windows pipe to disk file
Reason mode, MFT is the index of each file on disk, MFT be each file in store one group be referred to as " attribute " record,
Each attribute stores different types of information.In other words, the index literary composition of all objects stored during MFT is a Map Disk
Part.In MFT, at least mapping item of each file (including MFT self) on disk.Every comprising in MFT counts as follows
According to: size, time and timestamp, security attribute, Data Position etc..File is obtained by only inquiring about this index information
Attribute information, compared with retrieval file totally, can be greatly improved on search efficiency.
S102: choose attribute information and meet the file of prerequisite as file destination;
Getting on disk after the attribute information of each file, selecting in the multifile that needs to comform may be to system
The file that performance impacts, the file of the bigger and typically no use that more such as takes up room.It is to say, not
Being that the bigger All Files that takes up room can be deleted, some file is some system core files or important literary composition
Part, is once deleted, it will causes system file to be lost or is likely to occur other problems.Therefore, the most reasonably to
Family represents the file that may affect systematic function, protects some system core files and vital document to be missed simultaneously
Delete, just become extremely important.
To this end, in embodiments of the present invention, the condition of selection can be pre-set, such as, first can be according to file
Size carries out preliminary election to file, selects some files undetermined.As, the file selecting the maximum preset number of file size is made
For file undetermined, namely file can also be ranked up from big to small, take out first 1000 (or other numbers) files and make
For file undetermined;Or, it is also possible to select file size more than the file of certain preset threshold value as file undetermined, etc..
After selecting file undetermined, again can according to the path of file, place catalogue, filename, suffix name and/or
File type etc. information, filters out system core file and vital document from file undetermined, is defined as by remaining file
Described file destination.Wherein, the size of file, path, place catalogue, filename, suffix name, file type etc. broadly fall into literary composition
The attribute information of part, can get from step S101.
Wherein, in the path according to file, place catalogue, filename, suffix name and/or file type etc. information, from
When file undetermined filters out system core file and vital document, white list can be set previously according to experience etc., if certain
The a certain attribute hit white list of file, then can be counted as system core file or vital document.Wherein, white list is used
In preserving some file characteristics that may belong to system core file or vital document, in this manner it is possible to by each literary composition undetermined
Part mates with the feature in white list, if the match is successful, then and can be by as system core file or vital document.Tool
When body realizes, white list can exist with forms such as library files (such as data file), and can be with encrypting storing.
Wherein, for system core file, namely refer to the properly functioning file playing key effect for system,
Once these files are deleted or lose, then can make certain risk of systems face.Specifically can wrap when arranging white list
Include:
Path white list, can preserve some specific keywords in this white list, if it find that in the path of certain file
Comprise certain special key words in white list, can be used as system core file and be filtered.Catalogue white list, in this white list
Preserve some specific catalogues, if the catalogue at certain file place occurs in this white list, then can be as system core
File is filtered.All Files in the system directory of such as Windows all as system core file, etc..
Suffix name, filename white list, preserve some specific suffix name or filenames, i.e. according to literary composition in this white list
File is filtered by suffix name or the filename of part, if the suffix name of certain file has hit white list, then by as system
Critical file is filtered.It addition, some system specific properties files, can directly list in the white list of filename, such as
Desktop.ini etc..
When implementing, each white list can be respectively provided with, so can by each file respectively with each white list
Mating, hit any of which white list can be filtered out.
Such as, the structure of path white list can be such that
<excludeitem keyword=" INFO2 " type=" file " issys=" true "/>is if in/* path
Occur keyword " INFO2 ", file type is " file ", be system file */
<excludeitem keyword=" windows.edb " type=" file " issys=" true "/>
<excludeitem keyword=" program files " type=" dir " issys=" true "/>
<excludeitem keyword=" program files " type=" dir " issys=" false "/>
< excludeitem keyword=" system volume information " type=" dir " issys="
true″/>
< excludeitem keyword=" system volume information " type=" dir " issys="
false″/>
<excludeitem keyword=" boot " type=" dir " issys=" true "/>
<excludeitem keyword=" recovery " type=" dir " issys=" true "/>
<excludeitem keyword=" windows " type=" dir " issys=" true "/>
The structure of filename white list can be such that
<spefileitem filename=" ppsds.pgf " dir=" " des=" PPS Web TV cache file "/>
< spefileitem filename=" Data1.cab " dir=" Adobe Acrobat 9Pro " des="
AdobeAcrobat installs file "/>
< " WinPE boot disk makes literary composition to spefileitem filename=" Data.DND " dir=" Data " des=
Part "/>
< spefileitem filename=" caehe*.dat " dir=" ikudisk " des=" excellent cruel video cache
File "/>
< " excellent cruel video delays spefileitem filename=" cache*.dat " dir=" youkudisk " des=
Deposit file "/>
< spefileitem filename=" Nokia_Suite.msi " dir=" " des=" install by Nokia's PC external member
File "/>
<spefileitem filename=" pak0.pak " dir=" valve " des=" CS game file "/>
< " literary composition is installed in the game of the ninth-largest land to spefileitem filename=" c9_setup_* " dir=" " des=
Part "/>
< spefileitem filename=" QQFFO*install* " dir=" " des=" pacify by the free fantastic play of QQ
Dress file "/>
The structure of suffix name white list can be such that
< speitem filetail=" .msp " des=" Windows program installation package file " type=" installation kit "
Dangrous=" true "/>
< speitem filetail=" .xml " des=" extensible markup language document " type=" file "
Dangrous=" true "/>
< speitem filetail=" .exw " des=" Kinescope: Kinescope Expert associated documents " type=" records a video "
Dangrous=" false "/>
< speitem filetail=" .reg " des=" registry file " type=" registration table " dangrous="
true″/>
It addition, in order to improve efficiency, it is also possible to filter by the way of canonical is mated, namely can according to path,
Filename, file type etc. attribute creates regular expression, is then mated with this regular expression by each file,
It is fitted on arbitrary regularity conditions, can serve as system core file and be filtered and not show.Such as, a kind of regular expression can
Think:
< spefileitem filename=" * KB936929* " dir=" " des=" Windows XP SP3 patch literary composition
Part "/>
The meaning of this regular expression is, if the filename of certain file includes " KB936929 " (" * " in expression formula
Represent in filename and can also comprise other characters, as long as i.e. hitting this condition including " KB936929 " this character string),
Or the information of description is " Windows XP SP3 patch file ", then can be filtered as system core file.
These protective measures can all be shielded the big file being likely to result in serious problems to a great extent, from
And allow user it is seen that the file that really can delete.
It addition, about vital document, generally refer to the most important and for useful file.This class file
Deletion be not result in that computer system goes wrong, but be probably user need data rather than junk data, after deleting by mistake
Will also result in user's puzzlement.Mainly can carry out differentiating and mistake by the type suffix name white list of file for this class file
Filter.The such as history files of database file, professional software etc. are usually vital document, then can be by the suffix of database file
Name, the suffix name of professional software history file join in white list.After as word document with .doc or .docx etc. being
Sewing name, this kind of document is usually the file etc. that user edits or downloads, and is typically probably useful, therefore, and .doc .docx
Just can join in white list etc. suffix name, suffix name is hit the file of this white list and can be filtered as vital document
Fall.Such as, the structure of file type white list can be such that
<subitemfiletype=" .jpg | .jpeg | .png | .psd | .bmp | .GIF | .gif | .psd | .GIFf |
.tga | .exif | .svg | .cdr | .pcd | .dxf | .ufo | .eps | .ai | .raw | " disname=" image " des=" image
File, file " dangrous=" false " colornormal=" 0x00d0fa of common preservation picture in computer "
Colorhover=" 0x00e6ff " coloractive=" 0x00ace5 "/>
In a word, either system core file or vital document can filter by the way of white list.Will
These file filters fall to be not displayed to user, to avoid it to be deleted by mistake.
Certainly, in actual applications, in addition to file can being filtered by the way of white list, it is also possible to logical
File is filtered by the mode crossing blacklist.Certainly, under the filter type using blacklist, preserve in blacklist is can
To be shown to some characteristic attributes of the file of user, namely the file of attribute information hit blacklist is to need to be shown to user
File.It is to say, after selecting the bigger file undetermined that takes up room, can go by the way of white list
Select system core file or vital document, then filter this out, but can select from file undetermined and hit black name
Single gauge file then, as having an impact systematic function and can be presented to user by deleted file.Creating black name
Dan Shi, can create according to conventional experience etc., such as, and system disk (usually C dish) inner common garbage files place
Catalogue includes following:
The own record (c:Documents and Settings user name Cookies) of Cookies;
Windows user's temporary folder (c:Documents and Settings user name
LocalSettingsTemp);
Browser rs cache catalogue (c:Documents and Settings user name
LocalSettingsTemporaryInternet Files);
History file record (the c:Documents and Settings user name opened recently
All Files under LocalSettingsHistory);
The history shortcut record (institute under c:Documents and Settings user name Recent opened recently
There is file);
Windows temp directory (All Files under c:WINDOWSTemp);
Windows updates patch catalogue (all literary compositions under c:WINDOWSSoftwareDistributiondownload
Part);
Above file typically all takes up room bigger, and to system or to user's all not the biggest use
File, therefore, it can according to its information creating blacklist such as path, catalogue rule, for filtering file undetermined.
It should be noted that in actual applications, for the presetting rule that file is filtered, can be by user's root
According to being actually needed manually setting, and may be provided for corresponding entrance, it is allowed to user adds new rule, or delete,
Change original rule, etc..
S103: obtain the description information of each file destination and represent;
After determining the file destination that can be presented to user, it is possible to file destination is represented.At this
In bright embodiment, can not only represent the base attribute information such as the filename of each file destination, path, it is also possible to get
The description information of each file destination, is also presented to user by description information, and so, user is referred to each file destination
Description information, it may be judged whether perform deletion action.Description information could be for state file effect descriptive information and/or
The descriptive information of the consequence that may cause after stating deletion, namely include file purposes, delete after have anything to affect
Etc..Wherein, on disk, each file of storage the most all can preserve the description information to each file simultaneously, therefore, and can
The most directly to obtain the description information of each file, or, it is also possible to according to the description of the various files preserved on server
Information, obtains the description information mated with file destination, etc..
S104: provide for described file destination and delete entrance, in order to when receiving removal request by described deletion entrance
Time, corresponding file destination is deleted.
While file destination and description information thereof are presented to user, it is also possible to provide a user with the behaviour deleting file
Make entrance, if so user determines when needing to delete certain file according to the description information etc. of each file, it is possible to directly
Send deletion instruction from this entrance, the most just can find the file of correspondence automatically according to the path etc. of file, and perform deletion
Operation.Visible, in the process, it is not necessary to user to locating file in concrete disk, is manually performing deletion, facilitating again
User operation, that can improve file consolidation realizes efficiency.
In actual applications, when representing the description information of each file destination and correspondence thereof to user, can be with list
Mode represent, as shown in the left part of Fig. 2, it is seen that show in the list each file destination filename,
The attribute informations such as the Disk name at place, size, about the description information of file, can move to certain user by operation focus
During the entry of file place, show in modes such as pop-up windows.Such as, in fig. 2, mouse is moved to
Time on " enterww.cab " this file, a rectangle frame will be demonstrated below this entry, show description letter
Breath, including the fullpath and application thereof of this document, such as " office installs file ".Or, in order to more directly perceived, real in the present invention
Execute in example, it is also possible to add up the size summation of all kinds file respectively according to the type of each file destination, and various types of
The ratio that the size summation of type file is shared in the size summation of target complete file, then according to shared by all kinds file
Ratio, represent in the more intuitively mode such as block diagram, bar diagram, pie chart, ring-type figure.Such as, such as the right part of Fig. 2
Shown in, it is simply that situation about representing with the mode of ring bodies.Illustratively, can be found in Fig. 3, be the equal of to right side in Fig. 2
Divide the display effect after amplifying, from figure 3, it can be seen that statistical result is file destination is divided into document, image, video, sound
Happy, compression, other etc. six classes, in ring-type figure, different types, different region areas can be represented by different colors
Represent the ratio shared by each type file.It should be noted that owing to accompanying drawing can only be illustrated with black and white picture, therefore, use
The mode of lead-in wire illustrates the file type that regional is the most corresponding, and in actual applications, this lead-in wire can show,
But when can work as the mouse a certain region of entrance, demonstrate, in the central area of ring-type figure, the file type that this region is corresponding, with
And shared ratio.Such as, in figure 3, mouse enters " other " file area, then demonstrate in central area " other,
1.3GB”.If mouse does not enters into any region of ring-type figure, then can demonstrate currently select big in central area
The total size of file, such as, " add up to size 2.8GB ".
Under the ways of presentation of this ring-type figure, when providing deletion entrance, can be that the file destination of each type divides
You can well imagine for total deletion entrance, so, if the user determine that need the file by a certain type all to delete, then can be by being somebody's turn to do
Total deletion entrance corresponding to type sends removal request, when receiving removal request by total deletion entrance, it is possible to
The file destination of corresponding types is all deleted, has further facilitated the operation of user.Certainly, for convenience user to single literary composition
Part carries out deletion action, it is also possible to provides respectively for each file and individually deletes entrance.When implementing, can be user's
When operation focus enters into the region at a certain type place, launch in the form of a list to represent by each file in the type,
And each file this single operation entry of offer is provided in lists, delete when being received by certain single deletion entrance
During except request, it is possible to the single file that this deletion entrance is corresponding is deleted.See Fig. 4, in the operation that user passes through
When focus enters the region at video type place, it is possible to list the target of the type in the left window in the form of a list
File, meanwhile, has a check box before each file, if it is desired to delete certain file, then can be by checking box
File to be deleted is chosen by mode, and selects to carry out deleting by deletion entrance in interface.As shown in fig. 5, it is assumed that choosing
Suffered three video files therein, then " deletion " button in the upper right corner becomes upstate, clicks on, can by this three
Individual file is deleted.
In a word, the embodiment of the present invention is passed through, it is possible to select some specific files, and by file name and description letter thereof
Breath is presented to user, provides the deletion entrance of each file, so, when user needs to delete certain file simultaneously, it is possible to straight
Connecting this entrance to enter, and performed deletion action, user-friendly, that improves file clean-up realizes efficiency.It addition, by tool
The setting of body rule, only can will may impact and be not belonging to system core file or the important literary composition of user to systematic function
The file of part is presented to user, can deleted file as such, it is possible to make user more intuitively see, it is to avoid system core
File or user's vital document are deleted.
Corresponding with the file clean-up method that the embodiment of the present invention provides, it is clear that the embodiment of the present invention additionally provides a kind of file
Reason device, sees Fig. 6, and this device may include that
Attribute information acquiring unit 601, for obtaining the attribute information of each file in disk;
File destination acquiring unit 602, meets the file of prerequisite as file destination for choosing attribute information;
Description information represents unit 603, for obtaining the description information of each file destination and representing;
Delete entrance and unit 604 is provided, delete entrance for providing for described file destination, in order to when by described deletion
When entrance receives removal request, corresponding file destination is deleted.
Wherein, described attribute information acquiring unit 601 may include that
MFT inquiry subelement 6011, for by the way of inquiry disk MFT, obtains in disk each
The attribute information of file.
Wherein, described attribute information includes the size of file, path, place catalogue, filename, suffix name and/or file
Type, described file destination acquiring unit includes:
File acquisition subelement undetermined, for choosing file undetermined according to the size of file;
Filter subelement, for path, place catalogue, filename, suffix name and/or file type according to file, from institute
State and file undetermined filters out system core file and vital document, remaining file is defined as described file destination.
When implementing, described file acquisition subelement undetermined may include that
First candidates selection subelement, for maximum preset number the file of selecting file size as file undetermined;
Or,
Second candidates selection subelement, exceedes the file of preset threshold value as file undetermined for selecting file size.
Wherein, described filtration subelement includes:
Judgment sub-unit, for judging the path of described file undetermined, place catalogue, filename, suffix name and/or file
Type judges whether described file undetermined hits preset white list rule, if it is, be system core file or important literary composition
Part, and filter this out.
Wherein, described white list rule include the special key words in file path, particular category, particular file name,
Specific suffix name, or, the canonical matching condition set up according to file path, filename and file type.
Wherein, the description information of described file destination includes: for stating the explanatory information of file effect and/or being used for
The help information of the consequence that statement may cause after deleting.
Wherein, described description information represents unit and includes:
Statistics subelement, for adding up the size summation of all kinds file respectively according to the type of each file destination,
And the ratio that the size summation of all kinds file is shared in the size summation of target complete file;
Pattern exhibition subelement, for according to the ratio shared by all kinds file, represents in the way of ring-type figure.
Wherein, described deletion entrance provides unit to include:
First deletes entrance provides subelement, for providing total deletion entrance respectively for the file destination of each type,
When receiving removal request by described total deletion entrance, the file destination of corresponding types all to be deleted.
It addition, this device can also include:
Launch unit, for when operation focus enters certain type target file region, by mesh all under the type
The description information of mark file represents in the form of a list;
Described deletion entrance provides unit to include:
Second deletes entrance provides subelement, and each file destination under respectively the type provides individually to be deleted
Entrance.
The said apparatus provided by the embodiment of the present invention, it is possible to select some specific files, and by file name
And description information is presented to user, provide the deletion entrance of each file, so, when user needs to delete certain file simultaneously
Time, it is possible to directly being entered by this entrance, perform deletion action, user-friendly, that improves file clean-up realizes efficiency.
It addition, by the setting of specific rules, only systematic function can will may be impacted and is not belonging to system core file
Or the file of user's vital document is presented to user, as such, it is possible to make user more intuitively see can deleted file,
System core file or user's vital document is avoided to be deleted.
Algorithm and display are not intrinsic to any certain computer, virtual system or miscellaneous equipment relevant provided herein.
Various general-purpose systems can also be used together with based on teaching in this.As described above, construct required by this kind of system
Structure be apparent from.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to use various
Programming language realizes the content of invention described herein, and the description done language-specific above is to disclose this
Bright preferred forms.
In description mentioned herein, illustrate a large amount of detail.It is to be appreciated, however, that the enforcement of the present invention
Example can be put into practice in the case of not having these details.In some instances, it is not shown specifically known method, structure
And technology, in order to do not obscure the understanding of this description.
Similarly, it will be appreciated that one or more in order to simplify that the disclosure helping understands in each inventive aspect, exist
Above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together into single enforcement sometimes
In example, figure or descriptions thereof.But, the method for the disclosure should not be construed to reflect an intention that i.e. required guarantor
The application claims feature more more than the feature being expressly recited in each claim protected.More precisely, as following
Claims reflected as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
The claims following detailed description of the invention are thus expressly incorporated in this detailed description of the invention, the most each claim itself
All as the independent embodiment of the present invention.
Those skilled in the art are appreciated that and can carry out the module in the equipment in embodiment adaptively
Change and they are arranged in one or more equipment different from this embodiment.Can be the module in embodiment or list
Unit or assembly are combined into a module or unit or assembly, and can put them in addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit excludes each other, can use any
Combine all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint
Where method or all processes of equipment or unit are combined.Unless expressly stated otherwise, this specification (includes adjoint power
Profit requires, summary and accompanying drawing) disclosed in each feature can be carried out generation by providing identical, equivalent or the alternative features of similar purpose
Replace.
Although additionally, it will be appreciated by those of skill in the art that embodiments more described herein include other embodiments
Some feature included by rather than further feature, but the combination of the feature of different embodiment means to be in the present invention's
Within the scope of and form different embodiments.Such as, in the following claims, embodiment required for protection appoint
One of meaning can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or to run on one or more processor
Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that and can use in practice
Microprocessor or digital signal processor (DSP) realize some in file clean-up equipment according to embodiments of the present invention or
The some or all functions of the whole parts of person.The present invention is also implemented as performing method as described herein
Point or whole equipment or device program (such as, computer program and computer program).Such realize this
Bright program can store on a computer-readable medium, or can be to have the form of one or more signal.Such
Signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference marks that should not will be located between bracket is configured to limitations on claims.Word " comprises " and does not excludes the presence of not
Arrange element in the claims or step.Word "a" or "an" before being positioned at element does not excludes the presence of multiple such
Element.The present invention and can come real by means of including the hardware of some different elements by means of properly programmed computer
Existing.If in the unit claim listing equipment for drying, several in these devices can be by same hardware branch
Specifically embody.Word first, second and third use do not indicate that any order.These word explanations can be run after fame
Claim.
The application can apply to computer system/server, and they can be with other universal or special calculating system rings numerous
Border or configuration operate together.The well-known calculating system that is suitable to be used together with computer system/server, environment and/
Or the example of configuration includes but not limited to: personal computer system, server computer system, thin client, thick client computer, hands
Hold or laptop devices, system based on microprocessor, Set Top Box, programmable consumer electronics, NetPC Network PC, small-sized meter
Calculation machine system, large computer system and include the distributed cloud computing technology environment of any of the above described system, etc..Department of computer science
System/server can be in the general linguistic context of the computer system executable instruction (such as program module) performed by computer system
Lower description.Generally, program module can include routine, program, target program, assembly, logic, data structure etc., and they are held
Row specific task or realize specific abstract data type.Computer system/server can be at distributed cloud computing ring
Implementing in border, in distributed cloud computing environment, task is to be performed by by the remote processing devices of communication network links.Dividing
In cloth cloud computing environment, program module may be located at and includes that the Local or Remote of storage device calculates on system storage medium.
Claims (12)
1. a file clean-up method, including:
Obtaining the attribute information of each file in disk, described attribute information includes the size of file, path, place catalogue, literary composition
Part name, suffix name and/or file type;
Size according to file chooses file undetermined;
Path, place catalogue, filename, suffix name and/or file type according to described file undetermined, from described file undetermined
In filter out system core file and vital document, remaining file is defined as file destination;
Obtaining the description information of each file destination and represent, the description information of described file destination includes: be used for stating file
The descriptive information acted on and/or the descriptive information of the consequence that may cause after stating deletion;
Total deletion entrance is provided respectively according to the type of each file destination, the respectively file destination of each type, in order to
When receiving removal request by described total deletion entrance, the file destination of corresponding types is all deleted;
Wherein, in described acquisition disk, the attribute information of each file includes:
By the way of inquiry disk MFT, obtain the attribute information of each file in disk.
The most described size according to file is chosen file undetermined and is included:
Preset number the file of selecting file size maximum is as file undetermined;
Or,
Selecting file size exceedes the file of preset threshold value as file undetermined.
The most described system core file and important of filtering out from described file undetermined
File includes:
Path, place catalogue, filename, suffix name and/or file type according to described file undetermined judge described literary composition undetermined
Whether part hits preset white list rule, if it is, be system core file or vital document, and filters this out.
4. method as claimed in claim 3, wherein, described white list rule include the special key words in file path,
Particular category, particular file name, specific suffix name, or, the canonical set up according to file path, filename and file type
Join condition.
5. the method as described in any one of claims 1 to 3, wherein, the description information of described each file destination of acquisition is also opened up
Now include:
Type according to each file destination adds up the size summation of all kinds file respectively, and all kinds file is big
The ratio that little summation is shared in the size summation of target complete file;
According to the ratio shared by all kinds file, represent in the way of ring-type figure.
6. method as claimed in claim 5, also includes:
When operation focus enters certain type target file region, by the description information of file destinations all under the type with
The form of list represents;
The described file destination being respectively each type provides total deletion entrance to include respectively:
The offer of each file destination under each type is provided and individually deletes entrance.
7. a file clean-up device, including attribute information acquiring unit, for obtaining the attribute information of each file in disk,
Described attribute information includes the size of file, path, place catalogue, filename, suffix name and/or file type;
File acquisition subelement undetermined, for choosing file undetermined according to the size of file;
Filter subelement, for path, place catalogue, filename, suffix name and/or files classes according to described file undetermined
Type, filters out system core file and vital document from described file undetermined, remaining file is defined as file destination;
Description information represents unit, for obtaining the description information of each file destination and representing, and the description of described file destination
Information includes: for the explanatory information of stating file effect and/or the help of consequence that may cause after stating deletion
Property information;
First deletes entrance provides subelement, for providing total deletion entrance respectively for the file destination of each type, in order to
When receiving removal request by described total deletion entrance, the file destination of corresponding types is all deleted;
Wherein said attribute information acquiring unit includes:
MFT inquiry subelement, for by the way of inquiry disk MFT, obtains the genus of each file in disk
Property information.
8. device as claimed in claim 7, wherein, described file acquisition subelement undetermined includes:
First candidates selection subelement, for maximum preset number the file of selecting file size as file undetermined;
Or,
Second candidates selection subelement, exceedes the file of preset threshold value as file undetermined for selecting file size.
9. device as claimed in claim 7, wherein, described filtration subelement includes:
Judgment sub-unit, for path, place catalogue, filename, suffix name and/or file type according to described file undetermined
Judge whether described file undetermined hits preset white list rule, if it is, be system core file or vital document, and
Filter this out.
10. device as claimed in claim 9, wherein, described white list rule include the special key words in file path,
Particular category, particular file name, specific suffix name, or, the canonical set up according to file path, filename and file type
Join condition.
11. devices as described in any one of claim 7 to 10, wherein, described description information represents unit and includes:
Statistics subelement, for adding up the size summation of all kinds file respectively according to the type of each file destination, and
The ratio that the size summation of all kinds file is shared in the size summation of target complete file;
Pattern exhibition subelement, for according to the ratio shared by all kinds file, represents in the way of ring-type figure.
12. devices as claimed in claim 11, also include:
Launch unit, for when operation focus enters certain type target file region, by all targets literary composition under the type
The description information of part represents in the form of a list;
Second deletes entrance provides subelement, each file destination for being respectively under each type provide individually delete into
Mouthful.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210379631.XA CN102880714B (en) | 2012-09-29 | 2012-09-29 | File clean-up method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210379631.XA CN102880714B (en) | 2012-09-29 | 2012-09-29 | File clean-up method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102880714A CN102880714A (en) | 2013-01-16 |
CN102880714B true CN102880714B (en) | 2016-08-24 |
Family
ID=47482040
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210379631.XA Active CN102880714B (en) | 2012-09-29 | 2012-09-29 | File clean-up method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102880714B (en) |
Families Citing this family (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103970516B (en) * | 2013-01-30 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Redundancy image deletion method and device |
CN104035723B (en) * | 2013-03-06 | 2018-05-22 | 腾讯科技(深圳)有限公司 | A kind of method and terminal device for arranging storage file |
CN103473343A (en) * | 2013-09-23 | 2013-12-25 | 深圳市金立通信设备有限公司 | File management method, device and terminal |
CN103605713A (en) * | 2013-11-13 | 2014-02-26 | 广东欧珀移动通信有限公司 | Method and device for mobile terminal file browsing |
CN105095252B (en) * | 2014-05-06 | 2019-09-17 | 腾讯科技(深圳)有限公司 | A kind of file management method and system |
CN104008343A (en) * | 2014-05-14 | 2014-08-27 | 北京奇虎科技有限公司 | Data shattering method and device |
CN105224572B (en) * | 2014-06-30 | 2019-11-15 | 北京金山安全软件有限公司 | Method and device for identifying garbage catalogue |
CN104239157B (en) * | 2014-08-19 | 2017-05-03 | 北京奇虎科技有限公司 | Method and device for optimizing and cleaning data of mobile terminal |
CN104331376B (en) * | 2014-11-14 | 2018-07-27 | 北京奇虎科技有限公司 | The method for cleaning and device of the installation kit stored in mobile terminal |
CN104572819B (en) * | 2014-12-02 | 2017-02-22 | 深圳市腾讯计算机系统有限公司 | Clearing method and system for junk data |
CN104881495B (en) * | 2015-06-15 | 2019-03-26 | 北京金山安全软件有限公司 | Folder path identification and folder cleaning method and device |
CN104991940A (en) * | 2015-07-07 | 2015-10-21 | 广东欧珀移动通信有限公司 | Method and apparatus for filtering files in file system of terminal |
CN105025166A (en) * | 2015-07-09 | 2015-11-04 | 深圳市金立通信设备有限公司 | File processing method and terminal |
CN106406747A (en) * | 2015-08-03 | 2017-02-15 | 中兴通讯股份有限公司 | Hard disk storage management method and apparatus for mobile terminal |
CN106528577B (en) * | 2015-09-15 | 2019-12-24 | 腾讯科技(深圳)有限公司 | Method and device for setting file to be cleaned |
CN106557515A (en) * | 2015-09-29 | 2017-04-05 | 北京国双科技有限公司 | File delet method and device |
CN105743732B (en) * | 2015-12-28 | 2020-03-17 | 哈尔滨安天科技集团股份有限公司 | Method and system for recording transmission path and distribution condition of local area network files |
CN105843970A (en) * | 2016-05-24 | 2016-08-10 | 浪潮电子信息产业股份有限公司 | Method for batched deleting of external USB (universal serial bus) disc files by user-defined way |
CN106294773A (en) | 2016-08-11 | 2017-01-04 | 北京小米移动软件有限公司 | Data clearing method and device |
CN106844579A (en) * | 2017-01-09 | 2017-06-13 | 山东中创软件商用中间件股份有限公司 | A kind of processing method and system of the waste and old file in website |
CN107609066A (en) * | 2017-08-30 | 2018-01-19 | 努比亚技术有限公司 | Method, equipment and the computer for clearing up file can storage mediums |
CN109460669A (en) * | 2017-09-06 | 2019-03-12 | 北京国双科技有限公司 | A kind of file filter method and device based on Spark |
CN109669920A (en) * | 2018-12-07 | 2019-04-23 | 维沃移动通信有限公司 | A kind of file delet method and terminal device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002010983A1 (en) * | 2000-07-27 | 2002-02-07 | Ge Financial Assurance Holdings, Inc. | System and process for multiple variable election of files for deletion |
CN101651864A (en) * | 2008-08-14 | 2010-02-17 | 比亚迪股份有限公司 | Method for managing file in mobile terminal and mobile terminal |
CN102332014A (en) * | 2011-09-14 | 2012-01-25 | 奇智软件(北京)有限公司 | Method and device for deleting file |
CN102609495A (en) * | 2012-01-29 | 2012-07-25 | 奇智软件(北京)有限公司 | Method for deleting file and system |
CN102880713A (en) * | 2012-09-29 | 2013-01-16 | 北京奇虎科技有限公司 | File deleting method and file deleting device |
-
2012
- 2012-09-29 CN CN201210379631.XA patent/CN102880714B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002010983A1 (en) * | 2000-07-27 | 2002-02-07 | Ge Financial Assurance Holdings, Inc. | System and process for multiple variable election of files for deletion |
CN101651864A (en) * | 2008-08-14 | 2010-02-17 | 比亚迪股份有限公司 | Method for managing file in mobile terminal and mobile terminal |
CN102332014A (en) * | 2011-09-14 | 2012-01-25 | 奇智软件(北京)有限公司 | Method and device for deleting file |
CN102609495A (en) * | 2012-01-29 | 2012-07-25 | 奇智软件(北京)有限公司 | Method for deleting file and system |
CN102880713A (en) * | 2012-09-29 | 2013-01-16 | 北京奇虎科技有限公司 | File deleting method and file deleting device |
Non-Patent Citations (1)
Title |
---|
大文件有大智慧;任超杰等;《电脑应用文萃》;20041130;98-101页 * |
Also Published As
Publication number | Publication date |
---|---|
CN102880714A (en) | 2013-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102880714B (en) | File clean-up method and device | |
CN102880713B (en) | File clean-up method and device | |
US9594778B1 (en) | Dynamic content systems and methods | |
US11461286B2 (en) | Fair sampling in a hierarchical filesystem | |
WO2011033734A1 (en) | File search system and program | |
US20150302111A1 (en) | Method and Apparatus for Constructing File System in Key-Value Storage System, and Electronic Device | |
US9495557B2 (en) | Methods and systems for managing access to data in an on-demand system | |
US20070233647A1 (en) | Sharing Items In An Operating System | |
EP3989092A1 (en) | Malicious activity detection and remediation in virtualized file servers | |
US20100106709A1 (en) | File search system and file search server device | |
KR101828642B1 (en) | Brokered item access for isolated applications | |
JPWO2014010082A1 (en) | Search device, search device control method, and recording medium | |
US20160103913A1 (en) | Method and system for calculating a degree of linkage for webpages | |
US11625526B2 (en) | Systems and methods for displaying digital forensic evidence | |
US20150302036A1 (en) | Method, system and computer program for information retrieval using content algebra | |
US20150302093A1 (en) | Method and system for filtering of a website | |
US20080215545A1 (en) | Data file management and search method and system based on file attributes | |
US20080313107A1 (en) | Data management apparatus and method | |
US20070156703A1 (en) | File management apparatus and method, and storage system | |
US20070033233A1 (en) | Log management system and method of using the same | |
KR20140048396A (en) | System and method for searching file in cloud storage service, and method for controlling file therein | |
US20150378540A1 (en) | System and Method for Content Management | |
US20140143215A1 (en) | Assured federated records management | |
US20090240662A1 (en) | Integration for intelligence data systems | |
JP2005056371A (en) | Management method and system for web retrieval information, and computer software program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220708 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co., Ltd |
|
TR01 | Transfer of patent right |