CN113992652A - Cross-terminal file synchronization method and device - Google Patents

Cross-terminal file synchronization method and device Download PDF

Info

Publication number
CN113992652A
CN113992652A CN202111205875.1A CN202111205875A CN113992652A CN 113992652 A CN113992652 A CN 113992652A CN 202111205875 A CN202111205875 A CN 202111205875A CN 113992652 A CN113992652 A CN 113992652A
Authority
CN
China
Prior art keywords
file
electronic device
target
electronic equipment
target file
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.)
Granted
Application number
CN202111205875.1A
Other languages
Chinese (zh)
Other versions
CN113992652B (en
Inventor
李明威
刘诗燚
郭伟杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Wuhan Kingsoft Office Software Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Wuhan Kingsoft Office Software 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 Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Wuhan Kingsoft Office Software Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN202111205875.1A priority Critical patent/CN113992652B/en
Publication of CN113992652A publication Critical patent/CN113992652A/en
Application granted granted Critical
Publication of CN113992652B publication Critical patent/CN113992652B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/178Techniques for file synchronisation in file systems
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

Abstract

The application provides a cross-terminal file synchronization method and a device, wherein the method comprises the following steps: displaying at least one file; the at least one file is a file contained in the authority of logging in the same account on the second electronic equipment as the first electronic equipment; receiving an operation instruction of a first target file; the first target file is a file in the at least one file; and sending the operation instruction to second electronic equipment, so that the second electronic equipment executes corresponding operation based on the operation instruction and the file state of the first target file. The cross-terminal file synchronization method and device can achieve remote control of files on other equipment.

Description

Cross-terminal file synchronization method and device
Technical Field
The present application relates to the field of cross-terminal file synchronization, and in particular, to a cross-terminal file synchronization method and apparatus.
Background
With the development of terminal device technology, more and more users need to use a plurality of terminal devices in work and life, and the user demand for information interconnection among the plurality of terminal devices is increasing.
In the related art, when a user needs to operate a file stored on another device through a currently used device, for example, to access the file on the other device, the user is usually required to set sharing for the file on the other device or copy the file onto a mobile storage device, and then the file can be transferred to the currently used device and accessed. Such a cross-terminal file synchronization method is cumbersome to operate, and files on devices at a longer distance cannot be acquired.
Disclosure of Invention
The application aims to provide a cross-terminal file synchronization method and device, which are used for remotely controlling files on other equipment.
According to one aspect of the application, a cross-terminal file synchronization method is provided, and comprises the following steps:
displaying at least one file; the at least one file is a file contained in the authority of logging in the same account on the second electronic equipment as the first electronic equipment; receiving an operation instruction of a first target file; the first target file is a file in the at least one file; and sending the operation instruction to second electronic equipment, so that the second electronic equipment executes corresponding operation based on the operation instruction and the file state of the first target file.
Optionally, before the displaying at least one file, the method further includes: sending a file information acquisition request to the second electronic equipment; receiving file information of the at least one file sent by the second electronic equipment; the displaying at least one file includes: displaying the at least one file based on the file information; wherein the file information includes at least one of: file type, file name, file status, file source device information.
Optionally, before sending the file information obtaining request to the second electronic device, the method further includes: acquiring device information of second electronic equipment logged in the target account based on the target account logged in by the first electronic equipment; and acquiring file information of at least one file associated with the device information of the second electronic device in the authority of the target account.
Optionally, the target operation comprises any one of: file access operation, file moving operation and file deleting operation; the sending the operation instruction to the second electronic device includes: transmitting the first target file from the second electronic device to the first electronic device if the target operation is a file access operation; or, in the case that the target operation is a file moving operation, moving the first target file on the second electronic device from a current path to a path indicated by the moving operation on the first electronic device; or, in the case that the target operation is a file deletion operation, deleting the first target file on the second electronic device and/or the server.
Optionally, in the case that the target operation is a file access operation, the transmitting the first target file from the second electronic device to the first electronic device includes: sending a first control instruction to the second electronic equipment; the first control instruction is used for controlling the second electronic equipment to update the first target file to be in the latest state and upload the updated first target file to a server, and then, the second control instruction is sent to the first electronic equipment; receiving the second control instruction sent by the second electronic device; and acquiring and accessing a first target file stored on the server.
Optionally, in the case that the target operation is a file access operation, the transmitting the first target file from the second electronic device to the first electronic device includes: sending a file state acquisition request to the second electronic equipment; receiving file state information of the first target file sent by the second electronic equipment; and if the file state information indicates that a copy of the first target file is stored in a server and the first target file is in an editing state on the second electronic device, acquiring the copy of the first target file stored in the server based on a confirmation operation.
Optionally, after the sending the operation instruction to the second electronic device, the method further includes: updating file information corresponding to the at least one file on the first electronic device based on the target operation executed on the second electronic device.
Optionally, the method further comprises: receiving a third control instruction sent by the second electronic equipment; transmitting a second target file to the second electronic device based on a file state of the second target file in response to the third control instruction; and the second target file is a file which needs to be accessed by the second electronic equipment.
Optionally, the transmitting the second target file to the second electronic device based on the file status of the second target file includes: transmitting the second target file to a server; and sending a fourth control instruction to the second electronic device, and controlling the second electronic device to acquire the second target file from the server.
Optionally, before transmitting the second target file to a server, the method further includes: and if the second target file is in an accessing state on the first electronic equipment, executing saving and closing operations on the second target file.
Optionally, the transmitting, in response to the third control instruction, the second target file to the second electronic device based on the file status of the second target file includes: and sending confirmation information to the second electronic equipment under the condition that a copy of a second target file is stored on the server and the second target file is in an editing state.
Optionally, after sending the confirmation information to the second electronic device, the method further includes: and if a fifth control instruction sent by the second electronic device based on the confirmation information is received, executing saving and closing operations on the second target file, and after the saved second target file is transmitted to a server, sending a fourth control instruction to the second electronic device to control the second electronic device to obtain the saved second target file from the server.
According to another aspect of the present application, there is provided a cross-terminal file synchronization apparatus, including:
the display module is used for displaying at least one file; the at least one file is a file contained in the authority of the second device for logging in the same account as the first electronic device; the input module is used for receiving an operation instruction of the first target file; the first target file is a file in the at least one file; and the control module is used for sending the operation instruction to second electronic equipment, so that the second electronic equipment executes corresponding operation based on the operation instruction and the file state of the first target file.
Optionally, the apparatus further comprises: a transmitting module and a receiving module; the sending module is used for sending a file information obtaining request to the second electronic equipment; the receiving module is configured to receive file information of the at least one file sent by the second electronic device; the display module is specifically configured to display the at least one file based on the file information; wherein the file information includes at least one of: file type, file name, file status, file source device information.
Optionally, the apparatus further comprises: an acquisition module; the acquisition module is used for acquiring the equipment information of the second electronic equipment logged in the target account based on the target account logged in by the first electronic equipment; the obtaining module is further configured to obtain file information of at least one file associated with the device information of the second electronic device within the authority of the target account.
Optionally, the target operation comprises any one of: file access operation, file moving operation and file deleting operation; the control module is specifically configured to, when the target operation is a file access operation, transmit the first target file from the second electronic device to the first electronic device; or, in the case that the target operation is a file moving operation, moving the first target file on the second electronic device from a current path to a path indicated by the moving operation on the first electronic device; or, in the case that the target operation is a file deletion operation, deleting the first target file on the second electronic device.
Optionally, the sending module is further configured to send a first control instruction to the second electronic device; the first control instruction is used for controlling the second electronic equipment to update the first target file to be in the latest state and upload the updated first target file to a server, and then, the second control instruction is sent to the first electronic equipment; the receiving module is further configured to receive the second control instruction sent by the second electronic device; the acquisition module is further used for acquiring and accessing the first target file stored on the server.
Optionally, the sending module is further configured to send a file status obtaining request to the second electronic device; the receiving module is further configured to receive file state information of the first target file sent by the second electronic device; the control module is specifically configured to, if the file state information indicates that a copy of the first target file is stored in a server and the first target file is in an editing state on the second electronic device, obtain, based on a confirmation operation, the copy of the first target file stored in the server.
Optionally, the display module is further configured to update, on the first electronic device, file information corresponding to the at least one file based on the target operation performed on the second electronic device.
Optionally, the receiving module is further configured to receive a third control instruction sent by the second electronic device; the sending module is further configured to respond to the third control instruction, and transmit a second target file to the second electronic device based on a file state of the second target file; and the second target file is a file which needs to be accessed by the second electronic equipment.
Optionally, the control module is specifically configured to transmit the second target file to a server; the sending module is further configured to send a fourth control instruction to the second electronic device, and control the second electronic device to obtain the second target file from the server.
Optionally, the control module is further configured to, if the second object file is in an accessing state on the first electronic device, perform saving and closing operations on the second object file.
Optionally, the control module is specifically configured to send confirmation information to the second electronic device when a copy of a second target file is stored in the server and the second target file is in an editing state.
Optionally, the control module is configured to, if a fifth control instruction sent by the second electronic device based on the confirmation information is received, perform saving and closing operations on the second target file; the sending module is configured to send a fourth control instruction to the second electronic device after the stored second object file is transmitted to the server, and control the second electronic device to obtain the stored second object file from the server.
According to another aspect of the present application, there is provided a computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the cross-terminal file synchronization method as described in any of the above.
The application also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of the cross-terminal file synchronization method.
According to another aspect of the present application, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the cross-terminal file synchronization method as described in any of the above.
According to the cross-terminal file synchronization method and device, file information of at least one file stored on the second electronic device can be displayed on the interface of the first electronic device, and a user can control the second electronic device to execute corresponding operation based on the operation instruction and the file state of the first target file through the operation instruction of the first target file identifier in the at least one file. For example, when a user wants to access a first target file on a first electronic device, a second electronic device can directly transmit the first target file to the first electronic device, so that the user can conveniently access the first target file. Therefore, remote control of files among multiple devices is achieved, barriers of machine types, systems and platforms among different devices are broken through, interconnection and intercommunication of information and capacity are achieved, and using efficiency of users in a multi-device scene is improved.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of a cross-terminal file synchronization method provided in the present application;
FIG. 2 is a schematic diagram of a cross-terminal file synchronization method interface provided by the present application;
FIG. 3 is a schematic diagram of a cross-terminal file synchronization control flow provided by the present application;
FIG. 4 is a schematic flow chart illustrating remote file access between electronic devices according to the present application;
FIG. 5 is a schematic structural diagram of a cross-terminal file synchronization apparatus provided in the present application;
fig. 6 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
To make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is obvious that the described embodiments are some, but not all embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
Currently, a group of users who need to use a plurality of terminal devices (mobile devices, personal computers, smart televisions, etc.) in life is becoming mainstream, and the demand for interconnection of information among the plurality of devices by the users is also increasing. If the barriers of models, systems and platforms among the devices can be broken, the real-time interconnection and intercommunication of information of a plurality of terminal devices can be realized, and the device use experience of users can be greatly improved.
In the related art, when a current user needs to acquire information of other devices or call files stored in other devices, the user needs to operate the device to find out related information and files and transmit the related information and files through mobile storage devices, transmission software, cloud service software and other modes, and the operation mode is complicated. And when a plurality of users access the same file on the same equipment at the same time, the problem of access conflict may exist.
In order to solve some technical problems existing in the application scenario, the application contemplates a cross-terminal file synchronization method, so that a plurality of terminal devices can perform real-time communication and remote interaction, and a user can acquire device information of other devices on a currently used device and remotely control files stored on the other devices. The cross-terminal file synchronization method provided by the embodiment of the application is mainly applied to products for automatic data transmission and equipment control among a plurality of terminal equipment. The content of the automatic data transmission mainly comprises information (such as file names, file formats, file sizes, storage paths and the like) of equipment files (such as Office documents, notes, notebooks, pictures, compressed packets and the like); the device control mainly comprises the steps of closing files, saving files, uploading files to a server and the like by controlling other devices in a short range or a long range.
The cross-terminal file synchronization method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
As shown in fig. 1, a cross-terminal file synchronization method applied to a first electronic device according to an embodiment of the present application may include the following steps 101 to 103:
step 101, displaying at least one file.
And at least one file is a file contained in the authority of logging in the same account on the second device as the first electronic device.
For example, after a user logs in an account of the user on a first electronic device, the device information of a second electronic device logging in the account can be viewed on the first electronic device, and files edited by the user on the second electronic device or files associated with the account can be viewed, and the files can be saved on the second electronic device or the files carrying account identification and identification of the second electronic device are saved on a cloud server; here, a file included in the authority of the account is understood to be a file that can be accessed, edited, used, or the like on the logged-in electronic device using the account.
It will be appreciated that when a user edits a file on a second electronic device that has logged into an account, the file may be uploaded to a server and stored in association with the account on the server. When the user logs in the account on the first electronic device, the first electronic device may display a target interface, where the target interface displays the electronic device (i.e., the second electronic device) logged in the account, information such as files edited by the user on the electronic device, or information of other files associated with the account. Specifically, file information such as a file name, a file type, a file status, a file modification time, and the like may be included.
For example, the first electronic device may display a plurality of files related to file control available to the user on the second electronic device, and present the files in the form of file identifications.
It will be appreciated that files are typically presented on the electronic device in the form of indicia, such as file icons or the like that are displayed based on the file type. Therefore, when the first electronic device needs to display the file on the second electronic device, the file content of the file does not need to be displayed, but the file content is displayed in the form of a file identifier. Of course, the content display of the document is not limited, and the particular of the document may be highlighted by displaying some key content in the document.
Illustratively, the second electronic device may include at least one electronic device.
It can be understood that, for an application scenario in which a plurality of second electronic devices exist, a file to be controlled may be determined on a first electronic device through device information to which the file belongs, that is, a user may select a file to be controlled on the first electronic device, where the file corresponds to a certain electronic device, and therefore, when controlling after selecting the file, the first electronic device sends a control instruction to the electronic device corresponding to the file through a server; the latest file state can also be determined by the last modification time of the same file on different devices, that is, when the file can be edited and modified on a plurality of electronic devices logged in the same account, and then the file is saved after being edited on a plurality of electronic devices, the last modification saving time of the file on each electronic device is determined as the time for saving a plurality of modifications of the file, and at this time, the latest file state can be obtained according to the time for saving a plurality of modifications.
For example, as shown in fig. 2, files edited by a user after logging in an account on the device 1 and the device 2 (i.e., the second electronic device) and a file identifier corresponding to a file type of each file are displayed on the electronic device (i.e., the first electronic device). Wherein, the device 1 comprises files 1 to 4, the device 2 comprises files 4 to 7, and the last modification time or the last update time of each file. The user may select a device to find a file on the device, or may determine which file on the device is the most recent file by the last modification time or the last update time of the file.
102, receiving an operation instruction of a first target file; the first target file is a file of the at least one file.
For example, the user may determine the first target file that needs to be controlled according to the file information of the at least one file displayed on the first electronic device. And then, executing a corresponding operation instruction on the first target file identifier corresponding to the first target file.
Step 103, sending the operation instruction to the second electronic device, so that the second electronic device executes a corresponding operation based on the operation instruction and the file state of the first target file.
Wherein the operation is an operation for the first target file.
Illustratively, the above target operation may include any one of: file access operation, file moving operation and file deleting operation. The second electronic device may perform different operations according to the difference in the target operation.
For example, as shown in fig. 2, when the user wants to delete the file 1 on the device 1, the file identifier of the file 1 may be selected on the first electronic device, and a deletion operation is performed, so that the operation of deleting the file 1 on the device 1 may be completed.
Illustratively, in order to ensure the privacy of the user, the file of the user is not disclosed, and the second electronic device and the first electronic device are electronic devices which perform authentication based on the same account. The first electronic device and the second electronic device need to have unified device authentication services, such as an account number, a connection digital code, a two-dimensional code, manual confirmation and the like.
For example, the first electronic device and the second electronic device may forward the message and the control instruction through a server, or may directly communicate in a peer-to-peer (P2P) manner.
It should be noted that, in the embodiment of the present application, the first electronic device and the second electronic device have the same functions and functions, that is, the second electronic device may perform any step that the first electronic device can perform, and the description for the first electronic device may be applied to the second electronic device. The description for the second electronic device may also apply to the first electronic device.
Optionally, in this embodiment of the application, before displaying file information of a file stored on the second electronic device, the first electronic device needs to acquire a device list and a file list corresponding to each device. Here, the file list corresponding to each device is a file corresponding to the account right on each device logged in the same account.
Before the step 101, the cross-terminal file synchronization method provided in the embodiment of the present application may further include the following steps 104 and 105:
and step 104, sending a file information acquisition request to the second electronic equipment.
And 105, receiving file information of at least one file sent by the second electronic equipment.
Wherein the file information includes at least one of: file type, file name, file status, file source device information.
For example, the first electronic device may send a file information acquisition request to the second electronic device through the server, where the file information acquisition request is used to acquire a file included in a right of the user to log in the same account on the second electronic device as the first electronic device. And the equipment information, the account information and the file information are stored in a server in an associated manner.
It can be understood that, when the first electronic device needs to obtain, through the server, a device list of second electronic devices that log in to the same account as the first electronic device, then, file information of files included in the account authority on each second electronic device is obtained based on the device list. And finally, the second electronic equipment sends the file information to the first electronic equipment through the server, and the first electronic equipment displays the file based on the equipment information of the second electronic equipment and the corresponding file information.
For example, taking the communication among the device a (i.e. the first electronic device, the instructing party) logging in the account, the device B (i.e. the second electronic device, the instructing party) logging in the same account, and the server (transmitting the instruction) as an example, the basic flow is shown in fig. 3:
(1) the device A initiates a request to acquire file information of other devices, and the request instruction is sent to the other devices through the server.
It can be understood that the request has no purpose of directing the device, and all devices passing through the same authentication can receive the request and arrange the file information of the devices to be sent.
(2) And the device B receives the message and sends the file information to the device A. Specifically, the information such as the file name, the size, the format and the like can be packaged and transmitted to the device a through the server, wherein the device B, the server and the device a can arrange the information so that the device a can display the information according to the set display rule.
(3) And the device A receives the file information of the device B, and performs comprehensive processing such as sequencing, grouping, displaying format icons and the like and displaying according to the received information such as the file name, the size, the format, the source device and the like.
(4) And the device A initiates an access request instruction to a certain file of the device B which is synchronously displayed, and transmits the access request instruction to the device B through the server.
(5) And the device B receives the instruction, automatically stores the corresponding file (if needed) and uploads the file to the cloud server for storage. After the cloud server is uploaded, the message is transmitted back to the device A through the server.
(6) And the device A receives the information of cloud completion on the file of the device B, starts to download the corresponding file from the cloud server and opens the corresponding file, so that the cross-device transmission and access of the file are realized.
For example, in order to obtain file information of files stored on other electronic devices under the same account, the devices need to be authenticated.
Before the step 104, the cross-terminal file synchronization method provided in the embodiment of the present application may further include the following steps 104a1 and 104a 2:
step 104a1, acquiring device information of a second electronic device logged in the target account based on the target account logged in by the first electronic device.
Step 104a2, obtaining file information of at least one file associated with the device information of the second electronic device within the authority of the target account.
For example, after a user logs in a target account on a first electronic device, file information of files contained in the target account authority in other electronic devices logging in the target account and other electronic devices may be acquired through a server. Here, the file included in the authority of the target account may be a file that can be accessed, edited, used, or the like on the logged electronic device using the target account.
For example, after the file information is acquired, the first electronic device may display the second electronic device and the file included in the target account permission in the second electronic device to the user. Specifically, the step 101 may include the following steps 101 a:
step 101a, displaying at least one file based on the file information.
It should be noted that the at least one file may be a file created or edited on the second electronic device of the user, or a file uploaded to the cloud storage space (i.e., the server) corresponding to the account by the user through the second electronic device. The second electronic device may determine whether to upload the first target file to the cloud storage space according to the type of the target operation.
Therefore, the first electronic device can acquire and display file information in other devices based on the current login account, and a user can conveniently select files needing to be controlled from the files to control the files.
Optionally, in this embodiment of the application, the second electronic device may perform different operations according to different target operations.
Illustratively, the step 103 may include any one of the following steps 103a, 103b, or 103 c:
and 103a, in the case that the target operation is a file access operation, transmitting the first target file from the second electronic equipment to the first electronic equipment.
And 103b, under the condition that the target operation is a file moving operation, moving the first target file from the current path to the path indicated by the target input on the first electronic equipment on the second electronic equipment.
And 103c, deleting the first target file on the second electronic equipment under the condition that the target operation is a file deleting operation.
After the target operation is completed, the result after the target operation can be updated among the electronic devices.
For example, if a user wants to directly access a first object file in a second electronic device on a first electronic device, the first object file on the second electronic device may be transferred to the first electronic device and accessed through the file access operation.
For example, if a user wants to move a first target file on a second electronic device to a specified directory of the first electronic device or other second electronic devices, the first target file may be moved to a specified location by dragging the identifier of the first target file. The designated position can be moved between other devices or moved from the other devices to the first electronic device.
For example, if the user wants to directly delete the first target file on the second electronic device, the first target file may be deleted from the second electronic device through a normal deletion operation for the first target file identifier.
Therefore, the user can control the file in the second electronic device through different input operations, and the remote control of the file in the device is realized.
Further optionally, in this embodiment of the application, if the user wants to access the first object file in the second electronic device, the first object file may be specifically transmitted from the second electronic device to the first electronic device through the control instruction.
Illustratively, the step 103a may specifically include the following steps 103a1 to 103a 3:
step 103a1, sending a first control instruction to the second electronic device.
The first control instruction is used for controlling the second electronic equipment to update the first target file to the latest state and upload the updated first target file to the server, and then the second control instruction is sent to the first electronic equipment.
And step 103a2, receiving a second control instruction sent by the second electronic device.
Step 103a3, obtaining and accessing a first target file stored on the server.
Illustratively, after receiving input of accessing the first target file by a user, the first electronic device sends a first control instruction to the second electronic device through the server in response to the input, and controls the second electronic device to update the first target file to the latest state.
It is understood that the first object file may be in an editing state on the second electronic device, and the content being edited by the first object file is not saved. In order to ensure that a user accesses the first target file in the latest state on the first electronic device, the second electronic device needs to be controlled to transmit the first target file in the latest state to the first electronic device through the first control instruction, and specifically, the second electronic device may be controlled to store the first target file and transmit the first target file after the first target file is stored.
Illustratively, the second electronic device transmits the first target file to the server after updating the first target file to the latest state, and sends the second control instruction to the first electronic device. After receiving the second control instruction, the first electronic device indicates that the second electronic device has completed updating the first target file, and the first electronic device may download the first target file in the latest state from the server.
It should be noted that, in consideration of the stability problem of the peer-to-peer file transmission that may exist in the mobile terminal and the occupation of network resources for establishing the peer-to-peer transmission, in the embodiment of the present application, the first target file in the second electronic device may be transmitted to the first electronic device in a manner of transferring the file by the server.
In the process of moving the first object file, the file movement input may refer to specific embodiments of steps 103a1 through 103a3, and after the first object file in the latest state is acquired, the first object file may be transferred to the directory specified by the file movement input.
In this way, the first electronic device can acquire the first target file in the second electronic device by sending the control instruction, and can ensure that the first target file is the latest target file.
In one possible implementation, when the user of the first electronic device wants to access the first target file, the user of the second electronic device is editing the first target file, and at this time, in order to avoid affecting the editing operation of the user of the second electronic device, the user of the first electronic device may select to access the copy of the first target file stored on the server.
Illustratively, the step 103a may include the following steps 103a4 to 103a 6:
step 103a4, sending a file state acquisition request to the second electronic device.
And step 103a5, receiving the file state information of the first target file sent by the second electronic equipment.
Step 103a6, if the file state information indicates that a copy of the first target file is stored on the server and the first target file is in an editing state on the second electronic device, acquiring the copy of the first target file stored on the server based on the confirmation operation.
Illustratively, before the first electronic device accesses the first target file, the first electronic device needs to acquire the file state of the first target file in the second electronic device.
For example, in the case that the file state information indicates that the server stores a copy of the first target file and the first target file is in the editing state on the second electronic device, the first electronic device may prompt the user to continue to access the file in the latest state or to access the copy of the file stored on the server by means of a pop-up window prompt.
Illustratively, in case that the user selects to continue accessing the file in the latest state, the first electronic device accesses the first target file in the latest state according to the method of the above-mentioned step 103a1 to step 103a 3.
Illustratively, in the case that the user selects to access the file copy of the first target file stored on the server, the first electronic device obtains the file copy of the first target file directly from the server. At this time, the second electronic device does not need to perform any operation.
In a possible implementation, since the device itself has different states, the display of the information required by the device and the above target operation are affected. Therefore, in the embodiment of the present application, the device states may be distinguished.
For example, since the first electronic device is a device currently operated by a user, the embodiment of the present application is described in terms of a device state of the second electronic device. When the first electronic device is the controlled device, the first electronic device may also include the device status of the second electronic device.
Exemplarily, the second electronic device may include: the device is on-line, the device is off-line, and the device is logged off. When the device state of the second electronic device changes, the server needs to notify other devices (for example, the first electronic device) in real time, and the other devices can be selectively displayed according to different states of the devices. That is, the first electronic device may display the file information corresponding to the second electronic device according to the current device state of the second electronic device.
It will be appreciated that the first electronic device is only able to control files stored on the second electronic device when the second electronic device is online.
Illustratively, when the second electronic device is in the online state, a "heartbeat mechanism" may be established with the server, and the online state of the second electronic device is maintained by sending a heartbeat packet to the server within a preset time interval. And if the second electronic equipment does not send the heartbeat packets to the server in the continuous preset number of sending periods, the second electronic equipment is changed into an offline state.
For example, in the case that the second electronic device is in the offline state, the first electronic device can only control the file uploaded to the server by the second electronic device, and cannot control the file currently stored on the second electronic device. Here, the account in the offline state may be wakened and logged in by setting a wake-up mechanism, and of course, when the electronic device is required to be in a normal working state or is in a screen-off state, a wake-up instruction may be output according to logged-in user account information and electronic device information.
Illustratively, if the account logs out from the second electronic device, the device status of the second electronic device is changed into a logged-out status, and other devices logging in the account are notified to change the status. When the second electronic device is in a logout state, even if the second electronic device accesses the internet, the first electronic device cannot control the file stored on the second electronic device.
Optionally, in this embodiment of the application, after the first electronic device completes the operation, the display information after the operation needs to be updated.
After step 103, the method for synchronizing files across terminals provided in the embodiment of the present application may further include the following step 106:
and 106, updating file information corresponding to at least one file on the first electronic equipment based on the target operation executed on the second electronic equipment.
For example, if the target operation is a file deletion operation, after the second electronic device deletes the first target file, the first electronic device updates the file information corresponding to the at least one file based on the deletion operation performed by the second electronic device. Specifically, the first electronic device may delete the first target file identifier corresponding to the first target file.
For example, if the target operation is a file moving operation, the second electronic device updates the display position of the first target file identifier after moving the first target file to the directory specified by the file moving input.
For example, when the target operation is a file moving operation, as shown in fig. 2, when the user moves the file 1 from the device 1 to the device 2, the file identifier of the file 1 displayed in the area to which the device 1 belongs is updated and displayed in the area to which the device 2 belongs after the file moving operation is completed.
In this way, after the target operation executed on the second electronic device is completed, the first electronic device updates the file information corresponding to the at least one file, so that the information displayed to the user is the latest information.
Optionally, in this embodiment of the application, since the first electronic device and the second electronic device have the same function and function, the first electronic device may be controlled by the second electronic device as a control device, and may also be controlled by the second electronic device as a controlled device.
Exemplarily, the cross-terminal file synchronization method provided by the embodiment of the present application may further include the following steps 107 and 108:
and step 107, receiving a third control instruction sent by the second electronic device.
And step 108, responding to a third control instruction, and transmitting the second target file to the second electronic equipment based on the file state of the second target file.
And the second target file is a file which needs to be accessed by the second electronic equipment.
Illustratively, the third control instruction has the same function and action as the first control instruction, except that the first control instruction is transmitted from the first electronic device to the second electronic device, and the third control instruction is transmitted from the second electronic device to the first electronic device.
Further, after receiving the third control instruction, the first electronic device may specifically transmit the second target file to the second electronic device through the following steps 108a1 and 108a 2:
step 108a1, transmitting the second target file to the server.
And step 108a2, sending a fourth control instruction to the second electronic device, and controlling the second electronic device to acquire the second target file from the server.
Illustratively, the fourth control instruction and the second control instruction have the same function and action.
For example, after the first electronic device transmits the second target file in the latest state to the server, the first electronic device notifies or controls the second electronic device to download the second target file from the server by sending a fourth control instruction to the second electronic device.
For example, after the first electronic device receives the third control instruction, if the second target file is in the access state and the first electronic device is not operated by a person currently, in order to enable a user of the second electronic device to obtain the second target file in time, the second target file may be forcibly closed.
Before the step 108a1, the method for synchronizing files across terminals provided by the embodiment of the present application may further include the following step 108 b:
and step 108b, if the second target file is in an accessing state on the first electronic equipment, saving and closing the second target file.
For example, if the second target file is in an accessing state on the first electronic device, the second target file is transmitted to the server after the saving and closing operation is performed on the second target file.
For example, after the first electronic device receives a third control instruction that requires access to a second object file stored on the first electronic device, if the second object file is in an access state, the first electronic device may perform save and close operations on the second object file, and then transmit the second object file to the server.
For example, as shown in fig. 4, a specific flowchart of performing remote file access between two electronic devices in this embodiment is shown. Taking an example that the device a accesses a document in the device B, the device a initiates a file acquisition request to the document of the device B, and after receiving the request, the device B first determines whether the file is stored in the cloud server.
If the document is stored on the cloud server, the saved state of the document is acquired to the device B. When the document has the unsaved content, the device B sends the current state of the document to the device A, and the device A determines whether to save the document. If the device a determines that the latest state of the document needs to be acquired, the device B may store and close the document through the first control instruction or the third control instruction, and upload the document to the cloud server. After the device B finishes uploading, a "document open" instruction, that is, the second control instruction or the fourth control instruction, is sent to the device a. After receiving the instruction, the device a downloads the document from the cloud server and accesses the document.
If the document is not stored in the cloud server, the document may be introduced to the device B to be stored and then uploaded to the cloud server based on the method of the above step.
It should be noted that, in order to ensure that the document state is the latest, the device B needs to perform an operation of closing the document after saving the document content, so as to avoid editing the document again by other users after saving the document. In another example, if there is a user operating the document on the device B, the operating information is synchronized to the first device for displaying, and the user is prompted to perform real-time operation on the document on the device B, where the operation may be editing, path moving, and the like. Based on this, in the above-described apparatus B, when the document does not include the unsaved content, it is also necessary to perform the closing operation on the document.
In a possible implementation manner, if the second object file is in an editing state, when the user of the second electronic device needs to access the second object file, the user of the first electronic device is required to confirm the second object file.
Illustratively, the step 108 may include the following step 108c 1:
step 108c1, when a copy of the second object file is stored on the server and the second object file is in the editing state, sending confirmation information to the second electronic device.
For example, when the second target file is in the editing state, the first electronic device may send a confirmation message to the second electronic device, prompting the user of the second electronic device whether to access the second target file in the latest state or to access a copy of the second target file stored on the server.
For example, the first electronic device may perform different operations according to a selection of a user of the second electronic device, and in particular, after the step 108c1, the method for synchronizing files across terminals provided by the embodiment of the present application may further include the following step 108c 2:
and 108c2, if a fifth control instruction sent by the second electronic device based on the confirmation information is received, executing saving and closing operations on the second target file, and after the saved second target file is transmitted to the server, sending a fourth control instruction to the second electronic device to control the second electronic device to acquire the saved second target file from the server.
For example, if the user of the second electronic device needs to access the second target file in the latest state, the second electronic device may send a fifth control instruction to the first electronic device. And after receiving the fifth control instruction, the first electronic equipment executes saving and closing operations on the second target file. And then, the first electronic equipment uploads the stored second target file to the server, and sends a fourth control instruction to the second electronic equipment to control the second electronic equipment to acquire the second target file in the latest state from the server.
For example, if the user of the second electronic device does not want to affect the editing operation being performed by the user of the first electronic device, the second electronic device may directly obtain the copy of the second target file stored on the server.
It should be noted that, for the first electronic device and the second electronic device, after the user saves the file included in the target account permission, the file is automatically synchronized to the server.
According to the cross-terminal file synchronization method provided by the embodiment of the application, the file information of at least one file stored on the second electronic device can be displayed on the interface of the first electronic device, and a user can control the second electronic device to execute corresponding operations based on the operation instruction and the file state of the first target file through the operation instruction of the first target file identifier in the at least one file. For example, when a user wants to access a first target file on a first electronic device, a second electronic device can directly transmit the first target file to the first electronic device, so that the user can conveniently access the first target file. Therefore, remote control of files among multiple devices is achieved, barriers of machine types, systems and platforms among different devices are broken through, interconnection and intercommunication of information and capacity are achieved, and using efficiency of users in a multi-device scene is improved.
It should be noted that, in the cross-terminal file synchronization method provided in the embodiment of the present application, the execution main body may be a cross-terminal file synchronization device, or a control module in the cross-terminal file synchronization device for executing the cross-terminal file synchronization method. The embodiment of the present application takes a method for executing cross-terminal file synchronization by a cross-terminal file synchronization apparatus as an example, and illustrates the cross-terminal file synchronization apparatus provided in the embodiment of the present application.
In the embodiments of the present application, the above-described methods are illustrated in the drawings. The cross-terminal file synchronization method is exemplarily described by referring to one drawing in the embodiment of the present application. In specific implementation, the cross-terminal file synchronization method shown in each method drawing can also be implemented by combining any other drawing which can be combined and is illustrated in the above embodiments, and details are not described here.
The cross-terminal file synchronization device provided in the present application is described below, and the cross-terminal file synchronization method described below and the above-described cross-terminal file synchronization method may be referred to in correspondence.
Fig. 5 is a schematic structural diagram of a cross-terminal file synchronization apparatus according to an embodiment of the present application, and as shown in fig. 5, the cross-terminal file synchronization apparatus specifically includes:
a display module 501, configured to display at least one file; at least one file is a file contained in the authority of logging in the same account on the second device as the first electronic device; an input module 502, configured to receive an operation instruction for a first target file; the first target file is a file in at least one file; the control module 503 is configured to send the operation instruction to the second electronic device, so that the second electronic device executes a corresponding operation based on the operation instruction and the file state of the first object file.
Optionally, the apparatus further comprises: a transmitting module 504 and a receiving module 505; a sending module 504, configured to send a file information obtaining request to a second electronic device; a receiving module 505, configured to receive file information of at least one file sent by a second electronic device; a display module 501, configured to display at least one file based on file information; wherein the file information includes at least one of: file type, file name, file status, file source device information.
Optionally, the apparatus further comprises: an acquisition module 506; an obtaining module 506, configured to obtain device information of a second electronic device that logs in a target account based on the target account that the first electronic device logs in; the obtaining module 506 is further configured to obtain file information of at least one file associated with the device information of the second electronic device within the authority of the target account.
Optionally, the target operation comprises any one of: file access operation, file moving operation and file deleting operation; the control module 503 is specifically configured to, when the target operation is a file access operation, transmit the first target file from the second electronic device to the first electronic device; or, in the case that the target operation is a file moving operation, moving the first target file on the second electronic device from the current path to a path indicated by the moving operation on the first electronic device; or, in the case that the target operation is a file deletion operation, deleting the first target file on the second electronic device.
Optionally, the sending module 504 is further configured to send a first control instruction to the second electronic device; the first control instruction is used for controlling the second electronic equipment to update the first target file to be in the latest state and sending the updated first target file to the server, and then sending a second control instruction to the first electronic equipment; the receiving module 505 is further configured to receive a second control instruction sent by a second electronic device; the obtaining module 506 is further configured to obtain and access the first target file stored on the server.
Optionally, the sending module 504 is further configured to send a file status obtaining request to the second electronic device; the receiving module 505 is further configured to receive file state information of the first target file sent by the second electronic device; the control module 503 is specifically configured to, if the file state information indicates that a copy of the first target file is stored in the server and the first target file is in an editing state on the second electronic device, obtain, based on the confirmation operation, the copy of the first target file stored in the server.
Optionally, the display module 501 is further configured to update file information corresponding to at least one file on the first electronic device based on a target operation performed on the second electronic device.
Optionally, the receiving module 505 is further configured to receive a third control instruction sent by the second electronic device; the sending module 504 is further configured to transmit the second target file to the second electronic device based on the file status of the second target file in response to a third control instruction; and the second target file is a file which needs to be accessed by the second electronic equipment.
Optionally, the control module 503 is specifically configured to transmit the second target file to the server; the sending module 504 is further configured to send a fourth control instruction to the second electronic device, and control the second electronic device to obtain the second target file from the server.
Optionally, the control module 503 is further configured to perform a save and close operation on the second object file if the second object file is in an accessing state on the first electronic device.
Optionally, the control module 503 is specifically configured to send the confirmation information to the second electronic device when a copy of the second target file is stored on the server and the second target file is in the editing state.
Optionally, the control module 503 is configured to, if a fifth control instruction sent by the second electronic device based on the confirmation information is received, perform saving and closing operations on the second target file; the sending module 504 is configured to send a fourth control instruction to the second electronic device after the stored second target file is transmitted to the server, and control the second electronic device to obtain the stored second target file from the server.
The cross-terminal file synchronization device provided by the application can display file information of at least one file stored on the second electronic device on an interface of the first electronic device, and a user can control the second electronic device to execute corresponding operation based on an operation instruction of a first target file identifier in the at least one file and a file state of the first target file through the operation instruction. For example, when a user wants to access a first target file on a first electronic device, a second electronic device can directly transmit the first target file to the first electronic device, so that the user can conveniently access the first target file. Therefore, remote control of files among multiple devices is achieved, barriers of machine types, systems and platforms among different devices are broken through, interconnection and intercommunication of information and capacity are achieved, and using efficiency of users in a multi-device scene is improved.
Fig. 6 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 6: a processor (processor)610, a communication Interface (Communications Interface)620, a memory (memory)630 and a communication bus 640, wherein the processor 610, the communication Interface 620 and the memory 630 communicate with each other via the communication bus 640. The processor 610 may invoke logic instructions in the memory 630 to perform a cross-terminal file synchronization method comprising: displaying at least one file; at least one file is a file contained in the authority of the second device for logging in the same account with the first electronic device; receiving an operation instruction of a first target file; the first target file is a file in at least one file; and sending the operation instruction to the second electronic equipment, so that the second electronic equipment executes corresponding operation based on the operation instruction and the file state of the first target file.
In addition, the logic instructions in the memory 630 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present application further provides a computer program product, the computer program product comprising a computer program stored on a computer-readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, the computer being capable of executing the cross-terminal file synchronization method provided by the above methods, the method comprising: displaying at least one file; at least one file is a file contained in the authority of logging in the same account on the second device as the first electronic device; receiving an operation instruction of a first target file; the first target file is a file in at least one file; and sending the operation instruction to the second electronic equipment, so that the second electronic equipment executes corresponding operation based on the operation instruction and the file state of the first target file.
In yet another aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, the computer program being implemented by a processor to perform the cross-terminal file synchronization method provided in the foregoing, the method including: displaying at least one file; at least one file is a file contained in the authority of logging in the same account on the second device as the first electronic device; receiving an operation instruction of a first target file; the first target file is a file in at least one file; and sending the operation instruction to the second electronic equipment, so that the second electronic equipment executes corresponding operation based on the operation instruction and the file state of the first target file.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (15)

1. A cross-terminal file synchronization method is applied to first electronic equipment and is characterized by comprising the following steps:
displaying at least one file; the at least one file is a file contained in the authority of logging in the same account on the second electronic equipment as the first electronic equipment;
receiving an operation instruction of a first target file; the first target file is a file in the at least one file;
and sending the operation instruction to second electronic equipment, so that the second electronic equipment executes corresponding operation based on the operation instruction and the file state of the first target file.
2. The method of claim 1, wherein prior to said displaying at least one file, the method further comprises:
sending a file information acquisition request to the second electronic equipment;
receiving file information of the at least one file sent by the second electronic equipment;
the displaying at least one file includes:
displaying the at least one file based on the file information;
wherein the file information includes at least one of: file type, file name, file status, file source device information.
3. The method of claim 2, wherein before sending the file information acquisition request to the second electronic device, the method further comprises:
acquiring device information of second electronic equipment logged in the target account based on the target account logged in by the first electronic equipment;
and acquiring file information of at least one file associated with the device information of the second electronic device in the authority of the target account.
4. The method of claim 1, wherein the target operation comprises any one of: file access operation, file moving operation and file deleting operation;
the sending the operation instruction to the second electronic device includes:
transmitting the first target file from the second electronic device to the first electronic device if the target operation is a file access operation;
alternatively, the first and second electrodes may be,
if the target operation is a file moving operation, moving the first target file on the second electronic device from a current path to a path indicated by the moving operation on the first electronic device;
alternatively, the first and second electrodes may be,
and deleting the first target file on the second electronic equipment or/and the server under the condition that the target operation is a file deletion operation.
5. The method of claim 4, wherein the transmitting the first target file from the second electronic device to the first electronic device if the target operation is a file access operation comprises:
sending a first control instruction to the second electronic equipment; the first control instruction is used for controlling the second electronic equipment to update the first target file to be in the latest state and upload the updated first target file to a server, and then, the second control instruction is sent to the first electronic equipment;
receiving the second control instruction sent by the second electronic device;
and acquiring and accessing a first target file stored on the server.
6. The method of claim 4, wherein the transmitting the first target file from the second electronic device to the first electronic device if the target operation is a file access operation comprises:
sending a file state acquisition request to the second electronic equipment;
receiving file state information of the first target file sent by the second electronic equipment;
and acquiring the copy of the first target file stored on the server based on a confirmation operation under the condition that the file state information indicates that the copy of the first target file is stored in the server and the first target file is in an editing state on the second electronic equipment.
7. The method of claim 1, wherein after sending the operation instruction to the second electronic device, the method further comprises:
updating file information corresponding to the at least one file on the first electronic device based on the target operation executed on the second electronic device.
8. The method of claim 1, further comprising:
receiving a third control instruction sent by the second electronic equipment;
transmitting a second target file to the second electronic device based on a file state of the second target file in response to the third control instruction;
and the second target file is a file which needs to be accessed by the second electronic equipment.
9. The method of claim 8, wherein the transferring the second object file to the second electronic device based on the file status of the second object file comprises:
transmitting the second target file to a server;
and sending a fourth control instruction to the second electronic device, and controlling the second electronic device to acquire the second target file from the server.
10. The method of claim 8, wherein prior to transmitting the second target file to a server, the method further comprises:
and under the condition that the second target file is in an access state on the first electronic equipment, executing saving and closing operation on the second target file.
11. The method of claim 8, wherein the transmitting a second target file to the second electronic device based on a file status of the second target file in response to the third control instruction comprises:
and sending confirmation information to the second electronic equipment under the condition that a copy of a second target file is stored on the server and the second target file is in an editing state.
12. The method of claim 11, wherein after sending the confirmation information to the second electronic device, the method further comprises:
and under the condition that a fifth control instruction sent by the second electronic device based on the confirmation information is received, executing saving and closing operations on the second target file, and after the saved second target file is transmitted to a server, sending a fourth control instruction to the second electronic device to control the second electronic device to acquire the saved second target file from the server.
13. An apparatus for cross-terminal file synchronization, the apparatus comprising:
the display module is used for displaying at least one file; the at least one file is a file contained in the authority of the second device for logging in the same account as the first electronic device;
the input module is used for receiving an operation instruction of the first target file; the first target file is a file in the at least one file;
and the control module is used for sending the operation instruction to second electronic equipment, so that the second electronic equipment executes corresponding operation based on the operation instruction and the file state of the first target file.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the cross-terminal file synchronization method according to any one of claims 1 to 12.
15. A computer program product comprising computer program/instructions, characterized in that the computer program/instructions, when executed by a processor, implement the steps of the cross-terminal file synchronization method according to any of claims 1 to 12.
CN202111205875.1A 2021-10-15 2021-10-15 Cross-terminal file synchronization method and device Active CN113992652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111205875.1A CN113992652B (en) 2021-10-15 2021-10-15 Cross-terminal file synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111205875.1A CN113992652B (en) 2021-10-15 2021-10-15 Cross-terminal file synchronization method and device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202410277856.7A Division CN117938839A (en) 2021-10-15 Cross-terminal file synchronization method and device

Publications (2)

Publication Number Publication Date
CN113992652A true CN113992652A (en) 2022-01-28
CN113992652B CN113992652B (en) 2024-03-15

Family

ID=79738894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111205875.1A Active CN113992652B (en) 2021-10-15 2021-10-15 Cross-terminal file synchronization method and device

Country Status (1)

Country Link
CN (1) CN113992652B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208873A (en) * 2022-06-14 2022-10-18 北京快乐茄信息技术有限公司 File transmission method, device and storage medium
CN116775419A (en) * 2023-08-28 2023-09-19 荣耀终端有限公司 File system monitoring method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140082151A1 (en) * 2012-09-14 2014-03-20 Tencent Technology (Shenzhen) Company Limited Method, device, server, and system for managing devices
US20160119257A1 (en) * 2014-10-27 2016-04-28 Samsung Electronics Co., Ltd. Method and device for providing communication between multi-devices
JP2018097862A (en) * 2016-12-09 2018-06-21 エヌエイチエヌ エンターテインメント コーポレーションNHN Entertainment Corporation Method, computer program, and system for sharing file between devices
CN110875932A (en) * 2018-08-29 2020-03-10 阿里巴巴集团控股有限公司 File uploading method, device and system
CN111190962A (en) * 2019-12-24 2020-05-22 深圳市优必选科技股份有限公司 File synchronization method and device and local terminal
CN111479250A (en) * 2020-03-31 2020-07-31 歌尔科技有限公司 File sharing method, device and system and terminal equipment
CN113282546A (en) * 2021-04-12 2021-08-20 维沃移动通信有限公司 File processing method and device
CN113282548A (en) * 2021-05-20 2021-08-20 Oppo广东移动通信有限公司 File saving method and device, electronic equipment and storage medium
CN113449136A (en) * 2020-03-26 2021-09-28 华为技术有限公司 Data sharing method, electronic equipment and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140082151A1 (en) * 2012-09-14 2014-03-20 Tencent Technology (Shenzhen) Company Limited Method, device, server, and system for managing devices
US20160119257A1 (en) * 2014-10-27 2016-04-28 Samsung Electronics Co., Ltd. Method and device for providing communication between multi-devices
JP2018097862A (en) * 2016-12-09 2018-06-21 エヌエイチエヌ エンターテインメント コーポレーションNHN Entertainment Corporation Method, computer program, and system for sharing file between devices
CN110875932A (en) * 2018-08-29 2020-03-10 阿里巴巴集团控股有限公司 File uploading method, device and system
CN111190962A (en) * 2019-12-24 2020-05-22 深圳市优必选科技股份有限公司 File synchronization method and device and local terminal
CN113449136A (en) * 2020-03-26 2021-09-28 华为技术有限公司 Data sharing method, electronic equipment and system
WO2021190352A1 (en) * 2020-03-26 2021-09-30 华为技术有限公司 Data sharing method, electronic device and system
CN111479250A (en) * 2020-03-31 2020-07-31 歌尔科技有限公司 File sharing method, device and system and terminal equipment
CN113282546A (en) * 2021-04-12 2021-08-20 维沃移动通信有限公司 File processing method and device
CN113282548A (en) * 2021-05-20 2021-08-20 Oppo广东移动通信有限公司 File saving method and device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208873A (en) * 2022-06-14 2022-10-18 北京快乐茄信息技术有限公司 File transmission method, device and storage medium
CN116775419A (en) * 2023-08-28 2023-09-19 荣耀终端有限公司 File system monitoring method and device
CN116775419B (en) * 2023-08-28 2023-12-05 荣耀终端有限公司 File system monitoring method and device

Also Published As

Publication number Publication date
CN113992652B (en) 2024-03-15

Similar Documents

Publication Publication Date Title
EP2131363B1 (en) Video editing system, video editing server and communication terminal
CN101399729B (en) Management system and method for file download and upload
EP3188437B1 (en) Method and system for implementing information sharing
CN108965217B (en) Multi-screen multimedia interaction system based on C/S framework
JP6186870B2 (en) Information processing apparatus, program, conference system, and content providing method
CN109918345A (en) Document processing method, device, terminal and storage medium
US20130263011A1 (en) Control of computing devices and user interfaces
CN113992652B (en) Cross-terminal file synchronization method and device
CN111522604B (en) Application data processing method and device and computer readable storage medium
US9621627B2 (en) Dynamically launching a server-based application on a mobile device
CN103118048A (en) Data synchronization method, server and terminal
CN110247951B (en) File transmission control method, device, equipment and storage medium
JP2011203894A (en) Information processing apparatus, business form data producing method and computer program
CN114258530A (en) CAD drawing sharing discussion system and method, terminal, server, electronic device and storage medium
CN105245556A (en) Intelligent mobile phone remote control method and device
US20140325361A1 (en) Method and apparatus for controlling presentation slides
CN109450716B (en) Method and system for writing frequency of interphone through IP network
CN103888502A (en) Projection method, projection file providing method and projection terminal
CN112463169B (en) File processing method and device based on online working system and storage medium
CN114124697A (en) Network switching method, network switching device and storage medium
CN102148839A (en) Method, device and system for managing FTP (file transfer protocol) server
CN102137058B (en) A kind of page access method and apparatus based on tab page
CN117938839A (en) Cross-terminal file synchronization method and device
CN109213955A (en) Data processing method and relevant device
CN114803749B (en) Elevator car display screen resource offline updating system based on UDP protocol and FTP transmission

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant