Summary of the invention
For above-mentioned defect, the object of the present invention is to provide a kind of file restoration methods and system, the file that it can be searched easily and recover to be moved and/or delete.
To achieve these goals, the invention provides a kind of file restoration methods, described method comprises:
Obtain the source-information of file;
Record described file by operation information;
According to default, arrange, search or recover described file.
According to file restoration methods of the present invention, the movement that is comprised described file by operation information, deletion and the modification information of described file;
The described source-information step of obtaining file comprises:
Judge that described file is local file or external file;
If described file is external file, obtain source path and the file name of described file;
Described record being comprised by operation information step of described file:
Record the initial and final location paths of the movement of described file;
Before recording all modifications of described file and amended title.
According to file restoration methods of the present invention, described basis is default to be arranged, and searches or the step of recovering described file comprises:
If described file is local file, according to the up-to-date path of depositing of described file, recover described file;
If described file is external file, according to the source download path of described file, recover described file.
According to file restoration methods of the present invention, described external file comprises the file obtaining from External memory equipment and/or the file obtaining from network side;
The described source download path according to described file recovers described file step and comprises:
If described file is to obtain from External memory equipment, point out user to insert External memory equipment;
If described file is to obtain from network side, point out user access network to obtain described file.
According to file restoration methods of the present invention, described method also comprises:
The default file type that needs the described file of recovery; And/or
The default action type that needs the described file of recovery.
The present invention also provides a kind of file recovery system, comprising:
Acquisition of information module, for obtaining the source-information of file;
Operation note module, for record described file by operation information;
File recovers module, for arranging according to default, searches or recovers described file.
According to file recovery system of the present invention, the movement that is comprised described file by operation information, deletion and the modification information of described file;
Described acquisition of information module comprises:
Judgement submodule, for judging that described file is local file or external file;
Obtain submodule, while being external file for described file, obtain source path and the file name of described file;
Described operation note module comprises:
The first record sub module, for recording the initial and final location paths of the movement of described file;
The second record sub module, for before recording all modifications of described file and amended title.
According to file recovery system of the present invention, described file recovers module and is further used for:
When described file is local file, according to the path of depositing that described file is up-to-date, recover described file;
When described file is external file, according to the source download path of described file, recover described file.
According to file recovery system of the present invention, described external file comprises the file obtaining from External memory equipment and/or the file obtaining from network side;
Described file recovers module and comprises:
The first prompting submodule, is while obtaining from External memory equipment for described file, and prompting user inserts External memory equipment;
The second prompting submodule, is while obtaining from network side for described file, and prompting user access network obtains described file.
According to file recovery system of the present invention, described system also comprises that type arranges module, for the default file type that needs the described file of recovery; And/or
The default action type that needs the described file of recovery.
The present invention is by obtaining the source-information of file, record described file by operation information, make user can navigate to fast the up-to-date deposit position of file, and intelligence is recorded the source path of file, once file is deleted, user can navigate to source path, and intelligence is recovery file again fast.Preferably, the present invention can also monitor the rename situation of file, can search easily the file being modified.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, the invention provides a kind of file recovery system, thissystem 100 can be the software unit that is built in mobile terminal, hardware cell or software and hardware combining unit.Mobile terminal can be mobile phone, PDA(Personal Digital Assistant, personal digital assistant), palm PC etc.Thisdocument recovery system 100 comprises that acquisition ofinformation module 10,operation note module 20 and file recovermodule 30, wherein:
Acquisition ofinformation module 10, for obtaining the source-information of file.File described in the present invention can be the file carrying in terminal, such as preset application program, can be also the file obtaining from outside, such as obtaining by External memory equipment, or by the file that short-distance wireless communication transmits, the means such as network are obtained.Acquisition ofinformation module 10 can record relevant sources information and the file name of these files.
Operation note module 20, for record described file by operation information.Concrete, file by operation information, can be comprised the information such as establishment, movement, deletion and rename of file.Such as, if movement (shearing or copy) has occurred certain file,operation note module 20 records the path that it moves.Meanwhile, if modification has also occurred its filename, record the modification information of its filename, such as title and the amended title before revising.Preferably, in embodiments of the invention, a preset record space, for recording source-information, routing information and the rename information etc. of above-mentioned file.
File recoversmodule 30, for arranging according to default, searches or recovers described file.If user starts to search and is moved or during the file of rename, in monitoring window, input the file name in impression,system 100 is searched for according to title similarity, if search for successfully, window shows the various change mobile statuss of this document, and the up-to-date path of depositing is provided.If file is deleted, point out file deleted, and provide restoration path according to file type, user can recover deleted file according to prompting.
The present invention is by the mobile status of monitoring mobile terminal document, user can be navigated to be fast moved or the up-to-date deposit position of deleted file, and intelligence recorded the source path of file by mistake; Once file is moved or deletes, system can navigate to file source path, and intelligence is obtained file fast again.Meanwhile, the rename situation of monitoring file, has made file name change and also can arrive the file needing by fast search.
Referring to Fig. 2, in another embodiment of the present invention, described acquisition ofinformation module 10 comprises again:
Judgement submodule 11, for judging that described file is local file or external file, if external file is transferred to obtainsubmodule 12 and processed.It should be noted that, the files that before opening before local file is terminal and dispatches from the factory or byfile recovery system 100 of the present invention there have been terminal, external file is file that network is downloaded, that miscellaneous equipment transmits.The judgement of local file and external file judged by the opening time ofsystem 100 of the present invention, if before file is system unlatching, belongs to local file, otherwise be judged as external file.
Obtainsubmodule 12, while being external file for described file, obtain source path and the file name of described file.When local file is the intrinsic file of terminal, without obtaining its source, path, therefore this place only obtains the source path of external file.
Describedoperation note module 20 comprises:
The firstrecord sub module 21, for recording the initial and final location paths of the movement of described file.A file may be moved repeatedly in application process, thereby produces a plurality of paths, and the present invention, by the firstrecord sub module 21 initial and final path that only log file moves, more easily locates this document when itssystem 100 is searched.
The secondrecord sub module 22, for before recording all modifications of described file and amended title.In concrete application, the title of a file may be modified repeatedly, and the secondrecord sub module 22 can record before all modifications of this document and amended title, when user need to look for this document, the filename that only need to search for source filename or change midway, can navigate to this document.
When file recoversmodule 30 and is further used for described file and is local file, according to the path of depositing that described file is up-to-date, recover described file; And described file is while being external file, according to the source download path of described file, recovers described file.As shown in Figure 3A, through " defendance Diaoyu Island " file of shearing manipulation, user is after search, andsystem 100 provides its original path and up-to-date path, makes user directly can get this document.Meanwhile, the key word according to search, also has other associated documents list selection for reference.If source document is deleted, indicate deletion state, as shown in Figure 3 B.
Preferably, file recoversmodule 30 and comprises the first promptingsubmodule 31 and thesecond prompting submodule 32, when the deleted rear execution recovery operation of external file:
Thefirst prompting submodule 31, is while obtaining from External memory equipment for described file, and prompting user inserts External memory equipment.Concrete, file is while copying mobile terminal to from external storage device, first detecting file has or not peripheral hardware access and has or not file to move to this locality from peripheral hardware, if had, after file copy, record at once the source file path of copy, the filename after copy, if file is deleted, can navigate to the path of peripheral apparatus, user can insert peripheral hardware according to prompting, if path obtains successfully, get final product automatic acquisition this document, as shown in Fig. 4 A~4D, user can enter by touch the new position of described file.
Thesecond prompting submodule 32, is while obtaining from network side for described file, and prompting user access network obtains described file.Concrete, if file is the resource of downloading from network side, complete when file download,system 100 records source download path and the filename of this document at once, and preserves as raw readings; Monitor in real time whether filename is revised and whether file is moved (copy, shear and delete), if having, revise or be moved, record and preserve; When user need to look for this document, the filename that only need to search for source filename or change midway, can navigate to this document.If file is deleted, can locating source file download path, user can, according to prompting download path, regain resource file, as shown in Fig. 5 A~5D.
Need to illustrate, if mobile terminal can not be connected to original External memory equipment or network side,system 100 is recovered unsuccessfully by the first promptingsubmodule 31 and thesecond prompting submodule 32 promptings.
If file passes through the transmission such as WIFI, bluetooth or NFC for other mobile terminals, same, after file transmission is complete, start to record source file title, the unique title of source file terminal, address etc., once file is deleted, when user needs file again, mobile phone attempts connecting source file terminal by WIFI, bluetooth, NFC automatically.
Further, in the present embodiment,file recovery system 100 also comprises that type arrangesmodule 40, for the default file type that needs the described file of recovery; And/or the default action type that needs the described file of recovery.Due in actual applications, the application of mobile terminal can produce the movement of a lot of temporary files, for the operation ofsimplification system 100, the present invention arrangesmodule 40 setting by type can operated file type, makes wherebysystem 100 only the file of fixed type be carried out to true-time operation.Certainly, also can be distinguished by the action type of file, such as, only, when file is sheared or delete, just, to this document operation, reduce whereby the lengthy and tedious work ofsystem 100.
Referring to Fig. 6, the invention provides a kind of file restoration methods, it can be realized bysystem 100 as shown in Figure 1, and the method comprises:
Step S601, obtains the source-information of file.File described in the present invention can be the file carrying in terminal, such as preset application program, can be also the file obtaining from outside, such as obtaining by External memory equipment, or by the file that short-distance wireless communication transmits, the means such as network areobtained.By system 100, can record relevant sources information and the file name of these files.
Step S602, record described file by operation information.Concrete, file by operation information, can be comprised the information such as establishment, movement, deletion and rename of file.Such as, if movement (shearing or copy) has occurred certain file,system 100 records its path of moving.Meanwhile, if modification has also occurred its filename, record the modification information of its filename, such as title and the amended title before revising.Preferably, in embodiments of the invention, a preset record space, for recording source-information, routing information and the rename information etc. of above-mentioned file.
Step S603, arranges according to default, searches or recovers described file.If user starts to search and is moved or during the file of rename, in monitoring window, input the file name in impression,system 100 is searched for according to title similarity, if search for successfully, window shows the various change mobile statuss of this document, and the up-to-date path of depositing is provided.If file is deleted, point out file deleted, and provide restoration path according to file type, user can recover deleted file according to prompting.
The present invention is by the mobile status of monitoring mobile terminal document, user can be navigated to be fast moved or the up-to-date deposit position of deleted file, and intelligence recorded the source path of file by mistake; Once file is moved or deletes, system can navigate to file source path, and intelligence is obtained file fast again.Meanwhile, the rename situation of monitoring file, has made file name change and also can arrive the file needing by fast search.
Referring to Fig. 7, the file restoration methods that another embodiment of the present invention provides, it can be realized bysystem 100 as shown in Figure 2, and the method comprises the steps:
Step S701, the default file type that needs the described file of recovery; And/or the default action type that needs the described file of recovery.By this step, can limit operated type, the lengthy and tedious operation of minimizingsystem 100.
Step S702, judges that described file is local file or external file, and described external file comprises the file obtaining from External memory equipment and/or the file obtaining from network side.If external file, performs step S703, if local file performs step S704.
Step S703, obtains source path and the file name of described file.
Step S704, records the initial and final location paths of the movement of described file.A file may be moved repeatedly in application process, thereby produces a plurality of paths, and the present invention, by the firstrecord sub module 21 initial and final path that only log file moves, more easily locates this document when itssystem 100 is searched.
Step S705, before recording all modifications of described file and amended title.In concrete application, the title of a file may be modified repeatedly, and the secondrecord sub module 22 can record before all modifications of this document and amended title, when user need to look for this document, the filename that only need to search for source filename or change midway, can navigate to this document.
Step S706, described file is local file, according to the path of depositing that described file is up-to-date, recovers described file.If local file is deleted, it is deleted for mark.
Step S707, described file is to obtain from External memory equipment, points out user to insert External memory equipment.Concrete, file is while copying mobile terminal to from external storage device, first detecting file has or not peripheral hardware access and has or not file to move to this locality from peripheral hardware, if had, after file copy, record at once the source file path of copy, the filename after copy, if file is deleted, can navigate to the path of peripheral apparatus, user can insert peripheral hardware according to prompting, if path obtains successfully, get final product automatic acquisition this document, user can enter by touch the new position of described file.
Step S708, described file is to obtain from network side, points out user access network to obtain described file.Concrete, if file is the resource of downloading from network side, complete when file download,system 100 records source download path and the filename of this document at once, and preserves as raw readings; Monitor in real time whether filename is revised and whether file is moved (copy, shear and delete), if having, revise or be moved, record and preserve; When user need to look for this document, the filename that only need to search for source filename or change midway, can navigate to this document.If file is deleted, can locating source file download path, user can, according to prompting download path, regain resource file.
In sum, the present invention is by obtaining the source-information of file, record described file by operation information, make user can navigate to fast the up-to-date deposit position of file, and intelligence is recorded the source path of file, once file is deleted, user can navigate to source path, and intelligence is recovery file again fast.Preferably, the present invention can also monitor the rename situation of file, can search easily the file being modified.
Certainly; the present invention also can have other various embodiments; in the situation that not deviating from spirit of the present invention and essence thereof; those of ordinary skill in the art are when making according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.