CN107609072B - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN107609072B
CN107609072B CN201710780758.5A CN201710780758A CN107609072B CN 107609072 B CN107609072 B CN 107609072B CN 201710780758 A CN201710780758 A CN 201710780758A CN 107609072 B CN107609072 B CN 107609072B
Authority
CN
China
Prior art keywords
directory
content
file
length
file path
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.)
Active
Application number
CN201710780758.5A
Other languages
Chinese (zh)
Other versions
CN107609072A (en
Inventor
郝志敏
李红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710780758.5A priority Critical patent/CN107609072B/en
Publication of CN107609072A publication Critical patent/CN107609072A/en
Application granted granted Critical
Publication of CN107609072B publication Critical patent/CN107609072B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data processing method and a device, wherein the method is applied to the process of processing a compressed file in electronic equipment, and comprises the following steps: acquiring the length of a file path pre-generated after the compressed file is decompressed; when the length of the file path is judged to exceed the specified length, when the compressed file is subjected to decompression operation, storing first content which does not exceed the specified length in the file path in a first directory space of the electronic equipment to form a first directory, and storing second content which exceeds the specified length in the file path in a second directory space of the preset electronic equipment to form a second directory; and storing the target file formed by decompressing the compressed file in a second directory. The method can carry out normal decompression operation on the compressed file with the file path length exceeding the specified length after decompression, and effectively store the target file formed after the compressed file is decompressed, thereby ensuring the data accuracy of the target file.

Description

Data processing method and device
Technical Field
The present invention relates to the field of data processing, and in particular, to a data processing method and apparatus
Background
At present, when a compressed file is compressed, the path length after decompression is limited and cannot exceed a specified length, and the specified length is set according to the system environment where the compressed file is located.
Disclosure of Invention
An object of an embodiment of the present invention is to provide a data processing method and apparatus that can perform a legal decompression operation on a compressed file whose decompressed file path length exceeds a predetermined length, and can decompress an accurate target file.
In order to solve the technical problem, the embodiment of the invention adopts the following technical scheme: a data processing method is applied to the process of processing a compressed file in electronic equipment, and comprises the following steps:
acquiring the length of a file path pre-generated after the compressed file is decompressed;
when the length of the file path is judged to exceed a specified length, when the compressed file is subjected to decompression operation, storing first content which does not exceed the specified length in the file path in a first directory space of the electronic device and forming a first directory, and storing second content which exceeds the specified length in the file path in a preset second directory space of the electronic device and forming a second directory;
and storing the target file formed by decompressing the compressed file in the second directory.
Preferably, the determining that the length of the file path exceeds the predetermined length further includes:
acquiring an excess content initial directory exceeding the specified length in the file path;
and generating the first content and the second content according to the position exceeding the content starting directory.
Preferably, the storing the second content exceeding the predetermined length in the file path in a preset second directory space of the electronic device and forming a second directory includes:
acquiring an index section of a parent directory of the excess content starting directory in the file path;
creating a head directory in the second directory space according to the index section of the parent directory;
associating the second content under the head directory to form a second directory.
Preferably, the method further comprises:
and when the target file with the file path length exceeding the specified length is accessed, acquiring second content from the second directory space, forming complete directory information by combining the first content stored in the first directory space, and accessing the target file according to the directory information.
Preferably, the method further comprises:
and when the target file with the file path length exceeding the specified length is deleted, judging whether the second content is stored in the second directory space, and if so, acquiring and deleting the target file according to the first content and the second content.
The embodiment of the invention also provides a data processing device, which is applied to the process of processing the compressed file in the electronic equipment, and comprises an acquisition module, a processing module and a storage module which are connected with each other:
the acquisition module is configured to acquire the length of a file path pre-generated if the compressed file is decompressed;
the processing module is configured to, when it is determined that the length of the file path exceeds a specified length, store a first content in the file path that does not exceed the specified length in a first directory space of the storage module and form a first directory, store a second content in the file path that exceeds the specified length in a preset second directory space of the storage module and form a second directory, and store a target file formed after the compressed file is decompressed in the second directory when the compressed file is subjected to a decompression operation.
Preferably, the obtaining module is further configured to obtain an excess content start directory exceeding the specified length in the file path, and generate the first content and the second content according to a position of the excess content start directory.
Preferably, the processing module includes a creating unit, and the obtaining module is further configured to obtain an index section of a parent directory of the excess content starting directory in the file path, so that the creating unit creates a head directory in the second directory space according to the index section of the parent directory, and associates the second content with the head directory to form a second directory.
Preferably, the apparatus further includes an accessing module, where the accessing module is configured to, when accessing the target file whose length of the file path exceeds a specified length, obtain a second content from the second directory space, and form complete directory information in combination with the first content stored in the first directory space, and access the target file according to the directory information.
Preferably, the apparatus further includes a deleting module, where the deleting module is configured to determine whether the second content is stored in the second directory space when the target file whose length of the file path exceeds a predetermined length is deleted, and if so, acquire and delete the target file according to the first content and the second content.
The embodiment of the invention has the beneficial effects that: the method can carry out normal decompression operation on the compressed file with the file path length exceeding the specified length after decompression, and effectively store the target file formed after the compressed file is decompressed, thereby ensuring the data accuracy of the target file.
Drawings
FIG. 1 is a flow chart of a data processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of step S2 in FIG. 1 according to an embodiment of the present invention;
FIG. 3 is another flowchart of step S2 in FIG. 1 according to the embodiment of the present invention;
FIG. 4 is a flow chart of an embodiment of a data processing method according to the present invention;
FIG. 5 is a flowchart of one embodiment of accessing a target file, in accordance with the present invention;
FIG. 6 is a flowchart of one embodiment of deleting a target file according to the present invention;
fig. 7 is a schematic structural relationship diagram of a data processing apparatus according to an embodiment of the present invention.
Description of the reference numerals
1-data processing device 2-acquisition module 3-processing module
4-storage module 5-access module 6-delete module
7-compressed files
Detailed Description
Various aspects and features of the present invention are described herein with reference to the drawings.
It will be understood that various modifications may be made to the embodiments of the invention herein. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Other modifications will occur to those skilled in the art which are within the scope and spirit of the invention.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and, together with a general description of the invention given above, and the detailed description of the embodiments given below, serve to explain the principles of the invention.
These and other characteristics of the invention will become apparent from the following description of a preferred form of embodiment, given as a non-limiting example, with reference to the accompanying drawings.
It should also be understood that, although the invention has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of the invention, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present invention will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present invention are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the invention, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the invention in unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present invention in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the invention.
A data processing method according to an embodiment of the present invention is applied to an electronic device, in which a compressed file 7 is processed in the electronic device, the compressed file 7 can decompress a target file contained in the compressed file 7 to a predetermined file path (storage path) during a decompression operation, so as to enable a user to use the target file, and lengths (lengths of storage paths) of file paths formed during a decompression process of different compressed files 7 are different, which are related to information such as a decompression environment and an environment for creating a compressed packet, but an operating system of some electronic devices limits the lengths of the file paths, so as to possibly cause a decompression failure (for example, the length of the file path exceeds a predetermined length), and the method can overcome this problem, and achieve that the compressed file 7 having an excessively long file path can be correctly and quickly decompressed, as shown in fig. 1, and with reference to fig. 4, the data processing method comprises the following steps:
s1, the length of the file path that the compressed file 7 pre-generates if decompressed is obtained. The length of the file path may also be regarded as the storage depth of the target file generated after the compressed file 7 is decompressed, and when the length of the file path is obtained, the compressed file 7 does not really perform the decompression operation, and in one embodiment, the length of the file path of the compressed file 7 may be obtained in advance by analyzing the related data of the compressed file; in another embodiment, the length of its file path may be obtained by way of a simulated decompression of the compressed file 7 using a virtual environment.
And S2, when judging that the length of the file path exceeds the specified length, when the compressed file 7 is subjected to decompression operation, storing the first content which does not exceed the specified length in the file path in the first directory space of the electronic device to form a first directory, and storing the second content which exceeds the specified length in the file path in the second directory space of the preset electronic device to form a second directory. In the operating environment where the compressed file 7 is decompressed, there is a rule for the length of the file path formed after decompression, and if the length of the file path exceeds the rule length, the decompression will fail. Specifically, a part of the file path which does not exceed the specified length is regarded as first content, the first content is stored in a first directory space of the electronic device, the storage mode can exist in the form of a first directory, so that a user can obtain relevant information of the first content from the first directory, and the storage space of the electronic device occupied by the first directory formed according to the first content can be regarded as the first directory space which is essentially a storage space. Similarly, the part of the file path exceeding the specified length is regarded as the second content, the second content is stored in a second directory space of the electronic device, the storage mode can exist in the form of a second directory, so that a user can obtain the relevant information of the second content from the second directory, and the storage space of the electronic device occupied by the second directory formed according to the second content can be regarded as the second directory space, which is also a storage space in nature. Both the first directory space and the second directory space may be provided in a memory of the electronic device, such as a hard disk of a computer. In one embodiment, the first directory space may be in a display state, and the second directory space may be in a hidden state, so that from the perspective of a user, one compressed file 7 corresponds to only one directory space, and does not interfere with the user. It is important to be able to utilize the coordination between the first directory space and the second directory space to store the super-long file path during the decompression of the compressed file 7, so that the compressed file 7 can be normally decompressed.
For example, a file path exceeding a specified length is … …/a/b/c/d/e, where … …/a/b is a first content (a portion not exceeding the specified length), and c/d/e is a second content (a portion exceeding the specified length), … …/a/b is stored in the first directory space in various ways, such as creating a folder with the first content as a directory in the first directory space; the c/d/e is stored in the second directory space, and the storage mode may be various, for example, a directory of the c/d/e is established in the second directory space.
And S3, storing the target file formed by decompressing the compressed file 7 in the second directory. Further, as described in the above example, the second directory may be a directory established according to the second content in the second directory space, such as c/d/e in the second directory space, that is, the target file is stored in the c/d/e of the second directory space, so that the compressed file 7 having the ultra-long file path can be correctly decompressed, and the target file can be guaranteed to be stored in a memory of the electronic device (in the second directory space), such as a hard disk of a computer.
In an embodiment of the present invention, as shown in fig. 2, after the step of determining that the length of the file path exceeds the specified length, the method may further include the following steps:
and S21, acquiring the excess content initial directory with the excess length in the file path. That is, the critical point is named as the excess content start directory from which convenience is obtained, and the specific example is further described with reference to the above, after the compressed file 7 is decompressed, a file path with excess of the specified length is formed, which is … …/a/b/c/d/e, where … …/a/b is the first content (the portion without excess of the specified length) and c/d/e is the second content (the portion with excess of the specified length), and c can be used as the critical point, that is, the excess content start directory.
S22, generating the first content and the second content according to the position beyond the content start directory. The first content and the second content can be conveniently obtained from the file path according to the position of the exceeding content starting directory in the file path, for example, if c is taken as the exceeding content starting directory, … …/a/b can be regarded as the first content, and c/d/e can be regarded as the second content.
In an embodiment of the present invention, as shown in fig. 3, the step of storing the second content exceeding the specified length in the file path in the second directory space of the preset electronic device includes the following steps:
s23, an index node (inode) of the parent directory in the file path beyond the content start directory is obtained. An inode, which may also be called an inode, stores meta-information data of a file system object in the file system, but does not include data content or file name, and a directory may be regarded as a table combining the name of a file and its inode number, for example, b in file path … …/a/b/c/d/e is an inode, the starting directory beyond the content is c, and the inode of the parent directory in the file path of c is b.
S24, a head directory is created in the second directory space according to the index section of the parent directory. Specifically, since b is easily available in the file path … …/a/b/c/d/e, for example, the index b of its parent directory may be obtained from the content starting directory as c, and the header directory b may be created in the second directory space by taking b as a name after obtaining b.
And S25, associating the second content under the head directory to form a second directory. In one embodiment, the second content may be attached to the head directory, and in connection with the above example, c/d/e may be arranged after directory b to form a directory of b/c/d/e in the second directory space, and the target file may be stored under the directory of b/c/d/e. Thus, the last index section in the first directory … …/a/b in the first directory space is b, the head directory of the second directory c/d/e in the second directory space is also b, and the first directory and the second directory can be linked through the index section b, and certainly can also be linked through other data.
In an embodiment of the present invention, in conjunction with fig. 5, the data processing method further includes the steps of: and when the length of the access file path exceeds the target file with the specified length, acquiring second content from the second directory space, combining the first content stored in the first directory space to form complete directory information, and accessing the target file according to the directory information. The second directory space may be hidden from the user, wherein the stored second content is also invisible, and the first directory space is visible to the user, wherein the stored first content, or the first directory formed by the first content is also visible, the first content and the second content may form directory information of a complete target file, and when the user accesses the target file, the user may first access the first directory formed by the first content in the first directory space, and then may redirect the access address of the user to the second directory in the second directory space (the second directory may be formed according to the second content) according to the complete directory information (or an implicit association relationship in the complete directory information). With reference to the above specific example, the file path is … …/a/b/c/d/e, where … …/a/b is the first content (not exceeding the specified length), and c/d/e is the second content (exceeding the specified length), and the first content and the second content may form complete directory information, i.e. … …/a/b/c/d/e (except that the complete directory information is stored in two different directory spaces respectively), and the target file stored in the b/c/d/e directory in the second directory space can be accessed smoothly according to the complete directory information.
In an embodiment of the present invention, in conjunction with fig. 6, the data processing method further includes the following steps: and when the target file with the file path length exceeding the specified length is deleted, judging whether second content is stored in the second directory space, and if so, acquiring and deleting the target file according to the first content and the second content. Specifically, if the second content is stored in the second directory space, it indicates that the compressed file 7 may decompress the target file into the second directory formed by the second content, and in order to delete the target file, the complete directory information of the target file may be obtained from the first content and the second content, and the target file may be obtained from the second directory in the second directory space according to the complete directory information and deleted. In one embodiment, the second directory formed by the second content may also be deleted after the target file is deleted, or the complete directory information may be deleted.
An embodiment of the present invention further provides a data processing apparatus 1, which is applied in a process of processing a compressed file 7 in an electronic device, as shown in fig. 7 and combined with fig. 4, and includes an obtaining module 2, a processing module 3, and a storage module 4, which are connected to each other.
The acquisition module 2 is configured to acquire the length of the file path of the compressed file 7, if decompressed, pre-generated. The length of the file path may also be regarded as the storage depth of the target file generated after the compressed file 7 is decompressed, and when the obtaining module 2 obtains the length of the file path, the compressed file 7 does not really perform the decompression operation, and in one embodiment, the obtaining module 2 may obtain the length of the file path in advance by analyzing the related data of the compressed file 7; in another embodiment, the obtaining module 2 may obtain the length of its file path by performing a simulated decompression of the compressed file 7 using a virtual environment.
The processing module 3 is configured to, when it is determined that the length of the file path exceeds the predetermined length, store the first content in the file path that does not exceed the predetermined length in the first directory space of the storage module 4 and form a first directory, store the second content in the file path that exceeds the predetermined length in the second directory space of the storage module 4 and form a second directory, and store the target file formed by decompressing the compressed file 7 in the second directory when the compressed file 7 is subjected to the decompression operation. In the operating environment where the compressed file 7 is decompressed, if the length of the file path formed after decompression is specified, and if the length of the file path exceeds the specified length, the decompression will fail, in this embodiment, if it is determined that the length of the file path exceeds the specified length, the processing module 3 may divide the file path into a first content and a second content, where the first content is a part of directory information of the file path, the second content is another part of directory information of the file path, and the first content and the second content are combined together to form complete directory information. Specifically, the processing module 3 regards a portion of the file path that does not exceed the specified length as a first content, and stores the first content in a first directory space of the storage module 4, where the storage manner may be in the form of a first directory, so that a user can obtain information related to the first content from the first directory, and a storage space of the electronic device occupied by the first directory formed based on the first content may be regarded as the first directory space, which is essentially a storage space. Similarly, the part of the file path exceeding the specified length is regarded as the second content, and the second content is stored in the second directory space of the storage module 4, the storage mode may be in the form of the second directory, so that the user can obtain the relevant information of the second content from the second directory, and the storage space of the electronic device occupied by the second directory formed according to the second content may be regarded as the second directory space, which is also a storage space in nature. Both the first directory space and the second directory space may be provided in a memory of the storage module 4, such as in a hard disk of a computer. In one embodiment, the first directory space may be in a display state, and the second directory space may be in a hidden state, so that from the perspective of a user, one compressed file 7 corresponds to only one directory space, and does not interfere with the user. It is important to be able to utilize the coordination between the first directory space and the second directory space to store the super-long file path during the decompression of the compressed file 7, so that the compressed file 7 can be normally decompressed.
For example, a file path exceeding a specified length is … …/a/b/c/d/e, where … …/a/b is a first content (a portion not exceeding the specified length), and c/d/e is a second content (a portion exceeding the specified length), … …/a/b is stored in the first directory space in various ways, such as creating a folder with the first content as a directory in the first directory space; the c/d/e is stored in the second directory space, and the storage mode may be various, for example, a directory of the c/d/e is established in the second directory space.
In addition, as described in the foregoing example, the second directory may be a directory established according to the second content in the second directory space, for example, the second directory may be c/d/e in the second directory space, that is, the processing module 3 stores the target file in the c/d/e of the second directory space, so that the compressed file 7 having the ultra-long file path can be correctly decompressed, and at the same time, the target file can be guaranteed to be stored in the memory (in the second directory space) of the storage module 4, for example, in a hard disk of a computer.
In an embodiment of the present invention, the obtaining module 2 is further configured to obtain an excess content start directory exceeding a specified length in the file path, and generate the first content and the second content according to a position of the excess content start directory. That is, the obtaining module 2 obtains from which location in the file path conveniently exceeds the specified length, and names the critical point as the exceeding content starting directory, and further explains, in combination with the above specific example, the compressed file 7 after decompression forms a file path that exceeds the specified length, which is … …/a/b/c/d/e, where … …/a/b is the first content (the portion that does not exceed the specified length), and c/d/e is the second content (the portion that exceeds the specified length), and then c may be taken as the critical point, that is, may be the exceeding content starting directory. The obtaining module 2 can conveniently obtain the first content and the second content from the file path according to the position of the excess content start directory in the file path, and if c is taken as the excess content start directory, … …/a/b can be regarded as the first content, and c/d/e can be regarded as the second content.
In an embodiment of the present invention, the processing module 3 includes a creating unit, and the obtaining module 2 is further configured to obtain an index node (inode) of a parent directory in the file path beyond the content start directory, so that the creating unit creates a header directory in the second directory space according to the index node of the parent directory, and associates the second content under the header directory to form the second directory. An inode, which may also be called an inode, stores meta-information data of a file system object in the file system, but does not include data content or file name, and a directory may be regarded as a table combining the name of a file and its inode number, for example, b in file path … …/a/b/c/d/e is an inode, the starting directory beyond the content is c, and the inode of the parent directory in the file path of c is b. Specifically, since b is easily available in the file path … …/a/b/c/d/e, for example, the obtaining module 2 may obtain the index b of its parent directory according to the content starting directory being c, and the creating unit creates the header directory b in the second directory space with b as the name after obtaining. In one embodiment, the creating unit may attach the second content to the head directory, and in connection with the above example, the creating unit may arrange c/d/e after directory b to form a directory of b/c/d/e in the second directory space, and the target file may be stored under the directory of b/c/d/e. Thus, the last index section in the first directory … …/a/b in the first directory space is b, the head directory of the second directory c/d/e in the second directory space is also b, and the first directory and the second directory can be linked through the index section b, and certainly can also be linked through other data.
In an embodiment of the present invention, referring to fig. 5, the data processing apparatus 1 further includes an accessing module 5, where the accessing module 5 is configured to, when accessing a target file whose file path length exceeds a specified length, obtain a second content from a second directory space, and combine with a first content stored in a first directory space to form complete directory information, and access the target file according to the directory information. The second directory space may be hidden from the user, wherein the stored second content is also invisible, and the first directory space is visible to the user, wherein the stored first content, or the first directory formed by the first content is also visible, the first content and the second content may form directory information of a complete target file, when the user accesses the target file, the user may first access the first directory formed by the first content in the first directory space through the access module 5, and then the access module 5 may redirect the access address of the user to the second directory in the second directory space according to the complete directory information (or an implicit association relationship in the complete directory information) (the second directory may be formed according to the second content). By combining the above specific example, the file path is … …/a/b/c/d/e, where … …/a/b is the first content (the portion that does not exceed the specified length), and c/d/e is the second content (the portion that exceeds the specified length), and the first content and the second content can form complete directory information, i.e. … …/a/b/c/d/e (except that the complete directory information is stored in two different directory spaces respectively), and according to the complete directory information, the user can smoothly access the target file stored in the b/c/d/e directory in the second directory space through the access module 5.
In an embodiment of the present invention, with reference to fig. 6, the data processing apparatus 1 further includes a deleting module 6, where the deleting module 6 is configured to determine whether the second content is stored in the second directory space when the target file with the file path length exceeding the specified length is deleted, and if so, acquire and delete the target file according to the first content and the second content. Specifically, if the second directory space stores the second content, it indicates that the compressed file 7 may decompress the target file into the second directory formed by the second content, and in order to delete the target file, the deletion module 6 may obtain the complete directory information of the target file from the first content and the second content, and obtain the target file from the second directory in the second directory space according to the complete directory information, and delete the target file. In one embodiment, the deleting module 6 may delete the second directory formed by the second content or delete the complete directory information after deleting the target file.
The above embodiments are only exemplary embodiments of the present invention, and are not intended to limit the present invention, and the scope of the present invention is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present invention, and such modifications and equivalents should also be considered as falling within the scope of the present invention.

Claims (8)

1. A data processing method is applied to the process of processing a compressed file in electronic equipment, and comprises the following steps:
acquiring the length of a file path pre-generated after the compressed file is decompressed;
when the length of the file path is judged to exceed a specified length, when the compressed file is subjected to decompression operation, storing first content which does not exceed the specified length in the file path in a first directory space of the electronic device and forming a first directory, and storing second content which exceeds the specified length in the file path in a preset second directory space of the electronic device and forming a second directory;
storing a target file formed after the compressed file is decompressed in the second directory; wherein the content of the first and second substances,
after the length of the file path is judged to exceed the specified length, the method also comprises the following steps:
acquiring an excess content initial directory exceeding the specified length in the file path;
and generating the first content and the second content according to the position exceeding the content starting directory.
2. The method of claim 1, wherein the storing the second content in the file path beyond the specified length in a preset second directory space of the electronic device and forming a second directory comprises:
acquiring an index section of a parent directory of the excess content starting directory in the file path;
creating a head directory in the second directory space according to the index section of the parent directory;
associating the second content under the head directory to form a second directory.
3. The method of claim 1, further comprising:
and when the target file with the file path length exceeding the specified length is accessed, acquiring second content from the second directory space, forming complete directory information by combining the first content stored in the first directory space, and accessing the target file according to the directory information.
4. The method of claim 1, further comprising:
and when the target file with the file path length exceeding the specified length is deleted, judging whether the second content is stored in the second directory space, and if so, acquiring and deleting the target file according to the first content and the second content.
5. A data processing device is applied to the process of processing a compressed file in electronic equipment, and comprises an acquisition module, a processing module and a storage module which are connected with each other:
the acquisition module is configured to acquire the length of a file path pre-generated if the compressed file is decompressed;
the processing module is configured to store a first content in the file path, which does not exceed a specified length, in a first directory space of the storage module and form a first directory, store a second content in the file path, which exceeds the specified length, in a second directory space of the storage module and form a second directory, and store a target file, which is formed after the compressed file is decompressed, in the second directory when the length of the file path is judged to exceed the specified length and when the compressed file is subjected to decompression operation; wherein the content of the first and second substances,
the obtaining module is further configured to obtain an excess content starting directory exceeding the specified length in the file path, and generate the first content and the second content according to the position of the excess content starting directory.
6. The apparatus of claim 5, the processing module comprising a creating unit, the obtaining module further configured to obtain an index section of a parent directory of the excess content starting directory in the file path, so that the creating unit creates a head directory in the second directory space according to the index section of the parent directory, and associates the second content under the head directory to form a second directory.
7. The apparatus according to claim 5, further comprising an access module configured to, when accessing the target file whose length of the file path exceeds a specified length, obtain a second content from the second directory space, and form complete directory information in combination with the first content stored in the first directory space, and access the target file according to the directory information.
8. The apparatus according to claim 5, further comprising a deletion module configured to, when deleting the target file whose length of the file path exceeds a prescribed length, determine whether the second content is stored in the second directory space, and if so, acquire and delete the target file according to the first content and the second content.
CN201710780758.5A 2017-09-01 2017-09-01 Data processing method and device Active CN107609072B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710780758.5A CN107609072B (en) 2017-09-01 2017-09-01 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710780758.5A CN107609072B (en) 2017-09-01 2017-09-01 Data processing method and device

Publications (2)

Publication Number Publication Date
CN107609072A CN107609072A (en) 2018-01-19
CN107609072B true CN107609072B (en) 2020-11-20

Family

ID=61057042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710780758.5A Active CN107609072B (en) 2017-09-01 2017-09-01 Data processing method and device

Country Status (1)

Country Link
CN (1) CN107609072B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414339B (en) * 2020-03-13 2023-04-25 浙江大华技术股份有限公司 File processing method, system, device, equipment and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026551A (en) * 2006-10-10 2007-08-29 中山大学 File packing and unpacking method for communication transmission
CN101510898A (en) * 2009-03-27 2009-08-19 深圳市茁壮网络技术有限公司 Method for uploading and downloading data, network node and communication system
CN101547161A (en) * 2008-03-28 2009-09-30 阿里巴巴集团控股有限公司 Folder transmission system, folder transmission device and folder transmission method
CN102236589A (en) * 2010-05-04 2011-11-09 南京壹进制信息技术有限公司 Data protection method for managing increment file based on digital identifiers
CN103095795A (en) * 2011-10-28 2013-05-08 三星Sds株式会社 Apparatus and method for transmitting data
CN103186611A (en) * 2011-12-30 2013-07-03 北大方正集团有限公司 Method and device for compressing, decompressing and inquiring documents
CN105446975A (en) * 2014-06-23 2016-03-30 广州爱九游信息技术有限公司 File packing method and device
CN105447166A (en) * 2015-12-03 2016-03-30 沈文策 Keyword based information search method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470719B (en) * 2007-12-24 2011-05-04 深圳富泰宏精密工业有限公司 File route and name storage method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101026551A (en) * 2006-10-10 2007-08-29 中山大学 File packing and unpacking method for communication transmission
CN101547161A (en) * 2008-03-28 2009-09-30 阿里巴巴集团控股有限公司 Folder transmission system, folder transmission device and folder transmission method
WO2009121057A3 (en) * 2008-03-28 2010-03-18 Alibaba Group Holding Limited File folder transmission on network
CN101510898A (en) * 2009-03-27 2009-08-19 深圳市茁壮网络技术有限公司 Method for uploading and downloading data, network node and communication system
CN102236589A (en) * 2010-05-04 2011-11-09 南京壹进制信息技术有限公司 Data protection method for managing increment file based on digital identifiers
CN103095795A (en) * 2011-10-28 2013-05-08 三星Sds株式会社 Apparatus and method for transmitting data
CN103186611A (en) * 2011-12-30 2013-07-03 北大方正集团有限公司 Method and device for compressing, decompressing and inquiring documents
CN105446975A (en) * 2014-06-23 2016-03-30 广州爱九游信息技术有限公司 File packing method and device
CN105447166A (en) * 2015-12-03 2016-03-30 沈文策 Keyword based information search method and system

Also Published As

Publication number Publication date
CN107609072A (en) 2018-01-19

Similar Documents

Publication Publication Date Title
CN106936441B (en) Data compression method and device
EP3255567A1 (en) Method and apparatus for content sharing
CN106919634B (en) Method for sharing data across applications and web browser
US11108547B2 (en) Methods and apparatuses for reading blockchain data
CN110825737A (en) Index creation and data query method, device and equipment
JP2012089094A5 (en)
EP3651421A1 (en) Multimedia display method, apparatus, and device
CN103226591B (en) A kind of support multiple key quick access method and device
CN110659257B (en) Metadata object repairing method, device, equipment and readable storage medium
CN110147410B (en) Data verification method, system, device and equipment in block chain type account book
CN110109894A (en) Implementation method, device, storage medium and the equipment of non-relational database
JP4233564B2 (en) Data processing apparatus, data processing program and recording medium
CN107609072B (en) Data processing method and device
MXPA04007146A (en) Method and apparatus for late-binding/dynamic pathname resolution.
US9858300B2 (en) Hash based de-duplication in a storage system
JP2006277691A5 (en)
CN110531929A (en) The small documents processing method and processing device of storage system
KR20150045073A (en) Data Operating Method And System supporting the same
JP2018526740A5 (en)
CN108614879A (en) Small documents processing method and device
CN111444194B (en) Method, device and equipment for clearing indexes in block chain type account book
CN110636042B (en) Method, device and equipment for updating verified block height of server
WO2017071210A1 (en) Contact creation method and device
US20130218851A1 (en) Storage system, data management device, method and program
CN105745639A (en) Removable storage data hash

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