CN102682013A - Method for operating compressed file in network storage appliance - Google Patents
Method for operating compressed file in network storage appliance Download PDFInfo
- Publication number
- CN102682013A CN102682013A CN 201110060784 CN201110060784A CN102682013A CN 102682013 A CN102682013 A CN 102682013A CN 201110060784 CN201110060784 CN 201110060784 CN 201110060784 A CN201110060784 A CN 201110060784A CN 102682013 A CN102682013 A CN 102682013A
- Authority
- CN
- China
- Prior art keywords
- file
- compressed file
- compressed
- network storage
- storage device
- 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.)
- Pending
Links
Images
Abstract
The invention discloses a method for operating a compressed file in a network storage appliance. The method comprises the following steps: in the network storage appliance, regarding the compressed file as a folder; clicking to visit the compressed file, browsing all files and catalogues in the compressed file; reading the files in the compressed file, wherein the read operation comprises browsing the file content, and downloading the file; or writing the files in the compressed file. By adopting the method provided by the invention, a user can directly perform the file operation such as browsing, renaming, editing and the like on the folder in the compressed file without completely downloading and decompressing the whole compressed file.
Description
Technical field
The present invention relates to a kind of method of operating compressed file, be specifically related to a kind of method of in network storage device, operating compressed file.
Background technology
Network storage device is meant network storage service, generally includes photograph album website, online notes website, online document store website, network hard disc service.
Along with the development of computer network and infotech, the People more and more custom uses the network storage equipment to come the store files data.Use network storage device; No matter be at home, or in unit or at other Anywhere, as long as can be connected to the Internet, the user just can visit, the file in the management, editing network memory storage; And need not carry, do not worry the damage of file data yet or lose.
But owing to receive the restriction that network storage device offers the user's space size; And can be owing to reasons such as the transmission speed of network, data traffics; Make a lot of users have no alternative but, selection uploads in the network storage device after file and file are packed, compressed again.And in the existing network storage device, compressed file is different with common file, file, can not directly browse, edit, and can bring inconvenience to user's operation like this, shows in the following areas:
1, compressed file is different with ordinary file, and the user can't browse son file, sub-folder, bibliographic structure and other attributes in the compressed file through online mode;
2, compressed file is different with ordinary file, and the user can not directly browse, operate compressed document; Even network storage device provides the function and application routine interface of online browse and file operation; But compression because file is packed; Make that the user can only select earlier compressed file to be downloaded, re-use the mode of opening after decompressing and operate, increased the complicacy of user's operation;
3, only need use under the situation of the some files in the compressed file the user, the user but can't be separately to this file destination direct control, but need at first download whole compressed file, after the decompression, could operate file destination; And after file operation is accomplished, also need be synchronized to the update content of file in the network storage device, so not only complex operation also can be wasted a lot of Internet resources.
To this, industry has had some treating methods at present, for example: Chinese patent 200610162223.3, and Chinese patent 200910130929.5.The way that these patents propose can general description be: before user file is uploaded to network hard disc, compress through particular clients software, upload onto the server after the compression again; Earlier compressed file is downloaded to this locality through client-side program during file in download, the decompression of execute file is then given the user after decompressing again.That is, bring in completion compression and decompression procedure by specific client.But because this type solution can only be directed against the particular network hard disk, and brings in transparent compression and the decompress(ion) of accomplishing file by the proprietary client of this network hard disc, so be not suitable in a general network storage device, using.
Summary of the invention
Technical matters to be solved by this invention provides a kind of method of in network storage device, operating compressed file, and it can make the user be implemented in the inner file of operation compressed file in the network storage device.
For solving the problems of the technologies described above, the present invention operates the method for compressed file in network storage device technical solution is:
In network storage device, compressed file is regarded as file; After clicking the entering compressed file, just the same as the entering normal folder, browse All Files and catalogue in this compressed file; Afterwards, the file in this compressed file is carried out read operation, said read operation comprises preview file content, file in download; Perhaps the file in this compressed file is carried out write operation.
The present invention operates compressed file in network storage device method specifically may further comprise the steps:
The first step in network storage device, is regarded as file with compressed file, clicks to get into compressed file, reads the listed files in this compressed file;
Second step, the file destination that selection will be operated according to the listed files in the compressed file;
In the 3rd step,, obtain the file data content in the file destination read-write operation scope through the file data extracting unit;
The said method of obtaining the file data in the file destination read-write operation scope through the file data extracting unit is:
First when network storage device is uploaded compressed file, accomplished situation for the user, adopted following method the pretreatment operation of this compressed file: this compressed file that decompresses earlier, the file content of storing uncompressed again is to a certain position; When if desired this compressed file being carried out read-write operation, carry out read-write operation through file data abstraction module file data in the extracted file opereating specification from this decompressing files again;
For the user first when network storage device is uploaded compressed file; This compressed file is not carried out the situation of pretreatment operation; Adopt following method: when the user carries out the compressed file reading and writing are operated first, carry out the extraction of file content, specifically comprise following step:
Step 1, the filec descriptor that reads the targeted compression file and compression data block partition table;
Step 2, according to the information that step 1 obtains, through the reference position and the side-play amount of file read-write operation, navigate to the target data block of file read-write operation;
Step 3, the file destination data are decompressed, and according to resource situation, the file data storing that will pass through decompression is at assigned address, like internal memory, Cache (cache memory), or use the mode of persistent storage.
The 4th step, according to the action type of file destination, come the complete operation distribution by the operation logic Dispatching Unit;
The 5th goes on foot, instructs according to read-write operation, the execute file operation:
For the read operation instruction, carry out read operation through the mode of calls application interface, and the result is returned to the user;
Said application programming interfaces are application programming interfaces that network storage device provides, or the application programming interfaces that provide of third party.
For the write operation instruction,, carry out read-write type operation to file earlier through calls application interface; Then the change of file content is injected the unit through file data and be injected into compressed file.
The method that said file data injection unit is injected into compressed file is:
Step 1, with the file data content compression that is modified, and be stored as the compression data block of specifying size, the size of this compression data block is consistent with the packed data block size in the targeted compression file;
The compression data block partition table of step 2, renewal compressed file injects the compression data block that upgrades;
If step 3 write operation can cause the metadata of file to change, then also need upgrade the filec descriptor of targeted compression file.
The technique effect that the present invention can reach is:
The user through the present invention can be directly to the file in the compressed file browse, file operations such as rename, editor, deletion, and need not with whole compressed file all download and decompress after carry out file operation again.
The present invention is regarded as normal folder with the compressed file in the network storage device, and is just the same as the entering normal folder behind the click entering compressed file, can browse the listed files in this compressed file; For the sub-folder in the compressed file, can get into this sub-folder after the click; For the son file in the compressed file, can the execute file browse operation; For the son file in the compressed file, can the execute file editing operation.Therefore,, can direct control be arranged in the file of compressed file, need not the compressed file in the network storage device is all downloaded to local device, and carry out file operation again after decompressing through method provided by the invention.
The present invention can help to reduce user's operation complexity, helps to be lifted at the user experience of using in the network storage device process, shows in the following areas:
1, in network storage device, compressed file can be regarded as common file, and the user can browse bibliographic structure and the listed files that is comprised in this compressed file easily as getting into the direct entering compressed file of file;
2, for the son file in the compressed file, will be the same in network storage device with other not compressed files, can the content of this document be browsed through calling third party application interface or other modes;
3, for the son file in the compressed file, will be the same in network storage device with other not compressed files, can carry out editing operation to this document through calling third party application interface or other modes;
4, if will operate certain sub-files in the compressed file, the user need not to download whole compressed file, has simplified user's operating process, has saved the consumption of Internet resources.
Description of drawings
Below in conjunction with accompanying drawing and embodiment the present invention is done further detailed explanation:
Fig. 1 is the present invention operates the method for compressed file in network storage device a operational flowchart.
Embodiment
As shown in Figure 1, the present invention operates the method for compressed file in network storage device, can in network storage device, operate the son file of compressed file inside, may further comprise the steps:
The first step in network storage device, is regarded as file with compressed file, clicks to get into compressed file, reads the listed files in this compressed file;
Second step, the file destination that selection will be operated according to the listed files in the compressed file;
In the 3rd step,, obtain the file data content in the file destination read-write operation scope through the file data extracting unit;
The said method of obtaining the file data in the file destination read-write operation scope through the file data extracting unit is:
Method one: for the user first when network storage device is uploaded compressed file; Accomplished situation to the pretreatment operation of this compressed file; Adopt following method: this compressed file that decompresses earlier, the file content of storing uncompressed again is to a certain position; When if desired this compressed file being carried out read-write operation, carry out read-write operation through file data abstraction module file data in the extracted file opereating specification from this decompressing files again;
Method two: for the user first when network storage device is uploaded compressed file; This compressed file is not carried out the situation of pretreatment operation; Adopt following method: when the user carries out the compressed file reading and writing are operated first, carry out the extraction of file content, comprise following step:
Step 1, the filec descriptor that reads the targeted compression file and compression data block partition table;
Step 2, according to the information that step 1 obtains, through the reference position and the side-play amount of file read-write operation, navigate to the target data block of file read-write operation;
Step 3, the file destination data are decompressed, and according to resource situation, the file data storing that will pass through decompression is at assigned address, like internal memory, Cache (cache memory), or use the mode of persistent storage.
The difference of method two and method one is, can not separate press operation to whole compressed file, but only decompress(ion), extract the file content data in the file destination opereating specification.
The 4th step, according to the action type of file destination, come the complete operation distribution by the operation logic Dispatching Unit;
The operation logic Dispatching Unit can be transmitted to the corresponding processing flow process with the different files operation according to the file operation type; The action type of file destination comprises two kinds: read-only type (ReadOnly) and read-write type (ReadWrite).
The 5th goes on foot, instructs according to read-write operation, the execute file operation:
For read operation instruction (to the read-only type operations of compressed file), promptly read file content data, file metadata, carry out read operation through the mode of calling API (Application interface, application programming interfaces), and the result is returned to the user;
Application programming interfaces can be the application programming interfaces that network storage device provides, and also can be the application programming interfaces that the third party provides.
For write operation instruction (to the read-write type operation of compressed file), promptly the revised file content earlier through calling API, is carried out the read-write type operation to file; Then the change of file content is injected the unit through file data and be injected into compressed file; The file data that will soon come out from file data extracting unit decompress(ion); After this document data are revised, inject the unit through file data and re-inject into compressed file.
The method that file data injection unit is injected into compressed file is:
Step 1, with the file data content compression that is modified, and be stored as the compression data block of specifying size, the size of this compression data block is consistent with the packed data block size in the targeted compression file;
The compression data block partition table of step 2, renewal compressed file injects the compression data block that upgrades;
If step 3 write operation can cause the metadata of file to change, then also need upgrade the filec descriptor of targeted compression file.
Claims (6)
1. the method for an operation compressed file in network storage device is characterized in that: in network storage device, compressed file is regarded as file; After clicking the entering compressed file, browse All Files and catalogue in this compressed file.
2. method of in network storage device, operating compressed file according to claim 1; It is characterized in that: after the said All Files of browsing in this compressed file and catalogue; File in this compressed file is carried out read operation, and said read operation comprises preview file content, file in download; Perhaps the file in this compressed file is carried out write operation.
3. method of in network storage device, operating compressed file according to claim 2, it is characterized in that: the method for said operation compressed file specifically may further comprise the steps:
The first step is clicked and is got into compressed file, reads the listed files in this compressed file;
Second step, the file destination that selection will be operated according to the listed files in the compressed file;
In the 3rd step,, obtain the file data content in the file destination read-write operation scope through the file data extracting unit;
The 4th step, according to the action type of file destination, come the complete operation distribution by the operation logic Dispatching Unit;
The 5th goes on foot, instructs according to read-write operation, the execute file operation:
For the read operation instruction, carry out read operation through the mode of calls application interface, and the result is returned to the user;
For the write operation instruction,, carry out read-write type operation to file earlier through calls application interface; Then the change of file content is injected the unit through file data and be injected into compressed file.
4. according to claim 3 in network storage device the method for operation compressed file, it is characterized in that: the method for obtaining the file data in the file destination read-write operation scope through the file data extracting unit in said the 3rd step is:
First when network storage device is uploaded compressed file, accomplished situation for the user, adopted following method the pretreatment operation of this compressed file: this compressed file that decompresses earlier, the file content of storing uncompressed again is to a certain position; When if desired this compressed file being carried out read-write operation, carry out read-write operation through file data abstraction module file data in the extracted file opereating specification from this decompressing files again;
For the user first when network storage device is uploaded compressed file; This compressed file is not carried out the situation of pretreatment operation; Adopt following method: when the user carries out the compressed file reading and writing are operated first, carry out the extraction of file content, specifically comprise following step:
Step 1, the filec descriptor that reads the targeted compression file and compression data block partition table;
Step 2, according to the information that step 1 obtains, through the reference position and the side-play amount of file read-write operation, navigate to the target data block of file read-write operation;
Step 3, the file destination data are decompressed, and according to resource situation, the file data storing that will pass through decompression is at assigned address, comprises internal memory, cache memory, or uses the mode of persistent storage.
5. according to claim 3 in network storage device the method for operation compressed file, it is characterized in that: said application programming interfaces are application programming interfaces that network storage device provides, or the application programming interfaces that provide of third party.
6. according to claim 3 in network storage device the method for operation compressed file, it is characterized in that: said the 5th step file data are injected the method that the unit is injected into compressed file and are:
Step 1, with the file data content compression that is modified, and be stored as the compression data block of specifying size, the size of this compression data block is consistent with the packed data block size in the targeted compression file;
The compression data block partition table of step 2, renewal compressed file injects the compression data block that upgrades;
If step 3 write operation can cause the metadata of file to change, then also need upgrade the filec descriptor of targeted compression file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110060784 CN102682013A (en) | 2011-03-14 | 2011-03-14 | Method for operating compressed file in network storage appliance |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110060784 CN102682013A (en) | 2011-03-14 | 2011-03-14 | Method for operating compressed file in network storage appliance |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102682013A true CN102682013A (en) | 2012-09-19 |
Family
ID=46813959
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110060784 Pending CN102682013A (en) | 2011-03-14 | 2011-03-14 | Method for operating compressed file in network storage appliance |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102682013A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103856504A (en) * | 2012-11-29 | 2014-06-11 | 英业达科技有限公司 | System and method for object file access in image file by analyzing access path |
CN104572966A (en) * | 2014-12-30 | 2015-04-29 | 北京奇虎科技有限公司 | Zip file unzipping method and device |
CN104883398A (en) * | 2015-05-18 | 2015-09-02 | 百度在线网络技术(北京)有限公司 | File download method, device and system |
CN106878428A (en) * | 2017-02-23 | 2017-06-20 | 郑州云海信息技术有限公司 | Method and device that a kind of file is uploaded |
CN107145569A (en) * | 2017-05-05 | 2017-09-08 | 广州万达文化旅游城投资有限公司 | Document management method and device |
CN107515704A (en) * | 2017-08-04 | 2017-12-26 | 珠海格力电器股份有限公司 | A kind of method and device of preview compressed file |
CN108304534A (en) * | 2018-01-30 | 2018-07-20 | 努比亚技术有限公司 | File management method, terminal and computer readable storage medium |
CN109871361A (en) * | 2018-11-26 | 2019-06-11 | 乐蜜有限公司 | A kind of file uploading method, device, electronic equipment and readable storage medium storing program for executing |
CN110401723A (en) * | 2019-08-16 | 2019-11-01 | 北京浪潮数据技术有限公司 | Method, system, equipment and the storage medium of OVA file upload services device |
-
2011
- 2011-03-14 CN CN 201110060784 patent/CN102682013A/en active Pending
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103856504A (en) * | 2012-11-29 | 2014-06-11 | 英业达科技有限公司 | System and method for object file access in image file by analyzing access path |
CN104572966A (en) * | 2014-12-30 | 2015-04-29 | 北京奇虎科技有限公司 | Zip file unzipping method and device |
CN104883398A (en) * | 2015-05-18 | 2015-09-02 | 百度在线网络技术(北京)有限公司 | File download method, device and system |
CN104883398B (en) * | 2015-05-18 | 2019-07-23 | 百度在线网络技术(北京)有限公司 | A kind of document down loading method, apparatus and system |
CN106878428A (en) * | 2017-02-23 | 2017-06-20 | 郑州云海信息技术有限公司 | Method and device that a kind of file is uploaded |
CN107145569A (en) * | 2017-05-05 | 2017-09-08 | 广州万达文化旅游城投资有限公司 | Document management method and device |
CN107145569B (en) * | 2017-05-05 | 2020-10-09 | 广州万达文化旅游城投资有限公司 | Document management method and device |
CN107515704A (en) * | 2017-08-04 | 2017-12-26 | 珠海格力电器股份有限公司 | A kind of method and device of preview compressed file |
CN108304534A (en) * | 2018-01-30 | 2018-07-20 | 努比亚技术有限公司 | File management method, terminal and computer readable storage medium |
CN109871361A (en) * | 2018-11-26 | 2019-06-11 | 乐蜜有限公司 | A kind of file uploading method, device, electronic equipment and readable storage medium storing program for executing |
CN109871361B (en) * | 2018-11-26 | 2023-05-23 | 北京乐我无限科技有限责任公司 | File uploading method and device, electronic equipment and readable storage medium |
CN110401723A (en) * | 2019-08-16 | 2019-11-01 | 北京浪潮数据技术有限公司 | Method, system, equipment and the storage medium of OVA file upload services device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102682013A (en) | Method for operating compressed file in network storage appliance | |
JP6258532B2 (en) | Cloud file system with server-side non-replication of user-ignorant encrypted files | |
JP2019517043A (en) | Automatic update of hybrid application | |
Roussev et al. | Cloud forensics–Tool development studies & future outlook | |
CN103731483B (en) | Virtual file system based on cloud computing | |
US8296338B2 (en) | Method for a cloud-based meta-file system to virtually unify remote and local files across a range of devices' local file systems | |
US8700804B1 (en) | Methods and apparatus for managing mobile content | |
US9218381B2 (en) | Method and apparatus for portable index on a removable storage medium | |
CN103067466B (en) | A kind of client and method realizing file synchronization storage | |
WO2015117426A1 (en) | File management method and device | |
CN102520987A (en) | Online experience and installation method, device, server and management system of application program | |
US20180232396A1 (en) | Methods and systems for displaying virtual files side-by-side with non-virtual files and for instantaneous file transfer | |
US20130046935A1 (en) | Shared copy cache across networked devices | |
CN101882156A (en) | Controllable cache method and system of Silverlight client side | |
US20140114920A1 (en) | Method For Synchronizing Files | |
CN101076031B (en) | Method for applying network hard disk | |
CN102231163A (en) | System and method for synchronously and preferentially updating specified file | |
CN102523301A (en) | Method for caching data on client in cloud storage | |
GB2541916A (en) | Method of operating data memory and device utilizing method | |
US11698809B1 (en) | Systems and methods for real-time file storage and retrieval | |
CN101345946B (en) | Mobile phone cartoon generating system and method based on picture | |
US11809381B2 (en) | Accessing network based content items by a mobile device while offline | |
CN102346696A (en) | Method and device for recovering files | |
Ko et al. | Cloud evidence tracks of storage service linking with iOS systems | |
CN103235785B (en) | A kind of method of batch extracting web page resources material |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120919 |