File synchronization method and device

By obtaining the synchronous plug -in of the target application and using its target interface to send synchronous instructions to the server, the terminal of the terminal needs to start auxiliary applications when synchronized files, which causes low efficiency, and achieve a more efficient file synchronization process.

CN112711571BActive Publication Date: 2025-01-24BOE TECHNOLOGY GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201911023258.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-25
Publication Date
2025-01-24
Estimated Expiration
2040-07-23

Smart Images

  • Figure CN112711571B_ABST
    Figure CN112711571B_ABST
Patent Text Reader

Abstract

The present application discloses a file synchronization method and device, belonging to the field of software technology, the method comprising: obtaining a synchronization plug-in of a target application, the synchronization plug-in having a target interface, the target interface being used to communicate with a server of an auxiliary application; obtaining a first synchronization instruction for the target application, the first synchronization instruction being used to instruct synchronization of a target file generated by the target application to the server; obtaining the target file based on the first synchronization instruction; and sending a second synchronization instruction carrying the target file to the server based on the target interface of the synchronization plug-in. Since the terminal in the present application can synchronize the target file to the server through the target application used to generate the target file without starting the auxiliary application, the efficiency of synchronizing the file to the server is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of software technology, and in particular to a file synchronization method and device. Background Art

[0002] At present, a terminal usually has a target application and an auxiliary application installed. Among them, the target application can be used for two-dimensional drawing, document design and three-dimensional design to generate a variety of files (such as two-dimensional files, three-dimensional files, etc.). The auxiliary application can be used to synchronize the file generated by the target application to the server corresponding to the auxiliary application to facilitate the sharing of the file.

[0003] In the related art, the files generated by the target application are usually first saved locally in the terminal. After the terminal detects the user's start instruction for the auxiliary application, it can start the auxiliary application, and then synchronize the files stored locally in the terminal to the server through the auxiliary application.

[0004] However, since the terminal needs to start an auxiliary application during the process of synchronizing the file with the server, the efficiency of synchronizing the file with the server is low. Summary of the invention

[0005] The embodiment of the present invention provides a file synchronization method and device, which can solve the problem of low efficiency in synchronizing files to a management server in the related art. The technical solution is as follows:

[0006] In one aspect, a file synchronization method is provided, the method comprising:

[0007] Acquire a synchronization plug-in of a target application, wherein the synchronization plug-in has a target interface, and the target interface is used to communicate with a server of the auxiliary application;

[0008] Acquire a first synchronization instruction for a target application, where the first synchronization instruction is used to instruct synchronization of a target file generated by the target application to the server;

[0009] Acquire the target file based on the first synchronization instruction;

[0010] Based on the target interface of the synchronization plug-in, a second synchronization instruction carrying the target file is sent to the server.

[0011] Optionally, obtaining a first synchronization instruction for a target application includes:

[0012] Based on the synchronization plug-in, displaying a synchronization interface of the target application, wherein the synchronization interface includes a file synchronization entry;

[0013] The first synchronization instruction for the file synchronization entry is obtained.

[0014] Optionally, the synchronization interface further includes: a first function area and a second function area, the first function area is used to set information of a first folder, the first folder is used to store the target file, the second function area is used to set information of a second folder, the second folder is a folder in the first folder for storing the target file, and the method further includes:

[0015] Before acquiring the first synchronization instruction, in response to an operation on the first functional area, determining information of the first folder;

[0016] Before acquiring the first synchronization instruction, in response to an operation on the second functional area, determining information of the second folder;

[0017] The second synchronization instruction also carries: information of the first folder and the second folder.

[0018] Optionally, the synchronization interface further includes: a third function area, the third function area is used to set information of a third folder, the third folder is a folder in the second folder for storing the target file, and the method further includes:

[0019] Before acquiring the first synchronization instruction for the target application, in response to the operation for the third functional area, the information of the third folder is determined; the second synchronization instruction also carries: the information of the third folder.

[0020] Optionally, the synchronization interface further includes: a fourth function area, the fourth function area is used to set information of the target file in the file generated by the target application, and before obtaining the first synchronization instruction for the target application, the method further includes:

[0021] In response to the operation on the fourth functional area, information of the target file is determined.

[0022] Optionally, after synchronizing the target file to the server, the method further includes:

[0023] Acquire a first update instruction for a target application, wherein the first update instruction is used to instruct: updating the target file in the server to an update file of the target file generated by the target application;

[0024] acquiring the update file based on the first update instruction;

[0025] Based on the target interface of the synchronization plug-in, a second update instruction carrying the update file is sent to the server, where the second update instruction is used to instruct the server to update the target file to the update file.

[0026] Optionally, obtaining a first update instruction for the target application includes:

[0027] Based on the synchronization plug-in, displaying an update interface of the target application, wherein the update interface includes a file update entry;

[0028] The first update instruction for the file update entry is obtained.

[0029] Optionally, the update interface further includes: a fifth function area and a sixth function area, the fifth function area is used to select information of the second folder in the server, and the sixth function area is used to select information of the third folder in the server, and the method further includes:

[0030] Before acquiring the first update instruction for the target application, in response to the operation on the fifth function area, determining the information of the second folder;

[0031] Before acquiring the first update instruction for the target application, in response to the operation on the sixth function area, determining the information of the third folder;

[0032] The second update instruction also carries: information of the second folder and the third folder.

[0033] Optionally, the update interface further includes: a seventh function area, the seventh function area is used to set the information of the update file in the file generated by the target application, and before obtaining the first update instruction for the target application, the method further includes:

[0034] In response to the operation on the seventh functional area, information of the update file is determined.

[0035] Optionally, after synchronizing the target file to the server, the method further includes:

[0036] Obtaining a first download instruction for a target application, wherein the first download instruction is used to instruct downloading the target file in the server;

[0037] Based on the target interface of the synchronization plug-in, the target file is downloaded from the server.

[0038] On the other hand, a file synchronization device is provided, the device comprising:

[0039] A first acquisition module, used to acquire a synchronization plug-in of a target application, wherein the synchronization plug-in has a target interface, and the target interface is used to communicate with a server of the auxiliary application;

[0040] A second acquisition module, used to acquire a first synchronization instruction for a target application, wherein the first synchronization instruction is used to instruct synchronization of a target file generated by the target application to the server;

[0041] A third acquisition module, configured to acquire the target file based on the first synchronization instruction;

[0042] A sending module is used to send a second synchronization instruction carrying the target file to the server based on the target interface of the synchronization plug-in.

[0043] Optionally, the second acquisition module is used to:

[0044] Based on the synchronization plug-in, displaying a synchronization interface of the target application, wherein the synchronization interface includes a file synchronization entry;

[0045] Obtain the first synchronization instruction for the file synchronization entry.

[0046] Optionally, the synchronization interface further includes: a first function area and a second function area, the first function area is used to set information of a first folder, the first folder is used to store the target file, the second function area is used to set information of a second folder, the second folder is a folder in the first folder for storing the target file, and the device further includes:

[0047] A first determining module, configured to determine information of the first folder in response to an operation on the first functional area before acquiring the first synchronization instruction;

[0048] A second determining module, configured to determine information of the second folder in response to an operation on the second functional area before acquiring the first synchronization instruction;

[0049] The second synchronization instruction also carries: information of the first folder and the second folder.

[0050] Optionally, the synchronization interface further includes: a third function area, the third function area is used to set information of a third folder, the third folder is a folder in the second folder for storing the target file, and the device further includes:

[0051] The third determination module is used to determine the information of the third folder in response to the operation on the third functional area before obtaining the first synchronization instruction for the target application; the second synchronization instruction also carries: the information of the third folder.

[0052] Optionally, the synchronization interface further includes: a fourth function area, the fourth function area is used to set the information of the target file in the file generated by the target application, and the device further includes:

[0053] The fourth determination module is used to determine the information of the target file in response to the operation on the fourth functional area before acquiring the first synchronization instruction for the target application.

[0054] Optionally, the device further comprises:

[0055] a fourth acquisition module, configured to acquire a first update instruction for a target application after synchronizing the target file to the server, wherein the first update instruction is used to instruct: updating the target file in the server to an update file of the target file generated by the target application;

[0056] a fifth acquisition module, configured to acquire the update file based on the first update instruction;

[0057] The sending module is further used to send a second update instruction carrying the update file to the server based on the target interface of the synchronization plug-in, where the second update instruction is used to instruct the server to update the target file to the update file.

[0058] Optionally, the fourth acquisition module is used to:

[0059] Based on the synchronization plug-in, displaying an update interface of the target application, wherein the update interface includes a file update entry;

[0060] The first update instruction for the file update entry is obtained.

[0061] Optionally, the update interface further includes: a fifth function area and a sixth function area, the fifth function area is used to select information of the second folder in the server, and the sixth function area is used to select information of the third folder in the server;

[0062] The second determination module is further configured to determine information of the second folder in response to an operation on the fifth function area before acquiring the first update instruction for the target application;

[0063] The third determination module is further configured to determine the information of the third folder in response to an operation on the sixth function area before acquiring the first update instruction for the target application;

[0064] The second update instruction also carries: information of the second folder and the third folder.

[0065] Optionally, the update interface further includes: a seventh function area, the seventh function area is used to set information for selecting the update file in the file generated by the target application, and the fourth determination module is further used to:

[0066] Before acquiring a first update instruction for the target application, information of the update file is determined in response to an operation on the seventh function area.

[0067] Optionally, the device further comprises:

[0068] A sixth acquisition module, configured to acquire a first download instruction for a target application after synchronizing the target file to the server, wherein the first download instruction is used to instruct downloading the target file in the server;

[0069] A download module is used to download the target file from the server based on the target interface of the synchronization plug-in.

[0070] On the other hand, a file synchronization device is provided, comprising: a memory, a processor and a computer program stored in the memory, wherein the processor implements the file synchronization method as described in the above aspects when executing the computer program.

[0071] On the other hand, a file synchronization system is provided, the file synchronization system comprising: a terminal and a server, the terminal comprising the file synchronization device as described in the above aspect.

[0072] On the other hand, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer executes the file synchronization method as described in the above aspects.

[0073] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0074] The embodiment of the present invention provides a file synchronization method and device. After obtaining the synchronization plug-in of the target application, the terminal can obtain the target file based on the first synchronization instruction for the target application, and send a second synchronization instruction carrying the target file to the server based on the target interface of the synchronization plug-in. Since the terminal can synchronize the target file to the server through the target application used to generate the target file in the process of synchronizing the target file to the server without starting the auxiliary application, the efficiency of synchronizing the file to the server is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0076] Figure 1 is a schematic diagram of an implementation environment involved in various embodiments of the present invention;

[0077] Figure 2 is a flow chart of a file synchronization method provided by an embodiment of the present invention;

[0078] Figure 3 is a flow chart of another file synchronization method provided by an embodiment of the present invention;

[0079] Figure 4 is a schematic diagram of a synchronization interface provided by an embodiment of the present invention;

[0080] Figure 5 is a schematic diagram of a code acquisition interface provided by an embodiment of the present invention;

[0081] Figure 6 is a flow chart of another file synchronization method provided by an embodiment of the present invention;

[0082] Figure 7 is a schematic diagram of an update interface provided by an embodiment of the present invention;

[0083] Figure 8 is a flow chart of another file synchronization method provided by an embodiment of the present invention;

[0084] Fig. 9 is a schematic diagram of a search interface provided by an embodiment of the present invention;

[0085] Fig.10 is a schematic diagram of determining a target file provided by an embodiment of the present invention;

[0086] Fig.11 is a block diagram of a file synchronization device provided by an embodiment of the present invention;

[0087] Fig.12 It is a block diagram of another file synchronization device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0088] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0089] Figure 1is a schematic diagram of the implementation environment involved in each embodiment of the present invention, such as Figure 1 As shown, the implementation environment may include: a terminal 110 and a server 120. The terminal 110 may be a device such as a personal computer, a laptop, a tablet computer, a wearable device, or a mobile phone installed with a target application. Optionally, the target application may be an application for generating files. The server 120 may be a server, or a server cluster composed of several servers, or a cloud computing service center. The terminal 110 and the server 120 may be connected via a wired network or a wireless network.

[0090] Figure 2 is a flowchart of a file synchronization method provided by an embodiment of the present invention, which can be applied to Figure 1 In the terminal 110 shown in FIG. Figure 2 As shown, the method may include:

[0091] Step 201: Obtain the synchronization plug-in of the target application.

[0092] Among them, the target application can be an application for generating files, and a synchronization plug-in can be installed in the target application. The synchronization plug-in has a target interface, and the target interface is used to establish a connection with the server of the auxiliary application, and then communicate with the server of the auxiliary application. The auxiliary application can be an application for synchronizing files generated by the target application to the server.

[0093] Step 202: Obtain a first synchronization instruction for a target application.

[0094] The first synchronization instruction is used to instruct synchronization of the target file generated by the target application to the server.

[0095] In an embodiment of the present invention, the terminal may obtain a first synchronization instruction for the target application after receiving a trigger operation from the user for the target application. The trigger operation may be a click operation or a slide operation from the user for the target application.

[0096] Step 203: Acquire the target file based on the first synchronization instruction.

[0097] After obtaining the first synchronization instruction for the target application, the terminal may obtain the target file based on the first synchronization instruction. Optionally, the target file is pre-stored locally in the terminal.

[0098] Step 204: Based on the target interface of the synchronization plug-in, a second synchronization instruction carrying the target file is sent to the server.

[0099] After obtaining the target file, the terminal may send a second synchronization instruction carrying the target file to the server based on the target interface of the synchronization plug-in.

[0100] In summary, the embodiment of the present invention provides a file synchronization method. After the terminal obtains the synchronization plug-in of the target application, it can obtain the target file based on the first synchronization instruction for the target application, and send the second synchronization instruction carrying the target file to the server based on the target interface of the synchronization plug-in. Since the terminal can synchronize the target file to the server through the target application used to generate the target file in the process of synchronizing the target file to the server without starting the auxiliary application, the efficiency of synchronizing the file to the server is improved.

[0101] Figure 3 is a flowchart of another file synchronization method provided by an embodiment of the present invention, which can be applied to Figure 1 In the terminal 110 shown in FIG. Figure 3 As shown, the method may include:

[0102] Step 301: Obtain the synchronization plug-in of the target application.

[0103] In an embodiment of the present invention, a target application and an auxiliary application may be installed in the terminal. The target application is used to generate files, and the auxiliary application is used to synchronize the files generated by the target application to a server corresponding to the auxiliary application to facilitate file sharing.

[0104] The display interface of the target application can also display a login interface, which may include a user name input box, a password input box, and an OK button. After the terminal obtains the synchronization plug-in of the target application, the user can enter the target user name through the user name input box and the target password through the password input box. Correspondingly, the terminal can obtain the target user name entered by the user from the user name input box and obtain the target password entered by the user from the password input box. After detecting the user's selection instruction for the OK button, the terminal can send the obtained target user name and target password to the plug-in server. After successfully verifying the target user name and target password sent by the terminal, the plug-in server can send a verification success instruction to the terminal.

[0105] Optionally, the display interface of the target application may also include a synchronization plug-in acquisition button. After the terminal receives the verification success instruction sent by the server, if it detects the user's selection instruction for the synchronization plug-in acquisition button, it can send a synchronization plug-in acquisition instruction to the plug-in server. After receiving the synchronization plug-in acquisition instruction sent by the terminal, the plug-in server can obtain the synchronization plug-in and the first version number of the synchronization plug-in, and send the acquired synchronization plug-in and the first version number to the terminal. The terminal can receive and store the synchronization plug-in and the first version number of the synchronization plug-in sent by the plug-in server. The synchronization plug-in of the target application has a target interface, which is used to establish a connection with the server of the auxiliary application, and then communicate with the server of the auxiliary application. Optionally, the target interface is a software interface between the terminal and the server, including some information related to the communication between the terminal and the server agreed upon by the terminal and the server, such as: the address of the server, the interface number of the server, or the communication protocol.

[0106] In an embodiment of the present invention, the terminal may also update the synchronization plug-in of the acquired target application. The display interface of the target application may also include a synchronization plug-in update button. After detecting the user's selection instruction for the synchronization plug-in update button, the terminal may send a synchronization plug-in update instruction to the plug-in server. After receiving the synchronization plug-in update instruction, the plug-in server may send the second version number of the stored synchronization plug-in to the terminal. After receiving the second version number of the synchronization plug-in sent by the plug-in server, the terminal may compare the second version number of the synchronization plug-in with the first version number of the synchronization plug-in pre-stored by the terminal. If the second version number is the same as the first version number, the terminal sends a version number same instruction to the plug-in server. After receiving the version number same instruction, the plug-in server may determine that the latest version of the synchronization plug-in is installed in the terminal, and there is no need to update the synchronization plug-in in the terminal. If the second version number is greater than the first version number, the terminal may send a confirm update instruction to the plug-in server. After receiving the confirm update instruction sent by the terminal, the plug-in server may send the synchronization plug-in with the second version number to the terminal. After receiving the synchronization plug-in with the second version number, the terminal may update the synchronization plug-in with the first version number based on the synchronization plug-in with the second version number.

[0107] For example, the first version number can be 10.1.0.0, and the second version number can be 10.1.0.1. Optionally, the terminal can remove punctuation marks from the first version number and the second version number, and compare the first version number and the second version number after the punctuation marks are removed in reverse order, that is, the terminal can compare the first version number and the second version number after the punctuation marks are removed in order from low to high. For example, the terminal can remove the punctuation marks "." from the first version number and the second version number, and then compare the 0 of the first version number and the 1 of the second version number after the punctuation marks are removed. Since 1>0, the terminal can determine that the second version number is greater than the first version number.

[0108] It should be noted that the terminal provided in the embodiment of the present invention may or may not be installed with an auxiliary application, and the embodiment of the present invention does not limit this.

[0109] Step 302: Based on the synchronization plug-in, display the synchronization interface of the target application.

[0110] In an embodiment of the present invention, after acquiring the synchronization plug-in of the target application, the terminal can display the menu page of the synchronization plug-in based on the synchronization plug-in. The menu page may include a folder creation option, and after detecting the user's selection instruction for the folder creation option, the terminal can display the synchronization interface of the target application.

[0111] Step 303: In response to the operation on the first functional area in the synchronization interface, determine the information of the first folder for storing the target file.

[0112] In the embodiment of the present invention, Figure 4 As shown, the synchronization interface may include a first function area 10, and the first function area 10 is used to set the information of the first folder, and the first folder is used to store the target file. The first function area 10 may display multiple folders in the server. When the terminal detects a selection instruction for any folder in the multiple folders, it may determine the folder indicated by the selection instruction as the first folder, and determine the identifier of the first folder as the information of the first folder. For example, the multiple folders include folder AA, folder BB, folder CC and folder KK. When the terminal detects a selection instruction for folder KK in the multiple folders, it may determine folder KK as the first folder, and determine the identifier of folder KK as the information of the first folder. Optionally, the identifier of the first folder may be the name of the first folder, for example, the identifier of the first folder may be KK.

[0113] Optionally, a new folder button may also be displayed in the first function area. After detecting the user's selection instruction for the new folder button, the terminal may create a new folder, determine the new folder as the first folder, and determine the identifier of the new folder as the information of the first folder.

[0114] Step 304: In response to the operation on the second functional area in the synchronization interface, determine the information of the second folder in the first folder for storing the target file.

[0115] In the embodiment of the present invention, reference Figure 4 , the synchronization interface may also include a second function area 20, the second function area 20 is used to set the information of the second folder, and the second folder is a folder in the first folder for storing the target file. After determining the first folder, the terminal can obtain the information of the second folder in response to the operation on the second function area, and determine the second folder based on the information of the second folder. The information of the second folder may include at least one of the encoding, version number and identification of the second folder. In the embodiment of the present invention, the information of the second folder may include the encoding, version number and identification of the second folder as an example for description.

[0116] refer to Figure 4 , the second function area 20 may include a code acquisition box 21 of the second folder, a version number acquisition box 22 of the second folder, an identification acquisition box 23 of the second folder, and an assignment button. The user may click the assignment button, and accordingly, after detecting the selection instruction for the assignment button, the terminal may send a code acquisition instruction and a version number acquisition instruction of the second folder to the server. After receiving the code acquisition instruction and the version number acquisition instruction of the second folder, the server may acquire the code of the second folder and generate the version number of the second folder according to the version number generation rule. After that, the server may send the code and version number of the second folder to the terminal, and after receiving the code and version number of the second folder sent by the server, the terminal may display the code of the second folder in the code acquisition box 21 and display the version number of the second folder in the version number acquisition box 22. After that, the user may enter the identification of the second folder in the identification text box 23, and accordingly, the terminal may acquire and display the text information entered by the user in the identification acquisition box 23, and determine the acquired text information as the identification of the second folder. For example, the identification of the second folder may be WW.

[0117] Optionally, the second folder can be a folder already in the first folder, or a newly created folder in the first folder. On the one hand, if a new second folder is created in the first folder, the terminal can send an acquisition instruction of the code acquisition interface to the server after detecting the user's selection instruction for the assignment button, and the server can send the code acquisition interface to the terminal after receiving the acquisition instruction of the code acquisition interface. Correspondingly, the terminal can receive and display the code acquisition interface, and obtain the code of the second folder through the code acquisition interface. On the other hand, if the folder already in the first folder is determined as the second folder, the user can enter the identification of the second folder in the identification text box 23, and correspondingly, the terminal can obtain and display the text information entered by the user in the identification acquisition box 23. After that, the user can click the search button, and correspondingly, the terminal can send the search instruction carrying the text information to the server after detecting the user's selection instruction for the search button. After receiving the search instruction sent by the terminal, the server can obtain the code and version number of the second folder based on the text information, and send the obtained code and version number of the second folder to the terminal. After receiving the code and version number of the second folder sent by the server, the terminal may display the received code of the second folder in the code acquisition frame 21 , and display the received version number of the second folder in the version number acquisition frame 22 .

[0118] like Figure 5 As shown, the code acquisition interface may include a code classification option, a file classification option and a code classification selection area 51 . The code classification option is used to display the code classification selected in the code classification selection area 51 . Figure 5 Taking the selected coding classification as X, XX3, Y1 as an example, after the terminal detects the selection instruction for the coding classification option, the first-level classification X can be displayed in the coding classification selection area 51. After the terminal detects the selection instruction for the first-level classification X in the coding classification selection area 51, the second-level classification XX1, the second-level classification XX2, the second-level classification XX3, the second-level classification XX4, and the second-level classification XX5 included in the first-level classification X can be displayed in the coding classification selection area 51. After the terminal detects the selection instruction for the third-level classification XX3 in the coding classification selection area 51, the third-level classification Y1 and the third-level classification Y2 included in the second-level classification XX3 can be displayed in the coding classification selection area 51. After the terminal detects the user's selection instruction for the third-level classification Y1 in the coding classification selection area 51, the terminal can determine the third-level classification Y1 in the second-level classification XX3 in the acquired first-level classification X as the coding classification of the second folder.

[0119] After detecting a selection instruction for a file classification option, the terminal can display a list of file types ( Figure 5(not shown), and after receiving a user's selection instruction for a target file type in the file type list, the target file type is determined as a classification of the target file. For example, Figure 5 In the example, the classification of the target file is taken as a component.

[0120] Optionally, the code of the second folder may include a classification code and a serial code. Figure 5 The code acquisition interface may also include a classification code option and a serial code acquisition box. After detecting a selection instruction for a classification code option, the terminal may display a classification code list ( Figure 5 (not shown), and after receiving a selection instruction for a target classification code in the classification code list, the target classification code is determined as the classification code of the second folder, and the classification code can be used to indicate the classification of the material, and the material refers to the content embodied by the file. For example, the classification code can be 30-014, SG. The terminal can automatically generate a serial code and display the generated serial code in the serial code acquisition box. For example, the serial code can be XXXX, and the X can be a certain number.

[0121] like Figure 5 As shown, the code acquisition interface may also include a factory number option. After detecting the user's selection instruction for the factory number option, the terminal may display a factory number list, and after receiving a selection instruction for a target factory number in the factory number list, the target factory number is determined as the factory number of the second folder. The factory number is used to indicate the number of the factory to which the user synchronizing the target file belongs. For example, the factory number may be B3, B3, where B is used to indicate the department number of the factory.

[0122] In the embodiment of the present invention, since the first function area and the second function area are integrated into one interface (the above-mentioned synchronization interface), it is not necessary to set the first function area and the second function area on different interfaces respectively. Therefore, the efficiency of determining the first folder and the second folder is improved, and the efficiency of obtaining the information of the first folder and the second folder is also improved.

[0123] In the embodiment of the present invention, reference Figure 4 The second function area 20 may also include a button for associating with a third folder. If the terminal detects a selection instruction for the button for associating with a third folder, the third function area may be set to an editable state and step 305 is executed. If the terminal does not detect a selection instruction for the button for associating with a third folder, the third function area is in a non-editable state.

[0124] Step 305: In response to the operation on the third functional area in the synchronization interface, determine the information of the third folder in the second folder for storing the target file.

[0125] When the third function area is in an editable state, the terminal can determine the third folder in response to the operation on the third function area, and simultaneously obtain information of the third folder. The information may include at least one of the encoding, version number, logo, English description, Chinese description, creation reason, and creator of the third folder.

[0126] refer to Figure 4 The synchronization interface may further include a third function area 30, which is used to set information of a third folder, which is a folder in the second folder for storing target files. The third function area 30 may include a third folder code acquisition box 31, a third folder version number acquisition box 32, a third folder identification acquisition box 33, an English description box 34, a Chinese description box 35, a creation reason acquisition box 36, a creator acquisition box 37, an assignment button, and a search button.

[0127] In an embodiment of the present invention, after detecting the selection instruction for the assignment button in the third function area 30, the terminal can send a code acquisition instruction and a version number acquisition instruction of the third folder to the server. After receiving the code acquisition instruction and the version number acquisition instruction of the third folder sent by the terminal, the server can generate the code of the third folder according to the code generation rule, and generate the version number of the third folder according to the version number generation rule. After that, the server can send the generated code and version number of the third folder to the terminal. After receiving the code and version number of the third folder sent by the server, the terminal can display the code of the third folder in the code acquisition box 31 of the third folder, and display the received version number of the third folder in the version number acquisition box 32 of the third folder. After that, the user can enter text information in the identification acquisition box 33 of the third folder. Correspondingly, the terminal can receive and display the text information in the identification acquisition box 33, and determine the text information as the identification of the third folder.

[0128] Optionally, the terminal may determine the information obtained from the English description acquisition box 34 as the English description of the third folder, determine the information obtained from the Chinese description acquisition box 35 as the Chinese description of the third folder, determine the information obtained from the creation reason acquisition box 36 as the creation reason of the third folder, and determine the information obtained from the creator acquisition box 37 as the creator of the third folder. Afterwards, if the terminal detects a selection instruction for the confirmation button on the third function area, the information of the second folder and the information of the third folder may be stored. If the terminal detects a selection instruction for the reset button, the information of the second folder in the second function area 20 and the information of the third folder displayed in the third function area 30 may be deleted.

[0129] In the embodiment of the present invention, since the first function area, the second function area and the third function area are integrated into one interface (i.e., the synchronization interface), it is not necessary to set the first function area, the second function area and the third function area in different interfaces. Therefore, the efficiency of determining the third folder is improved, and the efficiency of determining the information of the third folder is also improved.

[0130] Step 306: In response to the operation on the fourth functional area, determine the information of the target file in the third folder.

[0131] refer to Figure 4 The synchronization interface may further include a fourth function area 40, and the fourth function area 40 is used to select a target file from the files generated by the target application. In the embodiment of the present invention, after determining the third folder, the terminal may determine the target file in response to an operation on the fourth function area.

[0132] refer to Figure 4 , the fourth function area 40 may include an add file button, a delete file button, and a file storage format option. After detecting the selection instruction for the add file button, the terminal may obtain multiple files generated by the target application from the terminal locally, and after receiving the user's selection instruction for any file of the multiple files, the file indicated by the selection instruction may be determined as the target file, and the target file and the storage format of the target file may be displayed in the fourth function area 40. For example, the identifier of the target file may be Dr1, and the storage format of the target file may be dwg.

[0133] Optionally, after detecting a selection instruction for a storage format option, the terminal may display multiple file formats, and after receiving a selection instruction for a target format dwg, determine the target format dwg as the storage format of the target file. After detecting a selection instruction for a target file displayed in the fourth function area 40, if a selection instruction for a delete button is detected, the terminal may delete the target file from the fourth function area 40.

[0134] Step 307: Obtain a first synchronization instruction for the file synchronization entry.

[0135] The synchronization interface may also include a file synchronization entry, which may be Figure 4 After detecting the selection instruction for the synchronization button, the terminal can obtain a first synchronization instruction for the file synchronization entry, where the first synchronization instruction is used to instruct the target file generated by the target application to be synchronized to the server. Figure 4 The synchronization button in the interface shown is used to instruct synchronization of the target file generated by the target application to the server.

[0136] Step 308: Acquire the target file based on the first synchronization instruction.

[0137] After obtaining the first synchronization instruction for the file synchronization entry, the terminal can obtain the local target file based on the first synchronization instruction.

[0138] Step 309: Based on the target interface of the synchronization plug-in, a second synchronization instruction carrying the target file is sent to the server.

[0139] After acquiring the target file, the terminal may send a second synchronization instruction carrying the target file to the server based on the target interface of the synchronization plug-in, so that the server stores the target file.

[0140] It should be noted that the synchronization interface may include only the first function area and the fourth function area. Alternatively, the synchronization interface may include only the first function area, the second function area and the fourth function area, or the synchronization interface may include the first function area, the second function area, the third function area and the fourth function area, which is limited in the embodiment of the present invention.

[0141] Optionally, if the synchronization interface includes a first function area and a fourth function area, the second synchronization instruction also carries information of the first folder. After receiving the second synchronization instruction sent by the terminal, the server can store the target file in the first folder and store the information of the first folder corresponding to the identifier of the target file. The identifier of the target file can be the name of the target file.

[0142] Optionally, if the synchronization interface includes a first function area, a second function area, and a fourth function area, the second synchronization instruction also carries information of the first folder and the second folder. After receiving the second synchronization instruction sent by the terminal, the server can store the target file in the second folder, and at the same time, store the information of the first folder and the second folder in correspondence with the identifier of the target file, and the identifier of the target file can be the name of the target file.

[0143] If the synchronization interface further includes a first function area, a second function area, a third function area, and a fourth function area, the second synchronization instruction may also carry information of the first folder, information of the second folder, and information of the third folder. After receiving the second synchronization instruction sent by the terminal, the server may store the target file in the third folder, and store the information of the first folder, the information of the second folder, and the information of the third folder in correspondence with the identifier of the target file.

[0144] In summary, the embodiment of the present invention provides a file synchronization method. After obtaining the synchronization plug-in of the target application, the terminal can obtain the target file based on the first synchronization instruction for the target application, and send a second synchronization instruction carrying the target file to the server based on the target interface of the synchronization plug-in. Since the terminal can synchronize the target file to the server through the target application used to generate the target file during the process of synchronizing the target file to the server, there is no need to start the auxiliary application, which improves the efficiency of synchronizing the file to the server.

[0145] Figure 6 is a flowchart of another file synchronization method provided by an embodiment of the present invention, which can be applied to Figure 1 In the terminal 110 shown. Figure 6 As shown, the method may include:

[0146] Step 401: Based on the synchronization plug-in, an update interface of the target application is displayed.

[0147] In the embodiment of the present invention, the menu page of the synchronization plug-in may further include an update option. After detecting a selection instruction for the update option, the terminal may display an update interface of the target application based on the synchronization plug-in.

[0148] Step 402: In response to an operation on the fifth functional area in the synchronization interface, determine information of a second folder in the first folder for storing the target file.

[0149] like Figure 7 As shown, the update interface may include a fifth function area 50, and the fifth function area 50 is used to select a second folder in the server.

[0150] refer to Figure 7 , the fifth functional area 50 may include a code acquisition box 21 for the second folder, a version number acquisition box 22 for the second folder, an identification acquisition box 23 for the second folder, and a search button. Optionally, the user may enter the identification of the second folder in the identification acquisition box 23 for the second folder. Accordingly, after the terminal obtains the identification of the second folder entered by the user from the fifth functional area 50, if a selection instruction for the search button is detected, the search instruction carrying the identification of the second folder may be sent to the server. After receiving the search instruction, the server may obtain the information of the second folder based on the identification of the second folder, and send the obtained information of the second folder to the terminal. The information of the second folder may include the identification and version number of the second folder.

[0151] Step 403: In response to the operation on the sixth functional area, determine information of a third folder in the second folder for storing the target file.

[0152] refer to Figure 7 The update interface may further include a sixth function area 60, which is used to select a third folder in the server. The sixth function area 60 may include a third folder code acquisition box 31, a third folder version number acquisition box 32, a third folder identification acquisition box 33, and a search button.

[0153] In an embodiment of the present invention, a user may input text information in the identification acquisition box 33, and accordingly, the terminal may receive the text information input by the user in the identification acquisition box 33, and determine the obtained text information as the identification of the third folder. For example, the identification of the third folder may be MM. Afterwards, after detecting the user's selection instruction for the search button, a search instruction carrying the identification of the third folder may be sent to the server. After receiving the identification of the third folder, the server may obtain the information of the third folder based on the identification of the third folder, and send the obtained information of the third folder to the terminal. After receiving the information of the third folder sent by the server, the terminal may display the information of the third folder in the sixth functional area 60.

[0154] Step 404: In response to the operation on the seventh functional area, determine the information of the updated file.

[0155] refer to Figure 7 , the update interface may also include a seventh function area 70, which is used to select an update file from the files generated by the target application. The seventh function area may include an add file button, a delete file button, and a file storage format option. After the terminal determines the third folder, if a selection instruction for the add file button is detected, multiple files obtained from the terminal locally can be displayed. After receiving a selection instruction from the user for any of the multiple files, the file indicated by the selection instruction can be determined as an update file, and the update file and the storage format of the update file can be added to the seventh function area 70. For example, the identifier of the update file can be Dr2, and the storage format of the update file can be dwg.

[0156] Optionally, after detecting a user's selection instruction for a storage format option, the terminal may display multiple file formats, and after receiving a user's selection instruction for a target format dwg, determine the target format dwg as the storage format of the update file. After detecting a selection instruction for an update file displayed in the seventh function area 70, if a selection instruction for a delete button is detected, the terminal may delete the update file from the seventh function area 70.

[0157] Step 405: Obtain a first update instruction for the file update entry.

[0158] The update interface may also include a file update entry, which may be Figure 7 After detecting the selection instruction for the update button, the terminal can obtain a first update instruction for the file update entry, where the first update instruction is used to instruct to update the target file in the server to an update file of the target file generated by the target application.

[0159] Step 406: Obtain an update file based on the first update instruction.

[0160] After obtaining the first update instruction for the file update entry, the terminal may obtain the update file locally from the terminal based on the first update instruction.

[0161] Step 407: Based on the target interface of the synchronization plug-in, a second update instruction carrying the update file is sent to the server.

[0162] After acquiring the update file, the terminal may send a second update instruction carrying the update file to the server, the second update instruction being used to instruct the server to update the target file to the update file. After receiving the second update instruction, the server may replace the target file in the third folder with the update file.

[0163] It should be noted that the update interface may only include the fifth function area and the seventh function area. Alternatively, the update interface may also include the fifth function area, the sixth function area and the seventh function area, which is limited in the embodiment of the present invention.

[0164] In an embodiment of the present invention, if the update interface includes the fifth function area and the seventh function area, the second update instruction also carries the second folder information. After receiving the second update instruction sent by the terminal, the server can replace the target file in the second folder with the update file, and store the information of the second folder corresponding to the identifier of the update file, and the identifier of the update file can be the identifier of the update file. Since the fifth function area and the seventh function area can be integrated into one interface (i.e., the above-mentioned synchronization interface), there is no need to integrate the fifth function area and the seventh function area into different interfaces respectively, thereby improving the efficiency of file updating.

[0165] If the update interface includes the fifth function area, the sixth function area and the seventh function area, the second update instruction also carries the information of the second folder and the third folder. After receiving the second update instruction sent by the terminal, the server can replace the target file in the third folder with the update file, and store the information of the second folder and the third folder in correspondence with the identifier of the update file. Since the fifth function area, the sixth function area and the seventh function area can be integrated into one interface (i.e., the above-mentioned synchronization interface), there is no need to integrate the fifth function area, the sixth function area and the seventh function area into different interfaces respectively, thereby improving the efficiency of file update.

[0166] In summary, an embodiment of the present invention provides a file synchronization method. After the terminal obtains the synchronization plug-in of the target application, it obtains the target file based on the first synchronization instruction for the target application, and sends a second synchronization instruction carrying the target file to the server based on the target interface of the synchronization plug-in. Since the terminal can synchronize the target file to the server through the target application used to generate the target file in the process of synchronizing the target file to the server without starting the auxiliary application, the efficiency of synchronizing the file to the server is improved. And since multiple functional areas are integrated on one interface to realize the update of the file, the efficiency of the file update is improved.

[0167] Figure 8 is a flowchart of another file synchronization method provided by an embodiment of the present invention, which can be applied to Figure 1 In the terminal 110 shown. Figure 8 As shown, the method may include:

[0168] Step 801: Obtain a first download instruction for a target file.

[0169] As an optional implementation, the menu page of the synchronization plug-in may also include a search option, and the terminal may display the search page after detecting a selection instruction for the search option. Fig. 9 As shown, the search page may include a search mode option, an identification acquisition box, a search button, and a search result display area 80. The search mode option may include a code search and an identification search.

[0170] After detecting the selection instruction for the coding search option, the terminal can obtain the coding keyword input by the user from the identification acquisition box, and after detecting the selection instruction for the search button, send the coding keyword to the server, so that the server obtains the corresponding coding of multiple folders based on the coding keyword. After that, the terminal can receive and display the coding of multiple first folders in the search result display area 80. For example, the first folder 44-85811, the first folder 44-85812 and the first folder 44-85813, after detecting the selection instruction for the first folder 44-85813, the terminal can display the file 44-8581324 in the first folder. When the terminal detects the drag operation for the file 44-8581324, it can be determined that the download instruction for the file 44-8581324 is detected, the file 44-8581324 can be determined as the target file, and the first download instruction for the target file can be determined to be obtained. Among them, the first download instruction carries the identification of the target file. For example, the coding keyword may be 44-85081*, where 44-85081 indicates that the first 8 digits of the file identifier in the search result are 44-85081, and * indicates that the digit after the 8th digit of the file identifier in the search result is any digit.

[0171] Optional, reference Fig. 9 The search result display area may also display a previous page button, a next page button, and a quantity text box 81. The previous page button and the next page button may be used to turn pages to display the multiple first folders, and the quantity text box 81 is used to display the number of first folders acquired by the terminal. The embodiment of the present invention is described by taking the example that the quantity text box 81 may display "3 results in total", at which time both the previous page and the next page are in a non-editable state.

[0172] In the embodiment of the present invention, the terminal can obtain the target file through the search option in the menu page of the synchronization plug-in, or can obtain the target file in other ways. As an optional implementation method, refer to Fig. 9 ( Fig. 9Only a partial area of ​​the menu interface is shown), the menu page of the synchronization plug-in can also display multiple first folders, which can include a first folder AA, a first folder BB, a first folder CC and a first folder KK. After the terminal detects the user's selection instruction for the target folder KK in the multiple first folders, it can display the information of multiple files in the first folder KK. The information of the file can be the identification of the file. For example, if the first folder KK includes two files, the terminal can display the information of the two files, which are KK1 and KK2 respectively. After that, after the terminal detects the drag operation for the target file KK1 among the two files, it can determine that the first download instruction for the target file KK1 is obtained. Among them, the first download instruction carries the identification of the target file.

[0173] Step 409: Download the target file from the server based on the target interface of the synchronization plug-in.

[0174] After receiving the first download instruction for the target file, the terminal can send the first download instruction to the server based on the target interface of the synchronization plug-in. After receiving the first download instruction, the server can obtain the target file based on the identifier of the target file carried in the first download instruction, and send the obtained target file to the terminal. After receiving the target file sent by the server, the terminal can store the target file locally.

[0175] In the embodiment of the present invention, during the process of downloading a target file, since the target file can be directly downloaded through the target application without starting an auxiliary application, the efficiency of file downloading is improved.

[0176] In summary, an embodiment of the present invention provides a file synchronization method, in which, after obtaining the synchronization plug-in of the target application, the terminal obtains the target file based on the first synchronization instruction for the target application, and sends a second synchronization instruction carrying the target file to the server based on the target interface of the synchronization plug-in. Since the terminal can synchronize the target file to the server through the target application used to generate the target file without starting the auxiliary application during the process of synchronizing the target file to the server, the efficiency of synchronizing the file to the server is improved. And in the process of downloading the target file, since the target file can be directly downloaded through the target application, there is no need to start the auxiliary application, which improves the efficiency of file downloading.

[0177] It should be noted that the order of the steps of the file synchronization method provided in the embodiment of the present invention can be adjusted appropriately, and the steps can also be deleted according to the situation. For example, the file upload process provided by steps 303 to 306 can be deleted, the file update process provided by steps 401 to 407 can also be deleted according to the situation, and the file download process provided by steps 501 and 502 can also be deleted according to the situation. Any technical personnel familiar with the technical field can easily think of a change method within the technical scope disclosed by the present invention, which should be covered within the protection scope of the present invention, so it will not be repeated.

[0178] Fig.11 is a block diagram of a file synchronization device 100 provided by an embodiment of the present invention. The file synchronization device can be Figure 1 The terminal 110 shown in FIG. Fig.11 As shown, the device may include:

[0179] The first acquisition module 1000 is used to acquire a synchronization plug-in of a target application. The synchronization plug-in has a target interface, and the target interface is used to communicate with a server of an auxiliary application.

[0180] The second acquisition module 1001 is used to acquire a first synchronization instruction for a target application, where the first synchronization instruction is used to instruct to synchronize a target file generated by the target application to a server.

[0181] The third acquisition module 1002 is used to acquire the target file based on the first synchronization instruction.

[0182] The sending module 1003 is used to send a second synchronization instruction carrying a target file to the server based on the target interface of the synchronization plug-in.

[0183] In summary, an embodiment of the present invention provides a file synchronization device. After the terminal obtains the synchronization plug-in of the target application, it can obtain the target file based on the first synchronization instruction, and send a second synchronization instruction carrying the target file to the server based on the target interface of the synchronization plug-in. Since the terminal can synchronize the target file to the server through the target application used to generate the target file during the process of synchronizing the target file to the server, there is no need to start the auxiliary application, which improves the efficiency of synchronizing the file to the server.

[0184] Optionally, the second acquisition module 1001 is used to:

[0185] Based on the synchronization plug-in, the synchronization interface of the target application is displayed, and the synchronization interface includes a file synchronization entry;

[0186] Get the first synchronization instruction for the file synchronization entry.

[0187] Optionally, the synchronization interface further includes: a first function area and a second function area, the first function area is used to set information of a first folder, the first folder is used to store target files, and the second function area is used to set information of a second folder, the second folder is a folder in the first folder for storing target files, Fig.12 , the device further comprises:

[0188] The first determination module 1003 is used to determine the information of the first folder in response to the operation on the first function area before obtaining the first synchronization instruction.

[0189] The second determination module 1004 is used to determine the information of the second folder in response to the operation on the second function area before acquiring the first synchronization instruction.

[0190] The second synchronization instruction also carries: information of the first folder and the second folder.

[0191] Optionally, the synchronization interface further includes: a third function area, the third function area is used to set information of a third folder, the third folder is a folder in the second folder for storing target files, refer to Fig.12 , the device further comprises:

[0192] The third determination module 1005 is used to determine the information of the third folder in response to the operation on the third functional area before obtaining the first synchronization instruction for the target application; the second synchronization instruction also carries: the information of the third folder.

[0193] Optionally, the synchronization interface further includes: a fourth function area, the fourth function area is used to set the information of the target file in the file generated by the target application, refer to Fig.12 , the device further comprises:

[0194] The fourth determination module 1006 is used to determine the information of the target file in response to the operation on the fourth functional area before acquiring the first synchronization instruction for the target application.

[0195] Optionally, the device further comprises:

[0196] The fourth acquisition module 1007 is used to acquire a first update instruction for the target application after synchronizing the target file to the server, where the first update instruction is used to instruct: updating the target file in the server to an update file of the target file generated by the target application.

[0197] The fifth acquisition module 1008 is configured to acquire an update file based on the first update instruction.

[0198] The sending module is also used to send a second update instruction carrying an update file to the server based on the target interface of the synchronization plug-in, and the second update instruction is used to instruct the server to update the target file to the update file.

[0199] Optionally, the fourth acquisition module 1007 is used to:

[0200] Based on the synchronization plug-in, the update interface of the target application is displayed, and the update interface includes a file update entry;

[0201] A first update instruction for a file update entry is obtained.

[0202] Optionally, the update interface further includes: a fifth function area and a sixth function area, the fifth function area is used to select information of the second folder in the server, and the sixth function area is used to select information of the third folder in the server.

[0203] The second determining module 1004 is further configured to determine information of a second folder in response to an operation on the fifth function area before acquiring the first update instruction for the target application.

[0204] The third determination module 1005 is further configured to determine information of a third folder in response to an operation on the sixth function area before acquiring the first update instruction for the target application.

[0205] The second update instruction also carries information of the second folder and the third folder.

[0206] Optionally, the update interface further includes: a seventh function area, the seventh function area is used to set the information of the updated file in the file generated by the target application, and the fourth determination module 1006 is further used to:

[0207] Before acquiring the first update instruction for the target application, in response to the operation on the seventh function area, information of the update file is determined.

[0208] Optional, reference Fig.12 , the device further comprises:

[0209] The sixth acquisition module 1009 is used to acquire a first download instruction for the target application after synchronizing the target file to the server, where the first download instruction is used to instruct to download the target file in the server.

[0210] The download module 1009 is used to download the target file from the server based on the target interface of the synchronization plug-in.

[0211] In summary, an embodiment of the present invention provides a file synchronization device. After the terminal obtains the synchronization plug-in of the target application, it obtains the target file based on the first synchronization instruction for the target application, and sends the second synchronization instruction carrying the target file to the server based on the target interface of the synchronization plug-in. Since the terminal can synchronize the target file to the server through the target application used to generate the target file in the process of synchronizing the target file to the server without starting the auxiliary application, the efficiency of synchronizing the file to the server is improved.

[0212] An embodiment of the present invention provides a file synchronization device, which may include a memory, a processor, and a computer program stored in the memory. When the processor executes the computer program, the file synchronization method provided in the above embodiment is implemented.

[0213] An embodiment of the present invention provides a file synchronization system, which may include Figure 1 The terminal 110 and the server 120 shown in the figure may include the file synchronization device provided in the above embodiment.

[0214] An embodiment of the present invention provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the file synchronization method provided by the above embodiment.

[0215] The above descriptions are merely optional embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A file synchronization method, characterized in that: The method comprises: Acquire a synchronization plug-in of a target application, wherein the synchronization plug-in has a target interface, and the target interface is used to communicate with a server of the auxiliary application; In response to an operation on a second functional area in a synchronization interface of the target application, determine information of a second folder in the first folder for storing a target file of the target application, the information of the second folder comprising at least one of a code, a version number, and an identifier, the code being obtained by the server according to a code obtaining instruction for the second folder, the version number being generated by the server according to a version number obtaining instruction for the second folder and a version number generating rule, and the identifier being input by a user; Acquire a first synchronization instruction for the target application, where the first synchronization instruction is used to instruct synchronization of the target file generated by the target application to the server; Acquire the target file based on the first synchronization instruction; Based on the target interface of the synchronization plug-in, a second synchronization instruction carrying the target file, the information of the first folder, and the information of the second folder is sent to the server.

2. The method according to claim 1, characterized in that The obtaining of a first synchronization instruction for the target application includes: Based on the synchronization plug-in, displaying the synchronization interface of the target application, the synchronization interface also includes a file synchronization entry; The first synchronization instruction for the file synchronization entry is obtained.

3. The method according to claim 2, characterized in that The synchronization interface further includes: a first function area, the first function area is used to set the information of the first folder, the first folder is used to store the target file, and the second function area is used to set the information of the second folder. The method further includes: Before acquiring the first synchronization instruction, information of the first folder is determined in response to an operation on the first function area.

4. The method according to claim 3, characterized in that The synchronization interface further includes: a third function area, the third function area is used to set information of a third folder, the third folder is a folder in the second folder for storing the target file, and the method further includes: Before acquiring the first synchronization instruction for the target application, in response to the operation on the third functional area, the information of the third folder is determined; the second synchronization instruction also carries: the information of the third folder.

5. The method according to any one of claims 2 to 4, characterized in that: The synchronization interface further includes: a fourth function area, the fourth function area being used to set information of the target file in the file generated by the target application. Before acquiring the first synchronization instruction for the target application, the method further includes: In response to the operation on the fourth functional area, information of the target file is determined.

6. The method according to claim 4, characterized in that After synchronizing the target file to the server, the method further includes: Acquire a first update instruction for the target application, where the first update instruction is used to instruct: update the target file in the server to an update file of the target file generated by the target application; acquiring the update file based on the first update instruction; Based on the target interface of the synchronization plug-in, a second update instruction carrying the update file is sent to the server, where the second update instruction is used to instruct the server to update the target file to the update file.

7. The method according to claim 6, characterized in that The obtaining of a first update instruction for the target application includes: Based on the synchronization plug-in, displaying an update interface of the target application, wherein the update interface includes a file update entry; The first update instruction for the file update entry is obtained.

8. The method according to claim 7, characterized in that The update interface further includes: a fifth function area and a sixth function area, the fifth function area is used to select information of the second folder in the server, and the sixth function area is used to select information of the third folder in the server, and the method further includes: Before acquiring the first update instruction for the target application, in response to the operation on the fifth function area, determining the information of the second folder; Before acquiring the first update instruction for the target application, in response to the operation on the sixth function area, determining the information of the third folder; The second update instruction also carries: information of the second folder and the third folder.

9. The method according to claim 7 or 8, characterized in that: The update interface further includes: a seventh function area, the seventh function area being used to set information of the update file in the file generated by the target application. Before obtaining the first update instruction for the target application, the method further includes: In response to the operation on the seventh functional area, information of the update file is determined.

10. The method according to any one of claims 1 to 4, characterized in that: After synchronizing the target file to the server, the method further includes: Obtaining a first download instruction for the target application, where the first download instruction is used to instruct downloading the target file in the server; Based on the target interface of the synchronization plug-in, the target file is downloaded from the server.

11. A file synchronization device, characterized in that: The device comprises: A first acquisition module, used to acquire a synchronization plug-in of a target application, wherein the synchronization plug-in has a target interface, and the target interface is used to communicate with a server of the auxiliary application; A second determination module is configured to determine, in response to an operation on a second functional area in a synchronization interface of the target application, information of a second folder in the first folder for storing a target file of the target application, wherein the information of the second folder includes at least one of a code, a version number, and an identifier, wherein the code is obtained by the server according to a code obtaining instruction for the second folder, the version number is generated by the server according to a version number obtaining instruction for the second folder and a version number generation rule, and the identifier is input by a user; A second acquisition module, used to acquire a first synchronization instruction for the target application, where the first synchronization instruction is used to instruct synchronization of the target file generated by the target application to the server; A third acquisition module, configured to acquire the target file based on the first synchronization instruction; A sending module is used to send a second synchronization instruction carrying the target file, information of the first folder and information of the second folder to the server based on the target interface of the synchronization plug-in.

12. A file synchronization device, characterized in that: include: A memory, a processor and a computer program stored in the memory, wherein the processor implements the file synchronization method as described in any one of claims 1 to 10 when executing the computer program.

13. A file synchronization system, characterized in that: The file synchronization system comprises: a terminal and a server, and the terminal comprises the file synchronization device as claimed in any one of claims 11 or 12.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the file synchronization method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • File synchronizing method and device

    CN102054036A

  • File synchronization method and device of on-line storage service

    CN103037005A