CN107679161A - The document handling method and electric terminal of electric terminal - Google Patents

The document handling method and electric terminal of electric terminal Download PDF

Info

Publication number
CN107679161A
CN107679161A CN201710898462.3A CN201710898462A CN107679161A CN 107679161 A CN107679161 A CN 107679161A CN 201710898462 A CN201710898462 A CN 201710898462A CN 107679161 A CN107679161 A CN 107679161A
Authority
CN
China
Prior art keywords
event
file
file destination
application program
destination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710898462.3A
Other languages
Chinese (zh)
Other versions
CN107679161B (en
Inventor
李伟伟
武长坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Chuanying Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Chuanying Information Technology Co Ltd filed Critical Shanghai Chuanying Information Technology Co Ltd
Priority to CN201710898462.3A priority Critical patent/CN107679161B/en
Publication of CN107679161A publication Critical patent/CN107679161A/en
Application granted granted Critical
Publication of CN107679161B publication Critical patent/CN107679161B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Storage Device Security (AREA)

Abstract

The invention provides a kind of document handling method of electric terminal and electric terminal, methods described, including:Obtain record information corresponding to file destination, the record information is used to record the first deleted event of history file corresponding to the file destination, and the second event that first event occurs after terminating every time, the history file are to be stored in first path and identical file with the file destination;The second event is the event in predeterminable event set;Determine that the number that the second event corresponding to first event occurs is more than preset value;During selected garbage files, it is non-junk file to determine the file destination.Deleted present invention, avoiding file destination because being defined as garbage files and program or system operation are had an impact again.

Description

The document handling method and electric terminal of electric terminal
Technical field
The present invention relates to the document handling method and electric terminal of electric terminal, more particularly to a kind of electric terminal.
Background technology
Electric terminal, it can be understood as there is the terminal of processor and memory, processor reads the code in memory, Corresponding function can be performed, specifically, operating system can be run, and the application program under operating system.Running Cheng Zhong, understand establishment file in memory.
With the use of terminal, garbage files can be left in memory, in existing correlation technique, can pass through file Suffix name, title, the selected garbage files such as path position, and then deleted, however, due to suffix name, title, path position The experience for all relying on priori such as put, if experience is wrong, file is deleted because being identified as garbage files, can be to program or system Operation bring influence, in existing correlation technique, it is difficult to limit file and delete influence to program or system operation.
The content of the invention
The invention provides the document handling method of electric terminal and electric terminal, to solve to be difficult to limit file deletion pair The technical problem of the influence of program or system operation.
According to the first aspect of the invention, there is provided a kind of document handling method of electric terminal, including:
Record information corresponding to file destination is obtained, the record information is used to record history corresponding to the file destination The first deleted event of file, and the second event that first event occurs after terminating every time, the history text Part is to be stored in first path and identical file with the file destination;The second event is the thing in predeterminable event set Part;
Determine that the number that the second event corresponding to first event occurs is more than preset value;
During selected garbage files, it is non-junk file to determine the file destination.
Optionally, the event in the predeterminable event set includes at least one of:
Automatically create another history file corresponding to the file destination;
It is automatically deleted the first file of the file destination association;
It is automatically deleted the specific data described in the second file of the file destination association;
Application program operation makes a mistake corresponding to the file destination.
Optionally, before record information corresponding to the acquisition file destination, in addition to:
Detect the first event of kth time;
Detect kth time second event;
Record the first event of the kth time and the kth time second event.
Optionally, it is described detect kth time second event before, in addition to:
It is again turned on after determining closing application program corresponding to the file destination.
Optionally, application program corresponding to the file destination includes at least one of:
Application program corresponding to the first path;
The application program of front stage operation when detecting the first event;
EMS memory occupation most application program when detecting the first event;
Processor occupancy highest application program when detecting the first event.
Optionally, it is described detect kth time second event before, in addition to:It is determined that without departing from the default very first time.
Optionally, it is described detect kth time the first event before, in addition to:Deleting history file, to cause the K Secondary first event occurs.
Optionally, during the selected garbage files, determine the file destination be non-junk file before, in addition to:
Determine that application program corresponding to the file destination is not deleted.
According to the second aspect of the invention, there is provided a kind of electric terminal, including:
Acquisition module, for obtaining record information corresponding to file destination, the record information is used to record the target The first deleted event of history file corresponding to file, and second thing that first event occurs after terminating every time Part, the history file are to be stored in first path and identical file with the file destination;The second event is default Event in event sets;
First determining module, the number for determining the second event generation corresponding to first event are more than default Value:
Second determining module, when selecting garbage files, it is non-junk file to determine the file destination.
Optionally, the event in the predeterminable event set includes at least one of:
Automatically create another history file corresponding to the file destination;
It is automatically deleted the first file of the file destination association;
It is automatically deleted the specific data described in the second file of the file destination association;
Application program operation makes a mistake corresponding to the file destination.
Optionally, described electric terminal, in addition to:
First detection module, for detecting the first event of kth time;
Second detection module, for detecting kth time second event;
Logging modle, the first event of the kth time and the kth time second event are recorded for logging modle.
Optionally, described electric terminal, in addition to:
3rd determining module, for being again turned on after determining closing application program corresponding to the file destination.
Optionally, application program corresponding to the file destination includes at least one of:
Application program corresponding to the first path;
The application program of front stage operation when detecting the first event;
EMS memory occupation most application program when detecting the first event;
Processor occupancy highest application program when detecting the first event.
Optionally, described electric terminal, in addition to:
4th determining module, for determining without departing from the default very first time.
Optionally, described electric terminal, in addition to:
Removing module, for deleting history file, to cause the event of kth first to occur.
According to the third aspect of the invention we, there is provided a kind of electric terminal, including:Memory, processor and computer Program, the computer program are stored in the memory, and the processor runs the computer program and realizes first party Method described in face and the various possible designs of first aspect.
According to the fourth aspect of the invention, there is provided a kind of storage medium, including:Readable storage medium storing program for executing and computer journey Sequence, the computer program are used to realize first aspect and the method described in the various possible designs of first aspect.
The document handling method and electric terminal of electric terminal provided by the invention, by obtaining note corresponding to file destination Information is recorded, the record information is used to record the first deleted event of history file corresponding to the file destination, and often The second event that secondary first event occurs after terminating, the history file are to be stored in first with the file destination Path and identical file, and, determine that the number that the second event corresponding to first event occurs is more than preset value, It not is separate event that the repetition of second event after first event, which is regarded as file to delete, and it may be to system or program Operation impacts, and then during by selected garbage files, it be non-junk file to determine the file destination, and it is literary to avoid target Part is deleted because being defined as garbage files to be had an impact again to program or system operation.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also To obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is the schematic diagram of an application scenarios of the invention;
Fig. 2 is the schematic flow sheet one of the document handling method of an electric terminal of the invention;
Fig. 3 is the schematic flow sheet two of the document handling method of an electric terminal of the invention;
Fig. 4 is the interface schematic diagram at the file process interface of an electric terminal of the invention;
Fig. 5 is the structural representation one of an electric terminal of the invention;
Fig. 6 is the structural representation two of an electric terminal of the invention;
Fig. 7 is the structural representation three of an electric terminal of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " " in description and claims of this specification and above-mentioned accompanying drawing The (if present)s such as four " are for distinguishing similar object, without for describing specific order or precedence.It should manage The data that solution so uses can exchange in the appropriate case, so as to embodiments of the invention described herein can with except Here the order beyond those for illustrating or describing is implemented.In addition, term " comprising " and " having " and their any deformation, Be intended to cover it is non-exclusive include, for example, containing the process of series of steps or unit, method, system, product or setting Standby those steps or the unit for being not necessarily limited to clearly list, but may include not list clearly or for these mistakes The intrinsic other steps of journey, method, product or equipment or unit.
Fig. 1 is the schematic diagram of an application scenarios of the invention, and electric terminal can include processor and memory, and processor can To read the code in memory, the application program under operating system, and operating system is run.In the process of running, meeting exists Storage file in memory.
Embodiment 1
Fig. 2 is the schematic flow sheet one of the document handling method of an electric terminal of the invention;It refer to Fig. 2, methods described, Including:
S11:Obtain record information corresponding to file destination.
Record information, first event deleted for recording history file corresponding to the file destination, and every time The second event that first event occurs after terminating.
First event, the event deleted for history file, its can according to the deletion action of user and caused event, Can also be being automatically deleted for history file.
Second event, it can be understood as the event that terminal occurs automatically after the first event, it is specifically as follows default thing Event in part set, the type of event are not limited to any one, and it can be any one occurrence, and the time that second event occurs can Think the first event terminate after random time.
History file, it is and file destination identical file, it can be understood as:The history file and the file destination To be stored in first path and identical file;In other words, the difference of history file and file destination is:File destination is to work as Under the file that still stores, history file is deleted same file.
S12:Determine that the number that the second event corresponding to first event occurs is more than preset value.
The preset value can be any default numerical value.Second event can be judged as and the by above step S12 One event has certain causality.Further, repetition can to that the deletion that multiple second event is regarded as file occur On influence caused by program or system operation.
S13:During selected garbage files, it is non-junk file to determine the file destination.
Garbage files, it can be understood as be considered as without can deleted file by use.By the way that file destination is true It is set to non-junk file, the deletion again to this document can be avoided, that is, avoids and delete this document to program or system operation Influence.
The document handling method for the electric terminal that the present embodiment provides, by obtaining record information corresponding to file destination, The record information is used to recording the first deleted event of history file corresponding to the file destination, and every time described the The second event that one event occurs after terminating, the history file are to be stored in first path and phase with the file destination Same file, and, determine that the number that the second event corresponding to first event occurs is more than preset value, by the first thing It not is separate event that the repetition of second event after part, which is regarded as file, which deletes, and it may be caused to system or program operation Influence, and then during by selected garbage files, it be non-junk file to determine the file destination, avoids file destination because of determination Deleted for garbage files and program or system operation are had an impact again.
Embodiment 2
Fig. 3 is the schematic flow sheet two of the document handling method of an electric terminal of the invention;It refer to Fig. 3, methods described, Including:
S21:Deleting history file, to cause the event of kth first to occur.Wherein, K is arbitrary integer.
The event of kth first, can be the deletion of any one secondary history file.First event, it can be understood as history text The event that part is deleted, its can according to the deletion action of user and caused event, or the automatic of history file is deleted Remove.
History file, it is and file destination identical file, it can be understood as:The history file and the file destination To be stored in first path and identical file;In other words, the difference of history file and file destination is:File destination is to work as Under the file that still stores, history file is deleted same file.
Meanwhile step S21, it can be understood as terminal is automatically deleted history file, and to cause the first event to occur, it is applied Scene can be understood as:Using deleting history file as research technique, in specific implementation process, corresponding generation can be previously written Code, to realize that the deletion to specific file is tested, detected by the event occurred after deleting it, if the second thing occurs Part, then recorded.
In the case of other not implementation steps S21, the generation of the first event can be only that file is normal in application program Deletion under running, such as regular regular deletion of the certain applications program to deposited file, i.e., when the default rule of arrival After time, i.e., file is deleted.The generation of first event can also be because corresponding second event frequency is not more than in advance If value and the deletion to garbage files occurred in the case of being judged as garbage files.
S22:Detect the event of kth first.
In one of which embodiment, the detection of the first event, it can be the generation and execution for monitoring delete command, also may be used Think the monitoring to file change.As long as being able to detect that the deletion of file, protection scope of the present invention is not just departed from.Meanwhile The deletion of any file, can be regarded as first event.
One of which citing in, file can be deleted M time, that is, occur M the first event, but only correspond to there occurs n times Second event, M are the integer more than or equal to 2, and N is the integer less than M, and more than or equal to 1.It then can record the first event pair The n times second event answered, and whether can be judged whether more than preset value that non-junk file can be defined as according to N.
After step S22, it is possible to implement step S25:Detect kth second event.
Kth second event, can be the second event that the event of kth first terminates to occur afterwards.
After possessing step S22 and step S25, it is possible to implement step S26:Record the event of kth first and The kth second event.
In one of which embodiment, between step S22 and step S25, it can also include:
S23:It is again turned on after determining closing application program corresponding to the file destination.
In existing correlation technique, the file of certain applications program, may be in application program in order to save memory space Automatically cleaning associated documents after closing, though however, these files, which are possible to non-program, runs necessary file, really perform some Head portrait, chat background picture in the file that function will use, such as social class application program etc..Pass through step S23 Setting, the detection of second event can be caused to go for such scene, so as to effectively widening the present embodiment methods described Application, and the file for clearing up automatically after closing application program, step S23 implementation can cause second event Detection is more targeted.
Application program corresponding to the file destination can include at least one of:
Application program corresponding to the first path;The application program of front stage operation when detecting the first event;Detect EMS memory occupation most application program during the first event;And:Processor occupancy highest application when detecting the first event Program.
First path, it can be understood as the store path of history file and file destination, in existing correlation technique, using journey The caused file of sequence can be corresponded to and is stored under particular file path, so, by file path, can accurately determine to apply The corresponding relation of program and file.
Timing node is used as by the first event, by the application program of front stage operation, EMS memory occupation answering at most With program or when processor occupancy highest application program be defined as application program corresponding to file destination, it can be understood as: The foreground of these application programs or running background are higher with the relevance of the deletion of file.So under the embodiment, for The determination of application program also has certain specific aim.
Simultaneously as corresponding application program can be multiple, so, corresponding step S23 can be understood as multiple answer Closed and opened with program.
In one of which embodiment, the closing of application program, it can be understood as the closing of application program front stage operation, it is right Answer, the opening of application program, it can be understood as application program no longer in front stage operation, it can be in running background, can also Do not run.Running background herein, backstage refreshing, backstage push, backstage monitoring of program etc. can be enumerated as.Another kind is implemented In mode, the closing of application program, it also is understood as both including application program in front stage operation or including application program not existing Running background, the opening of application program, include the front stage operation of application program, also the running background including application program.
It is relative, in the embodiment using step S23, if the closing of application program does not occur with being again turned on, Corresponding second event is not recorded.
In one of which embodiment, between step S22 and step S25, it can also include:
S24:It is determined that without departing from the default very first time.
The very first time, can be default random time., can be only by after the first event by the setting of the very first time The second event occurred in a period of time will exceed very first time hair as second event corresponding to the first event, the embodiment Raw second event is regarded as the relatively low event of the first event correlation, so as to not be included into the range of record, can improve The specific aim of second event is determined, with the feelings for enabling recorded information relatively more objective and reacting file process exactly Condition.
In one of which citing, step S24 can be particularly limited as:Determine that the accumulated time of electric terminal start operation surpasses Go out the default very first time.It is applicable to the scene started shooting again after long shutdown, corresponding to be enumerated as electric terminal quilt Steal, or because the reason such as go abroad wouldn't use the electric terminal.
In the embodiment for using step S23 and step S24 at the same time, in one of which specific implementation process, when first Event occurs, then starts accumulation and calculate the time after terminating instantly relative to the first event, meanwhile, calculate the mistake of time in accumulation Cheng Zhong, if there occurs step S24 process, and the not up to very first time, it can be recorded, also be understood as:When accumulation calculates Between time to count be defined by the end of the first event, terminate the time be defined so that second event occurs;Step S24 need to start at this Time and the period terminated between the time occur, and time to count and the period terminated between the time need to be less than the very first time.
However, its precedence is not limited to above listed precedence relationship, you can be not step S23 just real afterwards Apply step S24.
In another specific implementation process, when the first event terminates, then start accumulation and calculate instantly relative to the first event Time after end, if there occurs step S24, pause accumulation calculates the time, until step S24 is finished, just continues to tire out Product calculates.
Tackle in the scene applied and the application program being applicable difference, also may be used between step S22 and step S25 To be targetedly designed with other steps, it can be understood as:, second thing different with applicable application program according to application scenarios The condition that part occurs, and logical relation between the first event and second event can be various.Based on this species diversity, It can be directed to and be provided with other arbitrary steps.
In citing, it can also include between step S22 and step S25:The account of corresponding application program being published and stepping on Record;The calling startup of other applications to corresponding application program etc..
In addition, step S21 to step S26, can apply to the record of any second event, step S21 also is understood as It can repeat to implement to step S26.
S27:Obtain record information corresponding to file destination.
Record information, first event deleted for recording history file corresponding to the file destination, and every time The second event that first event occurs after terminating.
First event, the event deleted for history file, its can according to the deletion action of user and caused event, Can also be being automatically deleted for history file.
Second event, it can be understood as the event that terminal occurs automatically after the first event, it is specifically as follows default thing Event in part set, the type of event are not limited to any one, and it can be any one occurrence, and the time that second event occurs can Think the first event terminate after random time.
History file, it is and file destination identical file, it can be understood as:The history file and the file destination To be stored in first path and identical file;In other words, the difference of history file and file destination is:File destination is to work as Under the file that still stores, history file is deleted same file.
Event in the predeterminable event set includes at least one of:
Automatically create another history file corresponding to the file destination;It is automatically deleted the first of the file destination association File;It is automatically deleted the data described in the second file of the file destination association;And:Should corresponding to the file destination Made a mistake with program operation.
Another history file corresponding to the target is automatically created for therein, its scene applied can be understood as: Applied to the regular application program for deleting file, such as the head portrait picture of social class application program or chat background image etc. should With scene, under these application scenarios, when the file by taking those pictures as an example is because reaching default regular time or default Rule event occurs after being deleted, and when application program is run, or creates again, it is necessary to load again when opening dialog box Another history file corresponding to the file destination, it is seen then that the first event is not separate event.Corresponding file is defined as non- Garbage files, it can avoid always loading again, under certain applications scene, such as head portrait picture and chat background picture, then Secondary loading unnecessary can consume more flows, so, embodiment of above can also have the effect to economize on resources, wherein wrapping Include saving flow, save program resource and other effects.
Made a mistake for application program operation corresponding to the file destination therein, its scene applied is appreciated that For:The operation that the deletion of file may result in application program occurs failure and reports an error or dodge and move back, even if will not cause to apply journey The operation of sequence occurs failure and reports an error or dodge and move back, it is also possible to causes that portions of display content can not be shown or partial function can not Realize, it not only includes what user can perceive by interaction, such as sound occurs abnormal, display content and missing, button occurs Click on it is reactionless etc., can also include user can not pass through interactive perception, such as collection flow information, collection battery information Etc., if these information gatherings are not fed back but, user can not perceive.It can be seen that the embodiment operating to application program Foundation, if the situation that operation makes a mistake repeatedly occurs, it is determined that mistake is as caused by the deletion of file, and both have certain Causality, the first event is not separate event.Corresponding file is defined as non-junk file, mistake can be avoided again Secondary generation.
For the first file therein for being automatically deleted the file destination association;And it is automatically deleted the file destination Data described in second file of association;First file and the second file, can be arbitrary file.Its scene applied can To be interpreted as:If the deletion of single file causes the deletion of alternative document or records the deletion of data, it can be regarded as the target The presence or absence of file can influence presence or the data variation of alternative document, and it is no longer separate event, so, by that will correspond to File be defined as non-junk file, it is possible to prevente effectively from storage file linkage change, safeguards system and application program operation Safety.
S28:Determine that the number that the second event corresponding to first event occurs is more than preset value.
The preset value can be any default numerical value.Second event can be judged as and the by above step S28 One event has certain causality.Further, repetition can to that the deletion that multiple second event is regarded as file occur On influence caused by program or system operation.
S29:During selected garbage files, it is non-junk file to determine the file destination.
Garbage files, it can be understood as be considered as without can deleted file by use.By the way that file destination is true It is set to non-junk file, the deletion again to this document can be avoided, that is, avoids and delete this document to program or system operation Influence.
Fig. 4 is the interface schematic diagram at the file process interface of an electric terminal of the invention;Fig. 4 is refer to, by clicking on boundary " memory space cleaning " button in face, can trigger the scanning process of garbage files, in one of which embodiment, can touch Send out step S27 implementation, in another implementation process, step S29 implementation can be triggered.Fig. 4 signal " garbage files are swept Retouch result " before output display, it will be appreciated that to complete step S29.
In addition, before step S29, may also include:Determine that application program corresponding to the file destination is not deleted.Should Under embodiment, if corresponding application program has been deleted, the information recorded based on the application program then no longer has ginseng The effect of examining, so, corresponding file destination is corresponding without retaining again, can also delete corresponding record information.
The document handling method for the electric terminal that the present embodiment provides, by obtaining record information corresponding to file destination, The record information is used to recording the first deleted event of history file corresponding to the file destination, and every time described the The second event that one event occurs after terminating, the history file are to be stored in first path and phase with the file destination Same file, and, determine that the number that the second event corresponding to first event occurs is more than preset value, by the first thing It not is separate event that the repetition of second event after part, which is regarded as file, which deletes, and it may be caused to system or program operation Influence, and then during by selected garbage files, it be non-junk file to determine the file destination, avoids file destination because of determination Deleted for garbage files and program or system operation are had an impact again.
Embodiment 3
Fig. 5 is the structural representation one of an electric terminal of the invention;It refer to Fig. 5, the electric terminal, including:
Acquisition module 301, for obtaining record information corresponding to file destination, the record information is used to record the mesh Mark the first deleted event of history file corresponding to file, and occur after terminating one time second of first event every time Event, the history file are to be stored in first path and identical file with the file destination;The second event is pre- If the event in event sets;
First determining module 302, for determining that the number that the second event corresponding to first event occurs is more than Preset value:
Second determining module 303, when selecting garbage files, it is non-junk file to determine the file destination.
The electric terminal that the present embodiment provides, by obtaining record information corresponding to file destination, the record information is used In recording the first deleted event of history file corresponding to the file destination, and first event is sent out after terminating every time A raw second event, the history file are to be stored in first path and identical file with the file destination, and, Determine that the number that the second event corresponding to first event occurs is more than preset value, by the second event after the first event Repetition be regarded as file to delete not being separate event, it may be impacted to system or program operation, and then be passed through During selected garbage files, it is non-junk file to determine the file destination, avoid file destination because being defined as garbage files and Deletion has an impact again to program or system operation.
Embodiment 4
Fig. 6 is the structural representation two of an electric terminal of the invention;It refer to Fig. 6, the electric terminal, including:
Acquisition module 407, for obtaining record information corresponding to file destination, the record information is used to record the mesh Mark the first deleted event of history file corresponding to file, and occur after terminating one time second of first event every time Event, the history file are to be stored in first path and identical file with the file destination;The second event is pre- If the event in event sets;
First determining module 408, for determining that the number that the second event corresponding to first event occurs is more than Preset value:
Second determining module 409, during for selecting garbage files, it is non-junk file to determine the file destination.
Optionally, the event in the predeterminable event set includes at least one of:
Automatically create another history file corresponding to the file destination;
It is automatically deleted the first file of the file destination association;
It is automatically deleted the specific data described in the second file of the file destination association;
Application program operation makes a mistake corresponding to the file destination.
Optionally, described electric terminal, in addition to:
First detection module 402, for detecting the first event of kth time;
Second detection module 405, for detecting kth time second event;
Logging modle 406, the first event of the kth time and the kth time second event are recorded for logging modle.
Optionally, described electric terminal, in addition to:
3rd determining module 403, for being again turned on after determining closing application program corresponding to the file destination.
Optionally, application program corresponding to the file destination includes at least one of:
Application program corresponding to the first path;
The application program of front stage operation when detecting the first event;
EMS memory occupation most application program when detecting the first event;
Processor occupancy highest application program when detecting the first event.
Optionally, described electric terminal, in addition to:
4th determining module 404, for determining without departing from the default very first time.
Optionally, described electric terminal, in addition to:
Removing module 401, for deleting history file, to cause the event of kth first to occur.
The electric terminal that the present embodiment provides, by obtaining record information corresponding to file destination, the record information is used In recording the first deleted event of history file corresponding to the file destination, and first event is sent out after terminating every time A raw second event, the history file are to be stored in first path and identical file with the file destination, and, Determine that the number that the second event corresponding to first event occurs is more than preset value, by the second event after the first event Repetition be regarded as file to delete not being separate event, it may be impacted to system or program operation, and then be passed through During selected garbage files, it is non-junk file to determine the file destination, avoid file destination because being defined as garbage files and Deletion has an impact again to program or system operation.
Embodiment 5
Fig. 7 is the structural representation three of an electric terminal of the invention.It refer to Fig. 7, electric terminal 50, including:Processor 51 and memory 52;Wherein:
Memory 52, for storing computer program, the memory can also be flash (flash memory).
Processor 51, for performing the execute instruction of memory storage, to realize the side of above-described embodiment 1 and embodiment 2 Each step in method.The specific associated description that may refer in previous methods embodiment.
Alternatively, memory 52 can also be integrated with processor 51.
When the memory 52 is independently of the device outside processor 51, the electric terminal 50 can also include:
Bus 53, for connecting the memory 52 and processor 51.
Embodiment 6
The present embodiment provides a kind of readable storage medium storing program for executing, and execute instruction is stored with readable storage medium storing program for executing, when terminal extremely During few computing device execute instruction, send equipment and perform the method that above-mentioned various embodiments provide.
Embodiment 7
The application also provides a kind of program product, and the program product includes execute instruction, and the execute instruction is stored in readable In storage medium.At least one processor of terminal can read the execute instruction, at least one processing from readable storage medium storing program for executing Device performs the execute instruction and causes electric terminal to implement the method that above-mentioned various embodiments provide.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

  1. A kind of 1. document handling method of electric terminal, it is characterised in that including:
    Record information corresponding to file destination is obtained, the record information is used to record history file corresponding to the file destination The first deleted event, and a second event occurring after first event terminates every time, the history file with The file destination is to be stored in first path and identical file;The second event is the event in predeterminable event set;
    Determine that the number that the second event corresponding to first event occurs is more than preset value;
    During selected garbage files, it is non-junk file to determine the file destination.
  2. 2. according to the method for claim 1, it is characterised in that event in the predeterminable event set include it is following at least One of:
    Automatically create another history file corresponding to the file destination;
    It is automatically deleted the first file of the file destination association;
    It is automatically deleted the data described in the second file of the file destination association;
    Application program operation makes a mistake corresponding to the file destination.
  3. 3. method according to claim 1 or 2, it is characterised in that it is described acquisition file destination corresponding to record information it Before, in addition to:
    Detect the first event of kth time;
    Detect kth time second event;
    Record the first event of the kth time and the kth time second event.
  4. 4. according to the method for claim 3, it is characterised in that it is described detect kth time second event before, in addition to:
    It is again turned on after determining closing application program corresponding to the file destination.
  5. 5. according to the method for claim 4, it is characterised in that:Application program corresponding to the file destination is included below extremely It is one of few:
    Application program corresponding to the first path;
    The application program of front stage operation when detecting the first event;
    EMS memory occupation most application program when detecting the first event;
    Processor occupancy highest application program when detecting the first event.
  6. 6. according to the method for claim 3, it is characterised in that it is described detect kth time second event before, in addition to: It is determined that without departing from the default very first time.
  7. 7. according to the method for claim 3, it is characterised in that it is described detect kth time the first event before, in addition to: Deleting history file, to cause the event of kth first to occur.
  8. 8. method according to claim 1 or 2, it is characterised in that during the selected garbage files, determine the target text Before part is non-junk file, in addition to:Determine that application program corresponding to the file destination is not deleted.
  9. A kind of 9. electric terminal, it is characterised in that including:
    Acquisition module, for obtaining record information corresponding to file destination, the record information is used to record the file destination The first deleted event of corresponding history file, and the second event that first event occurs after terminating every time, The history file is to be stored in first path and identical file with the file destination;The second event is predeterminable event Event in set;
    First determining module, for determining that the number that the second event corresponding to first event occurs is more than preset value:
    Second determining module, when selecting garbage files, it is non-junk file to determine the file destination.
  10. A kind of 10. electric terminal, it is characterised in that including:Memory, processor and computer program, the computer journey Sequence is stored in the memory, and the processor runs the computer program perform claim and required described in 1 to 8 any one Method.
CN201710898462.3A 2017-09-28 2017-09-28 File processing method of electronic terminal and electronic terminal Active CN107679161B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710898462.3A CN107679161B (en) 2017-09-28 2017-09-28 File processing method of electronic terminal and electronic terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710898462.3A CN107679161B (en) 2017-09-28 2017-09-28 File processing method of electronic terminal and electronic terminal

Publications (2)

Publication Number Publication Date
CN107679161A true CN107679161A (en) 2018-02-09
CN107679161B CN107679161B (en) 2020-01-31

Family

ID=61138445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710898462.3A Active CN107679161B (en) 2017-09-28 2017-09-28 File processing method of electronic terminal and electronic terminal

Country Status (1)

Country Link
CN (1) CN107679161B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007279922A (en) * 2006-04-04 2007-10-25 Canon Inc Document management system and its control method
CN105260438A (en) * 2015-09-30 2016-01-20 联想(北京)有限公司 File management method and electronic device
CN105653582A (en) * 2015-12-21 2016-06-08 联想(北京)有限公司 File management method of electronic equipment and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007279922A (en) * 2006-04-04 2007-10-25 Canon Inc Document management system and its control method
CN105260438A (en) * 2015-09-30 2016-01-20 联想(北京)有限公司 File management method and electronic device
CN105653582A (en) * 2015-12-21 2016-06-08 联想(北京)有限公司 File management method of electronic equipment and electronic equipment

Also Published As

Publication number Publication date
CN107679161B (en) 2020-01-31

Similar Documents

Publication Publication Date Title
CN103019586B (en) User interface management method and device
CN103440079B (en) The restoration methods at operation interface and communication terminal
CN104486100B (en) Fault treating apparatus and method
CN105335224A (en) Application switching method and apparatus
CN102446217A (en) Complex event processing apparatus and complex event processing method
CN111625841B (en) Virus processing method, device and equipment
CN106095503A (en) The starting-up method of intelligent terminal and system
CN107517110A (en) Veneer configuration self-recovery method and device in a kind of distributed system
CN109324918A (en) Processing method and processing device, terminal and the storage medium of application exception
CN105426232B (en) A kind of method and device of interface processing
CN104636218B (en) Data reconstruction method and device
CN107679161A (en) The document handling method and electric terminal of electric terminal
CN106201464A (en) A kind of application icon processing method freezing application and mobile terminal
CN107835454A (en) Timeout treatment method, apparatus and storage medium based on WebApp
CN102866964B (en) Method and device for protecting data on storage equipment
JP2010134705A (en) Apparatus, log recording control method, and program
CN106330712B (en) A kind of control method and device of MAC address learning
CN106685744A (en) Fault elimination method, apparatus and system
CN100589417C (en) System and method for processing a large number reporting message on topology interface in telecommunication network management system
CN101222358B (en) Configuration emigration method and device
CN115993997A (en) PostgreSQL database orphan transaction cleaning method
CN104408059A (en) Fault processing method and device
CN106970851A (en) Method and apparatus for disk detection process in distributed file system
CN105117214A (en) Mobile terminal application icon display method and system
CN106649458A (en) Method and system for detecting file update amount

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
GR01 Patent grant
GR01 Patent grant