CN108563754A - Document handling method, device, mobile terminal and computer readable storage medium - Google Patents

Document handling method, device, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN108563754A
CN108563754A CN201810338785.1A CN201810338785A CN108563754A CN 108563754 A CN108563754 A CN 108563754A CN 201810338785 A CN201810338785 A CN 201810338785A CN 108563754 A CN108563754 A CN 108563754A
Authority
CN
China
Prior art keywords
file
file destination
delete operation
mobile terminal
directory information
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
CN201810338785.1A
Other languages
Chinese (zh)
Other versions
CN108563754B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810338785.1A priority Critical patent/CN108563754B/en
Publication of CN108563754A publication Critical patent/CN108563754A/en
Application granted granted Critical
Publication of CN108563754B publication Critical patent/CN108563754B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention relates to a kind of document handling method, device, mobile terminal and computer readable storage mediums.The above method, including:When detecting that application program executes delete operation, the file destination of the delete operation is obtained;Obtain the directory information of the file destination;When in the directory information including special sign position, judge whether the file format of the file destination is preset format;If file format is preset format, the delete operation is prompted.Above-mentioned document handling method, device, mobile terminal and computer readable storage medium can prevent the case where vital document is accidentally deleted, and reduce the risk of loss of data.

Description

Document handling method, device, mobile terminal and computer readable storage medium
Technical field
This application involves field of computer technology, more particularly to a kind of document handling method, device, mobile terminal and meter Calculation machine readable storage medium storing program for executing.
Background technology
With the rapid development of Internet technology, terminal is more and more important in the schedule life of people, and many pictures regard Frequently, all vital documents such as document (excel, txt, doc etc.) would generally be preserved in terminal.In traditional mode, meeting There is the problem of file is accidentally deleted by application program, causes loss of data.
Invention content
A kind of document handling method of the embodiment of the present application offer, device, mobile terminal and computer readable storage medium, can To prevent the case where vital document is accidentally deleted, the risk of loss of data is reduced.
A kind of document handling method, including:
When detecting that application program executes delete operation, the file destination of the delete operation is obtained;
Obtain the directory information of the file destination;
When in the directory information including special sign position, judge whether the file format of the file destination is default Format;
If file format is preset format, the delete operation is prompted.
A kind of document handling apparatus, including:
Detection module is operated, for when detecting that application program executes delete operation, obtaining the mesh of the delete operation Mark file;
Catalogue acquisition module, the directory information for obtaining the file destination;
Format judgment module, for when in the directory information including special sign position, judging the file destination Whether file format is preset format;
Reminding module prompts the delete operation if being preset format for file format.
A kind of mobile terminal, including memory and processor are stored with computer program, the calculating in the memory When machine program is executed by the processor so that the processor realizes method as described above.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor Method as described above is realized when row.
Above-mentioned document handling method, device, mobile terminal and computer readable storage medium, when detecting that application program holds When row delete operation, the file destination of delete operation is obtained, and obtains the directory information of the file destination, when being wrapped in directory information When position containing special sign, judge whether the file format of file destination is preset format, it is right if file format is preset format Delete operation is prompted, and can be protected to vital document, and the case where vital document is accidentally deleted is prevented, and reduces data The risk of loss.
Description of the drawings
Fig. 1 is the block diagram of mobile terminal in one embodiment;
Fig. 2 is the flow diagram of document handling method in one embodiment;
Fig. 3 is the interface schematic diagram prompted delete operation in one embodiment;
Fig. 4 is the flow diagram being transferred to file destination in one embodiment under temp directory;
Fig. 5 is the interface schematic diagram prompted delete operation in another embodiment;
Fig. 6 is the flow diagram of direct delete target file in one embodiment;
Fig. 7 is the flow diagram that directory information is written in one embodiment according to configuration file kernel file;
Fig. 8 is the block diagram of document handling apparatus in one embodiment;
Fig. 9 is the block diagram of document handling apparatus in another embodiment;
Figure 10 is the block diagram of mobile terminal in another embodiment.
Specific implementation mode
It is with reference to the accompanying drawings and embodiments, right in order to make the object, technical solution and advantage of the application be more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the application, not For limiting the application.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe herein various elements, But these elements should not be limited by these terms.These terms are only used to distinguish first element and another element.Citing comes It says, in the case where not departing from scope of the present application, the first client can be known as the second client, and similarly, can incite somebody to action Second client is known as the first client.First client and the second client both client, but it is not same visitor Family end.
Fig. 1 is the block diagram of mobile terminal in one embodiment.As shown in Figure 1, the mobile terminal includes passing through system bus Processor, memory, network interface, display screen and the input unit of connection.Wherein, memory may include that non-volatile memories are situated between Matter and processor.The non-volatile memory medium of mobile terminal is stored with operating system and computer program, the computer program To realize a kind of document handling method provided in the embodiment of the present application when being executed by processor.The processor is for providing calculating And control ability, support the operation of entire mobile terminal.Built-in storage in mobile terminal is in non-volatile memory medium The operation of computer program provides environment.The network interface of mobile terminal is used to carry out data transmission with other electronic equipments, than Such as server white list is obtained from server.The display screen of mobile terminal can be that liquid crystal display or electric ink are shown Screen etc., input unit can be the touch layer covered on display screen, can also be the button being arranged on mobile terminal case, track Ball or Trackpad can also be external keyboard, Trackpad or mouse etc..The mobile terminal can be mobile phone, tablet computer or Person's personal digital assistant or Wearable etc..It will be understood by those skilled in the art that structure shown in Fig. 1, only with The block diagram of the relevant part-structure of application scheme, does not constitute the limit for the mobile terminal being applied thereon to application scheme Fixed, specific mobile terminal may include either combining certain components than more or fewer components as shown in the figure or having Different component arrangements.
As shown in Fig. 2, in one embodiment, providing a kind of document handling method, including the following steps:
Step 210, when detecting that application program executes delete operation, the file destination of delete operation is obtained.
Mobile terminal can monitor the delete operation of each application program, and delete operation refers to the file to storage The operation deleted.The application program that mobile terminal is monitored may include system application and third-party application, wherein system application It is commonly referred to as the application developed by the manufacturer of mobile terminal, mobile terminal can carry system application, third party in manufacture Using being commonly referred to as by the application of tissue or the exploitations such as people other than manufacturer, user can move when using mobile terminal Third-party application is installed in dynamic terminal.
When application program needs to delete file, deletion function can be called.Mobile terminal can be to deleting function Calling is monitored, and when detecting that deleting function is called, can be explained and the application program for deleting function is called to execute deletion behaviour Make.Mobile terminal can obtain the application program called and delete function, and obtain the file destination of delete operation, what file destination referred to It is deleted file.The file destination for the delete operation that application program carries out can be one or more, can be phase identical text The file destination of part format can also be the file destination of different file formats.
Step 220, the directory information of file destination is obtained.
Mobile terminal can obtain the file belonging to each file destination, and the file belonging to file destination obtains Directory information, file directory can establish the correspondence of file name and physical address in storage space.The catalogue of file destination Information may include the folder name belonging to file destination, affiliated file storage address etc..The text for including in directory information Part catalogue can be first class catalogue, second-level directory or multistage catalogue etc..
Step 230, when in directory information including special sign position, judge whether the file format of file destination is default Format, if so, 240 are thened follow the steps, if it is not, thening follow the steps 250.
Whether it includes special sign position that mobile terminal can detect in directory information, which can be equivalent to anti-error delete Flag bit, special sign position can be used for indicating the file that the file under file directory is shielded, more important.Special sign Position can be in different ways indicated according to actual demand.
In one embodiment, mobile terminal can add special sign position by configuration file in file directory, configuration Can record in file has the configuration informations such as shielded file format, file type or file directory.File format may include but It is not limited to jpg, doc, gif etc., the suffix name of file format file available is indicated.File type may include but be not limited to figure Piece, video, audio etc..Mobile terminal can obtain configuration file, and according to the configuration information recorded in configuration file find with The corresponding file directory of configuration information can add special sign position in the file directory found.For example, remembering in configuration file Record has shielded file type, and mobile terminal can find the file directory for including the shielded file type, and wrap Special sign position is added in file directory containing the shielded file type.
If not including special sign position in directory information, it is not shielded file that the file destination, which can be explained, mobile whole End can directly delete the file destination.If including special sign position in directory information, mobile terminal can determine whether the text of file destination Whether part format is preset format, and preset format may refer to shielded file format.File destination can be read in mobile terminal File name, judge whether the file format of file destination is preset format further according to the suffix name for including in file name. First judge whether directory information includes special sign position, if including judging that the file format of file destination is behind special sign position again It is no to be detected from large to small, compared to direct for preset format to can determine whether file destination is shielded file Detection file format whether be preset format detection speed faster, detection efficiency can be improved.
Step 240, delete operation is prompted.
If the file format of file destination is not preset format, mobile terminal can direct delete target file.If target is literary The file format of part is preset format, and mobile terminal can prompt delete operation.The mode of prompt can be according to actual demand It is set, for example, prompt message can be shown on interface, can be shaken or play voice messaging and prompted Deng.Mobile terminal can prompt application program, the file destination etc. for carrying out delete operation.For example, can play suggestion voice " it was found that X applications delete your video " etc., but not limited to this.
In one embodiment, mobile terminal prompts delete operation, and user can be directed to prompt and select, can be with File or document retaining etc. are deleted in selection.Mobile terminal can receive the selection operation carried out for prompt, if selection operation selects Be to delete file, then mobile terminal delete target file can not directly can be deleted if selection operation selection is document retaining Except file destination, it can prevent vital document from accidentally being deleted.
Step 250, delete target file.
Fig. 3 is the interface schematic diagram prompted delete operation in one embodiment.As shown in figure 3, mobile terminal is examined It measures and executes delete operation using A, the file destination that can obtain the delete operation includes 6 photos.Mobile terminal can obtain this 6 The directory information of photo is opened, can detect in directory information includes special sign position, and the file format of 6 photos is default Format.Mobile terminal can prompt delete operation, can show prompt message 302 " it was found that A applications delete you on interface 6 photos ".
In the present embodiment, when detecting that application program executes delete operation, the file destination of delete operation is obtained, and The directory information for obtaining the file destination judges the file format of file destination when in directory information including special sign position Whether it is preset format, if file format is preset format, delete operation is prompted, vital document can be protected Shield, prevents the case where vital document is accidentally deleted, reduces the risk of loss of data.
As shown in figure 4, in one embodiment, in step 210 when detecting that application program executes delete operation, obtaining It is further comprising the steps of after the file destination of delete operation:
Step 402, file destination is transferred under temp directory, and records the catalogue letter of file destination before transfer Breath.
Mobile terminal detects that application program executes delete operation, can obtain the file destination of delete operation, and by target File is transferred under the temp directory being pre-created.Temp directory is the equal of an interim file, can be used for caching and delete The file destination of division operation.Access rights can be arranged to temp directory in mobile terminal, only have the application program of access rights It just may have access to temp directory.Optionally, mobile terminal can set access right of the application program to temp directory according to actual demand Limit, for example, can initialization system application have access rights, third-party application does not have access rights.Mobile terminal can also count The trust value of the trust value of each application program, application program can be determined by multiple and different factors, for example, user access Frequency, the service logic of application program, renewal frequency etc..The application program that trust value can be arranged more than threshold value has access right Limit, the application that trust value is less than or equal to threshold value do not have access rights etc., but not limited to this, other modes setting can also be used Access rights.
File destination is transferred under temp directory by mobile terminal, can record the catalogue letter of file destination before transfer Breath, the directory information of file destination before transfer may refer to file destination before transfer belonging to the corresponding mesh of file Record information.
Step 404, it when the duration that file destination is transferred to temp directory reaches duration threshold value, obtains file destination and is turning Directory information before shifting.
Mobile terminal can record the duration that file destination is transferred to temp directory, when file destination is transferred to temp directory Duration reach duration threshold value when, file destination can be handled, including delete target file or detection file destination whether For processing such as agent-protected files.Optionally, duration threshold value can be set according to actual demand, such as 5 minutes, 10 minutes etc.. Mobile terminal may also set up the processing opportunity handled the file destination under temp directory, for example, can be arranged when mobile whole When end is in charged state, batch processing is carried out to each file destination for including under temp directory, may also set up and work as movement eventually End carries out batch processing etc. in when putting out screen state to the file destination for including under temp directory, but not limited to this.It can improve The treatment effeciency of file destination simultaneously reduces power consumption.
In one embodiment, when the duration that file destination is transferred to temp directory reaches duration threshold value, mobile terminal The directory information of file destination before transfer can be obtained, when in directory information including special sign position, can determine whether target text Whether the file format of part is preset format.If the file format of file destination is preset format, mobile terminal can be grasped to deleting It is prompted.User can be directed to prompt and select.Mobile terminal can receive the selection operation carried out for prompt, if selection Operate selection is the first option, which can be the option for deleting file, then mobile terminal can delete temp directory Under file destination.If selection operation selection is the second option, which can be the option of document retaining, then moves File destination can be restored under catalogue corresponding with directory information before transfer by terminal, be restored to file destination.
Fig. 5 is the interface schematic diagram prompted delete operation in another embodiment.As shown in figure 5, mobile terminal It detects and executes delete operation using A, the file destination that can obtain the delete operation includes 6 photos.Mobile terminal can by this 6 Photo is transferred under temp directory, when the duration that 6 photos are transferred to temp directory reaches duration threshold value 3 minutes, is moved Dynamic terminal can obtain the directory information of 6 photos, and can detect in directory information includes special sign position, and 6 photos File format be preset format.Mobile terminal can prompt delete operation, and prompt message 502 can be shown on interface It " it was found that A applications delete your 6 photos, needs that you is helped to restore”.User can select for prompt message 502.When When the selection operation that mobile terminal receives is the first option 504,6 photos under temp directory can be deleted.When mobile whole When the selection operation that termination receives is the second option 506, which can be restored to and directory information pair before transfer Under the catalogue answered.
In the present embodiment, the file destination of delete operation can be cached by temp directory, when file destination turns When moving on to the duration arrival duration threshold value of temp directory, then file destination is handled, can further prevent occurring important The case where file is accidentally deleted reduces the risk of loss of data.
As shown in fig. 6, in one embodiment, in step 210 when detecting that application program executes delete operation, obtaining It is further comprising the steps of after the file destination of delete operation:
Step 602, the establishment application identities of file destination are extracted.
Application identities can be added in the file of establishment by application program in establishment file, and application identities can be answered With the title of program, number etc. can unique mark application program information.Application identities can also be using abstract, mobile terminal The application message of application program can be obtained, application message may include but be not limited to title, version number, developer, application type etc., Application abstract can be generated according to application message, and abstract will be applied to be used as application identities.Optionally, can be message using abstract Digest algorithm the 5th edition (Message Digest Algorithm 5, MD5) is made a summary, and can also be other algorithms abstract, not It is limited to this.
Step 604, when the application identities of application program are consistent with application identities are created, delete target file.
Mobile terminal can obtain the application identities for the application program for carrying out delete operation, and extract each mesh of delete operation The establishment application identities of file are marked, which is the application identities for the application program for creating file destination.It is mobile Terminal the application identities for the application program for carrying out delete operation can be compared with application identities are created, both judge whether one It causes.If the application identities for carrying out the application program of delete operation are consistent with application identities are created, establishment and delete target can be explained The application program of file is identical, and mobile terminal can direct delete target file.
If the application identities and the establishment application identities that carry out the application program of delete operation are inconsistent, explainable to create and delete Except the application program of file destination is different.Mobile terminal can detect whether file destination is shielded file, can determine whether target The directory information of file whether include special sign position, if including, further judge file destination file format whether be Preset format etc..If file destination is shielded file, mobile terminal can prompt delete operation.
In the present embodiment, when creating the application-consistent of file destination and delete target file, mesh is directly deleted File is marked, need not detect whether file destination is shielded file, detection number is reduced, detection efficiency can be improved and subtracted Few system power dissipation.
In one embodiment, in step 210 delete operation is obtained when detecting that application program executes delete operation After file destination, further include:When application program is present in white list, delete target file.
Mobile terminal can be stored with white list, and can record in white list has trusted application program.When mobile terminal is examined When measuring application program and being carrying out delete operation, the application identities of the application program can be obtained, and judge according to application identities The application program whether there is in white list.If application program is present in white list, mobile terminal can direct delete target file, Need not detect whether file destination is shielded file.
In one embodiment, white list may include local white list and high in the clouds white list, can record in the white list of high in the clouds There are trusted system application and third-party application.The developer of mobile terminal can adjust each application program in the market It grinds and tests, calculate the trust value of each application program, wherein trust value can be according to the service logic of application program, update frequency Rate, download user volume etc. are calculated.The developer of mobile terminal can be according to investigation and the test result timing update white name in high in the clouds It is single, trusted application program is added in white list beyond the clouds, the application program that trust value can be more than to trust threshold is added to In white list, the flexibility of white list is improved, the application program of white list is made to meet market.
Mobile terminal, with the presence or absence of before white list, can first obtain local in the application program for judging progress delete operation White list and high in the clouds white list, and local white list and high in the clouds white list are compared, judge whether the two is consistent.If local Application program in white list and the application program in the white list of high in the clouds are inconsistent, then can be subject to high in the clouds white list, according to cloud End white list is updated local white list, ensures synchronization between the two.Optionally, mobile terminal also can be in fixed time Local white list and high in the clouds white list are obtained, and carries out the synchronization between the two, for example, can be synchronized in the time of 4:00 AM, Or synchronized when mobile terminal-opening starts, but not limited to this.
It in the present embodiment, can direct delete target text when the application program for carrying out delete operation is present in white list Part need not detect whether file destination is shielded file, reduce detection number, can improve detection efficiency and reduce and be System power consumption.
As shown in fig. 7, in one embodiment, above-mentioned document handling method is further comprising the steps of:
Step 702, when mobile terminal-opening starts, configuration file is obtained.
When mobile terminal-opening starts, shielded file directory can be configured, in shielded file directory Middle addition special sign position.When mobile terminal-opening starts, mobile terminal can obtain configuration file, can record in configuration file There are the configuration informations such as shielded file format, file type or file directory.Optionally, configuration file may include being locally configured File and/or high in the clouds configuration file, local profile are stored in mobile terminal local, and high in the clouds configuration file is storable in service Device.Mobile terminal can obtain high in the clouds configuration file from server, and be carried out more to local profile according to high in the clouds configuration file Newly, ensure synchronization between the two.
Step 704, the directory information of addition special sign position is determined according to configuration file, and determining directory information is write Enter in kernel file.
After mobile terminal is updated local profile, addition special sign position can be determined according to local profile Directory information.Mobile terminal can find text corresponding with configuration information according to the configuration information recorded in local profile Part catalogue, and the directory information found is written in kernel file, special sign position is added in the directory information found. Mobile terminal directory information can be written in kernel file among starting up to this period for entering interface, can improve File detection efficiency.
When mobile terminal detects that application program executes delete operation, the catalogue of the file destination of delete operation can be obtained Information, and kernel file is read, judge that the directory information of file destination whether there is in kernel file, if being present in kernel text In part, then it can determine that directory information includes special sign position.
In the present embodiment, configuration file can be obtained in starting up, and according to configuration file by shielded file Catalogue is written in kernel file, can further prevent the case where vital document is accidentally deleted occur, reduce the risk of loss of data.
In one embodiment, a kind of document handling method is provided, is included the following steps:
Step (1) obtains the file destination of delete operation when detecting that application program executes delete operation.
In one embodiment, after step (1), further include:The establishment application identities of file destination are extracted, establishment is answered With the application identities for being identified as the application program for creating file destination;When the application identities and establishment application identities one of application program When cause, delete target file.
In one embodiment, after step (1), further include:When application program is present in white list, delete target File.
In one embodiment, white list includes local white list and high in the clouds white list;When application program be present in it is white When list, before delete target file, further include:Obtain local white list and high in the clouds white list;When local white list and high in the clouds When white list is inconsistent, local white list is updated according to high in the clouds white list.
Step (2), obtains the directory information of file destination.
In one embodiment, after step (1), further include:File destination is transferred under temp directory, and is recorded The directory information of file destination before transfer;Step (2), including:When the duration that file destination is transferred to temp directory reaches When duration threshold value, the directory information of file destination before transfer is obtained.
Step (3) judges whether the file format of file destination is default when in directory information including special sign position Format.
Step (4) prompts delete operation if file format is preset format.
In one embodiment, after step (4), further include:Receive the selection operation carried out for prompt;If selection Operate selection is the first option, then deletes the file destination under temp directory;If selection operation selection is the second option, File destination is restored under catalogue corresponding with directory information.
In one embodiment, above-mentioned document handling method further includes:When mobile terminal-opening starts, configuration is obtained File;The directory information of addition special sign position is determined according to configuration file, and kernel file is written into determining directory information In.
In the present embodiment, when detecting that application program executes delete operation, the file destination of delete operation is obtained, and The directory information for obtaining the file destination judges the file format of file destination when in directory information including special sign position Whether it is preset format, if file format is preset format, delete operation is prompted, vital document can be protected Shield, prevents the case where vital document is accidentally deleted, reduces the risk of loss of data.
It should be understood that although each step in above-mentioned each flow diagram is shown successively according to the instruction of arrow Show, but these steps are not the inevitable sequence indicated according to arrow to be executed successively.Unless expressly state otherwise herein, this There is no stringent sequences to limit for the execution of a little steps, these steps can execute in other order.Moreover, above-mentioned each stream At least part step in journey schematic diagram may include that either these sub-steps of multiple stages or stage be simultaneously for multiple sub-steps It is not necessarily and executes completion in synchronization, but can execute at different times, the execution in these sub-steps or stage Sequence is also not necessarily and carries out successively, but can with other steps either the sub-step of other steps or stage at least one Part executes in turn or alternately.
As shown in figure 8, in one embodiment, a kind of document handling apparatus 800 is provided, including operation detection module 810, Catalogue acquisition module 820, format judgment module 830 and reminding module 840.
Detection module 810 is operated, for when detecting that application program executes delete operation, obtaining the target of delete operation File.
Catalogue acquisition module 820, the directory information for obtaining file destination.
Format judgment module 830, for when in directory information including special sign position, judging the tray of file destination Whether formula is preset format.
Reminding module 840 prompts delete operation if being preset format for file format.
In the present embodiment, when detecting that application program executes delete operation, the file destination of delete operation is obtained, and The directory information for obtaining the file destination judges the file format of file destination when in directory information including special sign position Whether it is preset format, if file format is preset format, delete operation is prompted, vital document can be protected Shield, prevents the case where vital document is accidentally deleted, reduces the risk of loss of data.
As shown in figure 9, in one embodiment, above-mentioned document handling apparatus 800, in addition to include operation detection module 810, Catalogue acquisition module 820, format judgment module 830 and reminding module 840 further include shift module 850.
Shift module 850 for file destination to be transferred under temp directory, and records file destination before transfer Directory information.
Catalogue acquisition module 820 is additionally operable to, when the duration that file destination is transferred to temp directory reaches duration threshold value, obtain Take the directory information of file destination before transfer.
In one embodiment, above-mentioned document handling apparatus 800, in addition to including operation detection module 810, catalogue acquisition mould Block 820, format judgment module 830, reminding module 840 and shift module 850, further include operation receiving module, removing module and Recovery module.
Receiving module is operated, for receiving the selection operation carried out for prompt.
Removing module, if for selection operation selection be the first option, delete the file destination under temp directory.
File destination is restored to and directory information by recovery module if for selection operation selection being the second option Under corresponding catalogue.
In the present embodiment, the file destination of delete operation can be cached by temp directory, when file destination turns When moving on to the duration arrival duration threshold value of temp directory, then file destination is handled, can further prevent occurring important The case where file is accidentally deleted reduces the risk of loss of data.
In one embodiment, removing module is additionally operable to the establishment application identities of extraction file destination, when application program When application identities are consistent with application identities are created, delete target file, wherein it is to create answering for file destination to create application identities With the application identities of program.
In the present embodiment, when creating the application-consistent of file destination and delete target file, mesh is directly deleted File is marked, need not detect whether file destination is shielded file, detection number is reduced, detection efficiency can be improved and subtracted Few system power dissipation.
In one embodiment, removing module is additionally operable to when application program is present in white list, delete target file.
Optionally, white list includes local white list and high in the clouds white list.Above-mentioned document handling apparatus 800, in addition to including Operate detection module 810, catalogue acquisition module 820, format judgment module 830, reminding module 840, shift module 850, operation Receiving module, removing module and recovery module further include list acquisition module and update module.
List acquisition module, for obtaining local white list and high in the clouds white list.
Update module is used for when local white list and high in the clouds white list are inconsistent, according to high in the clouds white list to local white List is updated.
It in the present embodiment, can direct delete target text when the application program for carrying out delete operation is present in white list Part need not detect whether file destination is shielded file, reduce detection number, can improve detection efficiency and reduce and be System power consumption.
In one embodiment, above-mentioned document handling apparatus 800, in addition to including operation detection module 810, catalogue acquisition mould Block 820, format judgment module 830, reminding module 840, shift module 850, operation receiving module, removing module, recovery module, List acquisition module and update module further include writing module.
Writing module determines that addition is special for when mobile terminal-opening starts, obtaining configuration file according to configuration file Determine the directory information of flag bit, and will be in determining directory information write-in kernel file.
In the present embodiment, configuration file can be obtained in starting up, and according to configuration file by shielded file Catalogue is written in kernel file, can further prevent the case where vital document is accidentally deleted occur, reduce the risk of loss of data.
The embodiment of the present application also provides a kind of mobile terminals.As shown in Figure 10, for convenience of description, it illustrates only and this Apply for that the relevant part of embodiment, particular technique details are not disclosed, please refers to the embodiment of the present application method part.The movement is whole End can be include mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA), sale eventually The arbitrary terminal devices such as (Point of Sales, POS), vehicle-mounted computer, Wearable are held, are by mobile phone of mobile terminal Example:
Figure 10 is the block diagram with the part-structure of the relevant mobile phone of mobile terminal provided by the embodiments of the present application.Reference chart 10, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 1010, memory 1020, input unit 1030, display unit 1040, sensor 1050, voicefrequency circuit 1060, Wireless Fidelity (wireless fidelity, WiFi) module 1070, processor The components such as 1080 and power supply 1090.It will be understood by those skilled in the art that handset structure shown in Fig. 10 does not constitute opponent The restriction of machine may include either combining certain components or different components arrangement than illustrating more or fewer components.
Wherein, RF circuits 1010 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station After downlink information receives, handled to processor 1080;The data of uplink can also be sent to base station.In general, RF circuits include But be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 1010 can also be communicated with network and other equipment by radio communication.It is above-mentioned wireless Communication can use any communication standard or agreement, including but not limited to GSM, GPRS, CDMA, W-CDMA, long term evolution (Long Term Evolution, LTE), Email, short message service (Short Messaging Service, SMS) etc..
Memory 1020 can be used for storing software program and module, and processor 1080 is stored in memory by operation 1020 software program and module, to execute various function application and the data processing of mobile phone.Memory 1020 can be led To include program storage area and data storage area, wherein program storage area can storage program area, needed at least one function Application program (such as the application program of sound-playing function, application program of image player function etc.) etc.;It data storage area can Storage uses created data (such as audio data, address list etc.) etc. according to mobile phone.In addition, memory 1020 can wrap High-speed random access memory is included, can also include nonvolatile memory, for example, at least disk memory, a flash memories Part or other volatile solid-state parts.
Input unit 1030 can be used for receiving the number or character information of input, and generates and set with the user of mobile phone 1000 It sets and the related key signals of function control inputs.Specifically, input unit 1030 may include touch panel 1032 and other Input equipment 1034.Touch panel 1032, alternatively referred to as touch screen collect user on it or neighbouring touch operation (are compared Such as user is using finger, stylus any suitable object or attachment on touch panel 1032 or near touch panel 1032 Operation), and corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 1032 can Including both touch detecting apparatus and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and examine The signal that touch operation is brought is surveyed, touch controller is transmitted a signal to;Touch controller is received from touch detecting apparatus to be touched Information is touched, and is converted into contact coordinate, then gives processor 1080, and order that processor 1080 is sent can be received and added To execute.Furthermore, it is possible to realize touch panel using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves 1032.In addition to touch panel 1032, input unit 1030 can also include other input equipments 1034.Specifically, other are inputted Equipment 1034 can include but is not limited to one in physical keyboard, function key (such as volume control button, switch key etc.) etc. Kind is a variety of.
Display unit 1040 can be used for showing information input by user or be supplied to user information and mobile phone it is each Kind menu.Display unit 1040 may include display panel 1042.In one embodiment, liquid crystal display may be used (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, ) etc. OLED forms configure display panel 1042.In one embodiment, touch panel 1032 can cover display panel 1042, When touch panel 1032 detects on it or after neighbouring touch operation, processor 1080 is sent to determine touch event Type is followed by subsequent processing device 1080 and provides corresponding visual output on display panel 1042 according to the type of touch event.Although In Fig. 10, touch panel 1032 and display panel 1042 are to realize the input and input of mobile phone as two independent components Function, but in some embodiments it is possible to touch panel 1032 and display panel 1042 are integrated and are realized the input of mobile phone And output function.
Mobile phone 1000 may also include at least one sensor 1050, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring The light and shade of border light adjusts the brightness of display panel 1042, and proximity sensor can close display when mobile phone is moved in one's ear Panel 1042 and/or backlight.Motion sensor may include acceleration transducer, can detect all directions by acceleration transducer The size of upper acceleration can detect that size and the direction of gravity when static, the application that can be used to identify mobile phone posture is (such as horizontal Vertical screen switches), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, Other sensors such as hygrometer, thermometer, infrared sensor etc..
Voicefrequency circuit 1060, loud speaker 1062 and microphone 1064 can provide the audio interface between user and mobile phone.Sound The transformed electric signal of the audio data received can be transferred to loud speaker 1062 by frequency circuit 1060, by 1062 turns of loud speaker It is changed to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1064, by voicefrequency circuit Audio data is converted to after 1060 receptions, then by after the processing of audio data output processor 1080, can be sent out through RF circuits 1010 Another mobile phone is given, or audio data is exported to memory 1020 so as to subsequent processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1070 Part, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Figure 10 is shown WiFi module 1070, but it is understood that, and it is not belonging to must be configured into for mobile phone 1000, it can save as needed Slightly.
Processor 1080 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, By running or execute the software program and/or module that are stored in memory 1020, and calls and be stored in memory 1020 Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment, Processor 1080 may include one or more processing units.In one embodiment, processor 1080 can integrate application processor And modem, wherein the main processing operation system of application processor, user interface and application program etc.;Modem Main processing wireless communication.It is understood that above-mentioned modem can not also be integrated into processor 1080.For example, The processor 1080 can integrate application processor and baseband processor, baseband processor with and the composable tune such as other peripheral chips Modulator-demodulator.Mobile phone 1000 further includes the power supply 1090 (such as battery) powered to all parts, it is preferred that power supply can pass through Power-supply management system and processor 1080 are logically contiguous, to realize management charging, electric discharge, Yi Jigong by power-supply management system The functions such as consumption management.
In one embodiment, mobile phone 1000 can also include camera, bluetooth module etc..
In the embodiment of the present application, the processor 1080 included by the mobile terminal executes the calculating of storage on a memory Above-mentioned document handling method is realized when machine program.
In one embodiment, which may include memory 1020 and processor 1080, be deposited in memory 1020 Computer program is contained, when which is executed by processor 1080 so that processor executes following steps:
When detecting that application program executes delete operation, the file destination of delete operation is obtained;
Obtain the directory information of file destination;
When in directory information including special sign position, judge whether the file format of file destination is preset format;
If file format is preset format, delete operation is prompted.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, the calculating Machine program realizes above-mentioned document handling method when being executed by processor.
In one embodiment, a kind of computer program product including computer program is provided, when it sets in computer When standby upper operation so that computer equipment realizes above-mentioned document handling method when executing.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read In storage medium, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage is situated between Matter can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc..
Any reference of memory, storage, database or other media may include as used herein non-volatile And/or volatile memory.Suitable nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), Electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access Memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as It is static RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
Each technical characteristic of embodiment described above can be combined arbitrarily, to keep description succinct, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, it is all considered to be the range of this specification record.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, under the premise of not departing from the application design, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the protection domain of the application patent should be determined by the appended claims.

Claims (10)

1. a kind of document handling method, which is characterized in that including:
When detecting that application program executes delete operation, the file destination of the delete operation is obtained;
Obtain the directory information of the file destination;
When in the directory information including special sign position, judge whether the file format of the file destination is default lattice Formula;
If file format is preset format, the delete operation is prompted.
2. according to the method described in claim 1, it is characterized in that, the file destination for obtaining the delete operation it Afterwards, the method further includes:
The file destination is transferred under temp directory, and records the directory information of the file destination before transfer;
The directory information for obtaining the file destination, including:
When the duration that the file destination is transferred to the temp directory reaches duration threshold value, obtains the file destination and turning Directory information before shifting.
3. according to the method described in claim 2, it is characterized in that, it is described the delete operation is prompted after, institute The method of stating further includes:
Receive the selection operation carried out for prompt;
If the selection operation selection is the first option, the file destination under the temp directory is deleted;
If the selection operation selection is the second option, the file destination is restored to corresponding with the directory information Under catalogue.
4. according to the method described in claim 1, it is characterized in that, the file destination for obtaining the delete operation it Afterwards, the method further includes:
The establishment application identities of the file destination are extracted, the establishment application identities are to create the application journey of the file destination The application identities of sequence;
When the application identities of the application program are consistent with the establishment application identities, the file destination is deleted.
5. according to the method described in claim 1, it is characterized in that, the file destination for obtaining the delete operation it Afterwards, the method further includes:
When the application program is present in white list, the file destination is deleted.
6. according to the method described in claim 5, it is characterized in that, the white list includes the white name of local white list and high in the clouds It is single;
Described when the application program is present in white list, before deleting the file destination, the method further includes:
Obtain local white list and high in the clouds white list;
When the local white list and the high in the clouds white list are inconsistent, according to the high in the clouds white list to the white name in the local Singly it is updated.
7. method according to any one of claims 1 to 6, which is characterized in that the method further includes:
When mobile terminal-opening starts, configuration file is obtained;
The directory information of addition special sign position is determined according to configuration file, and kernel file is written into determining directory information In.
8. a kind of document handling apparatus, which is characterized in that including:
Detection module is operated, the target text for when detecting that application program executes delete operation, obtaining the delete operation Part;
Catalogue acquisition module, the directory information for obtaining the file destination;
Format judgment module, for when in the directory information including special sign position, judging the file of the file destination Whether format is preset format;
Reminding module prompts the delete operation if being preset format for file format.
9. a kind of mobile terminal, including memory and processor, computer program, the computer are stored in the memory When program is executed by the processor so that the processor realizes the method as described in claim 1 to 7 is any.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The method as described in claim 1 to 7 is any is realized when being executed by processor.
CN201810338785.1A 2018-04-16 2018-04-16 File processing method and device, mobile terminal and computer readable storage medium Expired - Fee Related CN108563754B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810338785.1A CN108563754B (en) 2018-04-16 2018-04-16 File processing method and device, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810338785.1A CN108563754B (en) 2018-04-16 2018-04-16 File processing method and device, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108563754A true CN108563754A (en) 2018-09-21
CN108563754B CN108563754B (en) 2021-09-28

