CN109800206A - Desktop method for cleaning, device, terminal device - Google Patents
Desktop method for cleaning, device, terminal device Download PDFInfo
- Publication number
- CN109800206A CN109800206A CN201811534726.8A CN201811534726A CN109800206A CN 109800206 A CN109800206 A CN 109800206A CN 201811534726 A CN201811534726 A CN 201811534726A CN 109800206 A CN109800206 A CN 109800206A
- Authority
- CN
- China
- Prior art keywords
- file
- cleaning
- desktop
- type
- preset
- 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
Links
- 238000004140 cleaning Methods 0.000 title claims abstract description 101
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000010586 diagram Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 3
- 238000009825 accumulation Methods 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of desktop method for cleaning, this method comprises: receiving desktop cleaning request;First dressing is carried out to the original document on desktop according to file size and file type;The file after first dressing is sorted out according to file name, file type and file last edit session;Second is carried out according to file of preset second of the cleaning rule to classification to clear up.The present invention also provides a kind of desktop cleaning plant, terminal device and computer readable storage mediums.Desktop method for cleaning, device, terminal device and computer readable storage medium provided by the invention can carry out first dressing to the original document on the desktop of terminal device according to file size and file type, then remaining file is sorted out further according to file name, file type and the last edit session of file, it is last that second of cleaning is carried out to the file of classification again, to realize the efficient and intelligently cleaning to the desk file of terminal device.
Description
Technical field
The present invention relates to O&M technical field more particularly to a kind of desktop method for cleaning, device, terminal device and computers
Readable storage medium storing program for executing.
Background technique
User for convenience, rapidly searches opening application or document, often by the shortcut figure of application program
Mark and various documents are mounted directly or are established in terminal device desktop, such as computer desktop.But with the application program of installation
Shortcut icon increases with newly-built document, and application program shortcut icon and document on computer desktop etc. can be more next
It is more, in the desktop of equipment can also become very mixed and disorderly, and then influence the use of user.Currently, for clearing up terminal device
The tool of desktop also occurs much, for example, periodically will can not be visited in one week when cleaning computer desktop using computer house keeper
The document for the computer desktop asked is cleared up.It can be automatically by same file type in addition, there are also some desktops cleaning softwares
File is sorted out.However, the tool of these cleaning terminal device desktops can not be intelligently clear according to the use habit of user
Manage the document of terminal device desktop.
Summary of the invention
In view of this, the present invention proposes a kind of user's desktop method for cleaning, device, terminal device and computer-readable storage
Medium can carry out first dressing to the original document on the desktop of terminal device according to file size and file type, so
File remaining after first dressing is sorted out further according to file name, file type and file last edit session afterwards,
It finally carries out second to the file of classification again to clear up, to realize efficiently and intelligently to the clear of the desk file of terminal device
Reason.
Firstly, to achieve the above object, the present invention provides a kind of desktop method for cleaning, this method is applied to terminal device,
The described method includes:
The desktop for receiving user's input clears up request;According to preset file size and file type to original on desktop
File carries out first dressing, obtains remaining file;By learning the user according to file name, file type and file
The habit that last edit session is classified to desk file and cleared up generates classification rule, and regular by institute according to the classification
It states remaining file and is referred to " temporarily saving " file and " for clearance " file;It is right respectively according to preset second of cleaning rule
" temporarily saving " file and " for clearance " file carry out second and clear up.
Optionally, described " original document on desktop to be carried out for the first time according to preset file size and file type
It the step of cleaning ", specifically includes step: file size being less than the file of preset byte and file type is not belonging to preset
The file of file type is determined as " garbage files ";By described in " garbage files " are directly cleared up;Wherein, described clear up includes
One of them: deleting, hide, filing.
Optionally, the classification rule includes: for same file type and the similar file of file name only has one
When file, the file is referred to " temporarily keeping " file;When the file with similar names is greater than 1, will finally compile
It collects the time and the smallest file of current time difference is referred to " temporarily keeping " file, remaining is referred to " for clearance " file
Folder.
Optionally, classification rule further include: for file name is similar and file that file type is different, then basis
Preset file type priority and the last edit session of file are sorted out.
Optionally, described " excellent according to preset file type for file name is similar and file that file type is different
First grade and the last edit session of file are sorted out " the step of, specifically include step: when the text of file type highest priority
The difference of the last edit session of part and current time be greater than the last edit session of the high file of the preferential level of file type with
When the difference of current time, then the high file of the file of file type highest priority and the preferential level of file type is all sorted out
To " temporarily keeping " file, remaining is referred to " for clearance " file;Otherwise, only by the file of file type highest priority
It is referred to preset " temporarily keeping " file, remaining is referred to " for clearance " file.
Optionally, second of cleaning rule includes: newly-increased according to period 1 acquisition terminal device desktop is preset
The file information;Have when being occurred in the newly-increased the file information with the name information of the file in the file " for clearance "
Similar names, then directly the corresponding file being somebody's turn to do in " for clearance " file is cleared up;Otherwise, when reaching preset clear
When managing the period, file that just can be all in " for clearance " file by described in is cleared up.
Optionally, second of cleaning rule further include: when the desktop cleaning for receiving user's input next time is asked
After asking, then can will described in file in " temporarily keep " file and terminal desktop file as a whole, for executing the
Primary cleaning.
In addition, to achieve the above object, the present invention also provides a kind of desktop cleaning plant, described device includes:
Receiving module, for receiving the desktop cleaning request of user's input;First cleaning modul, for according to preset text
Part size and file type carry out first dressing to the original document on desktop, obtain remaining file;Classifying module, for leading to
User described in overfitting is according to classifying to file name, file type and the last edit session of file to desk file and clear
The habit of reason, which generates, sorts out rule, and according to the classifications rule by the remaining file be referred to " temporarily saving " file with
" for clearance " file;Second cleaning modul, for literary to described " temporarily saving " respectively according to preset second of cleaning rule
Part folder and " for clearance " file carry out second and clear up.
Further, the present invention also proposes a kind of terminal device, and the terminal device includes memory, processor, described
The desktop liquidation procedures that can be run on the processor is stored on memory, the desktop liquidation procedures is by the processor
It realizes when execution such as the step of above-mentioned desktop method for cleaning.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers
Readable storage medium storing program for executing is stored with desktop liquidation procedures, and the desktop liquidation procedures can be executed by least one processor, so that institute
At least one processor is stated to execute such as the step of above-mentioned desktop method for cleaning.
Compared to the prior art, it desktop method for cleaning proposed by the invention, device, terminal device and computer-readable deposits
Storage media can carry out first dressing to the original document on the desktop of terminal device according to file size and file type,
Then file remaining after first dressing is returned further according to file name, file type and file last edit session
Class finally carries out second to the file of classification again and clears up, to realize efficiently and intelligently to the desk file of terminal device
Cleaning.
Detailed description of the invention
Fig. 1 is the schematic diagram of the optional hardware structure of terminal device one of the present invention;
Fig. 2 is the program module schematic diagram of one embodiment of desktop liquidation procedures of the present invention;
Fig. 3 is the flow diagram of one embodiment of desktop method for cleaning of the present invention.
Appended drawing reference:
Terminal device | 1 |
Memory | 11 |
Processor | 12 |
Network interface | 13 |
Receiving module | 201 |
First cleaning modul | 202 |
Classifying module | 203 |
Second cleaning modul | 204 |
The object of the invention is realized, the embodiments will be further described with reference to the accompanying drawings for functional characteristics and advantage.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not
For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work
Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot
It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the
One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment
Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution
Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims
Protection scope within.
As shown in fig.1, being the schematic diagram of the optional hardware structure of terminal device 1 one of the present invention.
The terminal device 1 may include that such as mobile phone, tablet computer, laptop, palm PC, individual digital help
Manage (PersonalDigital Assistant, PDA), portable media player (Portable Media Player,
PMP), the mobile terminals such as navigation device, wearable device, Intelligent bracelet, pedometer, and such as number TV, desktop computer
Equal fixed terminals.
In the present embodiment, the terminal device 1 may include, but be not limited only to, and connection can be in communication with each other by system bus
Memory 11, processor 12 and network interface 13.
The terminal device 1 connects network (Fig. 1 is not marked) by network interface 13, arrives other terminals by network connection
Such as the end PC, mobile terminal etc..The network can be intranet (Intranet), internet (Internet), whole world shifting
Dynamic communication system (Global System of Mobile communication, GSM), wideband code division multiple access (Wideband
Code Division Multiple Access, WCDMA), 4G network, 5G network, bluetooth (Bluetooth), Wi-Fi, call
The wirelessly or non-wirelessly network such as network.
It should be pointed out that Fig. 1 illustrates only the terminal device 1 with component 11-13, it should be understood that not
It is required that implement all components shown, the implementation that can be substituted is more or less component.
Wherein, the memory 11 includes at least a type of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes
Flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), it is static with
Machine accesses memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable
Read memory (PROM), magnetic storage, disk, CD etc..In some embodiments, the memory 11 can be the end
The internal storage unit of end equipment 1, such as the hard disk or memory of the terminal device 1.In further embodiments, the memory
11 are also possible to the External memory equipment of the terminal device 1, such as the plug-in type hard disk that the terminal device 1 is equipped with, and intelligently deposit
Card storage (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card)
Deng.Certainly, the memory 11 can also both include the internal storage unit of the terminal device 1 or set including its external storage
It is standby.In the present embodiment, the memory 11 is installed on the operating system and types of applications of the terminal device 1 commonly used in storage
Software, such as the program code of desktop liquidation procedures etc..In addition, the memory 11 can be also used for temporarily storing it is defeated
Out or the Various types of data that will export.
The processor 12 can be in some embodiments central processing unit (Central Processing Unit,
CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 12 is commonly used in the control end
The overall operation of end equipment 1, such as execute data interaction or the relevant control of communication and processing etc..It is described in the present embodiment
Processor 12 is for running the program code stored in the memory 11 or processing data, such as to run the desktop clear
Manage program etc..
The network interface 13 may include radio network interface or wired network interface, which is commonly used in
Communication connection is established between mobile terminal etc. in the terminal device 1 and other terminals such as end PC.
In the present embodiment, when installing in the terminal device 1 and run desktop liquidation procedures, when the desktop clears up journey
When sort run, the original document on the desktop of terminal device can be carried out according to file size and file type clear for the first time
Reason, then carries out file remaining after first dressing further according to file name, file type and the last edit session of file
Sort out, second finally is carried out to the file of classification again and is cleared up, to realize efficiently and intelligently to the desktop text of terminal device
The cleaning of part.
So far, oneself is through describing the application environment of each embodiment of the present invention and the hardware configuration and function of relevant device in detail
Energy.In the following, above-mentioned application environment and relevant device will be based on, each embodiment of the invention is proposed.
Firstly, the present invention proposes a kind of desktop liquidation procedures.
As shown in fig.2, being the Program modual graph of one embodiment of desktop liquidation procedures of the present invention.
In the present embodiment, the desktop liquidation procedures includes that a series of computer program being stored on memory 11 refers to
It enables, when the computer program instructions are executed by processor 12, the desktop cleaning operation of various embodiments of the present invention may be implemented.?
In some embodiments, based on the specific operation that the computer program instructions each section is realized, desktop liquidation procedures can be by
It is divided into one or more modules.For example, the desktop liquidation procedures can be divided into receiving module 201, in Fig. 2
One cleaning modul 202, classifying module 203 and the second cleaning modul 204.Wherein:
The receiving module 201, for receiving the desktop cleaning request of user's input.
Specifically, the desktop due to most of user preferences in terminal device creates or stores various files.Therefore, terminal
The file of equipment desktop can be more and more, and terminal desktop can also become very mixed and disorderly, influence the usage experience of user.In addition, literary
The accumulation of part also can the more and more memory spaces of occupied terminal, so will lead to subscriber terminal equipment memory space inadequate, shadow
Ring user's normal use.Therefore, user can periodically clear up the file of the desktop of terminal device.In the present embodiment, described
The receiving module 201 of terminal device 1 is then for receiving the desktop cleaning request of user's input.Wherein, the desktop cleaning request
It can be and directly inputted by user by the interactive interface of the terminal device 1, it can also be by user by other terminals such as PC
End, the input such as mobile terminal, and it is sent to the terminal device 1.
First cleaning modul 202, for according to preset file size and file type to the original text on desktop
Part carries out first dressing, obtains remaining file.
Specifically, first dressing is carried out to the original document on desktop according to preset file size and file type,
Remaining file is obtained, file size is actually less than the file of preset byte and file type is not belonging to default file
The file of type is determined as " garbage files ", and then by described in " garbage files " are directly cleared up again, to obtain remaining text
Part.Wherein, the cleaning includes one of them: deleting, hides, filing.
In the present embodiment, file includes size, type information, when user creates in the desktop of terminal device and edits text
Part, this document are typically all that the common file type of the user and this document file size after completing editor are necessarily greater than centainly
Value.But user can also generate some intermediate files or trace when using various application programs or when editing files
File or the file of some damages, these files generally can all show 0kb, or the type of display is that other are non-common
File type, these files are construed as " garbage files ".Therefore, it can be set in advance according to file size, file type
A cleaning rule is set, such as: file or file type for file size less than preset threshold such as 10kb are not belonging to
When the file of preset file type such as docx, ppt, excel and exe, first cleaning modul 202 is then regarded as
" garbage files ", it will be directly cleaned, for example directly deleted, and preset threshold, and files classes are greater than for file size
When type belongs to preset file type, then this document will not directly be cleared up.
The classifying module 203, for by learning the user according to last to file name, file type and file
The habit that edit session is classified to desk file and cleared up generates classification rule, and will be described surplus according to the classification rule
Remaining file is referred to " temporarily saving " file and " for clearance " file.
Specifically, after the desk file to terminal device 1 directly clear up, it is also necessary to further to remaining text
Part is cleared up, and also will do it classification before cleaning.In the present embodiment, the classifying module 203 is returned according to preset
The remaining file is referred to " temporarily saving " file and " for clearance " file by rule-like, and the classification rule is to pass through
It is raw to practise the habit that the user classifies to file and clear up according to file name, file type and the last edit session of file
At.
In the present embodiment, user is during daily documents editing and file clean-up, it will usually according to the name of file
Claim, the subsequent operations such as type and last edit session are classified to file or cleared up.For example, user often needs in work
Report file is write, therefore the title of many files may all be the pattern of " XX report ", such as " work report in July " and " 8
Month work report ".And for the file of different file types, may also there be the file of similar names, for example, not due to purposes
It equally, is both that the file of the filename of " XX report " also has ppt type wherein there is docx type.For example, when for filename
Claiming similar file, in the follow-up process, there are many access times usual for the file of ppt type by user, and docx type
File seldom accesses substantially, and therefore, the file of the docx type may be the intermediate file that user edits, and ppt type
User is used for the definitive document demonstrated of finalizing a text when file.Moreover, the last edit session of file is also a key factor, such as right
, file name similar file identical in file type, last edit session are " 30 divide when 28 days 10 July " " work in July reports
Accuse " and last edit session be " 30 divide when 29 days 10 July " " work report 1 in July ", subsequent user is for " July work report
The number of 1 " access is more, and does not visit again " work report in July " substantially, then edit session is " 30 divide when 29 days 10 July "
" work report 1 in July " it is more likely that definitive document.
Therefore, the classifying module 203 can be by recording and learning these operating habits of user, to generate basis
The classification that file name, file type and the last edit session of file sort out the desk file after first dressing is advised
Then.In the present embodiment, the classifying module 203 is by learning the user according to file name, file type and file most
The habit that the postedit time classifies to desk file and clears up generates classification rule, and will be described according to the classification rule
Remaining file is referred to " temporarily saving " file and " for clearance " file;The classification rule includes:
Firstly, for same file type and when the similar file of file name only has a file, the file is returned
Class is to " temporarily keep " file;When the file with similar names is greater than 1, by last edit session and current time difference
The smallest file is referred to " temporarily keeping " file, remaining is referred to " for clearance " file.Wherein, " similar names " indicate
The same section of preset threshold, such as the same section more than 75% are had more than in file name, then two files are " similar each other
Title " file.For example, when desktop is there is only when " work report in a July " file, then the classifying module 203 is by this document
Directly it is referred to " temporarily keeping " file;And when desktop is there are the file of a docx type " work report in July ", it last
Edit session is " 21 divide when 27 days 14 July ", the file " work report -1 in July " of another docx type, its last editor
Time is " 30 divide when 29 days 10 July ", then, " work report -1 in July " file can be then referred to by the classifying module 203
" temporarily keeping " file, and " work report in July " is referred to " for clearance " file.
Then, for file name is similar and file that file type is different, then according to preset file type priority
And the last edit session of file is sorted out.Specifically, when the last edit session of the file of file type highest priority
With the difference of current time when the difference of the last edit session of the file high greater than the preferential level of file type and current time,
The high file of the file of file type highest priority and the preferential level of file type is all then referred to " temporarily keeping " file,
Remaining is referred to " for clearance " file.Otherwise, the file of file type highest priority is only referred to preset " temporarily protect
Hold " file, remaining is referred to " for clearance " file.For example, there are three files for desktop: last edit session is " July
21 divide at 27 days 14 " file " work report in July ", the last edit session of ppt type be " 30 divide when 28 days 10 July "
The file " work report in July " of docx type and last edit session are the texts of the docx type of " 30 divide when 29 days 10 July "
Part " August work report ", and and the priority of preset file type is that ppt file type is higher than doc file type.Three texts
The big minispread of the difference of the last edit session and current time of part is successively: the file " August work report " of docx type,
The file " work report in July " of docx type and the file " work report in July " of ppt type.So, the classifying module 203
The file " August work report " of the file " work report in July " of ppt type and docx type can be then referred to " temporarily keeping " text
Part folder, and the file of docx type " work report in July " is referred to " for clearance " file.
Second cleaning modul 204, for literary to described " temporarily saving " respectively according to preset second of cleaning rule
Part folder and " for clearance " file carry out second and clear up.
Specifically, after the classifying module 203 sorts out the remaining file, then the file of desktop or straight
It connects and cleans up or be just classified into " temporarily keeping " file or the file " for clearance ".Then, described second
Cleaning modul 204 then can be according to preset second of cleaning rule respectively to " temporarily saving " file and " for clearance " file
Press from both sides further progress cleaning.
In the present embodiment, the cleaning rule includes:
For the file of " for clearance " file: second cleaning modul 204 can obtain eventually according to the period 1 is preset
The newly-increased the file information of end equipment desktop, and occur in the newly-increased the file information in the file " for clearance "
The name information of file have similar names, then directly the corresponding file in " for clearance " file is cleared up;
Otherwise, then when reaching preset cleaning cycle, file that just can be all in " for clearance " file by described in is cleared up.Example
Such as: including file " work report in July " in the file " for clearance ", then second cleaning modul 204 is according to pre-
If period 1 such as 24 hours/time obtain the terminal device 1 desktop the file information, when the file for getting desktop
Information includes file similar with file " work report in July " file name, such as when " August work report ", then can be direct
File " work report in July " in " for clearance " file by described in is cleared up.And when second cleaning modul 204 obtains
Desktop the file information in never file similar with file " work report in July " file name, then described second
Cleaning modul 204 can then reach preset cleaning cycle, such as 72 as a child, directly by the file " work report in July "
It is cleared up from the file " for clearance ".
For the file of " temporarily keeping " file: second cleaning modul 204 is in the case where the receiving module 201 receives
After the desktop cleaning request of primary user's input, the file and terminal desktop in file " can be temporarily kept " by described in
File as a whole, for executing first dressing.
It will be recalled from above that the terminal device 1 is according to file size and file type to the original on the desktop of terminal device
Beginning file carries out first dressing, then will be clear for the first time further according to file name, file type and the last edit session of file
Remaining file is sorted out after reason, finally carries out second to the file of classification again and clears up, to realize efficiently and intelligently
Cleaning to the desk file of terminal device.
Certainly, in other embodiments, a desktop cleaning plant, the dress also can be set into the desktop liquidation procedures
Set the one-to-one functional module of all program modules including the desktop liquidation procedures.The desktop cleaning plant can be used as
Independent functional unit is attached on network on any appliance, in order to carry out the cleaning operation of desk file to the equipment.
In addition, the present invention also proposes a kind of desktop method for cleaning, the method is applied to terminal device.
As shown in fig.3, being the flow diagram of one embodiment of desktop method for cleaning of the present invention.In the present embodiment, root
According to different demands, the execution sequence of the step in flow chart shown in Fig. 3 be can change, and certain steps can be omitted.
Step S500, the desktop for receiving user's input clear up request.
Specifically, the desktop due to most of user preferences in terminal device creates or stores various files.Therefore, terminal
The file of equipment desktop can be more and more, and terminal desktop can also become very mixed and disorderly, influence the usage experience of user.In addition, literary
The accumulation of part also can the more and more memory spaces of occupied terminal, so will lead to subscriber terminal equipment memory space inadequate, shadow
Ring user's normal use.Therefore, user can periodically clear up the file of the desktop of terminal device.In the present embodiment, described
The desktop that terminal device receives user's input clears up request.Wherein, the desktop cleaning request can be by user described in
The interactive interface of terminal device 1 directly inputs, can also be by user by other terminals such as end PC, and mobile terminal etc. inputs, and
It is sent to the terminal device.
Step S502 carries out the original document on desktop according to preset file size and file type clear for the first time
Reason, obtains remaining file.
Specifically, first dressing is carried out to the original document on desktop according to preset file size and file type,
Remaining file is obtained, file size is actually less than the file of preset byte and file type is not belonging to default file
The file of type is determined as " garbage files ", and then by described in " garbage files " are directly cleared up again, to obtain remaining text
Part.Wherein, the cleaning includes one of them: deleting, hides, filing.
In the present embodiment, file includes size, type information, when user creates in the desktop of terminal device and edits text
Part, this document are typically all that the common file type of the user and this document file size after completing editor are necessarily greater than centainly
Value.But user can also generate some intermediate files or trace when using various application programs or when editing files
File or the file of some damages, these files generally can all show 0kb, or the type of display is that other are non-common
File type, these files are construed as " garbage files ".Therefore, it can be set in advance according to file size, file type
A cleaning rule is set, such as: file or file type for file size less than preset threshold such as 10kb are not belonging to
When the file of preset file type such as docx, ppt, excel and exe, then it is considered as " garbage files ", it will by directly clear
Reason, for example directly delete.And preset threshold is greater than for file size, and when file type belongs to preset file type, then
This document will not directly be cleared up.
Step S504, by learning the user according to file name, file type and the last edit session pair of file
The habit that desk file is classified and cleared up generates classification rule, and is sorted out the remaining file according to the classification rule
To " temporarily saving " file and " for clearance " file.
Specifically, after the desk file to terminal device directly clear up, it is also necessary to further to remaining text
Part is cleared up, and also will do it classification before cleaning.In the present embodiment, terminal device will according to preset classification rule
The residue file is referred to " temporarily saving " file and " for clearance " file, and the classification rule is by learning the use
What the habit that family is classified to file and cleared up according to file name, file type and the last edit session of file generated.
In the present embodiment, user is during daily documents editing and file clean-up, it will usually according to the name of file
Claim, the subsequent operations such as type and last edit session are classified to file or cleared up.For example, user often needs in work
Report file is write, therefore the title of many files may all be the pattern of " XX report ", such as " work report in July " and " 8
Month work report ".And for the file of different file types, may also there be the file of similar names, for example, not due to purposes
It equally, is both that the file of the filename of " XX report " also has ppt type wherein there is docx type.For example, when for filename
Claiming similar file, in the follow-up process, there are many access times usual for the file of ppt type by user, and docx type
File seldom accesses substantially, and therefore, the file of the docx type may be the intermediate file that user edits, and ppt type
User is used for the definitive document demonstrated of finalizing a text when file.Moreover, the last edit session of file is also a key factor, such as right
, file name similar file identical in file type, last edit session are " 30 divide when 28 days 10 July " " work in July reports
Accuse " and last edit session be " 30 divide when 29 days 10 July " " work report 1 in July ", subsequent user is for " July work report
The number of 1 " access is more, and does not visit again " work report in July " substantially, then edit session is " 30 divide when 29 days 10 July "
" work report 1 in July " it is more likely that definitive document.
Therefore, the terminal device can be by recording and learning these operating habits of user, to generate according to text
The classification rule that part title, file type and the last edit session of file sort out the desk file after first dressing.
In the present embodiment, the terminal device is finally edited by learning the user according to file name, file type and file
The habit that time classifies to desk file and clears up generates classification rule, and regular by the remaining text according to the classification
Part is referred to " temporarily saving " file and " for clearance " file;The classification rule includes:
Firstly, for same file type and when the similar file of file name only has a file, the file is returned
Class is to " temporarily keep " file;When the file with similar names is greater than 1, by last edit session and current time difference
The smallest file is referred to " temporarily keeping " file, remaining is referred to " for clearance " file.Wherein, " similar names " indicate
The same section of preset threshold, such as the same section more than 75% are had more than in file name, then two files are " similar each other
Title " file.For example, then the terminal device is direct by this document when desktop is there is only when " work report in a July " file
It is referred to " temporarily keeping " file;And when there are the file of a docx type " work report in July ", its last editors for desktop
Time is " 21 divide when 27 days 14 July ", the file " work report -1 in July " of another docx type, its last edit session
It is " 30 divide when 29 days 10 July ", then, " work report -1 in July " file can be then referred to " temporarily keeping " by the terminal device
File, and " work report in July " is referred to " for clearance " file.
Then, for file name is similar and file that file type is different, then according to preset file type priority
And the last edit session of file is sorted out.Specifically, when the last edit session of the file of file type highest priority
With the difference of current time when the difference of the last edit session of the file high greater than the preferential level of file type and current time,
The high file of the file of file type highest priority and the preferential level of file type is all then referred to " temporarily keeping " file,
Remaining is referred to " for clearance " file.Otherwise, the file of file type highest priority is only referred to preset " temporarily protect
Hold " file, remaining is referred to " for clearance " file.For example, there are three files for desktop: last edit session is " July
21 divide at 27 days 14 " file " work report in July ", the last edit session of ppt type be " 30 divide when 28 days 10 July "
The file " work report in July " of docx type and last edit session are the texts of the docx type of " 30 divide when 29 days 10 July "
Part " August work report ", and and the priority of preset file type is that ppt file type is higher than doc file type.Three texts
The big minispread of the difference of the last edit session and current time of part is successively: the file " August work report " of docx type,
The file " work report in July " of docx type and the file " work report in July " of ppt type.So, the terminal device then can
The file " August work report " of the file " work report in July " of ppt type and docx type is referred to " temporarily keeping " file
Folder, and the file of docx type " work report in July " is referred to " for clearance " file.
Step S506, according to preset second of cleaning rule respectively to " temporarily saving " file and text " for clearance "
Part folder carries out second and clears up.
Specifically, it after step S504 sorts out the remaining file, then the file of desktop or is directly cleared up
Or just it is classified into " temporarily keeping " file or the file " for clearance ".Then, step S506 then can root
" temporarily saving " file and " for clearance " file further progress are cleared up respectively according to preset second of cleaning rule.
In the present embodiment, the cleaning rule includes:
For the file of " for clearance " file: step S506 can be new according to period 1 acquisition terminal device desktop is preset
The file information of increasing, and occur in the newly-increased the file information title with the file in the file " for clearance "
Information has similar names, then directly clears up the corresponding file being somebody's turn to do in " for clearance " file;Otherwise, then reaching
When preset cleaning cycle, file that just can be all in " for clearance " file by described in is cleared up.Such as: it is described " to clear
Reason " includes file " work report in July " in file, then step S506 according to such as 24 hours preset period 1/
The file information of the secondary desktop for obtaining the terminal device, when the file information for getting desktop includes that " July works with file
Report " the similar file of file name then can be directly in " for clearance " file by described in such as when " August work report "
File " work report in July " is cleared up.And when step S506 obtain desktop the file information in never and file " 7
Month work report " the similar file of file name, then step S506 can then reach preset cleaning cycle, such as 72 hours
It waits, directly clears up the file " work report in July " from the file " for clearance ".
For the file of " temporarily keeping " file: step S506 receives the table of the input of user next time in step S500
After the cleaning request of face, just can will described in file in " temporarily keep " file and terminal desktop file as a whole, use
In execution first dressing.
The desktop method for cleaning that the present embodiment is proposed, according to file size and file type on the desktop of terminal device
Original document carry out first dressing, then further according to file name, file type and the last edit session of file by first
Remaining file is sorted out after secondary cleaning, finally carries out second to the file of classification again and clears up, to realize efficient and intelligence
It can cleaning of the ground to the desk file of terminal device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer is whole
End equipment, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of desktop method for cleaning is applied to terminal device, which is characterized in that the method includes the steps:
The desktop for receiving user's input clears up request;
First dressing is carried out to the original document on desktop according to preset file size and file type, obtains remaining text
Part;
Classified according to file name, file type and the last edit session of file to desk file by learning the user
It is generated with the habit of cleaning and sorts out rule, and the remaining file is referred to by " temporarily saving " file according to the classification rule
" for clearance " file;
Second is carried out to " temporarily saving " file and " for clearance " file respectively according to preset second of cleaning rule
Secondary cleaning.
2. desktop method for cleaning as described in claim 1, which is characterized in that described " according to preset file size and file
Type carries out first dressing to the original document on desktop " the step of, specifically include step:
The file that file size is less than the file of preset byte and file type is not belonging to default file type is determined as
" garbage files ";
By described in " garbage files " are directly cleared up;Wherein, the cleaning includes one of them: deleting, hides, filing.
3. desktop method for cleaning as described in claim 1, which is characterized in that the classification rule includes:
For same file type and when the similar file of file name only has a file, the file is referred to and " is temporarily protected
Hold " file;
When the file with similar names is greater than 1, last edit session and the smallest file of current time difference are sorted out
To " temporarily keeping " file, remaining is referred to " for clearance " file.
4. desktop method for cleaning as described in claim 1, which is characterized in that the classification rule further include:
For file name is similar and file that file type is different, then most according to preset file type priority and file
The postedit time is sorted out.
5. desktop method for cleaning as claimed in claim 4, which is characterized in that " and the files classes similar for file name
The different file of type is sorted out according to preset file type priority and the last edit session of file " the step of, specifically
Comprising steps of
When the last edit session of the file of file type highest priority and the difference of current time are preferential greater than file type
When the difference of the last edit session of the high file of level and current time, then by the file and text of file type highest priority
The high file of part type priority level is all referred to " temporarily keeping " file, remaining is referred to " for clearance " file;
Otherwise, the file of file type highest priority is only referred to preset " temporarily keeping " file, remaining is referred to
" for clearance " file.
6. desktop method for cleaning as described in claim 1, which is characterized in that second of cleaning rule include:
The newly-increased the file information of terminal device desktop is obtained according to the default period 1;
When occurred in the newly-increased the file information to the name information of the file in the file " for clearance " have it is similar
Title, then directly the corresponding file being somebody's turn to do in " for clearance " file is cleared up;
Otherwise, when reaching preset cleaning cycle, file that just can be all in " for clearance " file by described in is cleared up.
7. desktop method for cleaning as described in claim 1, which is characterized in that second of cleaning rule further include:
After receiving the desktop cleaning request of user's input next time, then the text in file " can be temporarily kept " by described in
Part and terminal desktop file as a whole, for executing first dressing.
8. a kind of desktop cleaning plant, which is characterized in that described device includes:
Receiving module, for receiving the desktop cleaning request of user's input;
First cleaning modul, for being carried out for the first time according to preset file size and file type to the original document on desktop
Cleaning, obtains remaining file;
Classifying module, for by learning the user according to file name, file type and the last edit session pair of file
The habit that desk file is classified and cleared up generates classification rule, and is sorted out the remaining file according to the classification rule
To " temporarily saving " file and " for clearance " file;
Second cleaning modul is used for according to preset second of cleaning rule respectively to " temporarily saving " file and " to clear
Reason " file carries out second and clears up.
9. a kind of terminal device, which is characterized in that the terminal device includes memory, processor, is stored on the memory
There is the desktop liquidation procedures that can be run on the processor, is realized such as when the desktop liquidation procedures is executed by the processor
The step of claim 1-7 described in any item desktop method for cleaning.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has desktop cleaning
Program, the desktop liquidation procedures can be executed by least one processor, so that at least one described processor executes such as right
It is required that described in any one of 1-7 the step of desktop method for cleaning.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811534726.8A CN109800206A (en) | 2018-12-14 | 2018-12-14 | Desktop method for cleaning, device, terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811534726.8A CN109800206A (en) | 2018-12-14 | 2018-12-14 | Desktop method for cleaning, device, terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109800206A true CN109800206A (en) | 2019-05-24 |
Family
ID=66556767
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811534726.8A Pending CN109800206A (en) | 2018-12-14 | 2018-12-14 | Desktop method for cleaning, device, terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109800206A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008515048A (en) * | 2004-09-24 | 2008-05-08 | マイクロソフト コーポレーション | File system shell |
CN103577417A (en) * | 2012-07-23 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Desktop cleaning method and device |
CN105279236A (en) * | 2015-09-25 | 2016-01-27 | 北京金山安全软件有限公司 | File cleaning method and device and electronic equipment |
CN106202166A (en) * | 2016-06-24 | 2016-12-07 | 北京奇虎科技有限公司 | The method for cleaning of file, device and corresponding client |
CN106294773A (en) * | 2016-08-11 | 2017-01-04 | 北京小米移动软件有限公司 | Data clearing method and device |
CN108197148A (en) * | 2017-11-30 | 2018-06-22 | 中国电子科技集团公司电子科学研究院 | A kind of file clean-up method, equipment and computer readable storage medium |
CN108984557A (en) * | 2017-05-31 | 2018-12-11 | 南宁富桂精密工业有限公司 | File saving method, server and computer readable storage medium |
JP2022098307A (en) * | 2020-12-21 | 2022-07-01 | シャープ株式会社 | Image forming apparatus, image forming system, control method, and program |
-
2018
- 2018-12-14 CN CN201811534726.8A patent/CN109800206A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008515048A (en) * | 2004-09-24 | 2008-05-08 | マイクロソフト コーポレーション | File system shell |
CN103577417A (en) * | 2012-07-23 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Desktop cleaning method and device |
CN105279236A (en) * | 2015-09-25 | 2016-01-27 | 北京金山安全软件有限公司 | File cleaning method and device and electronic equipment |
CN106202166A (en) * | 2016-06-24 | 2016-12-07 | 北京奇虎科技有限公司 | The method for cleaning of file, device and corresponding client |
CN106294773A (en) * | 2016-08-11 | 2017-01-04 | 北京小米移动软件有限公司 | Data clearing method and device |
CN108984557A (en) * | 2017-05-31 | 2018-12-11 | 南宁富桂精密工业有限公司 | File saving method, server and computer readable storage medium |
CN108197148A (en) * | 2017-11-30 | 2018-06-22 | 中国电子科技集团公司电子科学研究院 | A kind of file clean-up method, equipment and computer readable storage medium |
JP2022098307A (en) * | 2020-12-21 | 2022-07-01 | シャープ株式会社 | Image forming apparatus, image forming system, control method, and program |
Non-Patent Citations (2)
Title |
---|
ZHANG, Y (ZHANG, YANG) [1] ; LUO, YJ (LUO, YANJING) [1]: "An Architecture and Implement Model for Model-View-Presenter Pattern", IEEE, pages 532 - 536 * |
陈锦春;: "基于精准稽核的OLT业务数据自动清理支撑平台", 电信技术, no. 09, pages 64 - 67 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102129425B (en) | The access method of big object set table and device in data warehouse | |
CN112036736A (en) | Workflow creating method and device | |
CN107273457A (en) | A kind of searching method and device, computer installation and computer-readable recording medium | |
CN110298539A (en) | Task data processing method, device, computer equipment and storage medium | |
WO2008121623A1 (en) | Techniques to share information between application programs | |
CN105138630A (en) | Schedule prompt method and terminal | |
CN107728878A (en) | Display methods, terminal and the computer-readable recording medium of application icon | |
CN106708912B (en) | Junk file identification and management method, identification device, management device and terminal | |
CN110555073A (en) | data processing method and device, electronic equipment and storage medium | |
CN108197338A (en) | A kind of browser bookmark generation method, system and terminal device | |
CN105630757A (en) | Data editing method and apparatus | |
CN110187836A (en) | A kind of data-erasure method, device, computer and storage medium | |
CN105868279A (en) | Application recommendation method and server | |
US20200327427A1 (en) | System for deriving data in constrained environments | |
CN111861100A (en) | Work order processing method and device based on process scoring | |
CN109800206A (en) | Desktop method for cleaning, device, terminal device | |
CN106775894A (en) | The operation method and terminal of a kind of application program | |
CN112632266B (en) | Data writing method and device, computer equipment and readable storage medium | |
CN115543428A (en) | Simulated data generation method and device based on strategy template | |
CN115935915A (en) | Document processing method, computer device, and storage medium | |
CN110633321B (en) | Data synchronization method, device and equipment | |
CN112597121A (en) | Logic script processing method and device, electronic equipment and storage medium | |
CN103365909A (en) | Method for sequentially generating accumulated values one by one in data table | |
CN104572723A (en) | File access method and file access device | |
CN115688713B (en) | Visual form generation method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |