Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for joining files and method for splitting files

A file and source file technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve the problem of being unable to quickly decompose source files and target files, and achieve the effect of improving the speed of merging or decomposing

Active Publication Date: 2012-06-20
HUAWEI TEHCHNOLOGIES CO LTD
View PDF4 Cites 25 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] Third, file decomposition can only be decomposed as a whole, and it is impossible to quickly decompose one of the source files or directly use one of the source files without decomposing the target file, that is, directly analyze the target file and directly use a source in the target file file memory data

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for joining files and method for splitting files
  • Method for joining files and method for splitting files
  • Method for joining files and method for splitting files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0062] The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0063] Such as figure 1 As shown, the present invention discloses a method for merging files, comprising the following steps:

[0064] (S01) Perform file merging, traverse and read source files, form tag information and store it in a tree structure;

[0065] The source file is a folder and / or a file, which may be a combination of multiple files, or one or more folders, or one or more folders and files. Source file tagging information includes folder name, file name, file byte count, and file offset within the target file. The tree structure is a multi-fork tree. When traversing, the directory of the source file is extracted for reading. The root node and branch nodes in the multi-fork tree store the name of the folder, and the leaf nodes store the name of the file, the number of bytes of the file and the location of the file...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a technology of a file system for a computer, in particular to a method for joining files and a method for splitting files. The method for joining the files comprises the following steps of: ergodically reading a source file to form source file mark information, and storing the source file mark information into a tree structure; creating a target file and a corresponding memory mapping file; taking byte numbers occupied by storing the content of the tree structure and the content of the tree structure as file header information, and sequentially writing the file header information into a start position of the memory mapping file; writing the information into the memory mapping file according to the content of the source file of the tree structure, wherein the written position starts after the content of the tree structure is stored; and closing the memory mapping file after the write operation is ended to form a target files, namely the joined files. The invention also provides a file splitting method for splitting the joined target files. According to the methods, the joining speed or the splitting speed of the files is improved, the certain source file can be quickly searched and split in the joined target files, and users can greatly conveniently operate the files.

Description

technical field [0001] The invention relates to computer file system technology, in particular to a file merging method and a decomposition method. Background technique [0002] With the advent of the information age, computers have been widely used in all aspects of life, and the main storage methods of user information in computers are files and folders. A file in a computer is a collection of information stored on a computer with a computer hard disk as a carrier. A file can be a text document, a picture, a program, and so on. Files usually have a three-letter file extension to indicate the file type. The folders in the computer are used to help people manage computer files. Each folder corresponds to a piece of disk space, and it provides an address pointing to the corresponding space. It has no extension, so it does not need an extension to identify it. Folders generally adopt a multi-level structure (such as a tree structure). Folders can contain not only files, but ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30
Inventor 韩玉青胡建华
Owner HUAWEI TEHCHNOLOGIES CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products