Family

ID=63535235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810338785.1A Expired - Fee Related CN108563754B (en) 2018-04-16 2018-04-16 File processing method and device, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108563754B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109819014A (en) * 2018-12-14 2019-05-28 平安普惠企业管理有限公司 Project dispositions method, device, computer equipment and storage medium
CN111459385A (en) * 2020-03-31 2020-07-28 维沃移动通信有限公司 Information display method and electronic equipment
CN112099822A (en) * 2020-08-26 2020-12-18 华人运通(江苏)技术有限公司 File update reminding method, device, equipment and storage medium
CN112995015A (en) * 2019-12-17 2021-06-18 腾讯科技(深圳)有限公司 Message sending method, device, terminal and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08202603A (en) * 1995-01-26 1996-08-09 Hitachi Ltd Document preparing device and document file compiling method
JP2008052643A (en) * 2006-08-28 2008-03-06 Canon Inc Document processing system, and method for controlling document processing
CN103838843A (en) * 2014-03-03 2014-06-04 联想(北京)有限公司 File processing method and electronic equipment
CN103955421A (en) * 2014-05-06 2014-07-30 珠海市君天电子科技有限公司 Method and system for file deletion
CN105740455A (en) * 2016-02-04 2016-07-06 北京金山安全软件有限公司 Picture deleting method and device and electronic equipment
CN106709034A (en) * 2016-12-29 2017-05-24 广东欧珀移动通信有限公司 File protection method and apparatus, and terminal
CN106991130A (en) * 2017-03-07 2017-07-28 广东欧珀移动通信有限公司 A kind of document handling method, device and intelligent terminal
CN107423369A (en) * 2017-07-01 2017-12-01 珠海格力电器股份有限公司 A kind of method and device for handling file to be deleted
CN107491482A (en) * 2017-07-12 2017-12-19 维沃移动通信有限公司 A kind of reminding method and mobile terminal
CN107506642A (en) * 2017-08-10 2017-12-22 四川长虹电器股份有限公司 The method and system for preventing file from being damaged by malicious operation behavior
CN107609027A (en) * 2017-08-08 2018-01-19 捷开通讯(深圳)有限公司 The anti-deleted marker position of file is set and prevents from deleting the method and device of file by mistake
CN107766549A (en) * 2017-10-31 2018-03-06 珠海市魅族科技有限公司 Text delet method and device, terminal installation and readable storage medium storing program for executing

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08202603A (en) * 1995-01-26 1996-08-09 Hitachi Ltd Document preparing device and document file compiling method
JP2008052643A (en) * 2006-08-28 2008-03-06 Canon Inc Document processing system, and method for controlling document processing
CN103838843A (en) * 2014-03-03 2014-06-04 联想(北京)有限公司 File processing method and electronic equipment
CN103955421A (en) * 2014-05-06 2014-07-30 珠海市君天电子科技有限公司 Method and system for file deletion
CN105740455A (en) * 2016-02-04 2016-07-06 北京金山安全软件有限公司 Picture deleting method and device and electronic equipment
CN106709034A (en) * 2016-12-29 2017-05-24 广东欧珀移动通信有限公司 File protection method and apparatus, and terminal
CN106991130A (en) * 2017-03-07 2017-07-28 广东欧珀移动通信有限公司 A kind of document handling method, device and intelligent terminal
CN107423369A (en) * 2017-07-01 2017-12-01 珠海格力电器股份有限公司 A kind of method and device for handling file to be deleted
CN107491482A (en) * 2017-07-12 2017-12-19 维沃移动通信有限公司 A kind of reminding method and mobile terminal
CN107609027A (en) * 2017-08-08 2018-01-19 捷开通讯(深圳)有限公司 The anti-deleted marker position of file is set and prevents from deleting the method and device of file by mistake
CN107506642A (en) * 2017-08-10 2017-12-22 四川长虹电器股份有限公司 The method and system for preventing file from being damaged by malicious operation behavior
CN107766549A (en) * 2017-10-31 2018-03-06 珠海市魅族科技有限公司 Text delet method and device, terminal installation and readable storage medium storing program for executing

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109819014A (en) * 2018-12-14 2019-05-28 平安普惠企业管理有限公司 Project dispositions method, device, computer equipment and storage medium
CN109819014B (en) * 2018-12-14 2022-10-25 平安普惠企业管理有限公司 Project deployment method and device, computer equipment and storage medium
CN112995015A (en) * 2019-12-17 2021-06-18 腾讯科技(深圳)有限公司 Message sending method, device, terminal and storage medium
CN112995015B (en) * 2019-12-17 2022-07-05 腾讯科技(深圳)有限公司 Message sending method, device, terminal and storage medium
CN111459385A (en) * 2020-03-31 2020-07-28 维沃移动通信有限公司 Information display method and electronic equipment
CN111459385B (en) * 2020-03-31 2022-05-17 维沃移动通信有限公司 Information display method and electronic equipment
CN112099822A (en) * 2020-08-26 2020-12-18 华人运通(江苏)技术有限公司 File update reminding method, device, equipment and storage medium
CN112099822B (en) * 2020-08-26 2023-09-15 华人运通(江苏)技术有限公司 File update reminding method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN108563754B (en) 2021-09-28

Similar Documents

Publication Publication Date Title
CN106557330B (en) Method and device for processing notification information of notification bar of mobile terminal system and mobile terminal
CN103616981B (en) application processing method, device and mobile terminal
CN108549698A (en) Document handling method, device, mobile terminal and computer readable storage medium
CN107329985B (en) Page collection method and device and mobile terminal
CN108563754A (en) Document handling method, device, mobile terminal and computer readable storage medium
CN103631580B (en) Method and device for generating theme icon
CN103699409B (en) Awakening state switching-in method, device and system for electronic device
CN103327189A (en) Method and device for uploading, browsing and deleting pictures
CN108241703B (en) Webpage data transmission method and device
CN107943417A (en) Image processing method, terminal, computer-readable storage medium and computer program
CN103713943B (en) Native terminal operating system based application function realization method and device
CN106681667A (en) Picture display method and device and mobile terminal
CN106951492B (en) File searching method and device and electronic equipment
CN108363817A (en) Document handling method, device, mobile terminal and computer readable storage medium
CN103491245A (en) Method and device for storing short messages and terminal equipment
US20210099566A1 (en) Dialing method and mobile terminal
CN104133752B (en) The method for supervising of operating platform and device
CN108509788A (en) Information sharing method and device, computer readable storage medium, terminal
CN108549576A (en) File monitor method, apparatus, electronic equipment and storage medium
CN104571778A (en) Lock screen picture setting method and device
CN107592409A (en) Application control method and device
CN104424203A (en) Method and system for viewing photo sharing state in mobile device
CN105653394B (en) The method and apparatus of data backup
CN110753914B (en) Information processing method, storage medium and mobile terminal
CN106682189A (en) Filename display method and device

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210928