CN108304477A - A kind of document handling method and device - Google Patents

A kind of document handling method and device Download PDF

Info

Publication number
CN108304477A
CN108304477A CN201711466050.9A CN201711466050A CN108304477A CN 108304477 A CN108304477 A CN 108304477A CN 201711466050 A CN201711466050 A CN 201711466050A CN 108304477 A CN108304477 A CN 108304477A
Authority
CN
China
Prior art keywords
file
user
value
document
value score
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711466050.9A
Other languages
Chinese (zh)
Inventor
彭中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711466050.9A priority Critical patent/CN108304477A/en
Publication of CN108304477A publication Critical patent/CN108304477A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques
    • 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/11File system administration, e.g. details of archiving or snapshots
    • G06F16/122File system administration, e.g. details of archiving or snapshots using management policies

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

An embodiment of the present invention provides a kind of document handling method and device, method therein includes:It is directed to the delete operation of file in response to user, determines the value score of the file;Wherein, the value score of the file is determined according to the operating parameter of the file;According to the value score, the file is handled, wherein the processing includes deleting the file and being backed up to the file, or show the prompting message for preventing the delete operation.The embodiment of the present invention can to avoid user accidentally delete vital document the case where occur, or user accidentally delete in the case of, can be brought great convenience for user according to Backup and Restore file, and save user update or locating file needed for time.

Description

