CN104717240A - File network sharing method and device - Google Patents

File network sharing method and device Download PDF

Info

Publication number
CN104717240A
CN104717240A CN201310681082.6A CN201310681082A CN104717240A CN 104717240 A CN104717240 A CN 104717240A CN 201310681082 A CN201310681082 A CN 201310681082A CN 104717240 A CN104717240 A CN 104717240A
Authority
CN
China
Prior art keywords
file
modification information
newly
uploaded
increased
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
Application number
CN201310681082.6A
Other languages
Chinese (zh)
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.)
HONGHE TECHNOLOGY Co Ltd
Original Assignee
HONGHE TECHNOLOGY Co 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 HONGHE TECHNOLOGY Co Ltd filed Critical HONGHE TECHNOLOGY Co Ltd
Priority to CN201310681082.6A priority Critical patent/CN104717240A/en
Publication of CN104717240A publication Critical patent/CN104717240A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a file network sharing method. The method comprises steps: an increment storage stack table is built; file modification information is acquired and sequentially stored in the increment storage stack table; and the newly-added file modification information in the increment storage stack table is uploaded to a server at each preset time interval. The invention also provides a file network sharing device, which comprises a building module, an acquiring module, and a sharing module, wherein the building module is used for building the increment storage stack table; the acquiring module is used for acquiring the file modification information and storing the information sequentially in the increment storage stack table; and the sharing module is used for uploading the newly-added file modification information in the increment storage stack table to the server at each preset time interval. According to the file network sharing method and the device, files after being edited can be ensured to be shared to the server via the network, and the storage resources of the server can be saved as much as possible.

Description

File network shares method and device
Technical field
The present invention relates to microcomputer data processing field, refer to that a kind of file network shares method and device especially.
Background technology
In fields such as data storage, backups, as the file changed after need preserving editor, but do not affect the content of original original document, usually need the new file that saves File As after by editor; Now, also can download if need that the content changed after editor is shared to server by network on other equipment to make the file after editor and use, then needing the whole new files passe saved as to server; Under normal circumstances, a file needs just can complete through repeatedly editing, then after having edited a part of content, all need the file of a shared redaction to server at every turn, the different edit versions storing multiple identical file in server will be caused like this to make a large amount of storage resources of server occupied, thus reduce performance and the efficiency of server.
Summary of the invention
In view of this, the object of the invention is to propose a kind of file network and share method and device, while the files through network after ensureing editor shares to server, server stores resources can be saved as far as possible.
Share method based on above-mentioned purpose file network provided by the invention, comprising:
Create a Variety storage stack table;
Obtain the amendment information of file and it be stored into successively in described Variety storage stack table;
Every prefixed time interval, file modification information newly-increased in described Variety storage stack table is uploaded onto the server.
In some embodiments, a described file modification information corresponding stored is in a list item of described Variety storage stack table; Described file network is shared method and is also comprised: give described file modification information in chronological order successively with unique version number.
In some embodiments, describedly every prefixed time interval, the step that file modification information newly-increased in described Variety storage stack table is uploaded onto the server to be comprised: when current network is interrupted, the last item uploaded before record network interruption increases the version number of file modification information newly.
In some embodiments, when described current network is interrupted, after the last item uploaded before record network interruption increases the step of the version number of file modification information newly, comprise: when network reconnects, the last item uploaded before resuming described network interruption increases next newly-increased file modification information of file modification information newly.
In some embodiments, describedly also to comprise after the step that file modification information newly-increased in described Variety storage stack table is uploaded onto the server by prefixed time interval: after each described newly-increased file modification information has all been uploaded, record the version number that the last item uploaded increases file modification information newly.
In some embodiments, after described each described newly-increased file modification information has all been uploaded, after the last item that record has been uploaded increases the step of the version number of file modification information newly, comprise: when next uplink time node arrives, the last item once uploaded before uploading increases next newly-increased file modification information of file modification information newly.
In some embodiments, describedly every prefixed time interval, the step that file modification information newly-increased in described Variety storage stack table is uploaded onto the server also to be comprised: judge whether current network signal value is greater than preset signals value; If so, then start to upload described newly-increased file modification information, if not, then suspend and upload described newly-increased file modification information.
In some embodiments, describedly every prefixed time interval, the step that file modification information newly-increased in described Variety storage stack table is uploaded onto the server also to be comprised:
When each uplink time node arrives, judge whether described newly-increased file modification information number is greater than default packing and uploads threshold value;
If so, then described newly-increased file modification information is carried out packing process and upload onto the server;
If not, then without the need to carrying out packing process, described newly-increased file modification information is uploaded successively.
In some embodiments, when the revised context of described file be in this document insert pictures file or media file time, only store the file modification information of the local memory address of this picture file or media file in described Variety storage stack table.
In some embodiments, describedly described newly-increased file modification information is carried out packing and to process and the step of uploading onto the server comprises:
Judge whether described newly-increased file modification information to be uploaded comprises the local memory address of picture file or media file;
If so, then find corresponding picture file or media file according to described local memory address, and upload onto the server in the lump after the picture file of all described correspondence found or media file packing are treated to an accessory bag.
In some embodiments, the packing treatment step of described accessory bag comprises:
Find each described picture file corresponding to newly-increased file modification information to be uploaded or media file of the local memory address comprising picture file or media file;
By the picture file of all described correspondences or media file storage under a file directory;
Set up the mapping relations of picture file in the described newly-increased file modification information described file directory corresponding with it or media file;
The described file directory of packing process.
In some embodiments, described by the picture file of all described correspondence found or media file packing be treated to the step of an accessory bag before also comprise:
Whether picture file to be packed described in judgement or the size of media file exceed the default threshold value that takes up room;
If so, then the picture file or media file that exceed the default threshold value that takes up room are not carried out packing process;
If not, then by need pack picture file or media file carry out packing process.
In some embodiments, described without the need to carrying out packing process, the step uploading described newly-increased file modification information successively comprises:
Judge whether described newly-increased file modification information to be uploaded comprises the local memory address of picture file or media file;
If so, then find corresponding picture file or media file according to described local memory address, and the picture file of the described correspondence found or media file are uploaded onto the server in the lump.
In some embodiments, described find the step of corresponding picture file or media file according to described local memory address after also comprise:
Judge whether the size of described picture file to be uploaded or media file exceedes the default threshold value that takes up room;
If so, then described exceeding is not preset the take up room picture file of threshold value or media file and upload;
If not, then described picture file or media file are uploaded onto the server.
Present invention also offers a kind of file network sharing means, comprising:
Creation module, for creating a Variety storage stack table;
Acquisition module, for obtaining the amendment information of file and it being stored in described Variety storage stack table successively;
Sharing module, for uploading onto the server file modification information newly-increased in described Variety storage stack table every prefixed time interval.
In some embodiments, described acquisition is also for giving described file modification information in chronological order successively with unique version number.
In some embodiments, described device also comprises network monitoring module, for monitoring current network state.
In some embodiments, when current network is interrupted, described network monitoring module is also for sending network interruption signal to described sharing module; Described sharing module is also for responding this network interruption signal and the last item uploaded before recording network interruption increases the version number of file modification information newly.
In some embodiments, when network reconnects, described network monitoring module is also for sending network recovery signal to described sharing module; Described sharing module is also for responding this network recovery signal and the last item uploaded before resuming described network interruption increases next newly-increased file modification information of file modification information newly.
In some embodiments, described network monitoring module is also for judging whether current network signal value is greater than preset signals value; If so, then described network monitoring module also starts to upload triggering signal for sending to described sharing module; If not, then described network monitoring module also uploads triggering signal for sending time-out to described sharing module; Described sharing module also describedly starts to upload triggering signal for responding and starts to upload described newly-increased file modification information, or described sharing module is also uploaded triggering signal and suspended upload described newly-increased file modification information for responding described time-out.
In some embodiments, after each described newly-increased file modification information has all been uploaded, described sharing module has also increased the version number of file modification information newly for recording the last item uploaded.
In some embodiments, when next uplink time node arrives, described sharing module the last item also for once having uploaded before uploading increases next newly-increased file modification information of file modification information newly.
In some embodiments, when each uplink time node arrives, described sharing module is also for judging whether described newly-increased file modification information number is greater than default packing and uploads threshold value; If so, then described newly-increased file modification information is carried out packing process and upload onto the server; If not, then without the need to carrying out packing process, described newly-increased file modification information is uploaded successively.
In some embodiments, when the revised context of described file be in this document insert pictures file or media file time, described acquisition module is also for only storing the file modification information of the local memory address of this picture file or media file in described Variety storage stack table.
In some embodiments, described sharing module is also for judging whether described newly-increased file modification information to be uploaded comprises the local memory address of picture file or media file; If so, then find corresponding picture file or media file according to described local memory address, and upload onto the server in the lump after the picture file of all described correspondence found or media file packing are treated to an accessory bag.
In some embodiments, described sharing module also for find the local memory address comprising picture file or media file each described newly-increased file modification information to be uploaded corresponding to picture file or media file; By the picture file of all described correspondences or media file storage under a file directory; Set up the mapping relations of picture file in the described newly-increased file modification information described file directory corresponding with it or media file; The described file directory of packing process.
In some embodiments, whether described sharing module also exceedes the default threshold value that takes up room for the size of picture file to be packed described in judging or media file; If so, then the picture file or media file that exceed the default threshold value that takes up room are not carried out packing process; If not, then by need pack picture file or media file carry out packing process.
In some embodiments, described sharing module is also for judging whether described newly-increased file modification information to be uploaded comprises the local memory address of picture file or media file; If so, then find corresponding picture file or media file according to described local memory address, and the picture file of the described correspondence found or media file are uploaded onto the server in the lump.
In some embodiments, described sharing module is also for judging whether the size of described picture file to be uploaded or media file exceedes the default threshold value that takes up room; If so, then described exceeding is not preset the take up room picture file of threshold value or media file and upload; If not, then described picture file or media file are uploaded onto the server.
As can be seen from above, described file network provided by the invention shares method and device, by creating Variety storage stack table, the revised context done during editing files is stored in described Variety storage stack table, make not make any amendment in original document, Variety storage stack table is shared to server by network, when needs are opened and revised rear file, described Variety storage stack table is combined with original document and opens; Without the need to sharing to server by the new file that saves as is whole after editor at every turn, thus save the resource of server to greatest extent.Further, when each uploading nodes arrives, newly-increased file modification information is only uploaded, to save server resource further.
Preferably, the file modification information stored in described Variety storage stack table, be endowed unique version number successively in chronological order, the last item uploaded before the network terminal can be interrupted by version number's record is made to increase the position of file modification information in described Variety storage stack table newly, to resume next newly-increased file modification information during network recovery.Meanwhile, when each timing node complete upload time, can record by version number the last item uploaded and increase the position of file modification information in described Variety storage stack table newly, so as next timing node arrive time resume next newly-increased file modification information.
In addition, also whether meet the requirements of signal value by monitor network signal and determine whether uploading newly-increased file modification information, thus ensure file upload quality.
Further, when also can arrive according to each uplink time node, need the newly-increased file modification information number uploaded whether to be greater than default packing to upload after threshold value determines whether carrying out packing process to newly-increased file modification information to be uploaded and upload again, or process without packing and directly upload; To ensure the speed uploaded.
Preferably, when the revised context of described file be in this document insert pictures file or media file time, only store the file modification information of the local memory address of this picture file or media file in described Variety storage stack table, less to ensure taking up room of Variety storage stack table, thus improve its speed of service.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that described file network provided by the invention shares an embodiment of method;
Fig. 2 is the schematic flow sheet that described file network provided by the invention shares another embodiment of method;
Fig. 3 is the structural representation of described file network sharing means embodiment provided by the invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with specific embodiment, and with reference to accompanying drawing, the present invention is described in more detail.
With reference to accompanying drawing 1, share the schematic flow sheet of an embodiment of method for described file network provided by the invention.
Described file network shares method, comprising:
Step 101: create a Variety storage stack table;
Step 102: obtain the amendment information of file and it be stored into successively in described Variety storage stack table;
Step 103: file modification information newly-increased in described Variety storage stack table is uploaded onto the server every prefixed time interval.
Wherein, a described file modification information corresponding stored is in a list item of described Variety storage stack table; Described file network is shared method and is also comprised: give described file modification information in chronological order successively with unique version number; This means, a linear list regarded alternatively as by Variety storage stack table here, wherein correspondingly in each lattice only stores a file modification information, and the file modification information stored in each lattice can be endowed unique version number; Preferably, the time sequencing that this version number can be stored in described Variety storage stack table according to file modification information is given; Optionally, described file modification information is stored in described Variety storage stack table in chronological order successively, then the sequence number of the list item that the version number given in described file modification information can directly utilize it to store.
A kind of Alternate embodiments of the described file modification information stored in described Variety storage stack table is the character string of json form.Because the revised context after editing file is all stored in described Variety storage stack table, therefore original document can remain unchanged all the time, and the content of described Variety storage stack table in editing process is stored in internal memory, all the time to ensure data rate memory faster; The new file preserved after editor is then original document+Variety storage stack table, and now, described Variety storage stack table transfers the file of the xml form be stored in external memory to from internal memory.
Described file network shares described in embodiment of the method the file of the courseware mode that by the file of edit-modify can be similar PPT, wherein can comprise multiple page (the every one page lantern slide as in PPT), it is other that described file modification information then can comprise three levels: file-level, page-level and object level.
Below for the character string of json form, citing describes the not corresponding character string example of described three levels:
1, file-level
New files: type=" IP " Version=" 0 " Content=" ID='1234567890'Name='2013-10-28-9-49-11' ";
Deleted file: type=" DP " Version=" 1 " Content=" ID='1234567890' ";
Transaction file:
type="UP"Version="2"Content="ID='1234567890'ActiveSlide='9876543210′″;
2, page level
The newly-built page: type=" IS " Version=" 3 " Content=" ID='9876543210'Color='white' ";
Delete the page: type=" DS " Version=" 4 " Content=" ID='9876543210' ";
Upgrade the page: type=" US " Version=" 5 " Content=" ID='9876543210'Color='red' ";
3, object rank
New Object:
type="II"Version="6"SlideID="9876543210"Content="ID='3216549870'DataX='123,0,1,0,1'DataY='234,0,1,0,1'";
Deleting object:
Type=" DI " Version=" 7 " SlideID=" 9876543210 " Content=" ID='3216549870' "; Upgating object:
type="UI"Version="8"SlideID="9876543210"Content="ID='3216549870'Width='4'"。
Preferably, described step 103 can comprise: when current network is interrupted, and the last item uploaded before record network interruption increases the version number of file modification information newly; And when network reconnects, the last item uploaded before resuming described network interruption increases next newly-increased file modification information of file modification information newly.
Further, also comprise after described step 103: after each described newly-increased file modification information has all been uploaded, record the version number that the last item uploaded increases file modification information newly; When next uplink time node arrives, the last item once uploaded before uploading increases next newly-increased file modification information of file modification information newly.Meaning namely, after having uploaded at every turn, when uploading nodes next time after prefixed time interval arrives, the content uploaded no longer is uploaded, and next file modification information of the last the last item file modification information uploaded of continued access is uploaded.
Optionally, described step 103 also comprises: judge whether current network signal value is greater than preset signals value; If so, then start to upload described newly-increased file modification information, if not, then suspend and upload described newly-increased file modification information.
Preferably, described step 103 also can comprise:
When each uplink time node arrives, judge whether described newly-increased file modification information number is greater than default packing and uploads threshold value;
If so, then described newly-increased file modification information is carried out packing process and upload onto the server;
If not, then without the need to carrying out packing process, described newly-increased file modification information is uploaded successively.
With reference to accompanying drawing 2, for described file network provided by the invention shares the schematic flow sheet of another embodiment of method.
Described file network shares method, comprising:
Step 201: create a Variety storage stack table;
Step 202: obtain the amendment information of file and it be stored into successively in described Variety storage stack table;
Step 203: give described file modification information in chronological order successively with unique version number;
Step 204: judge whether through prefixed time interval;
If not, then step 202 is forwarded to; If then forward step 205 to: judge whether current network signal value is greater than preset signals value;
If not, then step 206 is forwarded to: suspend and upload described newly-increased file modification information; If so, then step 207 is forwarded to: start to upload described newly-increased file modification information;
Step 208: when each uplink time node arrives, judges whether described newly-increased file modification information number is greater than default packing and uploads threshold value (such as 5,8,10 etc.);
If so, then step 209 is forwarded to: described newly-increased file modification information is carried out packing and processes and upload onto the server; If not, then forward step 210 to: without the need to carrying out packing process, upload described newly-increased file modification information successively;
Step 211 or 211 ': judge whether current network interrupts;
If not, then continue to upload; If so, then step 212 or 212 ' is forwarded to: the last item uploaded before record network interruption increases the version number of file modification information newly;
Step 213 or 213 ': judge whether network reconnects (i.e. network recovery);
If so, then step 214 or 214 ' is forwarded to: the last item uploaded before resuming described network interruption increases next newly-increased file modification information of file modification information newly.
Further, when the revised context of described file is for insert pictures file or media file (being such as a photo or one section of video) in this document, stores and only comprise the local memory address of this picture file or media file or the file modification information of server stores address in described Variety storage stack table; That is, original picture file or media file is not stored.
Optionally, if the described file of insert pictures in this document or media file are the existing file of existing file and this locality in server simultaneously, then can also store simultaneously only comprise the local memory address of this picture file or media file and the file modification information of server memory address in described Variety storage stack table; When opening the file of version after editor, can directly find this picture file or media file from local memory address and open; And change when using terminal, then can find this picture file or media file and open from server stores address.
And when the described file of insert pictures in this document or media file do not store in the server, then described step 209 can comprise further:
Judge whether described newly-increased file modification information to be uploaded comprises the local memory address of picture file or media file;
If so, then find corresponding picture file or media file according to described local memory address, and upload onto the server in the lump after the picture file of all described correspondence found or media file packing are treated to an accessory bag.
Here, an Alternate embodiments of the packing treatment step of described accessory bag is comprise:
Find each described picture file corresponding to newly-increased file modification information to be uploaded or media file of the local memory address comprising picture file or media file;
By the picture file of all described correspondences or media file storage under a file directory;
Set up the mapping relations (such as adopting the mode of pointer to set up mapping relations) of picture file in the described newly-increased file modification information described file directory corresponding with it or media file;
The described file directory of packing process.
Optionally, also comprise before described step 209:
Whether picture file to be packed described in judgement or the size of media file exceed the default threshold value that takes up room (such as 5M, 8M, 10M etc.);
If so, then the picture file or media file that exceed the default threshold value that takes up room are not carried out packing process;
If not, then by need pack picture file or media file carry out packing process.
Preferably, described step 210 comprises:
Judge whether described newly-increased file modification information to be uploaded comprises the local memory address of picture file or media file;
If so, then find corresponding picture file or media file according to described local memory address, and the picture file of the described correspondence found or media file are uploaded onto the server in the lump.
Optionally, also comprise after described step 210:
Judge whether the size of described picture file to be uploaded or media file exceedes the default threshold value that takes up room;
If so, then described exceeding is not preset the take up room picture file of threshold value or media file and upload;
If not, then described picture file or media file are uploaded onto the server.
As can be seen from above-described embodiment, described file network provided by the invention shares method, by creating Variety storage stack table, the revised context done during editing files is stored in described Variety storage stack table, make not make any amendment in original document, Variety storage stack table is shared to server by network, when needs are opened and revised rear file, described Variety storage stack table is combined with original document and opens; Without the need to sharing to server by the new file that saves as is whole after editor at every turn, thus save the resource of server to greatest extent.Further, when each uploading nodes arrives, newly-increased file modification information is only uploaded, to save server resource further.
Preferably, the file modification information stored in described Variety storage stack table, be endowed unique version number successively in chronological order, the last item uploaded before the network terminal can be interrupted by version number's record is made to increase the position of file modification information in described Variety storage stack table newly, to resume next newly-increased file modification information during network recovery.Meanwhile, when each timing node complete upload time, can record by version number the last item uploaded and increase the position of file modification information in described Variety storage stack table newly, so as next timing node arrive time resume next newly-increased file modification information.
In addition, also whether meet the requirements of signal value by monitor network signal and determine whether uploading newly-increased file modification information, thus ensure file upload quality.
Further, when also can arrive according to each uplink time node, need the newly-increased file modification information number uploaded whether to be greater than default packing to upload after threshold value determines whether carrying out packing process to newly-increased file modification information to be uploaded and upload again, or process without packing and directly upload; To ensure the speed uploaded.
Preferably, when the revised context of described file be in this document insert pictures file or media file time, only store the file modification information of the local memory address of this picture file or media file in described Variety storage stack table, less to ensure taking up room of Variety storage stack table, thus improve its speed of service.
It needs to be noted; each step that above-mentioned file network is shared in embodiment of the method all mutually can intersect, replaces, increases, delete; therefore; the sharing method in file network and also should belong to protection scope of the present invention of these rational permutation and combination conversion, and protection scope of the present invention should be confined on described embodiment.
Present invention also offers a kind of file network sharing means, with reference to accompanying drawing 3, is the structural representation of described file network sharing means embodiment provided by the invention.
Described file network sharing means 300, comprising:
Creation module 301, for creating a Variety storage stack table;
Acquisition module 302, for obtaining the amendment information of file and it being stored in described Variety storage stack table successively;
Sharing module 303, for uploading onto the server file modification information newly-increased in described Variety storage stack table every prefixed time interval.
Preferably, described acquisition module 302 is also for giving described file modification information in chronological order successively with unique version number.
Described file network sharing means 300 also can comprise network monitoring module 304 further, for monitoring current network state.
Further, when current network is interrupted, described network monitoring module 304 is also for sending network interruption signal to described sharing module 303; Described sharing module 303 is also for responding this network interruption signal and the last item uploaded before recording network interruption increases the version number of file modification information newly.When network reconnects, described network monitoring module 304 is also for sending network recovery signal to described sharing module 303; Described sharing module 303 is also for responding this network recovery signal and the last item uploaded before resuming described network interruption increases next newly-increased file modification information of file modification information newly.
Preferably, described network monitoring module 304 is also for judging whether current network signal value is greater than preset signals value; If so, then described network monitoring module 304 also starts to upload triggering signal for sending to described sharing module 303; If not, then described network monitoring module 304 also uploads triggering signal for sending time-out to described sharing module 303; Described sharing module 303 also describedly starts to upload triggering signal for responding and starts to upload described newly-increased file modification information, or described sharing module 303 is also uploaded triggering signal and suspended upload described newly-increased file modification information for responding described time-out.
Further, after each described newly-increased file modification information has all been uploaded, described sharing module 303 has also increased the version number of file modification information newly for recording the last item uploaded.When next uplink time node arrives, described sharing module 303 the last item also for once having uploaded before uploading increases next newly-increased file modification information of file modification information newly.
Optionally, when each uplink time node arrives, described sharing module 303 is also for judging whether described newly-increased file modification information number is greater than default packing and uploads threshold value; If so, then described newly-increased file modification information is carried out packing process and upload onto the server; If not, then without the need to carrying out packing process, described newly-increased file modification information is uploaded successively.
Preferably, when the revised context of described file be in this document insert pictures file or media file time, described acquisition module 302 is also for only storing the file modification information of the local memory address of this picture file or media file in described Variety storage stack table.
Further, described sharing module 303 is also for judging whether described newly-increased file modification information to be uploaded comprises the local memory address of picture file or media file; If so, then find corresponding picture file or media file according to described local memory address, and upload onto the server in the lump after the picture file of all described correspondence found or media file packing are treated to an accessory bag.
Optionally, described sharing module 303 also for find the local memory address comprising picture file or media file each described newly-increased file modification information to be uploaded corresponding to picture file or media file; By the picture file of all described correspondences or media file storage under a file directory; Set up the mapping relations of picture file in the described newly-increased file modification information described file directory corresponding with it or media file; The described file directory of packing process.
Preferably, whether described sharing module 303 also exceedes the default threshold value that takes up room for the size of picture file to be packed described in judging or media file; If so, then the picture file or media file that exceed the default threshold value that takes up room are not carried out packing process; If not, then by need pack picture file or media file carry out packing process.
Further, described sharing module 303 is also for judging whether described newly-increased file modification information to be uploaded comprises the local memory address of picture file or media file; If so, then find corresponding picture file or media file according to described local memory address, and the picture file of the described correspondence found or media file are uploaded onto the server in the lump.
Optionally, described sharing module 303 is also for judging whether the size of described picture file to be uploaded or media file exceedes the default threshold value that takes up room; If so, then described exceeding is not preset the take up room picture file of threshold value or media file and upload; If not, then described picture file or media file are uploaded onto the server.
The course of work of embodiment to described file network sharing means sharing method below in conjunction with described file network is described in detail.
With reference to accompanying drawing 2, for described file network provided by the invention shares the schematic flow sheet of another embodiment of method.
Described file network shares method, comprising:
Step 201: described creation module 301 creates a Variety storage stack table;
Step 202: described acquisition module 302 obtains the amendment information of file and it is stored in described Variety storage stack table successively;
Step 203: described acquisition module 302 gives described file modification information in chronological order successively with unique version number;
Step 204: described sharing module 303 judges whether through prefixed time interval;
If not, then step 202 is forwarded to; If then forward step 205 to: described sharing module 303 judges whether current network signal value is greater than preset signals value;
If not, then step 206 is forwarded to: described sharing module 303 time-out uploads described newly-increased file modification information; If so, then step 207 is forwarded to: described sharing module 303 starts to upload described newly-increased file modification information;
Step 208: when each uplink time node arrives, described sharing module 303 judges whether described newly-increased file modification information number is greater than default packing and uploads threshold value (such as 10);
If so, then step 209 is forwarded to: described newly-increased file modification information is carried out packing and processed and upload onto the server by described sharing module 303; If not, then forward step 210 to: described sharing module 303, without the need to carrying out packing process, uploads described newly-increased file modification information successively;
Step 211 or 211 ': described network monitoring module 304 judges whether current network interrupts;
If not, then continue to upload; If so, then step 212 or 212 ' is forwarded to: the last item uploaded before described sharing module 303 records network interruption increases the version number of file modification information newly;
Step 213 or 213 ': described network monitoring module 304 judges whether network reconnects (i.e. network recovery);
If so, then step 214 or 214 ' is forwarded to: the last item uploaded before described sharing module 303 resumes described network interruption increases next newly-increased file modification information of file modification information newly.
As can be seen from above-described embodiment, described file network sharing means provided by the invention, by creating Variety storage stack table, the revised context done during editing files is stored in described Variety storage stack table, make not make any amendment in original document, Variety storage stack table is shared to server by network, when needs are opened and revised rear file, described Variety storage stack table is combined with original document and opens; Without the need to sharing to server by the new file that saves as is whole after editor at every turn, thus save the resource of server to greatest extent.Further, when each uploading nodes arrives, newly-increased file modification information is only uploaded, to save server resource further.
Preferably, the file modification information stored in described Variety storage stack table, be endowed unique version number successively in chronological order, the last item uploaded before the network terminal can be interrupted by version number's record is made to increase the position of file modification information in described Variety storage stack table newly, to resume next newly-increased file modification information during network recovery.Meanwhile, when each timing node complete upload time, can record by version number the last item uploaded and increase the position of file modification information in described Variety storage stack table newly, so as next timing node arrive time resume next newly-increased file modification information.
In addition, also whether meet the requirements of signal value by monitor network signal and determine whether uploading newly-increased file modification information, thus ensure file upload quality.
Further, when also can arrive according to each uplink time node, need the newly-increased file modification information number uploaded whether to be greater than default packing to upload after threshold value determines whether carrying out packing process to newly-increased file modification information to be uploaded and upload again, or process without packing and directly upload; To ensure the speed uploaded.
Preferably, when the revised context of described file be in this document insert pictures file or media file time, only store the file modification information of the local memory address of this picture file or media file in described Variety storage stack table, less to ensure taking up room of Variety storage stack table, thus improve its speed of service.
It needs to be noted, the embodiment of above-mentioned file network sharing means use only described file network and shares the embodiment of method to illustrate the course of work of each module, those skilled in the art can be easy to expect, these module application are shared in other embodiments of method to described file network.Certainly; each step shared in embodiment of the method due to described file network all mutually can intersect, replaces, increases, delete; therefore; these rational permutation and combination conversion also should belong to protection scope of the present invention in file network sharing means, and protection scope of the present invention should not to be confined on described embodiment.
Those of ordinary skill in the field are to be understood that: the foregoing is only specific embodiments of the invention; be not limited to the present invention; within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (29)

1. file network shares a method, it is characterized in that, comprising:
Create a Variety storage stack table;
Obtain the amendment information of file and it be stored into successively in described Variety storage stack table;
Every prefixed time interval, file modification information newly-increased in described Variety storage stack table is uploaded onto the server.
2. method according to claim 1, is characterized in that, a described file modification information corresponding stored is in a list item of described Variety storage stack table; Described file network is shared method and is also comprised: give described file modification information in chronological order successively with unique version number.
3. method according to claim 2, it is characterized in that, describedly every prefixed time interval, the step that file modification information newly-increased in described Variety storage stack table is uploaded onto the server to be comprised: when current network is interrupted, the last item uploaded before record network interruption increases the version number of file modification information newly.
4. method according to claim 3, it is characterized in that, when described current network is interrupted, after the last item uploaded before record network interruption increases the step of the version number of file modification information newly, comprise: when network reconnects, the last item uploaded before resuming described network interruption increases next newly-increased file modification information of file modification information newly.
5. method according to claim 2, it is characterized in that, describedly also to comprise after the step that file modification information newly-increased in described Variety storage stack table is uploaded onto the server by prefixed time interval: after each described newly-increased file modification information has all been uploaded, record the version number that the last item uploaded increases file modification information newly.
6. method according to claim 5, it is characterized in that, after described each described newly-increased file modification information has all been uploaded, after the last item that record has been uploaded increases the step of the version number of file modification information newly, comprise: when next uplink time node arrives, the last item once uploaded before uploading increases next newly-increased file modification information of file modification information newly.
7. method according to claim 1, is characterized in that, describedly the step that file modification information newly-increased in described Variety storage stack table is uploaded onto the server also is comprised every prefixed time interval: judge whether current network signal value is greater than preset signals value; If so, then start to upload described newly-increased file modification information, if not, then suspend and upload described newly-increased file modification information.
8. the method according to claim 1-7 any one, is characterized in that, describedly the step that file modification information newly-increased in described Variety storage stack table is uploaded onto the server also is comprised every prefixed time interval:
When each uplink time node arrives, judge whether described newly-increased file modification information number is greater than default packing and uploads threshold value;
If so, then described newly-increased file modification information is carried out packing process and upload onto the server;
If not, then without the need to carrying out packing process, described newly-increased file modification information is uploaded successively.
9. method according to claim 8, it is characterized in that, when the revised context of described file be in this document insert pictures file or media file time, only store the file modification information of the local memory address of this picture file or media file in described Variety storage stack table.
10. method according to claim 9, is characterized in that, describedly described newly-increased file modification information is carried out packing and to process and the step of uploading onto the server comprises:
Judge whether described newly-increased file modification information to be uploaded comprises the local memory address of picture file or media file;
If so, then find corresponding picture file or media file according to described local memory address, and upload onto the server in the lump after the picture file of all described correspondence found or media file packing are treated to an accessory bag.
11. methods according to claim 10, is characterized in that, the packing treatment step of described accessory bag comprises:
Find each described picture file corresponding to newly-increased file modification information to be uploaded or media file of the local memory address comprising picture file or media file;
By the picture file of all described correspondences or media file storage under a file directory;
Set up the mapping relations of picture file in the described newly-increased file modification information described file directory corresponding with it or media file;
The described file directory of packing process.
12. methods according to claim 11, is characterized in that, described by the picture file of all described correspondence found or media file packing be treated to the step of an accessory bag before also comprise:
Whether picture file to be packed described in judgement or the size of media file exceed the default threshold value that takes up room;
If so, then the picture file or media file that exceed the default threshold value that takes up room are not carried out packing process;
If not, then by need pack picture file or media file carry out packing process.
13. methods according to claim 9, is characterized in that, described without the need to carrying out packing process, the step uploading described newly-increased file modification information successively comprises:
Judge whether described newly-increased file modification information to be uploaded comprises the local memory address of picture file or media file;
If so, then find corresponding picture file or media file according to described local memory address, and the picture file of the described correspondence found or media file are uploaded onto the server in the lump.
14. methods according to claim 13, is characterized in that, described find the step of corresponding picture file or media file according to described local memory address after also comprise:
Judge whether the size of described picture file to be uploaded or media file exceedes the default threshold value that takes up room;
If so, then described exceeding is not preset the take up room picture file of threshold value or media file and upload;
If not, then described picture file or media file are uploaded onto the server.
15. 1 kinds of file network sharing means, is characterized in that, comprising:
Creation module, for creating a Variety storage stack table;
Acquisition module, for obtaining the amendment information of file and it being stored in described Variety storage stack table successively;
Sharing module, for uploading onto the server file modification information newly-increased in described Variety storage stack table every prefixed time interval.
16. devices according to claim 15, is characterized in that, described acquisition is also for giving described file modification information in chronological order successively with unique version number.
17. devices according to claim 16, is characterized in that, also comprise network monitoring module, for monitoring current network state.
18. devices according to claim 17, is characterized in that, when described network monitoring module is also for monitoring current network interruption, send network interruption signal to described sharing module; Described sharing module is also for responding this network interruption signal and the last item uploaded before recording network interruption increases the version number of file modification information newly.
19. devices according to claim 18, is characterized in that, described network monitoring module also for monitor network reconnect time, send network recovery signal to described sharing module; Described sharing module is also for responding this network recovery signal and the last item uploaded before resuming described network interruption increases next newly-increased file modification information of file modification information newly.
20. devices according to claim 17, is characterized in that, described network monitoring module is also for judging whether current network signal value is greater than preset signals value; If so, then described network monitoring module also starts to upload triggering signal for sending to described sharing module; If not, then described network monitoring module also uploads triggering signal for sending time-out to described sharing module; Described sharing module also describedly starts to upload triggering signal for responding and starts to upload described newly-increased file modification information, or described sharing module is also uploaded triggering signal and suspended upload described newly-increased file modification information for responding described time-out.
21. devices according to claim 15, is characterized in that, after each described newly-increased file modification information has all been uploaded, described sharing module also increases the version number of file modification information newly for recording the last item uploaded.
22. devices according to claim 21, is characterized in that, when next uplink time node arrives, described sharing module the last item also for once having uploaded before uploading increases next newly-increased file modification information of file modification information newly.
23. devices according to claim 15-22 any one, is characterized in that, when each uplink time node arrives, described sharing module is also for judging whether described newly-increased file modification information number is greater than default packing and uploads threshold value; If so, then described newly-increased file modification information is carried out packing process and upload onto the server; If not, then without the need to carrying out packing process, described newly-increased file modification information is uploaded successively.
24. devices according to claim 23, it is characterized in that, when the revised context of described file be in this document insert pictures file or media file time, described acquisition module is also for only storing the file modification information of the local memory address of this picture file or media file in described Variety storage stack table.
25. devices according to claim 24, is characterized in that, described sharing module is also for judging whether described newly-increased file modification information to be uploaded comprises the local memory address of picture file or media file; If so, then find corresponding picture file or media file according to described local memory address, and upload onto the server in the lump after the picture file of all described correspondence found or media file packing are treated to an accessory bag.
26. devices according to claim 25, it is characterized in that, described sharing module also for find the local memory address comprising picture file or media file each described newly-increased file modification information to be uploaded corresponding to picture file or media file; By the picture file of all described correspondences or media file storage under a file directory; Set up the mapping relations of picture file in the described newly-increased file modification information described file directory corresponding with it or media file; The described file directory of packing process.
27. devices according to claim 26, is characterized in that, whether described sharing module also exceedes the default threshold value that takes up room for the size of picture file to be packed described in judging or media file; If so, then the picture file or media file that exceed the default threshold value that takes up room are not carried out packing process; If not, then by need pack picture file or media file carry out packing process.
28. devices according to claim 24, is characterized in that, described sharing module is also for judging whether described newly-increased file modification information to be uploaded comprises the local memory address of picture file or media file; If so, then find corresponding picture file or media file according to described local memory address, and the picture file of the described correspondence found or media file are uploaded onto the server in the lump.
29. devices according to claim 28, is characterized in that, described sharing module is also for judging whether the size of described picture file to be uploaded or media file exceedes the default threshold value that takes up room; If so, then described exceeding is not preset the take up room picture file of threshold value or media file and upload; If not, then described picture file or media file are uploaded onto the server.
CN201310681082.6A 2013-12-12 2013-12-12 File network sharing method and device Pending CN104717240A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310681082.6A CN104717240A (en) 2013-12-12 2013-12-12 File network sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310681082.6A CN104717240A (en) 2013-12-12 2013-12-12 File network sharing method and device

Publications (1)

Publication Number Publication Date
CN104717240A true CN104717240A (en) 2015-06-17

Family

ID=53416200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310681082.6A Pending CN104717240A (en) 2013-12-12 2013-12-12 File network sharing method and device

Country Status (1)

Country Link
CN (1) CN104717240A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107810499A (en) * 2015-09-14 2018-03-16 谷歌有限责任公司 The system and method for storing and retrieving for content
CN109151026A (en) * 2018-08-14 2019-01-04 常熟市顺网网络技术服务有限公司 A kind of system and method that internet document is shared
CN109726345A (en) * 2018-11-27 2019-05-07 广东耐思智慧科技有限公司 A kind of quick transmission saves the method and device of content of edit

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999400A (en) * 2012-11-22 2013-03-27 中国电信股份有限公司云计算分公司 Data backup method and device of cloud storage system
CN102999482A (en) * 2011-12-12 2013-03-27 微软公司 Technique for managing collaborative documents
CN103425663A (en) * 2012-05-16 2013-12-04 中兴通讯股份有限公司 Method and device for creating tables, saving records and deleting records for embedded system database

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999482A (en) * 2011-12-12 2013-03-27 微软公司 Technique for managing collaborative documents
CN103425663A (en) * 2012-05-16 2013-12-04 中兴通讯股份有限公司 Method and device for creating tables, saving records and deleting records for embedded system database
CN102999400A (en) * 2012-11-22 2013-03-27 中国电信股份有限公司云计算分公司 Data backup method and device of cloud storage system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107810499A (en) * 2015-09-14 2018-03-16 谷歌有限责任公司 The system and method for storing and retrieving for content
US11930070B2 (en) 2015-09-14 2024-03-12 Google Llc Systems and methods for content storage and retrieval
CN109151026A (en) * 2018-08-14 2019-01-04 常熟市顺网网络技术服务有限公司 A kind of system and method that internet document is shared
CN109726345A (en) * 2018-11-27 2019-05-07 广东耐思智慧科技有限公司 A kind of quick transmission saves the method and device of content of edit

Similar Documents

Publication Publication Date Title
CN106657174B (en) Data synchronization method, data updating method and data updating device
CN104737135B (en) The information processing terminal and synchronisation control means
CN102193926B (en) A kind of manuscript management method and system based on the on-line automatic preservation of manuscript
CN103873307B (en) For the method for PPPOE username and password backup-and-restores
US20170134495A1 (en) Method and apparatus for sharing collaboratively edited document
CN106506352B (en) A kind of method and device to E-Packet
CN104717239A (en) Method of cooperatively editing shared file, server and user side
TW201351264A (en) System and method for storing distributed documents
CN109561164B (en) NAT table entry management method and device and NAT equipment
CN103823771A (en) Remote communication method and remote communication system
CN102136941B (en) Method, device and system for data backup of integrated access device
CN101771548A (en) File synchronizing method and system
CN104717240A (en) File network sharing method and device
CN104050285B (en) A kind of photo storage method and device
CN101764756B (en) Method and device for pruning forwarding path of multicast data and network equipment
CN104717241A (en) File network sharing method, terminal and server
CN104717248A (en) File network sharing methods, server and terminal
CN107729419A (en) A kind of intelligence preserves method, mobile terminal and the storage medium of picture and video
CN104636441A (en) Network file system realization method and device
CN105554051A (en) Method for rapid photo album synchronization in household cloud service
CN102196004B (en) A kind of management method of remote material file and system
AU2021202286A1 (en) Managing data
CN104753768A (en) Information processing method and electronic equipment
CN104717246A (en) File network sharing methods, terminal and server
CN104717242A (en) Method of editing shared file by multiple users, server and user side

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: C1104 room 100085 Beijing city Haidian District Third Street No. 9 C

Applicant after: Hitevision Polytron Technologies Inc

Address before: C1104 room 100085 Beijing city Haidian District Third Street No. 9 C

Applicant before: HONGHE TECHNOLOGY CO., LTD.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150617