CN116069729A - Intelligent document packaging method, system and medium - Google Patents
Intelligent document packaging method, system and medium Download PDFInfo
- Publication number
- CN116069729A CN116069729A CN202310360275.5A CN202310360275A CN116069729A CN 116069729 A CN116069729 A CN 116069729A CN 202310360275 A CN202310360275 A CN 202310360275A CN 116069729 A CN116069729 A CN 116069729A
- Authority
- CN
- China
- Prior art keywords
- document
- packaging
- folder
- target
- intelligent
- 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
- 238000004806 packaging method and process Methods 0.000 title claims abstract description 165
- 238000000034 method Methods 0.000 title claims abstract description 66
- 238000012856 packing Methods 0.000 claims abstract description 50
- 238000009450 smart packaging Methods 0.000 claims description 12
- 230000006835 compression Effects 0.000 claims description 4
- 238000007906 compression Methods 0.000 claims description 4
- 230000014759 maintenance of location Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 1
- 238000012858 packaging process Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/13—File access structures, e.g. distributed indices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
- G06F16/148—File search processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/174—Redundancy elimination performed by the file system
- G06F16/1744—Redundancy elimination performed by the file system using compression, e.g. sparse files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2107—File encryption
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Library & Information Science (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Storage Device Security (AREA)
Abstract
The embodiment of the application provides an intelligent document packaging method, an intelligent document packaging system and a medium. Belonging to the field of document management, the method comprises the following steps: acquiring index information, searching document information under a specified directory according to the index information, and acquiring a document path; creating a packaging folder, and extracting the characteristics of the document under the target document path according to a packaging strategy to obtain a document characteristic value; comparing the document characteristic value with a preset document characteristic value to obtain a deviation rate; judging whether the deviation rate is larger than a preset deviation rate threshold value or not; if the document is larger than the document, the corresponding document is reserved; if the document is smaller than the packing file, copying the corresponding document into the packing file for packing; traversing the document under the appointed directory through the index information, and realizing the technology of quickly searching the target document and copying the target document into the corresponding packaging folder for quick packaging according to the judgment of the characteristic value of the document.
Description
Technical Field
The application relates to the field of document management, in particular to an intelligent document packaging method, an intelligent document packaging system and an intelligent document packaging medium.
Background
At present, a plurality of manufacturers provide code development environments which are not provided with quick packing tools of files, so that the efficiency of developers is low, the normal operation of project progress is affected, and most development environments at present use batch script processing, but belong to command line operation, are not intuitive and are inflexible to operate.
In view of the above problems, an effective technical solution is currently needed.
Disclosure of Invention
The embodiment of the application aims to provide an intelligent document packaging method, system and medium, which can search document information under a specified directory through index information and acquire a document path; and creating a packaging folder, extracting the characteristics of the document under the target document path according to the packaging strategy, copying the corresponding document into the packaging folder for packaging or staying, and realizing the technology of quick document searching and packaging.
The embodiment of the application also provides an intelligent document packaging method, which comprises the following steps:
acquiring index information, searching document information under a specified directory according to the index information, and acquiring a document path;
creating a packaging folder, and extracting the characteristics of the document under the target document path according to a packaging strategy to obtain a document characteristic value;
comparing the document characteristic value with a preset document characteristic value to obtain a deviation rate;
judging whether the deviation rate is larger than a preset deviation rate threshold value or not;
if the document is larger than the document, the corresponding document is reserved;
if the document is smaller than the package folder, copying the corresponding document into the package folder for packaging.
Optionally, in the method for intelligently packaging documents according to the embodiment of the present application, the obtaining index information searches document information under a specified directory according to the index information, and obtains a document path includes:
acquiring search keywords or the combination of more than two keywords, and performing traversal inquiry on the designated catalogue to obtain a plurality of target documents;
acquiring a target document use right, and comparing the use right with a current packaging right;
judging whether the target document has a use right or not;
if the permission is not used, obtaining the packing permission, upgrading the packing permission and extracting the target document.
Optionally, in the method for intelligently packaging documents according to the embodiment of the present application, if no permission is used, a packaging permission is obtained, a packaging permission is upgraded, and a target document is extracted, including:
logging in an index terminal, and verifying the security of a using account;
when the account number is used safely, an index secret key is generated;
unlocking the target document encryption information according to the index key, and acquiring a target document use license;
decrypting the content of the target document by using the license to obtain decrypted document information;
and creating a decryption transit directory, creating a new document by using the decrypted document information, and migrating the new document to a cache under the decryption transit directory.
Optionally, in the method for intelligently packaging documents according to the embodiment of the present application, creating a packaging folder, and extracting features of a document in a target document path according to a packaging policy to obtain a document feature value, including:
creating a packaging folder, and generating an encryption strategy according to the packaging strategy;
encrypting the target document according to the encryption strategy and generating an encryption private key;
traversing the documents in the packaging folder, and judging whether the documents in the packaging folder meet the preset requirements;
if so, encrypting and compressing the packing folder through an encryption private key, and generating a compression log;
the encrypted private key is placed within the header file of the packaged folder or the encrypted private key is placed within a separate private key directory folder within the packaged folder.
Optionally, in the method for intelligently packaging documents according to the embodiment of the present application, creating a packaging folder, and generating an encryption policy according to the packaging policy includes:
determining the security level of the target document under the target document path according to the target document path;
when the security level is greater than a first threshold value and smaller than a second threshold value, determining that the target document encrypts and packages the target document through the first encryption level;
when the security level is greater than a second threshold value, determining that the target document encrypts and packages the target document through a second encryption level;
wherein the first threshold is less than the second threshold and the first encryption level is less than the second encryption level.
Optionally, in the intelligent document packaging method according to the embodiment of the present application, the package folder name is named according to a keyword extracted from the target document, or
And the packaging folder is named after being combined according to the security level of the target document and the keywords extracted from the target document, and packaging folder directory information is generated.
Optionally, in the method for intelligently packaging documents according to the embodiment of the present application, the corresponding documents are copied into a packaging folder for packaging; comprising the following steps:
traversing the appointed directory, and judging whether the appointed directory is a subdirectory or a document;
if the sub-directory is the sub-directory, copying the sub-directory into a packaging folder according to the original sequence in a sub-directory mode, recursively traversing the corresponding sub-directory, and adding all the sub-directories into a packaging list in the packaging folder;
if the file is the file, copying the file into a packaging folder according to the order of occupied size in a file mode;
and in the packing process, recording the file length and the file size of the file into the file head of the packing file folder.
In a second aspect, an embodiment of the present application provides an intelligent document packaging system, including: the intelligent document packaging system comprises a memory and a processor, wherein the memory comprises a program of an intelligent document packaging method, and the program of the intelligent document packaging method realizes the following steps when being executed by the processor:
acquiring index information, searching document information under a specified directory according to the index information, and acquiring a document path;
creating a packaging folder, and extracting the characteristics of the document under the target document path according to a packaging strategy to obtain a document characteristic value;
comparing the document characteristic value with a preset document characteristic value to obtain a deviation rate;
judging whether the deviation rate is larger than a preset deviation rate threshold value or not;
if the document is larger than the document, the corresponding document is reserved;
if the document is smaller than the package folder, copying the corresponding document into the package folder for packaging.
Optionally, in the intelligent document packaging system according to the embodiment of the present application, the obtaining index information searches document information under a specified directory according to the index information, and obtains a document path, including:
acquiring search keywords or the combination of more than two keywords, and performing traversal inquiry on the designated catalogue to obtain a plurality of target documents;
acquiring a target document use right, and comparing the use right with a current packaging right;
judging whether the target document has a use right or not;
if the permission is not used, obtaining the packing permission, upgrading the packing permission and extracting the target document.
In a third aspect, an embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium includes a document intelligent packaging method program, where the document intelligent packaging method program, when executed by a processor, implements the steps of the document intelligent packaging method according to any one of the preceding claims.
As can be seen from the above, according to the method, system and medium for intelligent packaging of documents provided in the embodiments of the present application, through obtaining index information, document information under a specified directory is searched according to the index information, and a document path is obtained; creating a packaging folder, and extracting the characteristics of the document under the target document path according to a packaging strategy to obtain a document characteristic value; comparing the document characteristic value with a preset document characteristic value to obtain a deviation rate; judging whether the deviation rate is larger than a preset deviation rate threshold value or not; if the document is larger than the document, the corresponding document is reserved; if the document is smaller than the packing file, copying the corresponding document into the packing file for packing; traversing the document under the appointed directory through the index information, and realizing the technology of quickly searching the target document and copying the target document into the corresponding packaging folder for quick packaging according to the judgment of the characteristic value of the document.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the embodiments of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for intelligently packaging documents according to an embodiment of the present application;
FIG. 2 is a flowchart of extracting a target document of the intelligent document packaging method according to the embodiment of the present application;
FIG. 3 is a target document decryption flowchart of the intelligent document packaging method provided in the embodiment of the present application;
FIG. 4 is a flowchart of encrypting and compressing a package folder of the intelligent document package method according to the embodiment of the present application;
FIG. 5 is a flow chart of hierarchical packing according to encryption level for the intelligent packing method of documents provided in the embodiment of the present application;
FIG. 6 is a flowchart of a target document of the intelligent document packaging method provided in the embodiment of the present application being copied to a packaging folder;
fig. 7 is a schematic structural diagram of a document intelligent packaging system according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that like reference numerals and letters refer to like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, fig. 1 is a flowchart of a method for intelligently packaging documents according to some embodiments of the present application. The intelligent document packaging method is used in terminal equipment, such as computers, mobile phone terminals and the like. The intelligent document packing method comprises the following steps:
s101, acquiring index information, searching document information under a specified directory according to the index information, and acquiring a document path;
s102, creating a packaging folder, and extracting the characteristics of the document in the target document path according to a packaging strategy to obtain a document characteristic value;
s103, comparing the document characteristic value with a preset document characteristic value to obtain a deviation rate;
s104, judging whether the deviation rate is larger than a preset deviation rate threshold value;
if the document is larger than the document, the corresponding document is reserved;
if the document is smaller than the package folder, copying the corresponding document into the package folder for packaging.
It should be noted that, the index information includes a document name, a time of creating the document, a keyword or a combination of keywords or key sentences of the document content, and a document path may be understood as a position of a folder or a position of a subfolder of the document within the folder.
The packing policy includes the number of packing documents and the number of packing folders, or the packing documents are distributed in the positions of the packing folders, in addition, one packing document or a plurality of packing documents can be set in the same packing folder, and when a plurality of packing documents exist in the packing folder, the plurality of packing documents need to be queued and packed.
The document retention can be carried out by establishing a new retention folder, one or more retention folders can be provided, and when the characteristic value of the document in the retention folder is smaller than the preset document characteristic value in the retrieval process, the document in the retention folder is called.
Referring to fig. 2, fig. 2 is a flowchart of extracting a target document in a method for intelligently packaging documents according to some embodiments of the present application. According to an embodiment of the present invention, in a document intelligent packaging method of an embodiment of the present application, obtaining index information, searching document information under a specified directory according to the index information, and obtaining a document path, includes:
s201, acquiring search keywords or the combination of more than two keywords, and performing traversal inquiry on a specified directory to obtain a plurality of target documents;
s202, acquiring a target document use right, and comparing the use right with a current packaging right;
s203, judging whether the target document has a use right;
s204, if the permission is not used, obtaining packaging permission, upgrading the packaging permission and extracting the target document.
Referring to fig. 3, fig. 3 is a flowchart of decryption of a target document in the intelligent document packaging method according to some embodiments of the present application. According to the embodiment of the invention, in the intelligent document packaging method of the embodiment of the application, if no use permission is available, a packaging permission is acquired, the packaging permission is upgraded, and the target document is extracted, including:
s301, logging in an index terminal, and verifying the security of a use account;
s302, when account security is used, an index secret key is generated;
s303, unlocking the target document encryption information according to the index key, and acquiring a target document use license;
s304, decrypting the content of the target document by using the license to obtain decrypted document information;
s305, creating a decryption transit directory, creating a new document from the decrypted document information, and migrating the new document to a cache under the decryption transit directory.
Referring to fig. 4, fig. 4 is a flowchart illustrating encryption compression of a package folder in a document intelligent packaging method according to some embodiments of the present application. According to the embodiment of the invention, in the intelligent document packaging method of the embodiment of the application, a packaging folder is created, and the document under the target document path is subjected to feature extraction according to a packaging strategy to obtain a document feature value, which comprises the following steps:
s401, creating a packaging folder, and generating an encryption strategy according to the packaging strategy;
s402, encrypting the target document according to the encryption strategy and generating an encryption private key;
s403, traversing the documents in the packaging folder, and judging whether the documents in the packaging folder meet the preset requirement;
s404, if the encryption is achieved, encrypting and compressing the packing folder through an encryption private key, and generating a compressed log;
s405, the encrypted private key is placed in the header file of the packaged folder, or the encrypted private key is placed in a separate private key directory folder in the packaged folder.
It should be noted that, whether the documents in the package folder meet the requirement is determined, and it is understood that the number of the documents in the package folder is more than 10, or the document category in the package folder is more than 10.
Header files are understood to be individually placed in the package folder and the header files are topped.
Referring to fig. 5, fig. 5 is a flowchart illustrating hierarchical packing according to encryption levels in the document intelligent packing method according to some embodiments of the present application. According to the embodiment of the invention, in the intelligent document packaging method of the embodiment of the application, a packaging folder is created, and an encryption strategy is generated according to the packaging strategy, and the method comprises the following steps:
s501, determining the security level of a target document under a target document path according to the path;
s502, when the security level is greater than a first threshold value and smaller than a second threshold value, determining that the target document encrypts and packages the target document through the first encryption level;
s503, when the security level is greater than a second threshold value, determining that the target document encrypts and packages the target document through the second encryption level;
wherein the first threshold is less than the second threshold and the first encryption level is less than the second encryption level.
According to the embodiment of the invention, in the intelligent document packaging method of the embodiment of the application, the packaged folder name is named according to the keywords extracted from the target document, or
The packaged folder is named after being combined according to the security level of the target document and the keywords extracted from the target document, and packaged folder directory information is generated.
Referring to fig. 6, fig. 6 is a flowchart illustrating copying of a target document to a package folder in the intelligent document packaging method according to some embodiments of the present application. According to the embodiment of the invention, in the intelligent document packaging method, the corresponding document is copied into a packaging folder for packaging; comprising the following steps:
s601, traversing the appointed directory, and judging whether the appointed directory is a subdirectory or a document;
s602, if the sub-directory is the sub-directory, copying the sub-directory into a packaging folder according to the original sequence by adopting the sub-directory mode, recursively traversing the corresponding sub-directory, and adding all the sub-directories into a packaging list in the packaging folder;
s603, if so, copying the documents into a packaging folder in the order of occupied size in a document mode;
and S604, in the packaging process, recording the file length and the file size of the file into the file head of the packaging folder.
According to an embodiment of the present invention, further comprising:
acquiring a specified directory, traversing the specified directory, and grading the specified directory;
the appointed catalogue is divided into a first-level subdirectory, a second-level subdirectory and third-level subdirectory to an Nth-level subdirectory;
traversing the appointed catalogue one by one according to the grade of the appointed catalogue;
acquiring the document character numbers of different levels of directories, and establishing traversal time according to the document character numbers of the different levels of directories;
traversing can be performed through document suffixes, or according to keywords, and when traversing is performed through the suffixes, firstly judging documents with the same suffixes in the first-level subdirectory, classifying the documents with the same suffixes, and then performing independent traversing according to the category of the suffixes, so that the traversing efficiency is improved.
Traversing the documents in the second-level subdirectory after the first-level subdirectory is traversed, and so on until the traversing of the documents in the Nth-level subdirectory is completed.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an intelligent document packaging system according to some embodiments of the present application. In a second aspect, embodiments of the present application provide an intelligent document packaging system 7, comprising: the memory 71 and the processor 72, the memory includes a program of the intelligent document packaging method, and the program of the intelligent document packaging method realizes the following steps when executed by the processor:
acquiring index information, searching document information under a specified directory according to the index information, and acquiring a document path;
creating a packaging folder, and extracting the characteristics of the document under the target document path according to a packaging strategy to obtain a document characteristic value;
comparing the document characteristic value with a preset document characteristic value to obtain a deviation rate;
judging whether the deviation rate is larger than a preset deviation rate threshold value or not;
if the document is larger than the document, the corresponding document is reserved;
if the document is smaller than the package folder, copying the corresponding document into the package folder for packaging.
According to an embodiment of the present invention, in a document intelligent packaging system according to an embodiment of the present application, obtaining index information, searching document information under a specified directory according to the index information, and obtaining a document path, includes:
acquiring search keywords or the combination of more than two keywords, and performing traversal inquiry on the designated catalogue to obtain a plurality of target documents;
acquiring a target document use right, and comparing the use right with a current packaging right;
judging whether the target document has a use right or not;
if the permission is not used, obtaining the packing permission, upgrading the packing permission and extracting the target document.
According to the embodiment of the invention, in the intelligent document packaging method of the embodiment of the application, if no use permission is available, a packaging permission is acquired, the packaging permission is upgraded, and the target document is extracted, including:
logging in an index terminal, and verifying the security of a using account;
when the account number is used safely, an index secret key is generated;
unlocking the target document encryption information according to the index key, and acquiring a target document use license;
decrypting the content of the target document by using the license to obtain decrypted document information;
and creating a decryption transit directory, creating a new document by using the decrypted document information, and migrating the new document to a cache under the decryption transit directory.
According to the embodiment of the invention, in the intelligent document packaging method of the embodiment of the application, a packaging folder is created, and the document under the target document path is subjected to feature extraction according to a packaging strategy to obtain a document feature value, which comprises the following steps:
creating a packaging folder, and generating an encryption strategy according to the packaging strategy;
encrypting the target document according to the encryption strategy and generating an encryption private key;
traversing the documents in the packaging folder, and judging whether the documents in the packaging folder meet the preset requirements;
if so, encrypting and compressing the packing folder through an encryption private key, and generating a compression log;
the encrypted private key is placed within the header file of the packaged folder or the encrypted private key is placed within a separate private key directory folder within the packaged folder.
It should be noted that, whether the documents in the package folder meet the requirement is determined, and it is understood that the number of the documents in the package folder is more than 10, or the document category in the package folder is more than 10.
Header files are understood to be individually placed in the package folder and the header files are topped.
According to the embodiment of the invention, in the intelligent document packaging method of the embodiment of the application, a packaging folder is created, and an encryption strategy is generated according to the packaging strategy, and the method comprises the following steps:
determining the security level of the target document under the target document path according to the target document path;
when the security level is greater than the first threshold value and smaller than the second threshold value, determining that the target document encrypts and packages the target document through the first encryption level;
when the security level is greater than a second threshold value, determining that the target document encrypts and packages the target document through the second encryption level;
wherein the first threshold is less than the second threshold and the first encryption level is less than the second encryption level.
According to the embodiment of the invention, in the intelligent document packaging method of the embodiment of the application, the packaged folder name is named according to the keywords extracted from the target document, or
The packaged folder is named after being combined according to the security level of the target document and the keywords extracted from the target document, and packaged folder directory information is generated.
According to the embodiment of the invention, in the intelligent document packaging method, the corresponding document is copied into a packaging folder for packaging; comprising the following steps:
traversing the appointed directory, and judging whether the appointed directory is a subdirectory or a document;
if the sub-directory is the sub-directory, copying the sub-directory into a packaging folder according to the original sequence in a sub-directory mode, recursively traversing the corresponding sub-directory, and adding all the sub-directories into a packaging list in the packaging folder;
if the file is the file, copying the file into a packaging folder according to the order of occupied size in a file mode;
in the packing process, the file is recorded into the file head of the packing file according to the name length and the file size of the document.
According to an embodiment of the present invention, further comprising:
acquiring a specified directory, traversing the specified directory, and grading the specified directory;
the appointed catalogue is divided into a first-level subdirectory, a second-level subdirectory and third-level subdirectory to an Nth-level subdirectory;
traversing the appointed catalogue one by one according to the grade of the appointed catalogue;
acquiring the document character numbers of different levels of directories, and establishing traversal time according to the document character numbers of the different levels of directories;
traversing can be performed through document suffixes, or according to keywords, and when traversing is performed through the suffixes, firstly judging documents with the same suffixes in the first-level subdirectory, classifying the documents with the same suffixes, and then performing independent traversing according to the category of the suffixes, so that the traversing efficiency is improved.
Traversing the documents in the second-level subdirectory after the first-level subdirectory is traversed, and so on until the traversing of the documents in the Nth-level subdirectory is completed.
A third aspect of the present invention provides a computer readable storage medium having embodied therein a document intelligent packaging method program which, when executed by a processor, implements the steps of the document intelligent packaging method as described in any one of the preceding claims.
According to the intelligent document packaging method, system and medium disclosed by the invention, the document information under the appointed directory is searched according to the index information by acquiring the index information, and the document path is acquired; creating a packaging folder, and extracting the characteristics of the document under the target document path according to a packaging strategy to obtain a document characteristic value; comparing the document characteristic value with a preset document characteristic value to obtain a deviation rate; judging whether the deviation rate is larger than a preset deviation rate threshold value or not; if the document is larger than the document, the corresponding document is reserved; if the document is smaller than the packing file, copying the corresponding document into the packing file for packing; traversing the document under the appointed directory through the index information, and realizing the technology of quickly searching the target document and copying the target document into the corresponding packaging folder for quick packaging according to the judgment of the characteristic value of the document.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, or the like, which can store program codes.
Alternatively, the above-described integrated units of the present invention may be stored in a readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
Claims (10)
1. An intelligent document packing method is characterized by comprising the following steps:
acquiring index information, searching document information under a specified directory according to the index information, and acquiring a document path;
creating a packaging folder, and extracting the characteristics of the document under the target document path according to a packaging strategy to obtain a document characteristic value;
comparing the document characteristic value with a preset document characteristic value to obtain a deviation rate;
judging whether the deviation rate is larger than a preset deviation rate threshold value or not;
if the document is larger than the document, the corresponding document is reserved;
if the document is smaller than the package folder, copying the corresponding document into the package folder for packaging.
2. The intelligent document packaging method according to claim 1, wherein the obtaining index information, searching document information under a specified directory according to the index information, and obtaining a document path comprises:
acquiring search keywords or the combination of more than two keywords, and performing traversal inquiry on the designated catalogue to obtain a plurality of target documents;
acquiring a target document use right, and comparing the use right with a current packaging right;
judging whether the target document has a use right or not;
if the permission is not used, obtaining the packing permission, upgrading the packing permission and extracting the target document.
3. The intelligent document packaging method according to claim 2, wherein if no use rights are available, obtaining a packaging license, upgrading the packaging rights, and extracting the target document comprises:
logging in an index terminal, and verifying the security of a using account;
when the account number is used safely, an index secret key is generated;
unlocking the target document encryption information according to the index key, and acquiring a target document use license;
decrypting the content of the target document by using the license to obtain decrypted document information;
and creating a decryption transit directory, creating a new document by using the decrypted document information, and migrating the new document to a cache under the decryption transit directory.
4. The intelligent document packaging method according to claim 3, wherein creating a packaging folder, and extracting features of the document under the target document path according to the packaging policy, to obtain a document feature value, includes:
creating a packaging folder, and generating an encryption strategy according to the packaging strategy;
encrypting the target document according to the encryption strategy and generating an encryption private key;
traversing the documents in the packaging folder, and judging whether the documents in the packaging folder meet the preset requirements;
if so, encrypting and compressing the packing folder through an encryption private key, and generating a compression log;
the encrypted private key is placed within the header file of the packaged folder or the encrypted private key is placed within a separate private key directory folder within the packaged folder.
5. The intelligent document packaging method according to claim 4, wherein creating a packaging folder and generating an encryption policy according to the packaging policy comprises:
determining the security level of the target document under the target document path according to the target document path;
when the security level is greater than a first threshold value and smaller than a second threshold value, determining that the target document encrypts and packages the target document through the first encryption level;
when the security level is greater than a second threshold value, determining that the target document encrypts and packages the target document through a second encryption level;
wherein the first threshold is less than the second threshold and the first encryption level is less than the second encryption level.
6. The intelligent document packaging method according to claim 5, wherein the packaged folder name is named according to keywords extracted from the target document, or
And the packaging folder is named after being combined according to the security level of the target document and the keywords extracted from the target document, and packaging folder directory information is generated.
7. The intelligent document packing method according to claim 6, wherein the corresponding document is copied into a packing folder for packing; comprising the following steps:
traversing the appointed directory, and judging whether the appointed directory is a subdirectory or a document;
if the sub-directory is the sub-directory, copying the sub-directory into a packaging folder according to the original sequence in a sub-directory mode, recursively traversing the corresponding sub-directory, and adding all the sub-directories into a packaging list in the packaging folder;
if the file is the file, copying the file into a packaging folder according to the order of occupied size in a file mode;
in the packing process, the file is recorded into the file head of the packing file according to the name length and the file size of the document.
8. An intelligent document packaging system, comprising: the intelligent document packaging system comprises a memory and a processor, wherein the memory comprises a program of an intelligent document packaging method, and the program of the intelligent document packaging method realizes the following steps when being executed by the processor:
acquiring index information, searching document information under a specified directory according to the index information, and acquiring a document path;
creating a packaging folder, and extracting the characteristics of the document under the target document path according to a packaging strategy to obtain a document characteristic value;
comparing the document characteristic value with a preset document characteristic value to obtain a deviation rate;
judging whether the deviation rate is larger than a preset deviation rate threshold value or not;
if the document is larger than the document, the corresponding document is reserved;
if the document is smaller than the package folder, copying the corresponding document into the package folder for packaging.
9. The intelligent document packaging system according to claim 8, wherein the obtaining index information, searching for document information under a specified directory based on the index information, and obtaining a document path comprises:
acquiring search keywords or the combination of more than two keywords, and performing traversal inquiry on the designated catalogue to obtain a plurality of target documents;
acquiring a target document use right, and comparing the use right with a current packaging right;
judging whether the target document has a use right or not;
if the permission is not used, obtaining the packing permission, upgrading the packing permission and extracting the target document.
10. A computer readable storage medium, characterized in that the computer readable storage medium comprises a document intelligent packaging method program, which when executed by a processor, implements the steps of the document intelligent packaging method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310360275.5A CN116069729B (en) | 2023-04-06 | 2023-04-06 | Intelligent document packaging method, system and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310360275.5A CN116069729B (en) | 2023-04-06 | 2023-04-06 | Intelligent document packaging method, system and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116069729A true CN116069729A (en) | 2023-05-05 |
CN116069729B CN116069729B (en) | 2023-06-27 |
Family
ID=86170130
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310360275.5A Active CN116069729B (en) | 2023-04-06 | 2023-04-06 | Intelligent document packaging method, system and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116069729B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116383427A (en) * | 2023-06-06 | 2023-07-04 | 深圳市微克科技有限公司 | Picture batch analysis method, system and medium based on intelligent wearable device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6098066A (en) * | 1997-06-13 | 2000-08-01 | Sun Microsystems, Inc. | Method and apparatus for searching for documents stored within a document directory hierarchy |
CN105446975A (en) * | 2014-06-23 | 2016-03-30 | 广州爱九游信息技术有限公司 | File packing method and device |
CN106777007A (en) * | 2016-12-07 | 2017-05-31 | 北京奇虎科技有限公司 | Photograph album Classified optimization method, device and mobile terminal |
CN108021415A (en) * | 2017-12-30 | 2018-05-11 | 有米科技股份有限公司 | Automatic packaging method, apparatus, computer equipment and storage medium |
CN113849845A (en) * | 2021-11-29 | 2021-12-28 | 统信软件技术有限公司 | Method and device for packaging plug-in file, computing device and readable storage medium |
CN114048185A (en) * | 2021-11-18 | 2022-02-15 | 北京聚存科技有限公司 | Method for transparently packaging, storing and accessing massive small files in distributed file system |
CN114610318A (en) * | 2022-03-18 | 2022-06-10 | 平安国际智慧城市科技股份有限公司 | Android application packaging method, device, equipment and storage medium |
-
2023
- 2023-04-06 CN CN202310360275.5A patent/CN116069729B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6098066A (en) * | 1997-06-13 | 2000-08-01 | Sun Microsystems, Inc. | Method and apparatus for searching for documents stored within a document directory hierarchy |
CN105446975A (en) * | 2014-06-23 | 2016-03-30 | 广州爱九游信息技术有限公司 | File packing method and device |
CN106777007A (en) * | 2016-12-07 | 2017-05-31 | 北京奇虎科技有限公司 | Photograph album Classified optimization method, device and mobile terminal |
CN108021415A (en) * | 2017-12-30 | 2018-05-11 | 有米科技股份有限公司 | Automatic packaging method, apparatus, computer equipment and storage medium |
CN114048185A (en) * | 2021-11-18 | 2022-02-15 | 北京聚存科技有限公司 | Method for transparently packaging, storing and accessing massive small files in distributed file system |
CN113849845A (en) * | 2021-11-29 | 2021-12-28 | 统信软件技术有限公司 | Method and device for packaging plug-in file, computing device and readable storage medium |
CN114610318A (en) * | 2022-03-18 | 2022-06-10 | 平安国际智慧城市科技股份有限公司 | Android application packaging method, device, equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116383427A (en) * | 2023-06-06 | 2023-07-04 | 深圳市微克科技有限公司 | Picture batch analysis method, system and medium based on intelligent wearable device |
CN116383427B (en) * | 2023-06-06 | 2023-08-11 | 深圳市微克科技有限公司 | Picture batch analysis method, system and medium based on intelligent wearable device |
Also Published As
Publication number | Publication date |
---|---|
CN116069729B (en) | 2023-06-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105678189B (en) | Data file encryption storage and retrieval system and method | |
CN110276002B (en) | Search application data processing method and device, computer equipment and storage medium | |
US8683228B2 (en) | System and method for WORM data storage | |
US20130054611A1 (en) | Apparatus and method for processing partitioned data for securing content | |
CN111897786B (en) | Log reading method, device, computer equipment and storage medium | |
CN102629247B (en) | Method, device and system for data processing | |
CN110647497A (en) | HDFS-based high-performance file storage and management system | |
CN110888837B (en) | Object storage small file merging method and device | |
US20100241977A1 (en) | Obtaining Complete Forensic Images Of Electronic Storage Media | |
US20140358868A1 (en) | Life cycle management of metadata | |
CN116069729B (en) | Intelligent document packaging method, system and medium | |
EP2778953A1 (en) | Encoded-search database device, method for adding and deleting data for encoded search, and addition/deletion program | |
CN107451138A (en) | A kind of distributed file system storage method and system | |
CN111581647B (en) | File encryption and decryption method and device | |
CN102073805A (en) | Computer system and content management method | |
CN109413048B (en) | Method for detecting luxo software based on file-type honeypot, electronic device and program product | |
CN114995949A (en) | Container mirror image construction method and device | |
CN114416676A (en) | Data processing method, device, equipment and storage medium | |
WO2022106595A1 (en) | Storage of file system items related to a versioned snapshot of a directory-based file system onto a key-object storage system | |
KR20140088962A (en) | System and method for storing data in a cloud environment | |
US9436840B2 (en) | System and method for securely storing information | |
Fatima et al. | Forensic analysis of image deletion applications | |
Wan et al. | Survey of digital forensics technologies and tools for Android based intelligent devices | |
CN111885175B (en) | Method and system for downloading network disk directory file | |
Decusatis et al. | Methodology for an open digital forensics model based on CAINE |
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 | ||
CP03 | Change of name, title or address |
Address after: 4208, Tower A, Hongrongyuan North Station Center, Minzhi Street North Station Community, Longhua District, Shenzhen City, Guangdong Province, 518000 Patentee after: Shenzhen Weike Technology Co.,Ltd. Country or region after: China Address before: 518109 room 1501, building e, phase II, Xinghe world, Minle community, Minzhi street, Longhua District, Shenzhen City, Guangdong Province Patentee before: SHENZHEN WAKE UP TECHNOLOGY CO.,LTD. Country or region before: China |
|
CP03 | Change of name, title or address |