A kind of document handling method and device
Technical field
The present invention relates to field of computer technology more particularly to a kind of document handling methods and device.
Background technology
With the continuous development of computer technology, the terminal devices such as mobile phone, computer have become user life in can not or Scarce necessity.User can store various files in terminal device, be work and the life band of user to check at any time Carry out great convenience.
When user does not need some file, this document can be deleted from terminal device, however, in practical applications, User may have the case where accidentally deleting, alternatively, some users are after deleting the file for thinking useless, and encounter needs The scene of deleted file, but deleted file can not be given for change, it makes troubles for user, user is likely to require weight The deleted file of new edited, causes the waste of time resource.
Invention content
A kind of document handling method of offer of the embodiment of the present invention and device can not be given for change with solving user in the prior art The file of deletion and the problem of waste time resource.
In a first aspect, an embodiment of the present invention provides a kind of document handling method, it is applied to mobile terminal, the method packet It includes:
It is directed to the delete operation of file in response to user, determines the value score of the file;Wherein, the valence of the file It is worth dividing and is determined according to the operating parameter of the file;
According to the value score, the file is handled, wherein the processing includes the deletion file and right The file is backed up, or shows the prompting message for preventing the delete operation.
Second aspect, an embodiment of the present invention provides a kind of document handling apparatus, are applied to mobile terminal, described device packet It includes:
Points calculating module, the delete operation for being directed to file in response to user, determines the value score of the file; Wherein, the value score of the file is determined according to the operating parameter of the file;
Operation processing module, for according to the value score, handling the file, wherein the processing packet It includes and deletes the file and the file is backed up, or show the prompting message for preventing the delete operation.
The third aspect, an embodiment of the present invention provides a kind of mobile terminals, including:It memory, processor and is stored in On reservoir and the computer program that can run on a processor, which is characterized in that the processor is realized when executing described program The step of aforementioned document processing method.
Fourth aspect, an embodiment of the present invention provides a kind of computer readable storage mediums, are stored thereon with computer journey Sequence, when described program is executed by processor the step of realization aforementioned document processing method.
The embodiment of the present invention is when mobile terminal receives user and is directed to the delete operation of file, it may be determined that this document It is worth score, the value score can embody importance of the file for user.The embodiment of the present invention can be according to file It is worth score, file is handled, wherein the processing includes the deletion file and is backed up to the file, or Show the prompting message for preventing the delete operation.For example, if the value score of file is higher, can execute described Delete operation deletes this document, and is backed up to this document, with user accidentally delete in the case of, can also according to back up it is extensive Multiple this document, brings great convenience for user, and save user update or locating file needed for time.Or It can show the prompting message for preventing the delete operation, remind user's this document more important, if determination will execute Delete operation, the case where accidentally deletion to avoid user.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 shows a kind of flow chart of document handling method embodiment one of the present invention;
Fig. 2 shows a kind of flow charts of document handling method embodiment two of the present invention;
Fig. 3 shows a kind of flow chart of document handling method embodiment three of the present invention;
Fig. 4 shows a kind of structure diagram of document handling apparatus embodiment of the present invention;
Fig. 5 shows a kind of structural schematic diagram of mobile terminal 500 of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Embodiment of the method one
Referring to Fig.1, show that a kind of flow chart of document handling method embodiment one of the present invention, the method are applied to Mobile terminal, the method can specifically include following steps:
Step 101, the delete operation that file is directed in response to user, determine the value score of the file;Wherein, described The value score of file is determined according to the operating parameter of the file;
Step 102, according to the value score, the file is handled, wherein it is described processing include deletion described in File simultaneously backs up the file, or shows the prompting message for preventing the delete operation.
The embodiment of the present invention is applicable to terminal device, such as PC (Personal Computer, PC), Huo Zhezhi The arbitrary mobile terminals such as energy mobile phone, tablet computer, laptop.It is appreciated that the embodiment of the present invention is for mobile terminal Concrete form does not limit.For ease of description, the embodiment of the present invention is illustrated by taking smart mobile phone as an example, other application field Scape is cross-referenced.
The file is specifically as follows computer documents, is the information using hard disc of computer as carrier storage on computers Set.The file may include text document, picture, program etc., it will be understood that the embodiment of the present invention is for the file Concrete type does not limit.
In embodiments of the present invention, when mobile terminal receives user and is directed to the delete operation of file, it may be determined that text The value score of part, the value score can determine according to the operating parameter of the file, and the operating parameter specifically can be with The information such as the frequency that file is opened for user, according to the value score that the operating parameter determines, can embody file for The importance at family.Therefore, in order to avoid user accidentally deletes the file more important to it, the embodiment of the present invention can be according to file Value score, file is handled, wherein the processing includes the deletion file and is backed up to the file, Or prompting message of the display for preventing the delete operation.
For example, if the value score of file is higher, the delete operation can be executed and delete this document, and to this article Part is backed up, can be according to Backup and Restore this document, or can show for preventing in the case where user accidentally deletes The prompting message of the delete operation, remind user's this document it is more important, if determination will execute delete operation, to avoid with The case where family is accidentally deleted.
The present invention a kind of alternative embodiment in, it is described in response to user be directed to file delete operation, determine described in The value score of file, can specifically include:
The file is determined according to the corresponding operating parameter of the file for the delete operation of file in response to user Value score;Wherein, the operating parameter includes:Open at least one of number, document source, file attribute.
The opening number is specifically as follows the number that user actively opens file.The document source can specifically include Either user edits the excopy to excopy refer to the content in file or file is that user passes through USB (Universal Serial Bus, universal serial bus), network or copied from other documents obtains;The user compiles Volume refer to content in file or file it is that user establishes and oneself editor obtains.The file attribute can specifically include The information such as file size, file format.It is appreciated that in practical applications, being not limited to use above-mentioned three kinds of operating parameter meters The value score of file is calculated, the embodiment of the present invention does not limit the type and quantity of the operating parameter.For example, described Operating parameter can also include preview number etc..Specifically, the embodiment of the present invention can pass through the valence of following formula calculation document It is worth a point R:
R=(R1 × r1+R2 × r2+ ...+Rn × rn)/RT × 100 (1)
Wherein, rn indicates that the corresponding score value coefficient of n operating parameter, Rn indicate the corresponding score value of n operating parameter, RT indicates the sum of the corresponding score value of n kind operating parameters, n >=1.It is appreciated that the embodiment of the present invention corresponds to each operating parameter Score value specific value and acquisition modes do not limit, by above-mentioned formula (1) can be calculated value score R be Value in section [0,100] range.
In a kind of application example of the present invention, n=5 is set, using being worth for following 5 kinds of operating parameter calculation documents Point:
1) the opening number of file, r1 indicate the corresponding score value coefficient of opening number, and opening number is more, then r1 is higher. R1 indicates to open the corresponding score value of number, for example, setting R1=100, if the number that user actively opens file is n times, r1 =N/10, if the number that user actively opens file is more than 10 times, r1=1.
2) document source, r2 indicate the corresponding score value coefficient of document source, for example, for the file of excopy, r2= 0.2;For the file that user edits, r2=0.8;For the file in other sources, r2=0 etc..R2 indicates that document source corresponds to Score value, for example, setting R2=100.
3) the preview number of file, r3 indicate the corresponding score value coefficient of preview number, and preview number is more, then r3 is higher. R3 indicates the corresponding score value of preview number, for example, setting R3=20.
4) file size, r4 indicates the corresponding score value coefficient of file size, if for example, file size is more than 50M, r4= 0;If file size is more than 10M and is less than 50M, r4=0.5;If file size is less than 10M, r4=1.R4 indicates that file is big Small corresponding score value, for example, setting R4=20.
5) file format, r5 indicate the corresponding score value coefficient of file format, if for example, file format is default common lattice Formula, then r5=1, otherwise, r5=0.R5 indicates the corresponding score value of file format, for example, setting R5=10.Wherein, common format It self-defined can obtain, if common format may include doc (Document, document), txt (text formatting), pdf (Portable Document Format, Portable document format), jpeg (Joint Photographic Experts Group, Joint Photographic Experts Group), the formats such as avi (Audio Video Interleaved, Audio Video Interleaved format).
RT=R1+R2+R3+R4+R5=100+100+20+20+10=250.It can be calculated according to above-mentioned formula (1) The corresponding value score of file.It is appreciated that operating parameter only applies example as a kind of of the present invention in above-mentioned 5, in reality In, aforesaid operations parameter can be extended according to user for the operation behavior of file in mobile terminal, wherein For r1 to the score value coefficient of rn respective operations parameters, which can be enumeration type, can also be depending on the user's operation The coefficient value of behavior setting, the embodiment of the present invention do not limit this.
The embodiment of the present invention does not limit the concrete type of the file, such as the file can also include moving The information such as the short message in dynamic terminal.If user accidentally deletes more important short message, and mobile terminal detects that user is directed to Can be that user restores deleted short message when the search operation that deleted short message carries out.For example, if detecting on user Draw either drop-down short message behavior more than the number of operations of setting time or preview short message more than setting number etc., then it is assumed that inspection It measures user and is directed to the search operation that deleted short message carries out, user can be helped to restore deleted short message.
In the another kind application example of the present invention, n=8 is set, the value of short message is calculated using following 8 kinds of operating parameters Score:
1) number of user's answer short message, r1 indicate the corresponding score value coefficient of reply number, and reply number is more, then r1 is got over It is high.R1 indicates to reply the corresponding score value of number, for example, setting R1=100.
2) user browses the number of short message, and r2 indicates the corresponding score value coefficient of number of visits, and number of visits is more, then r2 is got over It is high.R2 indicates the corresponding score value of number of visits, for example, setting R2=50.
3) number of user's preview short message, r3 indicate the corresponding score value coefficient of preview number, and preview number is more, then r3 is got over It is high.R3 indicates the corresponding score value of preview number, for example, setting R3=20.
4) short message behavior is directly deleted when user's preview, r4 indicates directly to delete corresponding score value coefficient when preview, if with Short message is directly deleted when the preview short message of family, then r4=1, otherwise, then r4=0.R4 indicates the corresponding score value of direct act of deleting, example Such as, R4=-10 is set.
5) short message source, r5 indicates the corresponding score value coefficient in short message source, if for example, short message comes from household, r5= 1, if short message comes from colleague, r5=0.5 etc..R5 indicates the corresponding score value in short message source, for example, setting R5=10.
6) whether short message sending side is by top set, if by top set, r6=1, otherwise, R6=10 is arranged in r6=0.
7) whether short message is encrypted, if short message is encrypted, r7=1, otherwise, R7=30 is arranged in r7=0.
8) whether short message comes from blacklist account, if so, r8=1, otherwise, R8=-10 is arranged in r8=0.
RT=R1+R2+R3+R4+R5=100+50+20+ (- 10)+10+10+30+ (- 10)=200.According to above-mentioned formula (1) the corresponding value score of short message can be calculated.Wherein r1 to rn be the corresponding score value coefficient of operating parameter, for whether Be encrypted the corresponding operating parameter of equal behaviors, score value coefficient can be enumeration type, such as 0 indicates no, 1 indicate be.And it is right In operating parameters such as user's reply, browsings, score value coefficient can be determined by its number or frequency, for example, for user The number of answer short message, if user's short message number is c1, the number of answer short message is c2, then can enable r1=c2/c1.It can manage Solution, the embodiment of the present invention do not limit the specific value and definition mode of score value coefficient and score value.
In another of the invention is using example, n=5 is set, is calculated in mobile terminal using following 5 kinds of operating parameters The value score of note:
1) note size, r1 indicate that the corresponding score value coefficients of note size S, R1 indicate the corresponding score values of note size S, if R1=50 is set, if S is more than default size ST, r1=1;If S is less than default size ST, r1=S/ST.
2) whether note was shared, if note was shared, r2=1, otherwise, r2=0, R2 indicate that note is shared Corresponding score value, for example, setting R2=20.
3) note edit session, r3 indicate the corresponding score value coefficient of note edit session, and edit session is longer, and r3 is higher, For example, if edit session is more than 3 hours, r3=1;If edit session was less than 3 hours and more than 1 hour, r3=0.5;If Edit session is less than 1 hour and is more than half an hour, then r3=0.2 etc..R3 indicates the corresponding score value of note edit session, for example, R3=50 is set.
4) note source, if for example, note is manually entered for user, r4=1;If note part is that user is defeated manually Enter, is partly replicated for user, then r4=0.5;If note, which is user, replicates stickup, r4=0.2 etc..R4 indicates note source pair The score value answered, for example, setting R4=20.
5) number that note is changed, r5 indicate note by the corresponding score value coefficient of modification number, and modification number is more, then R4 is higher, and R5 indicates note by the corresponding score value of modification number, for example, R5=50 is arranged, if note is more than pre- by modification number T If changing number TT, then r5=1;If note is less than default modification number, r5=T/TT by modification number T.
RT=R1+R2+R3+R4+R5=50+20+50+20+50=190 can be calculated just according to above-mentioned formula (1) Sign corresponding value score.
It is described that the file is handled according to the value score in a kind of alternative embodiment of the present invention, tool Body may include:
When the value score is more than the first preset value, the prompting message for preventing the delete operation is shown.
If the value score that file is calculated is more than the first preset value, illustrate that this document, this article is commonly used in user Part is more important to user, then can show the prompting message for preventing the delete operation.For example, can be carried with Pop-up message Show frame, remind user's this document more important, it is proposed that user cancels the operation for deleting this document.
It is appreciated that the embodiment of the present invention does not limit the specific value of first preset value, such as it is arranged First preset value is 70, it is assumed that when monitoring that user executes delete operation for file A, being worth for file A is calculated It is divided into 85, is more than the first preset value 70, then can show the prompting message for preventing the delete operation, prevents to continue to hold Row deletes the operation of file A.
In a kind of alternative embodiment of the present invention, when the value score is more than the first preset value, show for hindering Only after the prompting message of the delete operation, the method can also include:
If receiving the acceptance message that the user response is returned in the prompting message, unerase the file;
If receiving the refuse information that the user response is returned in the prompting message, the file is deleted, and right The file is backed up.
In embodiments of the present invention, it is more than the delete operation of the file of the first preset value for value score when user's triggering When, it can show the prompting message for preventing the delete operation, to remind the file that user currently to be deleted more important, It is recommended that user stops deleting this document.If receiving the acceptance message that user response is returned in the prompting message, Ye Jiyong Family is agreed to stop deleting this document, then unerase the file.Thus, it is possible to which it is higher to avoid user from accidentally deleting value score File.
If after sending out the prompting message for preventing the delete operation to the user, user still will delete this File also even receives user response when the refuse information that the prompting message returns, in order to avoid user is in the valence of deletion The case where being worth after point higher file, using this document that can not but obtain this document again, occurs, and the embodiment of the present invention can To delete the file, and the file is backed up.In this way, when user is needed again using this document, it can be direct Restore this document to user, bring great convenience for user, and save user update or locating file needed for Time.
In embodiments of the present invention, the file can be backed up with customized format, for example, storage file name The information such as title, abstract, backup path.It is appreciated that the embodiment of the present invention for backup concrete mode and backup position not It limits, can back up in the mobile terminal local of user, or can also back up in Cloud Server etc..
In practical applications, when user returns to refuse information for the prompting message, illustrate that user insists on deleting Then current file backs up this document at this point it is possible to first complete delete operation.Optionally, deletion can not also be executed Operation, but this document is hidden, such as setting this document is invisible to user, so that user, which thinks, has deleted this document. In this way, if detect user need again using this document when, can directly to user restore show this document, be user with Carry out great convenience, and save user update or locating file needed for time.
To sum up, the embodiment of the present invention is when mobile terminal receives user and is directed to the delete operation of file, it may be determined that should The value score of file, the value score can embody importance of the file for user.The embodiment of the present invention can basis The value score of file, handles file, wherein the processing includes deleting the file and being carried out to the file standby Part, or show the prompting message for preventing the delete operation.For example, if the value score of file is higher, can hold The row delete operation deletes this document, and is backed up to this document, can also basis in the case where user accidentally deletes Backup and Restore this document, brings great convenience for user, and save user update or locating file needed for when Between.Or can show prompting message for preventing the delete operation, remind user's this document more important, if to determine The case where executing delete operation, accidentally being deleted to avoid user.
Embodiment of the method two
With reference to Fig. 2, show a kind of flow chart of document handling method embodiment two of the present invention, can specifically include as Lower step:
Step 201, the delete operation that file is directed in response to user, determine the value score of the file;Wherein, described The value score of file is determined according to the operating parameter of the file;
Step 202, when the value score is more than the first preset value, show prompt for preventing the delete operation Message;
If step 203 receives the acceptance message that the user response is returned in the prompting message, then follow the steps 204;If receiving the refuse information that the user response is returned in the prompting message, 205 are thened follow the steps;
Step 204, unerase the file;
Step 205 is deleted the file, and is backed up to the file.
It is described that the file is handled according to the value score in a kind of alternative embodiment of the present invention, tool Body may include:
When the value score is more than the second preset value and is no more than first preset value, the file is deleted, and The file is backed up.
In embodiments of the present invention, when receiving delete operation of the user for file, it may be determined that the file It is worth score, if the value score of file is more than the second preset value and is no more than first preset value, illustrates this document pair It is not especially important in user, but it is also possible that using again, therefore, for this class file, can have to the user The prompting message for preventing the delete operation is sent out, directly deletes this document, and back up to this document, to examine Measure user need again using this document when, directly can restore this document to user.
In a kind of alternative embodiment of the present invention, the method can also include:
If the value score is no more than the second preset value, the file is deleted.
In embodiments of the present invention, if the value score of file is no more than the second preset value, illustrate this document to user Importance it is relatively low, this document is rarely employed in user, and the probability for reusing this document later is relatively low, therefore, can directly hold The delete operation instruction of row user triggering, deletes this document.
To sum up, the embodiment of the present invention is when mobile terminal receives user and is directed to the delete operation of file, it may be determined that should The value score of file illustrates that this document is more important to user, then if the value score of this document is more than the first preset value It can show the prompting message for preventing the delete operation, and be disappeared according to the agreement that user returns for the prompting message Breath, unerase the file, alternatively, being directed to the refuse information that the prompting message returns according to user, deletes the file, And the file is backed up, when so that user is needed again using this document, can according to Backup and Restore this document, for Family brings great convenience, and save user update or locating file needed for time.
In addition, if the value score of file is more than the second preset value and is no more than first preset value, illustrate this article Part is not especially important for user, but it is also possible that using again, therefore, can delete the file, and to the text Part is backed up, and is user when detecting that user is needed again using this document, directly can restore this document to user Bring great convenience, and save user update or locating file needed for time.
Embodiment of the method three
With reference to Fig. 3, show a kind of flow chart of document handling method embodiment three of the present invention, can specifically include as Lower step:
Step 301, the delete operation that file is directed in response to user, determine the value score of the file;Wherein, described The value score of file is determined according to the operating parameter of the file;
If step 302, the value score are more than the first preset value, 303 are thened follow the steps;If the value score is more than Second preset value and be no more than first preset value, then follow the steps 306;If it is default that the value score is no more than second Value, thens follow the steps 307;
The prompting message of step 303, display for preventing the delete operation;
If step 304 receives the acceptance message that the user response is returned in the prompting message, then follow the steps 305;If receiving the refuse information that the user response is returned in the prompting message, 306 are thened follow the steps;
Step 305, unerase the file;
Step 306 is deleted the file, and is backed up to the file;
Step 307 deletes the file;
If step 308 detects that the user is directed to the search operation of the deleted file, according to the file Backup, restore the file;Wherein, the time gap of the search operation deletes the time of the file less than preset time Threshold value.
In embodiments of the present invention, the operation behavior of user can be monitored in real time, if detecting user for deleted File trigger search operation, and the time gap of the search operation delete the file time be less than preset time threshold, Illustrate that the user is higher using the probability of this document, at this point it is possible to according to the backup of this document, restores this document, so that user This document can directly be used.It is appreciated that the embodiment of the present invention is not subject to the specific value of the preset time threshold Limitation, such as can be three days, one week etc..
Wherein, the search operation can specifically include any one in following operation:1) user passes through file search The deleted file of searching functions.2) search term of user and the abstract of deleted document or the information such as title or label Match, described search word can be the search term inputted when user scans in local file or in webpage.3) User's stay time in the corresponding file management interface of deleted document is more than preset duration.4) user actively opens and has deleted The file to match except the format of file.5) user has the relevant operation behavior in source with deleted document, for example, having deleted Except the source of file is USB copies, the operation behavior copied files that user copies again by USB.
It is appreciated that above-mentioned detection user is directed to five kinds of modes of the search operation of deleted document only as the present invention's It is a kind of to apply whether example, the embodiment of the present invention trigger the tool of the search operation for deleted document for how to detect user Body mode does not limit.
Optionally, whether the embodiment of the present invention can also judge search operation of the user for deleted document more than default Lookup number just think that user has the demand for restoring this document if being more than, at this point it is possible to according to the backup of the file, Restore the file.For example, detecting that the number that user passes through file search searching functions deleted document is more than preset looks into It looks for number, then can confirmly detect the search operation that user is directed to deleted document, then it can be extensive according to the backup of this document Multiple this document.
It, can be with Pop-up message when mobile terminal detects that above-mentioned user is directed to the search operation of the deleted file Prompting frame prompts the file of user's current lookup not delete, user can be helped to give for change, and inquire whether the user needs to restore This document can restore this document if user replys the response message agreed to according to the backup to this document.Specifically, If this document backup can in the terminal be found and open directly according to the path of backup in mobile terminal local This document.If the application backup can download this document in Cloud Server from Cloud Server.
Optionally, the embodiment of the present invention can also record the BACKUP TIME of the file, and obtain the BACKUP TIME Time interval apart from current time if the time interval is more than predetermined interval, such as more than three months, illustrates user no longer This document is needed, then can carry out complete deletion to this document, such as delete the backup of this document, and delete the abstract of this document Etc. information, to save the memory space of mobile terminal or Cloud Server.
To sum up, the embodiment of the present invention can carry out intelligent backup to the higher file of value score, to detect user For deleted file search operation when, the file can be restored according to the backup of the file, bring pole for user Big facility, and save user update or locating file needed for time.
Device embodiment
With reference to Fig. 4, show that a kind of structure diagram of document handling apparatus embodiment of the present invention, described device specifically may be used To include:
Points calculating module 401, the delete operation for being directed to file in response to user, determines being worth for the file Point;Wherein, the value score of the file is determined according to the operating parameter of the file;
Operation processing module 402, for according to the value score, handling the file, wherein the processing Including the deletion file and the file is backed up, or shows the prompting message for preventing the delete operation.
Optionally, the points calculating module 401, can specifically include:
Computational submodule, the delete operation for being directed to file in response to user are joined according to the corresponding operation of the file Number, determines the value score of the file;Wherein, the operating parameter includes:It opens in number, document source, file attribute At least one.
Optionally, the operation processing module 402 is specifically used for:
When the value score is more than the first preset value, the prompting message for preventing the delete operation is shown.
Optionally, described device can also include:
First processing module, if the acceptance message returned in the prompting message for receiving the user response, Unerase the file;
Second processing module, if the refuse information returned in the prompting message for receiving the user response, The file is deleted, and the file is backed up.
Optionally, the operation processing module 402 specifically can be used for:
When the value score is more than the second preset value and is no more than first preset value, the file is deleted, and The file is backed up.
Optionally, described device can also include:
Recovery module, if for detecting that the user is directed to the search operation of the deleted file, according to institute The backup for stating file restores the file;Wherein, the time gap of the search operation deletes the time of the file less than pre- If time threshold.
For device embodiments, since it is basically similar to the method embodiment, so fairly simple, the correlation of description Place illustrates referring to the part of embodiment of the method.
With reference to Fig. 5, a kind of hardware architecture diagram of mobile terminal of each embodiment, the movement are whole to realize the present invention End 500 includes but not limited to:Radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor 510 and power supply 511 etc. Component.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 5 does not constitute the restriction to mobile terminal, Mobile terminal may include either combining certain components or different components arrangement than illustrating more or fewer components. In the embodiment of the present invention, mobile terminal includes but not limited to mobile phone, tablet computer, laptop, palm PC, vehicle-mounted end End, wearable device and pedometer etc..
Wherein, processor 510, the delete operation for being directed to file in response to user, determine being worth for the file Point;Wherein, the value score of the file is determined according to the operating parameter of the file;According to the value score, to described File is handled, wherein the processing includes deleting the file and being backed up to the file, or display is for preventing The prompting message of the delete operation.
Through the embodiment of the present invention, mobile terminal is when receiving delete operation of the user for file, it may be determined that should The value score of file, the value score can embody importance of the file for user.The embodiment of the present invention can basis The value score of file, handles file, wherein the processing includes deleting the file and being carried out to the file standby Part, or show the prompting message for preventing the delete operation.For example, if the value score of file is higher, can hold The row delete operation deletes this document, and is backed up to this document, can also basis in the case where user accidentally deletes Backup and Restore this document, brings great convenience for user, and save user update or locating file needed for when Between.Or can show prompting message for preventing the delete operation, remind user's this document more important, if to determine The case where executing delete operation, accidentally being deleted to avoid user.
It should be understood that the embodiment of the present invention in, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 510 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 501 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by radio communication system and network and other set Standby communication.
Mobile terminal has provided wireless broadband internet to the user by network module 502 and has accessed, and such as user is helped to receive Send e-mails, browse webpage and access streaming video etc..
It is that audio output unit 503 can receive radio frequency unit 501 or network module 502 or in memory 509 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 503 can also be provided and be moved The relevant audio output of specific function that dynamic terminal 500 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 503 includes loud speaker, buzzer and receiver etc..
Input unit 504 is for receiving audio or video signal.Input unit 504 may include graphics processor (Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 is in video acquisition mode Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out Reason.Treated, and picture frame may be displayed on display unit 506.Through graphics processor 5041, treated that picture frame can be deposited Storage is sent in memory 509 (or other storage mediums) or via radio frequency unit 501 or network module 502.Mike Wind 5042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output of mobile communication base station can be sent to via radio frequency unit 501 by being converted in the case of telephone calling model.
Mobile terminal 500 further includes at least one sensor 505, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 5061, and proximity sensor can close when mobile terminal 500 is moved in one's ear Display panel 5061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 506 is for showing information input by user or being supplied to the information of user.Display unit 506 can wrap Display panel 5061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 5061.
User input unit 507 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family is arranged and the related key signals input of function control.Specifically, user input unit 507 include touch panel 5071 and Other input equipments 5072.Touch panel 5071, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 5071 or in touch panel 5071 Neighbouring operation).Touch panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receiving area It manages the order that device 510 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch panel 5071.In addition to touch panel 5071, user input unit 507 can also include other input equipments 5072.Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 5071 can be covered on display panel 5061, when touch panel 5071 is detected at it On or near touch operation after, send processor 510 to determine the type of touch event, be followed by subsequent processing device 510 according to touch The type for touching event provides corresponding visual output on display panel 5061.Although in Figure 5, touch panel 5071 and display Panel 5061 is to realize the function that outputs and inputs of mobile terminal as two independent components, but in some embodiments In, can be integrated by touch panel 5071 and display panel 5061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place does not limit.
Interface unit 508 is the interface that external device (ED) is connect with mobile terminal 500.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 508 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in mobile terminal 500 or can be used in 500 He of mobile terminal Transmission data between external device (ED).
Memory 509 can be used for storing software program and various data.Memory 509 can include mainly storing program area And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 509 may include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 510 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 509, and calls and is stored in storage Data in device 509 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Reason device 510 may include one or more processing units;Preferably, processor 510 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 510.
Mobile terminal 500 can also include the power supply 511 (such as battery) powered to all parts, it is preferred that power supply 511 Can be logically contiguous by power-supply management system and processor 510, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, mobile terminal 500 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 510, and memory 509 is stored in On memory 509 and the computer program that can be run on the processor 510, the computer program are executed by processor 510 Each process of the above-mentioned document handling method embodiments of Shi Shixian, and identical technique effect can be reached, to avoid repeating, here It repeats no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of above-mentioned document handling method embodiment, and energy when being executed by processor Reach identical technique effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc or CD etc..
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within the protection of the present invention.

