CN107590233A - A kind of file management method and device - Google Patents
A kind of file management method and device Download PDFInfo
- Publication number
- CN107590233A CN107590233A CN201710800638.7A CN201710800638A CN107590233A CN 107590233 A CN107590233 A CN 107590233A CN 201710800638 A CN201710800638 A CN 201710800638A CN 107590233 A CN107590233 A CN 107590233A
- Authority
- CN
- China
- Prior art keywords
- file
- storage region
- hunting zone
- storage
- header 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
Links
- 238000007726 management method Methods 0.000 title claims abstract description 24
- 230000001186 cumulative effect Effects 0.000 claims 2
- 238000000034 method Methods 0.000 abstract description 12
- 238000011084 recovery Methods 0.000 abstract description 8
- 238000004458 analytical method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000013480 data collection Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 1
- 239000012634 fragment Substances 0.000 description 1
- 238000013467 fragmentation Methods 0.000 description 1
- 238000006062 fragmentation reaction Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention provides a kind of file management method and device, the above method and comprised the following steps:Obtain and carry target keywords and the File header information of file and according to the File header information in the storage region, obtain file type;According to content characteristic corresponding to the file type, it is determined that target storage corresponding with file field parameter;According to the file size of acquisition, the hunting zone value of storage region is determined;According to the target storage field parameter, the file in the space that storage region is hunting zone value is obtained.Above-mentioned technical proposal provides fragmented file in a kind of data recovery and collects matching process, recovers the ineffective present situation of integrality in the destroyed rear, fragmented file of file index so as to avoid current file recovery software.
Description
Technical field
The invention belongs to field of computer technology, more particularly to a kind of file management method and device.
Background technology
With the rapid development of Internet technology, the network attack number that computer is subjected to also gradually increases, and this is also to make
The main reason for being lost into computer Chinese part.
It is generally broken using file is found by scanning directory when carrying out loss file access pattern using file recovery software
Piece, file is then assembled by file fragmentation, but be difficult to give for change to lose in this way in the case where catalogue is destroyed
The file of mistake.
Therefore, there is an urgent need to provide a kind of package management file to solve above-mentioned technical problem.
The content of the invention
The present invention provides a kind of file management method and device, to solve the above problems.
The embodiment of the present invention provides a kind of file management method, comprises the following steps:Obtain and carry target keywords and position
In file in storage region File header information and according to the File header information, obtain file type;
According to content characteristic corresponding to the file type, it is determined that target storage corresponding with file field parameter;
According to the file size of acquisition, the hunting zone value of storage region is determined;
According to the target storage field parameter, the file in the space that storage region is hunting zone value is obtained.
The embodiment of the present invention also provides a kind of document management apparatus, including processor, is adapted for carrying out each instruction;Storage is set
Standby, suitable for storing a plurality of instruction, the instruction is suitable to be loaded and performed by the processor;
Obtain and carry target keywords and be located at the File header information of file in storage region and believed according to the file header
Breath, obtain file type;
According to content characteristic corresponding to the file type, it is determined that target storage corresponding with file field parameter;
According to the file size of acquisition, the hunting zone value of storage region is determined;
According to the target storage field parameter, the file in the space that storage region is hunting zone value is obtained.
Technical scheme provided in an embodiment of the present invention:Obtain and carry target keywords and positioned at the text of file in storage region
Part header and according to the File header information, obtains file type;According to content characteristic corresponding to the file type, it is determined that
Target storage corresponding with file field parameter;According to the file size of acquisition, the hunting zone value of storage region is determined;
According to the target storage field parameter, the file in the space that storage region is hunting zone value is obtained.
Above-mentioned technical proposal provides fragmented file in a kind of data recovery and collects matching process, so as to avoid current file
Recover the present situation that software is after file index is destroyed, fragmented file recovery integrality is ineffective.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 show the file management schematic diagram of the embodiment of the present invention 1;
Fig. 2 show the file management method process chart of the embodiment of the present invention 2;
Fig. 3 show the document management apparatus structure chart of the embodiment of the present invention 3.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting
In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
The invention provides fragmented file in a kind of data recovery to collect matching process, so as to avoid current file from recovering soft
For part after file index is destroyed, fragmented file recovers the ineffective present situation of integrality.
Fig. 1 show the file management schematic diagram of the embodiment of the present invention 1, comprises the following steps:
Step 101:Retrieving:According to keyword match scheme, the file header in retrieval fragmented file region;
Step 102:Resolving:The information that the file header obtained according to retrieving includes, analysis this document location
The address section in domain;
Step 103:Position fixing process:Based on different content feature, file storage delimited, determines that the target of this document is deposited
Storage area field parameter;
Step 104:Collection process:The target storage field parameter obtained according to position fixing process, data storage before and after retrieval
The content in region, realize the collection of fragmented file.
This method can greatly reduce the mistake that the raw data collection stage of fragmented file recovery is likely to occur, and make scattered
File collection matching becomes efficient, accurate.
It is as follows to implement step:
1) file header of the file to be searched for is retrieved, due to the especially specific form of file header, keyword can be passed through
The method matched somebody with somebody, is retrieved in storage region, identifies whether the data block includes key message;
2) information included according to the file header being retrieved, the address section of analysis this document region.Generally come
Say, the binary sequence of file header can include many attribute informations related to this document., can by analyzing these attribute informations
To know the file type of this document, the form of end-of-file has also been known that, has then positioned end-of-file, estimation obtains this document
Size.If more than one file is contained in the region, set of variables (Ai) is set to carry out warehouse to the key message of different files
Storage;
3) the different content feature based on different file types, the scope that this document may store delimited, locks this document
" target storage domain " (TargetArea) parameter.Information in comprehensive analysis file and end-of-file, different files can be obtained
Size.If file i size is Ai.TargetArea, all Ai.TargetArea sum is stored by accumulator S, also
The area size is determined;
4) according to target storage field parameter, retrieval storage region is the data content in S space, with reference in file header
Correlation attribute information, realize the collection of fragmented file.File i fragment content is stored in Ai different attribute item, classification
It is collected.
In summary, the present invention can greatly reduce the mistake that the raw data collection stage of fragmented file recovery is likely to occur
By mistake, fragmented file is collected matching becomes efficient, accurate.
Fig. 2 show the file management method process chart of the embodiment of the present invention 2, comprises the following steps:
Step 201:Obtain and carry target keywords and the File header information of file and according to described in the storage region
File header information, obtain file type;
Further, the file attribute in the File header information, file type is obtained.
Step 202:According to content characteristic corresponding to the file type, it is determined that target storage corresponding with the file
Field parameter;
Step 203:According to the file size of acquisition, the hunting zone value of storage region is determined;
Further, according to the file type, end-of-file information is determined;
According to the File header information, the end-of-file information, file size is obtained.
Especially, step 202, the no strict time sequencing of execution of step 203, can successively perform (can first hold
Row step 202, then step 203) is performed, it can also perform simultaneously.
Further, the file is one or more.
Preferably, if the file is multiple, the search model by accumulator to storage region corresponding to each file
Enclose value to be added up, it is determined that the hunting zone value of final storage region.
Step 204:According to the target storage field parameter, the text in the space that storage region is hunting zone value is obtained
Part.
Fig. 3 show the document management apparatus structure chart of the embodiment of the present invention 3, including processor, is adapted for carrying out each instruction;
Storage device, suitable for storing a plurality of instruction, the instruction is suitable to be loaded and performed by the processor:
Obtain and carry target keywords and be located at the File header information of file in storage region and believed according to the file header
Breath, obtain file type;
According to content characteristic corresponding to the file type, it is determined that target storage corresponding with file field parameter;
According to the file size of acquisition, the hunting zone value of storage region is determined;
According to the target storage field parameter, the file in the space that storage region is hunting zone value is obtained.
Further, the file attribute in the File header information, file type is obtained.
Further, according to the file type, end-of-file information is determined;
According to the File header information, the end-of-file information, file size is obtained.
Further, the file is one or more.
Preferably, if the file is multiple, the search model by accumulator to storage region corresponding to each file
Enclose value to be added up, it is determined that the hunting zone value of final storage region.
Technical scheme provided in an embodiment of the present invention:Obtain and carry target keywords and positioned at the text of file in storage region
Part header and according to the File header information, obtains file type;According to content characteristic corresponding to the file type, it is determined that
Target storage corresponding with file field parameter;According to the file size of acquisition, the hunting zone value of storage region is determined;
According to the target storage field parameter, the file in the space that storage region is hunting zone value is obtained.
Above-mentioned technical proposal provides fragmented file in a kind of data recovery and collects matching process, so as to avoid current file
Recover the present situation that software is after file index is destroyed, fragmented file recovery integrality is ineffective.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (10)
1. a kind of file management method, it is characterised in that comprise the following steps:
Obtain and carry target keywords and the File header information of file and according to the File header information in the storage region, obtain
Obtain file type;
According to content characteristic corresponding to the file type, it is determined that target storage corresponding with file field parameter;
According to the file size of acquisition, the hunting zone value of storage region is determined;
According to the target storage field parameter, the file in the space that storage region is hunting zone value is obtained.
2. file management method according to claim 1, it is characterised in that the file category in the File header information
Property, obtain file type.
3. file management method according to claim 2, it is characterised in that according to the file type, determine end-of-file
Information;
According to the File header information, the end-of-file information, file size is obtained.
4. file management method according to claim 1, it is characterised in that the file is one or more.
5. file management method according to claim 4, it is characterised in that if the file is multiple, by cumulative
Device adds up to the hunting zone value of storage region corresponding to each file, it is determined that the hunting zone of final storage region
Value.
6. a kind of document management apparatus, it is characterised in that including processor, be adapted for carrying out each instruction;Storage device, suitable for storage
A plurality of instruction, the instruction are suitable to be loaded and performed by the processor:
Obtain and carry target keywords and the File header information of file and according to the File header information in the storage region, obtain
Obtain file type;
According to content characteristic corresponding to the file type, it is determined that target storage corresponding with file field parameter;
According to the file size of acquisition, the hunting zone value of storage region is determined;
According to the target storage field parameter, the file in the space that storage region is hunting zone value is obtained.
7. document management apparatus according to claim 6, it is characterised in that the file category in the File header information
Property, obtain file type.
8. document management apparatus according to claim 7, it is characterised in that according to the file type, determine end-of-file
Information;
According to the File header information, the end-of-file information, file size is obtained.
9. document management apparatus according to claim 6, it is characterised in that the file is one or more.
10. document management apparatus according to claim 9, it is characterised in that if the file is multiple, by cumulative
Device adds up to the hunting zone value of storage region corresponding to each file, it is determined that the hunting zone of final storage region
Value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710800638.7A CN107590233B (en) | 2017-09-07 | 2017-09-07 | File management method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710800638.7A CN107590233B (en) | 2017-09-07 | 2017-09-07 | File management method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107590233A true CN107590233A (en) | 2018-01-16 |
CN107590233B CN107590233B (en) | 2021-03-19 |
Family
ID=61050464
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710800638.7A Active CN107590233B (en) | 2017-09-07 | 2017-09-07 | File management method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107590233B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108647116A (en) * | 2018-04-13 | 2018-10-12 | 深圳大普微电子科技有限公司 | Data reconstruction method and storage device |
CN110929110A (en) * | 2019-11-13 | 2020-03-27 | 北京北信源软件股份有限公司 | Electronic document detection method, device, equipment and storage medium |
CN117216011A (en) * | 2023-08-30 | 2023-12-12 | 建银工程咨询有限责任公司 | File transmission method and device and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100275030A1 (en) * | 2009-04-22 | 2010-10-28 | International Business Machines Corporation | Method for ensuring the validity of recovered electronic documents from remote storage |
CN102609531A (en) * | 2012-02-14 | 2012-07-25 | 北京鼎普科技股份有限公司 | Method for pegging files according to keywords |
CN103645974A (en) * | 2013-12-31 | 2014-03-19 | 厦门市美亚柏科信息股份有限公司 | Method and device for recovering portable document format (PDF) file |
CN106874147A (en) * | 2017-03-01 | 2017-06-20 | 四川艾特赢泰智能科技有限责任公司 | A kind of recovery simultaneously parses the method that Windows operating system pre-reads file |
-
2017
- 2017-09-07 CN CN201710800638.7A patent/CN107590233B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100275030A1 (en) * | 2009-04-22 | 2010-10-28 | International Business Machines Corporation | Method for ensuring the validity of recovered electronic documents from remote storage |
CN102609531A (en) * | 2012-02-14 | 2012-07-25 | 北京鼎普科技股份有限公司 | Method for pegging files according to keywords |
CN103645974A (en) * | 2013-12-31 | 2014-03-19 | 厦门市美亚柏科信息股份有限公司 | Method and device for recovering portable document format (PDF) file |
CN106874147A (en) * | 2017-03-01 | 2017-06-20 | 四川艾特赢泰智能科技有限责任公司 | A kind of recovery simultaneously parses the method that Windows operating system pre-reads file |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108647116A (en) * | 2018-04-13 | 2018-10-12 | 深圳大普微电子科技有限公司 | Data reconstruction method and storage device |
CN110929110A (en) * | 2019-11-13 | 2020-03-27 | 北京北信源软件股份有限公司 | Electronic document detection method, device, equipment and storage medium |
CN117216011A (en) * | 2023-08-30 | 2023-12-12 | 建银工程咨询有限责任公司 | File transmission method and device and electronic equipment |
CN117216011B (en) * | 2023-08-30 | 2024-05-03 | 建银工程咨询有限责任公司 | File transmission method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN107590233B (en) | 2021-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110765275B (en) | Search method, search device, computer equipment and storage medium | |
US6883001B2 (en) | Document information search apparatus and method and recording medium storing document information search program therein | |
US20080201297A1 (en) | Method and System for Determining Relation Between Search Terms in the Internet Search System | |
US8095540B2 (en) | Identifying superphrases of text strings | |
US20040249808A1 (en) | Query expansion using query logs | |
WO2017097231A1 (en) | Topic processing method and device | |
CN103136228A (en) | Image search method and image search device | |
JP2005085285A5 (en) | ||
CN110098961B (en) | Data quality evaluation method and device and storage medium | |
CN110737821B (en) | Similar event query method, device, storage medium and terminal equipment | |
CN111752955A (en) | Data processing method, device, equipment and computer readable storage medium | |
CN107590233A (en) | A kind of file management method and device | |
CN113065070A (en) | Intelligent sorting method, system, equipment and computer storage medium for mobile internet information search and retrieval | |
CN112836029A (en) | Graph-based document retrieval method, system and related components thereof | |
CN113297457A (en) | High-precision intelligent information resource pushing system and pushing method | |
CN110515895B (en) | Method and system for carrying out associated storage on data files in big data storage system | |
CN113065018A (en) | Audio and video index library creating and retrieving method and device and electronic equipment | |
US20150106376A1 (en) | Document tagging and retrieval using entity specifiers | |
JP5217518B2 (en) | Relationship information acquisition system, relationship information acquisition method, and relationship information acquisition program | |
US20040010556A1 (en) | Electronic document information expansion apparatus, electronic document information expansion method , electronic document information expansion program, and recording medium which records electronic document information expansion program | |
CN112003884B (en) | Method for collecting network assets and retrieving natural language | |
CN115687579B (en) | Document tag generation and matching method, device and computer equipment | |
US10614102B2 (en) | Method and system for creating entity records using existing data sources | |
CN107169065B (en) | Method and device for removing specific content | |
KR100943625B1 (en) | Method and System for Generating Integrated Database for Integradedly Managing Local Information and Website Information and Method for Providing Search Result Using Integrated Database |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210204 Address after: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd. Address before: Room 1601, floor 16, 278 Xinyi Road, Zhengdong New District, Zhengzhou City, Henan Province Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |