CN105282243A - File synchronization method and terminal - Google Patents

File synchronization method and terminal Download PDF

Info

Publication number
CN105282243A
CN105282243A CN201510628720.7A CN201510628720A CN105282243A CN 105282243 A CN105282243 A CN 105282243A CN 201510628720 A CN201510628720 A CN 201510628720A CN 105282243 A CN105282243 A CN 105282243A
Authority
CN
China
Prior art keywords
file
edit
edit session
object file
terminal
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
CN201510628720.7A
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.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201510628720.7A priority Critical patent/CN105282243A/en
Publication of CN105282243A publication Critical patent/CN105282243A/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

Embodiments of the invention provide a file synchronization method and a terminal. The method comprises steps of obtaining a first edition time for editing a first object file in a terminal, wherein the first edition time is the time for performing latest edition of the first object file; obtaining a second edition time for editing a second object file corresponding to the first object file and stored in a server, wherein the second edition time is the time for performing latest edition of the second object file; determining whether or not the first edition time and the second edition time are consistent to each other; and when the first edition time and the second edition time are not consistent to each other, uploading the first object file to the server. The invention can update files uploaded to the server.

Description

A kind of method of file synchronization and terminal
Technical field
The present invention relates to communication technical field, particularly relate to a kind of method and terminal of file synchronization.
Background technology
At present, people can utilize mobile Internet the excellent picture recorded in daily life or photo to be shared whenever and wherever possible, to realize sharing oneself people at one's side or thing by the mode of picture.In actual applications, before sharing picture, user can treat the picture shared and carry out editing and processing, after having edited, picture can be shared by sharing platform.But it is generally all disposable behavior that current picture shares that technology shares picture, and namely picture is once after sharing away, again can not edit the picture shared away.
Summary of the invention
Embodiments provide a kind of method and terminal of file synchronization, can the file in uploading onto the server be upgraded.
Embodiments provide a kind of method of file synchronization, comprising:
The first edit session edited is carried out in acquisition for the first object file in terminal, wherein, described first edit session is the time of carrying out up-to-date editor for described first object file;
Obtain and carry out for and the second file destination be stored in server corresponding with described first object file the second edit session of editing, wherein, described second edit session is the time of carrying out up-to-date editor for described second file destination;
Judge that whether described first edit session is consistent with described second edit session;
When described first edit session and described second edit session inconsistent time, upload described first object file to described server.
Correspondingly, the embodiment of the present invention additionally provides a kind of terminal, comprising:
First acquiring unit, carry out for the first object file in terminal the first edit session of editing for obtaining, wherein, described first edit session is the time of carrying out up-to-date editor for described first object file;
Second acquisition unit, carry out for and the second file destination be stored in server corresponding with described first object file the second edit session of editing for obtaining, wherein, described second edit session is the time of carrying out up-to-date editor for described second file destination;
Judging unit, for judging that whether described first edit session is consistent with described second edit session;
Uploading unit, for judge when described judging unit described first edit session and described second edit session inconsistent time, upload described first object file to described server.
In the embodiment of the present invention, can obtain and carry out for the first object file in terminal the first edit session of editing, and obtain and carry out for and the second file destination be stored in server corresponding with first object file the second edit session of editing, judge that whether the first edit session is consistent with the second edit session, when the first edit session and the second edit session inconsistent time, upload first object file to server to upgrade the second file destination.Visible, implement the embodiment of the present invention, terminal can be edited again to the local file uploaded onto the server, and by the file after editor, upload server is with the file in update server again, thus the file that can realize uploading onto the server upgrades.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the network architecture schematic diagram of a kind of file synchronization that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the method for a kind of file synchronization that the embodiment of the present invention provides;
Fig. 3 a is the schematic flow sheet of a kind of files passe that the embodiment of the present invention provides;
Fig. 3 b is the schematic flow sheet of a kind of file update that the embodiment of the present invention provides;
Fig. 4 is the structural representation of a kind of terminal that the embodiment of the present invention provides;
Fig. 5 is the structural representation of the another kind of terminal that the embodiment of the present invention provides;
Fig. 6 is the structural representation of another terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of method and terminal of file synchronization, the local file uploaded onto the server can be edited again, by the file after editor, upload server is with the file in update server again, thus the file that can realize uploading onto the server upgrades.Below be described in detail respectively.
In order to better understand method and the terminal of a kind of file synchronization disclosed in the embodiment of the present invention, first the network architecture that the embodiment of the present invention is suitable for is described below.Refer to Fig. 1, Fig. 1 is the network architecture schematic diagram of a kind of file synchronization that the embodiment of the present invention provides.In the network architecture shown in Fig. 1, can comprise terminal and server, wherein, terminal can be communicated to connect by the Internet and server.In the network architecture shown in Fig. 1, terminal can comprise cell phone, panel computer, palmtop PC, personal digital assistant (PersonalDigitalAssistant, PDA), mobile internet device (MobileInternetDevice, MID), each Terminal Type such as Intelligent worn device (as intelligent watch, Intelligent bracelet etc.), the embodiment of the present invention is not construed as limiting.Server can be cloud server, and the server cluster that can be made up of multiple servers may be used for storing various file and data message etc.User can by files passe such as the picture in terminal, text, audio or videos to server, and server can preserve the file uploaded, or these files are sent to other-end by server.When again editing file in terminal, can file in synchronized update server.By implementing the network architecture shown in Fig. 1, can the file in uploading onto the server be upgraded.
Based on the network architecture shown in Fig. 1, embodiments provide a kind of method of file synchronization.Refer to Fig. 2, Fig. 2 is the schematic flow sheet of the method for a kind of file synchronization that the embodiment of the present invention provides.As shown in Figure 2, the method for this file synchronization can comprise the following steps:
S201, obtain and carry out for the first object file in terminal the first edit session of editing.
In the embodiment of the present invention, the first edit session is the time of carrying out up-to-date editor for the first object file in terminal, and wherein, the time of up-to-date editor is the edit session nearest apart from current time.First edit session can show with the form of standard time, as: on September 18th, 2015 20:00:00; First edit session also can show with the form of timestamp, timestamp is a character string, the time at mark a moment that can be unique, timestamp can be converted into the standard time, such as: it is 20:22:18 on September 18th, 2015 that timestamp 1442578938 is converted into the standard time, and the embodiment of the present invention is not construed as limiting.
In the embodiment of the present invention, first object file can comprise at least one in picture, text (as Word text, PowerPoint text, TXT text etc.), audio frequency and video etc., and the embodiment of the present invention is not construed as limiting.
As the optional execution mode of one, the embodiment that step S201 acquisition carries out for the first object file in terminal the first edit session edited can comprise the following steps:
21) obtain and carry out first edit file of editing for the first object file in terminal, this first edit file comprises editor's daily record or the edit session stamp of first object file;
22) according to this first edit file, the first edit session is determined.
In this embodiment, editor's daily record of first object file can be obtained, editor daily record in can record editor position, editor before content, editor after content, edit session or edit session stamp etc. information; Also the edit session stamp of first object file can directly be obtained.
In the embodiment of the present invention, before acquisition carries out for the first object file in terminal the first edit session edited, editing and processing can be carried out to the first object file in terminal.
As the optional execution mode of one, predetermined manner can be utilized to carry out editing and processing to the first object file in terminal, after having edited, obtain the file of predetermined format, wherein, predetermined manner can be HTML5 (HyperTextMarkupLanguage, the 5th edition HTML) technology, and the file of the predetermined format that correspondence obtains is the file of HTML5 form.HTML5 technology can realize the dynamic functions such as automatic cycle broadcasting, when first object file is one or more picture, HTML5 technology can be utilized the picture editor of multiple static state to be become the dynamic picture of loop play; When first object file is Voice & Video, HTML5 technology can be utilized to be superimposed upon by audio frequency on video etc.
In the embodiment of the present invention, first object file can be the ordinary file (as not by the original document of predetermined manner editor) of terminal local, and such as, when first object file is picture, normal picture can be the picture of the forms such as JPG, BMP; First object file also can be in terminal by the edited file of predetermined manner (file as HTML5 form), can predetermined manner be utilized to carry out editing and processing to the ordinary file in terminal, to obtain first object file.Also predetermined manner can be utilized again to edit edited first object File.When first object file is carried out editing and processing and preserved, the first edit session of first object file can be generated.When editing first object file each time, the first edit session can be changed to change along with current edit session, with the time of once editing before replacing the time of up-to-date editor.
S202, obtain and carry out for and the second file destination be stored in server corresponding with first object file the second edit session of editing.
In the embodiment of the present invention, the second edit session is the time of carrying out up-to-date editor for the second file destination, and wherein, the time of up-to-date editor is the edit session nearest apart from current time.Second edit session can show with the form of standard time, and also can show with the form of timestamp, the embodiment of the present invention is not construed as limiting.
In the embodiment of the present invention, the second file destination is upload the file shared in server after terminal is edited the file that self stores.Second file destination also can comprise at least one in picture, text, audio frequency and video etc., and the embodiment of the present invention is not construed as limiting.Wherein, the second file destination is identical with the type of first object file, such as: when first object file comprises picture, the second file destination also comprises picture; When first object file comprises audio frequency, the second file destination also can comprise audio frequency etc.
As the optional execution mode of one, when first object file is by the edited file of predetermined manner (i.e. predetermined format file), before execution step S202, the method described by Fig. 2 can also comprise the following steps:
23) predetermined manner is utilized to carry out editing and processing the file to be shared in terminal, to obtain first object file;
24) file identification and the edit session of first object file is generated;
25) what reception inputted for first object file shares instruction;
26) share instruction according to this, in the file identification of first object file and first object file and edit session being uploaded onto the server, to make server preserve first object file, and first object file is defined as the second file destination.
In this embodiment, predetermined manner can be utilized to carry out editing and processing to the file to be shared (as local ordinary file) in terminal, obtain the first object file of predetermined format, by first object files passe in server.Wherein, regard the first object file in uploading onto the server as second file destination, and the file identification of first object file is the file identification of the second file destination, the edit session of first object file is the edit session of the second file destination (i.e. the second edit session).
In this embodiment, file identification can a file of unique identification, and after carrying out editing and processing to file, its file identification can not change.File identification can include but not limited at least one in the time place etc. of the title of file, default additional character, spcial character or character string, Quick Response Code, file set up.
As the optional execution mode of one, when first object file is the ordinary file not by predetermined manner editor, before execution step S202, the method described by Fig. 2 can also comprise the following steps:
27) predetermined manner is utilized to carry out editing and processing to the first object file in terminal, to obtain predetermined format file;
28) file identification and the edit session of this preset format file is generated;
29) receive for this preset format file input share instruction;
30) share instruction according to this, in the file identification of preset format file and preset format file and edit session being uploaded onto the server, to make server preserve preset format file, and this preset format file is defined as the second file destination.
In this embodiment, the file identification of preset format file is the file identification of the second file destination, and the edit session of preset format file is the second edit session of the second file destination.
As the optional execution mode of one, step S202 obtains and can comprise the following steps for corresponding with first object file and that the second file destination be stored in server carries out the second edit session edited embodiment:
31) file identification of first object file is obtained;
32) from server, obtain the second file destination that file identification is consistent with the file identification of first object file;
33) read and carry out second edit file of editing for the second file destination, this second edit file comprises editor's daily record or the edit session stamp of the second file destination;
34) according to this second edit file, the second edit session is determined.
In this embodiment, after getting the file identification of first object file, after terminal and server establish a communications link, terminal can search in server the second file destination whether having file identification consistent with the file identification of first object file, if had, then obtain this second file destination, and determine the second edit session according to the edit file of the second file destination.
S203, judge that whether the first edit session is consistent with the second edit session, if so, then perform step S204; If not, then this operation is terminated.
As the optional execution mode of one, step S203 judges that the first edit session embodiment whether consistent with the second edit session can comprise:
Judge whether the first edit session is later than the second edit session, if the first edit session is later than the second edit session, then can perform step S204; Otherwise, terminate this operation.
In this embodiment, the first edit session is later than the second edit session can refer to that file in terminal is after editor uploads onto the server, and has also carried out again editing to this file, makes the edit session before uploading after the time of again editing.
S204, upload first object file to server.
In the embodiment of the present invention, by first object files passe to server, its object is to, first object file is replaced the second file destination, to realize upgrading the file shared in server.
As the optional execution mode of one, before execution step S204 uploads first object file to server, the method described by Fig. 2 can also comprise:
35) obtain the type of the network of the current connection of terminal, wherein, the type of network comprises payment type and non-payment type;
36) whether the type judging the network of the current connection of terminal is non-payment type, when the type of the network of the current connection of terminal is non-payment type, performs step S204.
In this embodiment, payment type can be the telecommunication carrier networks type etc. of charging, and non-payment type can to comprise in the set meal that Wi-Fi or telecom operators release not flow needing charging etc.When the type of the network of the current connection of terminal is non-payment type, then terminal system backstage automatically by first object files passe in server; When the type of the network of the current connection of terminal is payment type, then first can not upload first object file, until upload again when the network type of terminal changes non-payment type into, or can information be exported, determine to make user to upload or do not upload.Implement this execution mode, the campus network because upload file produces can be reduced.
Refer to Fig. 3 a, Fig. 3 a is the schematic flow sheet of a kind of files passe that the embodiment of the present invention provides.As shown in Figure 3 a, first predetermined manner is utilized to edit to the local file in terminal, to obtain local preset format file, file identification and the edit session of local preset format file can be generated simultaneously, after receiving uploading instructions, local preset format file and its file identification and edit session can be uploaded to cloud server in the lump, high in the clouds preset format file is defined as with the local preset format file this uploaded, and server can generate the chained address, high in the clouds of high in the clouds preset format file, this chained address carries the file identification of preset format file and edit session (i.e. the file identification of local preset format file and edit session), wherein, first object file can be local file, also can be the local preset format file after editing and processing, second file destination is high in the clouds preset format file.
Refer to Fig. 3 b, Fig. 3 b is the schematic flow sheet of a kind of file update that the embodiment of the present invention provides.As shown in Figure 3 b, again can edit local preset format file, the new edited time can be generated simultaneously, and the edit session once edited before the new edited time is replaced, and file identification remains unchanged.Further, the high in the clouds preset format file that the file identification that prestores is consistent with the file identification of local preset format file can be obtained from server, and obtain the edit session of this high in the clouds preset format file.Further, can judge that whether the new edited time of the local preset format file after editing is consistent with the edit session of high in the clouds preset format file, if unanimously, then terminate this operation, namely the high in the clouds preset format file in server is not upgraded; If inconsistent, then by editor after local preset format files passe in server, with the high in the clouds preset format file in update server.Wherein, can be again edit local preset format file, also can be utilize predetermined manner again to edit to local file, and to upgrade high in the clouds preset format file, the embodiment of the present invention is not construed as limiting.
In the method described by Fig. 2, can obtain and carry out for the first object file in terminal the first edit session of editing, and obtain and carry out for and the second file destination be stored in server corresponding with first object file the second edit session of editing, judge that whether the first edit session is consistent with the second edit session, when the first edit session and the second edit session inconsistent time, upload first object file to server to upgrade the second file destination.By implementing the method described by Fig. 2, terminal can be edited again to the local file uploaded onto the server, by the file after editor, upload server is with the file in update server again, thus the file that can realize uploading onto the server upgrades.
Based on the network architecture shown in Fig. 1, embodiments provide a kind of terminal.Refer to Fig. 4, Fig. 4 is the structural representation of a kind of terminal that the embodiment of the present invention provides, and may be used for the method performing the file synchronization that the embodiment of the present invention provides.As shown in Figure 4, this terminal can comprise:
First acquiring unit 401, carries out for the first object file in terminal the first edit session of editing for obtaining.
In the embodiment of the present invention, the first edit session is the time of carrying out up-to-date editor for the first object file in terminal, and wherein, the time of up-to-date editor is the edit session nearest apart from current time.First edit session can show with the form of standard time, and also can show with the form of timestamp, the embodiment of the present invention is not construed as limiting.Timestamp is a character string, the time at mark a moment that can be unique, timestamp can be converted into the standard time.
In the embodiment of the present invention, first object file can comprise at least one in picture, text, audio frequency and video etc., and the embodiment of the present invention is not construed as limiting.
In the embodiment of the present invention, first object file can be the ordinary file (as not by the original document of predetermined manner editor) of terminal local; First object file also can be in terminal by the edited file of predetermined manner (file as HTML5 form), can predetermined manner be utilized to carry out editing and processing to the ordinary file in terminal, to obtain first object file.Also predetermined manner can be utilized again to edit edited first object File.When first object file is carried out editing and processing and preserved, the first edit session of first object file can be generated.When editing first object file each time, the first edit session can be changed to change along with current edit session, with the time of once editing before replacing the time of up-to-date editor.
Second acquisition unit 402, carries out for and the second file destination be stored in server corresponding with first object file the second edit session of editing for obtaining.
In the embodiment of the present invention, the second edit session is the time of carrying out up-to-date editor for the second file destination, and wherein, the time of up-to-date editor is the edit session nearest apart from current time.Second edit session can show with the form of standard time, and also can show with the form of timestamp, the embodiment of the present invention is not construed as limiting.
In the embodiment of the present invention, the second file destination is upload the file shared in server after terminal is edited the file that self stores.Second file destination also can comprise at least one in picture, text, audio frequency and video etc., and the embodiment of the present invention is not construed as limiting.Wherein, the second file destination is identical with the type of first object file, such as: when first object file comprises picture, the second file destination also comprises picture; When first object file comprises audio frequency, the second file destination also can comprise audio frequency etc.
Judging unit 403, for judging that whether the first edit session is consistent with the second edit session.
As the optional execution mode of one, judging unit 403 judges that the first edit session embodiment whether consistent with the second edit session can be:
Judging unit 403 judges whether the first edit session is later than the second edit session, if the first edit session is later than the second edit session, then can triggers uploading unit 404 execution and upload the operation of first object file to server; Otherwise, do not do any process.
Uploading unit 404, for when judging unit 403 judges the first edit session and the second edit session is inconsistent, uploads first object file to server.
In the embodiment of the present invention, by first object files passe to server, its object is to, first object file is replaced the second file destination, to realize upgrading the file shared in server.
Terminal shown in Fig. 4, first acquiring unit 401 can obtain and carry out for the first object file in terminal the first edit session of editing, and second acquisition unit 402 obtains and carries out for and the second file destination be stored in server corresponding with first object file the second edit session of editing, judging unit 403 judges that whether the first edit session is consistent with the second edit session, when the first edit session and the second edit session inconsistent time, uploading unit 404 uploads first object file to server to upgrade the second file destination.Implement the terminal shown in Fig. 4, again can edit the local file uploaded onto the server, by the file after editor, upload server is with the file in update server again, thus the file that can realize uploading onto the server upgrades.
Based on the network architecture shown in Fig. 1, embodiments provide another kind of terminal.Refer to Fig. 5, Fig. 5 is the structural representation of the another kind of terminal that the embodiment of the present invention provides, and may be used for the method performing the file synchronization that the embodiment of the present invention provides.As shown in Figure 5, this terminal can comprise:
First acquiring unit 501, carries out for the first object file in terminal the first edit session of editing for obtaining.
In the embodiment of the present invention, the first edit session is the time of carrying out up-to-date editor for first object file, and wherein, the time of up-to-date editor is the edit session nearest apart from current time.
In the embodiment of the present invention, first object file can include but not limited at least one in picture, text, audio or video.
As the optional execution mode of one, the first acquiring unit 501 may further include:
3rd acquiring unit 5011, carries out first edit file of editing for obtaining for the first object file in terminal, and this first edit file comprises editor's daily record or the edit session stamp of first object file;
First determining unit 5012, for according to this first edit file, determines the first edit session.
In this embodiment, the 3rd acquiring unit 5011 can obtain editor's daily record of first object file, editor daily record in can record editor position, editor before content, editor after content, edit session or edit session stamp etc. information; 3rd acquiring unit 5011 also directly can obtain the edit session stamp of first object file.
Second acquisition unit 502, carries out for and the second file destination be stored in server corresponding with first object file the second edit session of editing for obtaining.
In the embodiment of the present invention, the second edit session is the time of carrying out up-to-date editor for the second file destination, and wherein, the time of up-to-date editor is the edit session nearest apart from current time.
In the embodiment of the present invention, the second file destination can include but not limited at least one in picture, text, audio or video.Wherein, the type of the second file destination is identical with first object file, and such as, when first object file is picture, the second file destination is also picture.
As the optional execution mode of one, second acquisition unit 502 may further include:
4th acquiring unit 5021, for obtaining the file identification of first object file;
5th acquiring unit 5022, for obtaining file identification second file destination consistent with the file identification of first object file from server;
Reading unit 5023, carries out second edit file of editing for reading for the second file destination, and this second edit file comprises editor's daily record or the edit session stamp of the second file destination;
Second determining unit 5024, for according to this second edit file, determines the second edit session.
In this embodiment, file identification can a file of unique identification, and after carrying out editing and processing to file, its file identification can not change.File identification can include but not limited at least one in the time place etc. of the title of file, default additional character, spcial character or character string, Quick Response Code, file set up.
Judging unit 503, for judging that whether the first edit session is consistent with the second edit session.
Uploading unit 504, for when judging unit 503 judges the first edit session and the second edit session is inconsistent, uploads first object file to server.
As the optional execution mode of one, uploading unit 504 specifically may be used for when judging unit 503 judges the first edit session and the second edit session is inconsistent, upload first object file to server, so that the second file destination is switched to first object file.
Visible, implement the terminal shown in Fig. 5, again can edit the local file uploaded onto the server, by the file after editor, upload server is with the file in update server again, thus the file that can realize uploading onto the server upgrades.
Based on the network architecture shown in Fig. 1, embodiments provide another terminal.Refer to Fig. 6, Fig. 6 is the structural representation of another terminal that the embodiment of the present invention provides, and may be used for the method performing the file synchronization that the embodiment of the present invention provides.As shown in Figure 6, this terminal 600 can comprise: at least one processor 601, at least one network interface 602, user interface 603, memory 604, at least one assembly such as communication bus 605 grade.Wherein, communication bus 605 is for realizing the connection communication between these assemblies.It will be appreciated by those skilled in the art that, the structure of the terminal shown in Fig. 6 does not form the restriction to the embodiment of the present invention, it both can be busbar network, also can be hub-and-spoke configuration, the parts more more or less than diagram can also be comprised, or combine some parts, or different parts are arranged.Wherein:
Processor 601 is the control centre of terminal, utilize the various piece of various interface and the whole terminal of connection, by running or perform the program in memory 604 of being stored in and/or module, and call the data be stored in memory 604, to perform various function and the deal with data of terminal.Processor 601 by integrated circuit (IntegratedCircuit is called for short IC) composition, such as, can be made up of the IC of single encapsulation, also can be made up of the encapsulation IC connecting many identical functions or difference in functionality.For example, processor 501 can only comprise central processing unit (CentralProcessingUnit, be called for short CPU), also can be CPU, digital signal processor (DigitalSignalProcessor, be called for short DSP), the combination of graphic process unit (GraphicProcessingUnit, be called for short GPU) and various control chip.In embodiments of the present invention, CPU can be single arithmetic core, also can comprise multioperation core.
Network interface 602 can include line interface, wave point etc., is mainly used in establishing a communications link with server.
User interface 603 can comprise display screen (Display), keyboard (Keyboard) etc., is mainly used in facilitating user and terminal to carry out alternately.
Memory 604 can be high-speed RAM memory, also can be non-labile memory (non-volatilememory), such as at least one magnetic disc store.Memory 604 can also be optionally that at least one is positioned at the storage device away from aforementioned processor 601.As shown in Figure 6, as comprising operating system, network communication module, Subscriber Interface Module SIM and application program (as: file editor etc.) etc. in a kind of memory 604 of computer-readable storage medium.In embodiments of the present invention, operating system can be android system, iOS system or Windows operating system etc.
Particularly, processor 601 can call storage application program in the memory 604, for performing following operation:
The first edit session edited is carried out in acquisition for the first object file in terminal, wherein, the first edit session is the time of carrying out up-to-date editor for first object file;
Net control interface 602 obtains and carries out for and the second file destination be stored in server corresponding with first object file the second edit session of editing, and wherein, the second edit session is the time of carrying out up-to-date editor for the second file destination;
Judge that whether the first edit session is consistent with the second edit session;
When the first edit session and the second edit session inconsistent time, net control interface 602 uploads first object file to server.
As the optional execution mode of one, processor 601 obtains the embodiment of carrying out the first edit session edited for the first object file in terminal and can be:
First edit file of editing is carried out in acquisition for the first object file in terminal, this first edit file comprises editor's daily record or the edit session stamp of first object file;
According to this first edit file, determine the first edit session.
As the optional execution mode of one, processor 601 net control interface 602 obtains and for corresponding with first object file and that the second file destination be stored in server carries out the second edit session edited embodiment can be:
Obtain the file identification of first object file;
Net control interface 602 obtains file identification second file destination consistent with the file identification of first object file from server;
Second edit file of editing is carried out in reading for the second file destination, this second edit file comprises editor's daily record or the edit session stamp of the second file destination;
According to this second edit file, determine the second edit session.
As the optional execution mode of one, processor 601 when the first edit session and the second edit session inconsistent time, net control interface 602 is uploaded first object file to the embodiment of server and can is:
When the first edit session and the second edit session inconsistent time, upload first object file to server, so that the second file destination is switched to first object file.
As the optional execution mode of one, first object file can include but not limited at least one in picture, text, audio or video.
Particularly, the terminal introduced in the embodiment of the present invention can implement the part or all of flow process in the embodiment of the method for the file synchronization that composition graphs 2 of the present invention is introduced.
Module in all embodiments of the present invention or submodule, can pass through universal integrated circuit, such as CPU, or realized by ASIC (ApplicationSpecificIntegratedCircuit, application-specific integrated circuit (ASIC)).
It should be noted that, for each embodiment of the method aforesaid, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the application, certain some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and module might not be that the application is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention terminal can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random access memory (RandomAccessMemory is called for short RAM) etc.
Above the method for a kind of file synchronization that the embodiment of the present invention provides and terminal are described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a method for file synchronization, is characterized in that, comprising:
The first edit session edited is carried out in acquisition for the first object file in terminal, wherein, described first edit session is the time of carrying out up-to-date editor for described first object file;
Obtain and carry out for and the second file destination be stored in server corresponding with described first object file the second edit session of editing, wherein, described second edit session is the time of carrying out up-to-date editor for described second file destination;
Judge that whether described first edit session is consistent with described second edit session;
When described first edit session and described second edit session inconsistent time, upload described first object file to described server.
2. method according to claim 1, is characterized in that, the first edit session edited is carried out in described acquisition for the first object file in terminal, comprising:
First edit file of editing is carried out in acquisition for the first object file in terminal, described first edit file comprises editor's daily record or the edit session stamp of described first object file;
According to described first edit file, determine the first edit session.
3. method according to claim 1 and 2, is characterized in that, the second edit session edited is carried out in described acquisition for and the second file destination be stored in server corresponding with described first object file, comprising:
Obtain the file identification of described first object file;
The second file destination that file identification is consistent with the file identification of described first object file is obtained from server;
Second edit file of editing is carried out in reading for described second file destination, described second edit file comprises editor's daily record or the edit session stamp of described second file destination;
According to described second edit file, determine the second edit session.
4. method according to claim 3, is characterized in that, described when described first edit session and described second edit session inconsistent time, upload described first object file to described server, comprising:
When described first edit session and described second edit session inconsistent time, upload described first object file to described server, so that described second file destination is switched to described first object file.
5. the method according to any one of Claims 1 to 4, is characterized in that, described first object file comprises at least one in picture, text, audio or video.
6. a terminal, is characterized in that, comprising:
First acquiring unit, carry out for the first object file in terminal the first edit session of editing for obtaining, wherein, described first edit session is the time of carrying out up-to-date editor for described first object file;
Second acquisition unit, carry out for and the second file destination be stored in server corresponding with described first object file the second edit session of editing for obtaining, wherein, described second edit session is the time of carrying out up-to-date editor for described second file destination;
Judging unit, for judging that whether described first edit session is consistent with described second edit session;
Uploading unit, for judge when described judging unit described first edit session and described second edit session inconsistent time, upload described first object file to described server.
7. terminal according to claim 6, is characterized in that, described first acquiring unit comprises:
3rd acquiring unit, carries out first edit file of editing for obtaining for the first object file in terminal, and described first edit file comprises editor's daily record or the edit session stamp of described first object file;
First determining unit, for according to described first edit file, determines the first edit session.
8. the terminal according to claim 6 or 7, is characterized in that, described second acquisition unit comprises:
4th acquiring unit, for obtaining the file identification of described first object file;
5th acquiring unit, for obtaining file identification second file destination consistent with the file identification of described first object file from server;
Reading unit, carries out second edit file of editing for reading for described second file destination, and described second edit file comprises editor's daily record or the edit session stamp of described second file destination;
Second determining unit, for according to described second edit file, determines the second edit session.
9. terminal according to claim 8, it is characterized in that, described uploading unit specifically for judge when described judging unit described first edit session and described second edit session inconsistent time, upload described first object file to described server, so that described second file destination is switched to described first object file.
10. the terminal according to any one of claim 6 ~ 9, is characterized in that, described first object file comprises at least one in picture, text, audio or video.
CN201510628720.7A 2015-09-28 2015-09-28 File synchronization method and terminal Pending CN105282243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510628720.7A CN105282243A (en) 2015-09-28 2015-09-28 File synchronization method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510628720.7A CN105282243A (en) 2015-09-28 2015-09-28 File synchronization method and terminal

Publications (1)

Publication Number Publication Date
CN105282243A true CN105282243A (en) 2016-01-27

Family

ID=55150548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510628720.7A Pending CN105282243A (en) 2015-09-28 2015-09-28 File synchronization method and terminal

Country Status (1)

Country Link
CN (1) CN105282243A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021077862A1 (en) * 2019-10-25 2021-04-29 京东方科技集团股份有限公司 File synchronization method and device
CN112835864A (en) * 2021-02-03 2021-05-25 北京联创信安科技股份有限公司 File storage method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1790257A (en) * 2004-12-13 2006-06-21 华为技术有限公司 Method for uniformly configuring configuration files
CN104243508A (en) * 2013-06-07 2014-12-24 富鸿康科技(深圳)有限公司 Server, client side and file synchronization method
CN104580454A (en) * 2014-12-31 2015-04-29 乐视网信息技术(北京)股份有限公司 Data synchronizing method, device and system
US20150195599A1 (en) * 2014-01-07 2015-07-09 Wistron Corp. Methods for synchronization of a live streaming broadcast and systems using the same
CN104820701A (en) * 2015-05-11 2015-08-05 北京瑞星信息技术有限公司 Method and system for recording and synchronizing data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1790257A (en) * 2004-12-13 2006-06-21 华为技术有限公司 Method for uniformly configuring configuration files
CN104243508A (en) * 2013-06-07 2014-12-24 富鸿康科技(深圳)有限公司 Server, client side and file synchronization method
US20150195599A1 (en) * 2014-01-07 2015-07-09 Wistron Corp. Methods for synchronization of a live streaming broadcast and systems using the same
CN104580454A (en) * 2014-12-31 2015-04-29 乐视网信息技术(北京)股份有限公司 Data synchronizing method, device and system
CN104820701A (en) * 2015-05-11 2015-08-05 北京瑞星信息技术有限公司 Method and system for recording and synchronizing data

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021077862A1 (en) * 2019-10-25 2021-04-29 京东方科技集团股份有限公司 File synchronization method and device
CN112835864A (en) * 2021-02-03 2021-05-25 北京联创信安科技股份有限公司 File storage method, device, equipment and storage medium
CN112835864B (en) * 2021-02-03 2024-02-20 北京联创信安科技股份有限公司 File storage method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104794008B (en) Application program synchronization method, device and system
CN111786885A (en) Distributed full-link gray level routing method and device
CN106331055B (en) Identifier generating means and method
CN110809189B (en) Video playing method and device, electronic equipment and computer readable medium
CN112286529A (en) Development method, device and equipment of front-end page and storage medium
WO2019184658A1 (en) Profile switching method and apparatus, and mobile terminal
CN112487331A (en) Page generation method and device, storage medium and electronic equipment
CN106453572A (en) Method and system for synchronizing images based on cloud server
CN112394932A (en) Automatic browser webpage skin changing method and device
CN110674624A (en) Method and system for editing image and text
EP3506599B1 (en) Method for synchronizing contact information, apparatus and medium
CN108512937A (en) A kind of computer data shared system based on mobile network
CN110209344B (en) Method, device and computer readable storage medium for migrating object storage
CN105282243A (en) File synchronization method and terminal
CN112965713B (en) Development method, device, equipment and storage medium of visual editor
CN108737487B (en) Data synchronization method and device, storage medium and electronic device
US20240031615A1 (en) Media file play method and apparatus, electronic device, server, and medium
CN111191225A (en) Method, device, medium and electronic equipment for switching isolated objects
CN114327453B (en) Page display method, device, equipment and storage medium
CN116088829A (en) Data processing method, device, storage medium and equipment
CN112905464B (en) Application running environment data processing method and device
CN114968400A (en) Webpage synchronization method and device, storage medium and electronic equipment
CN103618961A (en) Method, system and browser for displaying video title
CN110290517B (en) Digital media wireless wifi communication point reading system and method
CN114997124A (en) Table content processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160127

WD01 Invention patent application deemed withdrawn after publication