Claims (14)

1. a kind of document handling method is applied to mobile terminal, which is characterized in that the method includes:
It is directed to the delete operation of file in response to user, determines the value score of the file;Wherein, the file is worth Divide and is determined according to the operating parameter of the file;
According to the value score, the file is handled, wherein the processing includes deleting the file and to described File is backed up, or shows the prompting message for preventing the delete operation.
2. according to the method described in claim 1, it is characterized in that, it is described in response to user be directed to file delete operation, really The value score of the fixed file, including:
The valence of the file is determined according to the corresponding operating parameter of the file for the delete operation of file in response to user It is worth dividing;Wherein, the operating parameter includes:Open at least one of number, document source, file attribute.
3. according to the method described in claim 1, it is characterized in that, described according to the value score, the file is carried out Processing, including:
When the value score is more than the first preset value, the prompting message for preventing the delete operation is shown.
4. according to the method described in claim 3, it is characterized in that, when the value score is more than the first preset value, show After prompting message for preventing the delete operation, the method further includes:
If receiving the acceptance message that the user response is returned in the prompting message, unerase the file;
If receiving the refuse information that the user response is returned in the prompting message, the file is deleted, and to described File is backed up.
5. according to the method described in claim 1, it is characterized in that, described according to the value score, the file is carried out Processing, including:
When the value score is more than the second preset value and is no more than first preset value, the file is deleted, and to institute File is stated to be backed up.
6. according to the method described in claim 1, it is characterized in that, the method further includes:
If detecting, the user is directed to the search operation of the deleted file, according to the backup of the file, restores The file;Wherein, the time gap of the search operation deletes the time of the file less than preset time threshold.
7. a kind of document handling apparatus, it is applied to mobile terminal, which is characterized in that described device includes:
Points calculating module, the delete operation for being directed to file in response to user, determines the value score of the file;Its In, the value score of the file is determined according to the operating parameter of the file;
Operation processing module, for according to the value score, handling the file, wherein the processing includes deleting It is backed up except the file and to the file, or shows the prompting message for preventing the delete operation.
8. device according to claim 7, which is characterized in that the points calculating module, including:
Computational submodule, the delete operation for being directed to file in response to user, according to the corresponding operating parameter of the file, really The value score of the fixed file;Wherein, the operating parameter includes:It opens in number, document source, file attribute at least It is a kind of.
9. device according to claim 7, which is characterized in that the operation processing module is specifically used for:
When the value score is more than the first preset value, the prompting message for preventing the delete operation is shown.
10. device according to claim 9, which is characterized in that described device further includes:
First processing module, if the acceptance message returned in the prompting message for receiving the user response, cancels Delete the file;
Second processing module, if the refuse information returned in the prompting message for receiving the user response, is deleted The file, and the file is backed up.
11. device according to claim 7, which is characterized in that the operation processing module is specifically used for:
When the value score is more than the second preset value and is no more than first preset value, the file is deleted, and to institute File is stated to be backed up.
12. device according to claim 7, which is characterized in that described device further includes:
Recovery module, if for detecting that the user is directed to the search operation of the deleted file, according to the text The backup of part restores the file;Wherein, when the time gap of the search operation deletes the time of the file less than presetting Between threshold value.
13. a kind of mobile terminal, which is characterized in that including:Memory, processor and storage are on a memory and can be in processor The computer program of upper operation, which is characterized in that the processor is realized when executing described program as appointed in claim 1 to 6 The step of one document handling method.
14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is handled It is realized when device executes as described in any one of claim 1 to 6 the step of document handling method.
CN201711466050.9A 2017-12-28 2017-12-28 A kind of document handling method and device Pending CN108304477A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711466050.9A CN108304477A (en) 2017-12-28 2017-12-28 A kind of document handling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711466050.9A CN108304477A (en) 2017-12-28 2017-12-28 A kind of document handling method and device

