Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for constructing object tree structure for many times and computer

A file directory and directory structure technology, applied in the computer field, can solve problems such as low efficiency and achieve the effect of improving efficiency

Inactive Publication Date: 2013-06-26
WONDERSHARE TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Then, to complete the process of building a file in this directory (that is, building the tree structure of the file object) requires N times of searching for the previous file directory. Therefore, the process of building a tree (that is, building a file directory) is very inefficient.

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 constructing object tree structure for many times and computer
  • Method for constructing object tree structure for many times and computer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0029] The implementation of the present invention provides a method for constructing an object tree structure multiple times, and the steps of the method are executed by a computer, such as figure 1 As shown, the method includes the steps of:

[0030] S110. Obtain the code number of the current layer of the file that needs to build the file directory from the penultimate layer;

[0031] Specifically, according to the full path directory of the file that needs to be constructed, determine the content of the largest level layer, start from the root directory of the full path directory from top to b...

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 method for constructing an object tree structure and a computer. The method comprises the following steps of: S110, acquiring a code number of a current layer of a file needing to construct a file catalog from the last but one layer; S120, searching whether the code number exists in all stored codes, and if the code number does not exist, executing the step S130; and S130, newly establishing a catalog node on the current layer, finishing the construction of the new catalog structure of the current layer, storing the code number of the current layer, acquiring the code number of a previous layer according to content of the previous layer of the file needing to construct the file catalog, and then executing the step S120. By adopting the method and the computer, the object tree structure can be quickly constructed for a plurality of times, so that the efficiency of a user for browsing a file is increased without changing the structure of the original file.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and system for constructing a file directory structure. Background technique [0002] During the file recovery process, the computer needs to scan the contents of the disk, and after finding a file information, generate a complete full path (for example: G:\Tool\test.exe), and pass it to the tree building module to complete the construction of the object tree structure. Process exists multiple times. [0003] For a general method of building a directory structure based on the full path, match from the root directory and search downwards, if it does not exist, create its directory node; if it exists, create a file node. If the number of files is large, especially when there are many files in the same directory, this method is very inefficient. [0004] For example: there are N files in the same directory, pass a path each time, divide the path into file directory node...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30
Inventor 余巍际
Owner WONDERSHARE TECH CO LTD