Publications (1)

Publication Number Publication Date
CN108304477A true CN108304477A (en) 2018-07-20

Family

ID=62867757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711466050.9A Pending CN108304477A (en) 2017-12-28 2017-12-28 A kind of document handling method and device

Country Status (1)

Country Link
CN (1) CN108304477A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109117316A (en) * 2018-09-25 2019-01-01 Oppo广东移动通信有限公司 A kind of data managing method, data administrator and mobile terminal
CN109388624A (en) * 2018-10-09 2019-02-26 郑州云海信息技术有限公司 Distributed document delet method, device, system and computer readable storage medium
CN110287156A (en) * 2019-06-28 2019-09-27 维沃移动通信有限公司 Document handling method and mobile terminal
CN110602416A (en) * 2019-09-06 2019-12-20 Oppo广东移动通信有限公司 Video processing method, terminal and computer readable storage medium
CN115098449A (en) * 2022-08-26 2022-09-23 荣耀终端有限公司 File cleaning method and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955421A (en) * 2014-05-06 2014-07-30 珠海市君天电子科技有限公司 Method and system for file deletion
CN104143069A (en) * 2014-08-04 2014-11-12 上海斐讯数据通信技术有限公司 Method and system for protecting system file
CN104573093A (en) * 2015-01-29 2015-04-29 广东欧珀移动通信有限公司 Method and device for managing file catalog
CN104991834A (en) * 2015-05-27 2015-10-21 努比亚技术有限公司 Data recycle method and mobile terminal
CN105095252A (en) * 2014-05-06 2015-11-25 腾讯科技(深圳)有限公司 File management method and system
CN105279236A (en) * 2015-09-25 2016-01-27 北京金山安全软件有限公司 File cleaning method and device and electronic equipment
CN106598777A (en) * 2016-11-11 2017-04-26 捷开通讯(深圳)有限公司 Method and system used for saving and recovering deleted file, and mobile equipment
CN106599115A (en) * 2016-11-30 2017-04-26 广东欧珀移动通信有限公司 Data protection method and device and terminal
CN106934052A (en) * 2017-03-16 2017-07-07 维沃移动通信有限公司 A kind of media text handling method and mobile terminal
CN107423369A (en) * 2017-07-01 2017-12-01 珠海格力电器股份有限公司 A kind of method and device for handling file to be deleted

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955421A (en) * 2014-05-06 2014-07-30 珠海市君天电子科技有限公司 Method and system for file deletion
CN105095252A (en) * 2014-05-06 2015-11-25 腾讯科技(深圳)有限公司 File management method and system
CN104143069A (en) * 2014-08-04 2014-11-12 上海斐讯数据通信技术有限公司 Method and system for protecting system file
CN104573093A (en) * 2015-01-29 2015-04-29 广东欧珀移动通信有限公司 Method and device for managing file catalog
CN104991834A (en) * 2015-05-27 2015-10-21 努比亚技术有限公司 Data recycle method and mobile terminal
CN105279236A (en) * 2015-09-25 2016-01-27 北京金山安全软件有限公司 File cleaning method and device and electronic equipment
CN106598777A (en) * 2016-11-11 2017-04-26 捷开通讯(深圳)有限公司 Method and system used for saving and recovering deleted file, and mobile equipment
CN106599115A (en) * 2016-11-30 2017-04-26 广东欧珀移动通信有限公司 Data protection method and device and terminal
CN106934052A (en) * 2017-03-16 2017-07-07 维沃移动通信有限公司 A kind of media text handling method and mobile terminal
CN107423369A (en) * 2017-07-01 2017-12-01 珠海格力电器股份有限公司 A kind of method and device for handling file to be deleted

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109117316A (en) * 2018-09-25 2019-01-01 Oppo广东移动通信有限公司 A kind of data managing method, data administrator and mobile terminal
CN109388624A (en) * 2018-10-09 2019-02-26 郑州云海信息技术有限公司 Distributed document delet method, device, system and computer readable storage medium
CN110287156A (en) * 2019-06-28 2019-09-27 维沃移动通信有限公司 Document handling method and mobile terminal
CN110287156B (en) * 2019-06-28 2021-12-21 维沃移动通信有限公司 File processing method and mobile terminal
CN110602416A (en) * 2019-09-06 2019-12-20 Oppo广东移动通信有限公司 Video processing method, terminal and computer readable storage medium
CN110602416B (en) * 2019-09-06 2022-03-22 Oppo广东移动通信有限公司 Video processing method, terminal and computer readable storage medium
CN115098449A (en) * 2022-08-26 2022-09-23 荣耀终端有限公司 File cleaning method and electronic equipment

Similar Documents

Publication Publication Date Title
CN107798252B (en) A kind of file access method and mobile terminal
CN108304477A (en) A kind of document handling method and device
CN108762954A (en) A kind of object sharing method and mobile terminal
CN109032734A (en) A kind of background application display methods and mobile terminal
CN107608514A (en) Information processing method and mobile terminal
CN109445894A (en) A kind of screenshot method and electronic equipment
CN103533248A (en) Image processing method, terminal and system
CN108334265B (en) A kind of document handling method and mobile terminal
CN108111678B (en) A kind of information cuing method and mobile terminal
CN109194818A (en) A kind of information processing method and terminal
CN110109593A (en) A kind of screenshotss method and terminal device
CN109814968A (en) A kind of data inputting method, terminal device and computer readable storage medium
CN110308839A (en) A kind of file management method and terminal device
CN108898040A (en) A kind of recognition methods and mobile terminal
CN110309004A (en) The processing method and terminal of data
CN108833684A (en) A kind of information cuing method and terminal device
CN108170559A (en) A kind of data back up method and terminal
CN107992378B (en) A kind of document handling method and mobile terminal
CN108200263A (en) A kind of information processing method and device
CN109976844A (en) A kind of message display method and mobile terminal
CN109783722A (en) A kind of content outputting method and terminal device
CN109889756A (en) A kind of video call method and terminal device
CN109831582A (en) Non- response events processing method and terminal
CN109284146A (en) A kind of light application open method and mobile terminal
CN108536355A (en) A kind of message display method and mobile terminal

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180720