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

Cross-terminal file synchronization method and device Download PDF

Info

Publication number
CN113992652B
CN113992652B CN202111205875.1A CN202111205875A CN113992652B CN 113992652 B CN113992652 B CN 113992652B CN 202111205875 A CN202111205875 A CN 202111205875A CN 113992652 B CN113992652 B CN 113992652B
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.)
Active
Application number
CN202111205875.1A
Other languages
Chinese (zh)
Other versions
CN113992652A (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 CN202410277856.7A priority Critical patent/CN117938839A/en
Priority to CN202410277881.5A priority patent/CN118075255A/en
Priority to CN202111205875.1A priority 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

Classifications

    • 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
    • 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
    • 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]
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a cross-terminal file synchronization method and 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 with the first electronic device on the second electronic device; receiving an operation instruction for 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 realize remote control of files on other devices.

Description

Cross-terminal file synchronization method and device
Technical Field
The present disclosure 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 equipment technology, more and more users need to use a plurality of terminal equipment in work and life, and the interconnection demand of the users for information among the plurality of terminal equipment is also 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, it is generally required that the user share the file on the other device or copy the file to a mobile storage device, and then the file can be transferred to and accessed by the currently used device. The cross-terminal file synchronization mode is complex to operate, and files on equipment with a long distance cannot be acquired.
Disclosure of Invention
The purpose of the application is to provide a cross-terminal file synchronization method and device, which are used for realizing remote control of files on other devices.
According to one aspect of the present application, there is provided a cross-terminal file synchronization method, including:
displaying at least one file; the at least one file is a file contained in the authority of logging in the same account with the first electronic device on the second electronic device; receiving an operation instruction for 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 the 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 the sending the file information obtaining request to the second electronic device, the method further includes: acquiring equipment information of second electronic equipment logged in a 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 equipment information of the second electronic equipment in the authority of the target account.
Optionally, the target operation includes any one of: file access operation, file movement operation, file deletion 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 in the case that 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 from a current path to a path indicated by the moving operation on the first electronic device on the second electronic device; or deleting the first target file on the second electronic device and/or the server under the condition that the target operation is a file deleting operation.
Optionally, the transmitting the first target file from the second electronic device to the first electronic device when the target operation is a file access operation 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 the latest state and send a second control instruction to the first electronic equipment after uploading the first target file to a server; receiving the second control instruction sent by the second electronic equipment; and acquiring and accessing the first target file stored on the server.
Optionally, the transmitting the first target file from the second electronic device to the first electronic device when the target operation is a file access operation 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 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 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 performed 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; 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 equipment, and controlling the second electronic equipment to acquire the second target file from the server.
Optionally, before the second target file is transmitted to the server, the method further includes: and if the second target file is in the access state on the first electronic equipment, executing saving and closing operation on the second target file.
Optionally, the responding to the third control instruction, based on the file state of the second target file, transmitting the second target file to the second electronic device, includes: and sending confirmation information to the second electronic equipment when the copy of the second target file is stored on the server and the second target file is in an editing state.
Optionally, after the sending of the acknowledgement information to the second electronic device, the method further includes: and if a fifth control instruction sent by the second electronic equipment 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 equipment to control the second electronic equipment to acquire the saved second target file from the server.
According to another aspect of the present application, there is provided a cross-terminal file synchronization device, 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 logging in the same account with the first electronic device on the second device; the input module is used for receiving an operation instruction for 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 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.
Optionally, the apparatus further comprises: a transmitting module and a receiving module; the sending module is used for sending a file information acquisition request to the second electronic equipment; the receiving module is used for receiving file information of the at least one file sent by the second electronic equipment; 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 equipment information of second electronic equipment logged in a 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 in the authority of the target account.
Optionally, the target operation includes any one of: file access operation, file movement operation, file deletion operation; the control module is specifically configured to transmit the first target file from the second electronic device to the first electronic device when 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 from a current path to a path indicated by the moving operation on the first electronic device on the second electronic device; or deleting the first target file on the second electronic device in the case that the target operation is a file deletion operation.
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 the latest state and send a second control instruction to the first electronic equipment after uploading the first target file to a server; 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 acquisition request to the second electronic device; the receiving module is further configured to receive file status information of the first target file sent by the second electronic device; the control module is specifically configured to obtain, based on a confirmation operation, a copy of the first target file stored on the server if the file status information indicates that the 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.
Optionally, the display module is further configured to update file information corresponding to the at least one file on the first electronic device 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; 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 perform a save and close operation on the second target file if the second target file is in an accessing state on the first electronic device.
Optionally, the control module is specifically configured to send acknowledgement 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 an editing state.
Optionally, the control module is configured to execute a save and close operation on the second target file if a fifth control instruction sent by the second electronic device based on the acknowledgement information is received; the sending module is used for sending a fourth control instruction to the second electronic equipment after the stored second target file is transmitted to the server, and controlling the second electronic equipment to acquire the stored second target 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 a method of cross-terminal file synchronization as described in any of the above.
The application also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the cross-terminal file synchronization method according to any one of the above are realized when the processor executes the program.
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, implements the steps of a 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 in the second electronic device can be displayed on an 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 for the first target file identification 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 may directly transfer the first target file to the first electronic device, facilitating access to the first target file by the user. Therefore, remote control of files among a plurality of devices is realized, barriers of different device models, systems and platforms are broken, interconnection and intercommunication of information and capability are realized, and the use efficiency of a user in a multi-device scene is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present application or the prior art, the following description will briefly introduce the drawings used in the embodiments or the description of the prior art, and it is obvious that, in the following description, the drawings are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a cross-terminal file synchronization method provided by the present application;
FIG. 2 is a schematic diagram of a cross-terminal file synchronization method interface provided in the present application;
FIG. 3 is a schematic diagram of a cross-terminal file synchronization control flow provided in the present application;
FIG. 4 is a schematic flow chart of remote file access between electronic devices provided by the present application;
FIG. 5 is a schematic structural diagram of a cross-terminal file synchronization device provided in the present application;
fig. 6 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, 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 apparent that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
Currently, a user group that needs to use a plurality of terminal devices (mobile devices, personal computers, smart televisions, etc.) in life has become mainstream, and the requirement of users for interconnection of information among the plurality of devices has also become high. If the barriers of the machine type, the system and the platform among the devices can be broken, the real-time interconnection and intercommunication of the information of a plurality of terminal devices can be realized, and the device use experience of the user can be improved to a great extent.
In the related technology, when a current user needs to acquire information of other devices or call files stored on other devices, the user is required to operate on the devices, find related information and files, and transmit the related information and files in a mode of mobile storage devices/transmission type software/cloud service software and the like, so that the operation mode is complicated. And when multiple users access the same file on the same device at the same time, there may be a problem of access conflict.
In order to solve some technical problems in the application scenario, the application thinks of a cross-terminal file synchronization method, so that a plurality of terminal devices can perform real-time communication and remote interaction, a user can acquire device information of other devices on currently used devices, and remote control of files stored on the other devices is realized. 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 name, file format, file size, storage path and the like) of a device file (such as Office document, note, notepad, picture, compressed package and the like); 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 long-range mode.
The cross-terminal file synchronization method provided by the embodiment of the application is described in detail below by means of specific embodiments and application scenes thereof with reference to the accompanying drawings.
As shown in fig. 1, the method for synchronizing a cross-terminal file applied to a first electronic device according to the embodiment of the present application may include the following steps 101 to 103:
step 101, displaying at least one file.
The at least one file is a file contained in the authority of logging in the same account with the first electronic device on the second device.
For example, after a user logs in to his account on a first electronic device, device information of a second electronic device logging in to the account may be checked on the first electronic device, and a file edited by the user on the second electronic device or a file associated with the account may be checked, and the file may be stored on the second electronic device or the file may be stored on a cloud server with an account identifier and an identifier of the second electronic device; here, a file included in the authority of an account may be understood as a file that can be accessed, edited, used, or the like on a registered electronic device using the account.
It will be appreciated that after the user edits a file on the second electronic device that has logged into the account, the file may be uploaded to a server and stored in association with the account on the server. When a user logs into the account on the first electronic device, the first electronic device may display a target interface on which the electronic device logged into the account (i.e., the second electronic device) and information such as a file edited by the user on the electronic device or other information of a file associated with the account are displayed. Specifically, file information such as file name, file type, file status, 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 be presented in the form of file identifications.
It will be appreciated that files are typically presented on electronic devices in the form of logos, e.g., 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 is not required to be displayed, but is displayed in the form of a file identifier. Of course, the content presentation of the document is not limited herein, and the special features of the document may be highlighted by displaying some key content in the document.
The second electronic device may include at least one electronic device, for example.
It can be understood that, for an application scenario where a plurality of second electronic devices exist, a first electronic device may determine a file to be controlled 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, so when the file is selected and then controlled, the first electronic device sends a control instruction to an electronic device corresponding to the file through a server; the latest state file can be determined by the last modification time of the same file on different devices, that is, the file can be edited, modified and other operations on a plurality of electronic devices logged in the same account, then the file is saved after being edited on a plurality of electronic devices, the last modification and saving time of the file on each electronic device is confirmed as the multiple modification and saving time of the file, and at the moment, the latest state file can be obtained according to the multiple modification and saving times.
For example, as shown in fig. 2, the files edited after the user logs in the account number on the device 1 and the device 2 (i.e. the second electronic device) and the file identifier corresponding to the 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, and the device 2 comprises files 4 to 7, and the last modification time or the last update time of each file. The user may find the file on the device by selecting the device, or may determine which device the file is the most current state file by the last modification time or last update time of the file.
102, receiving an operation instruction for a first target file; the first target file is a file of the at least one file.
The user may determine the first target file to be controlled according to file information of the at least one file displayed on the first electronic device. And then, executing corresponding operation instructions on the first target file identifiers corresponding to the first target files.
Step 103, sending the operation instruction to the second electronic device, so that the second electronic device executes corresponding operation based on the operation instruction and the file state of the first target file.
Wherein the operation is an operation for a first target file.
Illustratively, the above-described target operations may include any of the following: file access operation, file movement operation, file deletion 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 user may select the file identifier of the file 1 on the first electronic device and perform a delete operation to complete the operation of deleting the file 1 on the device 1, where the delete operation performed may select to delete the information displayed on the display list, may select to delete the file stored on the server, or may select to delete the file stored on the corresponding other device.
For example, in order to ensure privacy of the user, the file of the user is not revealed, and the second electronic device and the first electronic device are electronic devices that are authenticated based on the same account. The first electronic device and the second electronic device need to have unified device authentication services, such as account number, connection digital code, 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 through peer-to-peer (P2P) mode.
It should be noted that, in the embodiment of the present application, the first electronic device and the second electronic device have the same function and function, that is, the second electronic device may perform any step that can be performed by the first electronic device, and the description of the first electronic device may be applicable to the second electronic device. The description for the second electronic device may also apply to the first electronic device.
Optionally, in the embodiment of the present 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 authority on each device logged into the same account.
Illustratively, 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:
step 104, sending a file information acquisition request to the second electronic device.
Step 105, receiving file information of at least one file sent by the second electronic device.
Wherein the file information includes at least one of: file type, file name, file status, file source device information.
The first electronic device may send, to the second electronic device, a file information obtaining request for obtaining a file included in a right of the user to log in the same account as the first electronic device on the second electronic device. The device information, account information and file information are stored in association on the server.
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 the same account as the first electronic device, and then obtain, based on the device list, file information of files included in the account rights on each second electronic device. 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 of the device a (i.e. the first electronic device, the initiator) logging in the account, the device B (i.e. the second electronic device, the receiver) logging in the same account, and the server (the transmission command), the basic flow is as 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 a server.
It will be appreciated that the request is not directed to the device purpose, and that all devices that pass the same authentication can receive the request and sort their own file information transmissions.
(2) And the equipment B receives the message and sends the file information to the equipment A. Specifically, the information can be packaged according to the file name, the size, the format and the like and transmitted to the device A through the server, wherein the device B, the server and the device A can sort the information so that the device A can display according to the set display rules.
(3) And the equipment A receives the file information of the equipment B, and performs comprehensive processing such as sequencing, grouping, displaying format icons and the like according to the received file name, size, format, source equipment and the like, and displays the file information.
(4) And the device A sends an access request instruction to a certain file of the device B synchronously displayed, and the access request instruction is transmitted to the device B through a server.
(5) And the equipment B receives the instruction, automatically stores the corresponding file (if required) and uploads the corresponding file to the cloud server for storage. And after the cloud server is uploaded, a message is returned to the device A through the server.
(6) And the equipment A receives the message of cloud completion on the equipment B file, starts to download the corresponding file from the cloud server and opens the file, and realizes cross-equipment transmission and access of the file.
For example, in order to obtain file information of a stored file on other electronic devices under the same account, the devices need to be authenticated.
Illustratively, 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 104a2:
step 104a1, based on the target account logged in by the first electronic device, obtaining device information of the second electronic device logged in the target account.
Step 104a2, obtaining file information of at least one file associated with the device information of the second electronic device in the authority of the target account.
In an exemplary embodiment, after a user logs in to a target account on a first electronic device, the user may obtain, through a server, file information of files included in rights of the target account in other electronic devices that log in to the target account. Here, a file included in the authority of the target account may be understood as a file that can be accessed, edited, used, or the like on the registered electronic device using the target account.
The first electronic device may display the second electronic device and the file included in the target account authority in the second electronic device to the user after the file information is acquired. Specifically, the step 101 may include the following step 101a:
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 may be 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 logged-in account, and a user can conveniently select a file to be controlled from the file to control.
Alternatively, in the embodiment of the present application, the second electronic device may perform different operations according to the above-described difference in target operations.
Illustratively, the step 103 may include any one of the following steps 103a, 103b, or 103 c:
Step 103a, transmitting the first target file from the second electronic device to the first electronic device in case the target operation is a file access operation.
Step 103b, in case the target operation is a file moving operation, moving the first target file from the current path to a path whose target input is indicated on the first electronic device on the second electronic device.
And 103c, deleting the first target file on the second electronic device in the case 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 the user wants to directly access the first target file in the second electronic device on the first electronic device, the first target file on the second electronic device may be transferred to the first electronic device and accessed through the file access operation described above.
For example, if the user wants to move the first target file on the second electronic device to the designated directory of the first electronic device, or other second electronic devices, the first target file may be moved to the designated location by dragging the first target file identifier. The designated location may be a question of moving between other devices, or may be a question of moving from another device to the first electronic device.
For example, if the user wants to delete the first target file on the second electronic device directly, the first target file may be deleted from the second electronic device by a normal deletion operation for the first target file identifier.
Thus, the user can control the files in the second electronic equipment through different input operations, and remote control of the files in the equipment is realized.
Further optionally, in the embodiment of the present application, if the user wants to access the first target file in the second electronic device, the first target file may specifically be 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 103a3:
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 then send the second control instruction to the first electronic equipment after the first target file is uploaded to the server.
Step 103a2, receiving a second control instruction sent by the second electronic device.
Step 103a3, obtaining and accessing the first target file stored on the server.
In an exemplary embodiment, after the first electronic device receives an input of accessing the first target file by the user, the first electronic device is controlled to update the first target file to the latest state by sending a first control instruction to the second electronic device through the server in response to the input.
It will be appreciated that the first target file may be in an editing state on the second electronic device, at which point the content of the first target file being edited has not yet been saved. In order to ensure that the user accesses the first target file in the latest state on the first electronic device, the first control instruction is needed to control the second electronic device to transmit the first target file in the latest state to the first electronic device, and specifically, the second electronic device can be controlled to store the first target file and transmit the first target file after the first target file is stored.
The second electronic device, after updating the first target file to the latest state, transmits the first target file to the server and sends a second control instruction to the first electronic device. After the first electronic device receives 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 can download the first target file in the latest state from the server.
It should be noted that, in the embodiment of the present application, the first target file in the second electronic device may be transmitted to the first electronic device by means of file transfer in the server, in consideration of the stability problem of the peer-to-peer transmission file possibly existing in the mobile terminal and the occupation of network resources for establishing peer-to-peer transmission.
In the process of moving the first target file, the file movement input may refer to the specific mode in steps 103a1 to 103a3, and after the first target file in the latest state is acquired, the first target file may be transferred to the directory specified by the file movement input.
Therefore, the first electronic device can acquire the first target file in the second electronic device by sending the control instruction, and the first target file can be ensured to be the target file in the latest state.
In one possible implementation, when a 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, at which point the user of the first electronic device may choose to access a copy of the first target file stored on the server in order to avoid affecting the editing operations of the user of the second electronic device.
Illustratively, the step 103a may include the following steps 103a4 to 103a6:
step 103a4, sending a file status acquisition request to the second electronic device.
Step 103a5, receiving file status information of the first target file sent by the second electronic device.
Step 103a6, if the file status 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, acquiring the copy of the first target file stored in the server based on the confirmation operation.
For example, the first electronic device needs to obtain the file status of the first target file in the second electronic device before accessing the first target file.
In an exemplary embodiment, when 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, the first electronic device may prompt the user by means of a popup window to continue to access the file in the latest state or to access the copy of the file stored in the server.
Illustratively, in the case where the user selects to continue to access the file in the latest state, the first electronic device accesses the first target file in the latest state in the method of steps 103a1 to 103a3 described above.
In an exemplary scenario, where the user chooses to access a file copy of a 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 one possible implementation, since the device itself also has different states, the presentation of the information required by the device and the above-mentioned target operations are affected. Therefore, in the embodiment of the application, the device states can be distinguished.
For example, since the first electronic device is a device that the user is currently operating, the embodiments of the present application describe in terms of the device state of the second electronic device. The first electronic device may also include a device state of the second electronic device when the first electronic device is the controlled device.
For example, for the second electronic device may include: on-line equipment, off-line equipment, etc. When the device state of the second electronic device is changed, 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 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 able to control files stored on the second electronic device only when the second electronic device is in an online state.
For example, when the second electronic device is in an online state, a "heartbeat mechanism" may be established with the server, in which the online state of the second electronic device is maintained by sending a heartbeat packet to the server within a preset time interval. If the second electronic device does not send the heartbeat packet to the server in the continuous preset number of sending periods, the second electronic device is changed to an offline state.
In an exemplary embodiment, when the second electronic device is in an offline state, the first electronic device can only control the file uploaded to the server by the second electronic device, but cannot control the file currently stored on the second electronic device. Here, the account number in the offline state can be waken up and logged in through setting a wake-up mechanism, which of course requires that the electronic device is in a normal working state or when the electronic device is in a screen-off state, a wake-up instruction can be output according to logged-in user account number information and electronic device information.
For example, if an account is logged out from a second electronic device, the device state of the second electronic device is changed to a log-out state, and other devices logged in to the account are notified to perform state change. When the second electronic device is in a log-off state, the first electronic device cannot control the file stored on the second electronic device even if the second electronic device is connected to the internet.
Optionally, in the embodiment of the present application, after the operation is completed, the first electronic device needs to update the display information after the operation.
Illustratively, after the step 103, the cross-terminal file synchronization method provided in the embodiment of the present application may further include the following step 106:
and step 106, 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.
In an exemplary embodiment, if the target operation is a file deletion operation, the second electronic device updates the file information corresponding to the at least one file based on a deletion operation performed by the second electronic device after deleting the first target file. Specifically, the first electronic device may delete the first target file identifier corresponding to the first target file.
In an exemplary embodiment, 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, taking the above-mentioned target operation as a file moving operation as an example, as shown in fig. 2, when the user moves the file 1 from the device 1 to the device 2, after the file moving operation is completed, the file identifier of the file 1 displayed in the region to which the device 1 belongs is updated and displayed in the region to which the device 2 belongs.
In this way, after the first electronic device completes the target operation executed on the second electronic device, the file information corresponding to the at least one file is updated, so that the information displayed to the user is the latest information.
Alternatively, in the embodiment of the present application, since the first electronic device and the second electronic device have the same function and function, the first electronic device may be used as a control device to control the second electronic device, or may be used as a controlled device to be controlled by the second electronic device.
The cross-terminal file synchronization method provided by the embodiment of the application may further include the following step 107 and step 108:
step 107, receiving a third control instruction sent by the second electronic device.
And step 108, responding to the third control instruction, and transmitting the second target file to the second electronic device based on the file state of the second target file.
The second target file is a file which needs to be accessed by the second electronic equipment.
The third control instruction has the same function and function as the first control instruction, and is different from the first control instruction that is sent by the first electronic device to the second electronic device, and the third control instruction that is sent by 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.
Step 108a2, a fourth control instruction is sent to the second electronic device to control the second electronic device to acquire the second target file from the server.
The fourth control command described above also has the same function and function as the second control command, for example.
The first electronic device, after transmitting the second target file in the latest state to the server, 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.
After receiving the third control instruction, if the second target file is in the accessing state and the first electronic device is currently not operated by a person, the first electronic device may forcibly close the second target file in order to enable a user of the second electronic device to acquire the second target file in time.
Illustratively, before the step 108a1, the cross-terminal file synchronization method provided in the embodiment of the present application may further include the following step 108b:
Step 108b, if the second target file is in the accessing state on the first electronic device, executing the save and close operation on 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 transferred to the server after the save and close operation is performed on the second target file.
In an exemplary embodiment, after the first electronic device receives the third control instruction that needs to access the second target file stored on the first electronic device, if the second target file is in the access state, the first electronic device may perform a save and close operation on the second target file, and then, transmit the second target file to the server.
For example, as shown in fig. 4, a specific flow chart of remote file access between two electronic devices in the embodiment of the present application is shown. Taking a document in the device A accessing the device B as an example, the device A initiates a file acquisition request to the device B document, and after receiving the request, the device B judges whether the file is stored in the cloud server.
And if the document is stored on the cloud server, acquiring the storage state of the document from the device B. If the document has unsaved content, the device B sends the current state of the document to the device A, and the device A decides whether to save the document. If the device a determines that the latest state of the document needs to be acquired, the control device B may save 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 "open document" instruction, that is, the second control instruction or the fourth control instruction is sent to the device a. And after receiving the instruction, the device A downloads the document from the cloud server and accesses the document.
If the document is not stored on the cloud server, the method based on the steps can be used for leading the device B to store the document and uploading the document to the cloud server.
In order to ensure that the document status is up to date, the device B needs to perform an operation of closing the document after saving the document content, so as to avoid editing the document by other users again after saving the document. In another example, if there is a user operating the document on the device B, the information of the operation is synchronized to be displayed on the first device, and the user is reminded of the real-time situation of the document on the device B, where the operation may be editing, moving a path, and so on. Based on this, in the above-described apparatus B, when a document does not include unsaved content, it is also necessary to perform a closing operation on the document.
In one possible implementation, if the second target file is in an editing state, the user of the first electronic device is required to confirm when the user of the second electronic device needs to access the second target file.
Illustratively, the above step 108 may include the following step 108c1:
step 108c1, when a copy of the second target file is stored in the server and the second target file is in an editing state, transmitting 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 to access the second target file in the latest state or access the copy of the second target file stored on the server.
The first electronic device may perform different operations according to the selection of the user of the second electronic device, and specifically, after step 108c1 described above, the cross-terminal file synchronization method provided in the embodiment of the present application may further include the following step 108c2:
step 108c2, if a fifth control instruction sent by the second electronic device based on the confirmation information is received, performing 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 device 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 a 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 performs the save operation on the file included in the target account authority, the file is automatically synchronized to the server.
According to the cross-terminal file synchronization method, file information of at least one file stored in the second electronic device can be displayed on an 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 for the first target file identification 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 may directly transfer the first target file to the first electronic device, facilitating access to the first target file by the user. Therefore, remote control of files among a plurality of devices is realized, barriers of different device models, systems and platforms are broken, interconnection and intercommunication of information and capability are realized, and the use efficiency of a user 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 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. In the embodiment of the present application, a cross-terminal file synchronization method is executed by using a cross-terminal file synchronization device as an example, which illustrates the cross-terminal file synchronization device provided in the embodiment of the present application.
In the embodiment of the application, the method is shown in the drawings. The cross-terminal file synchronization method is exemplified by a figure in combination with the embodiment of the application. In specific implementation, the cross-terminal file synchronization method shown in the above method drawings may also be implemented in combination with any other drawing that may be combined and is illustrated in the above embodiment, which is not repeated herein.
The cross-terminal file synchronization device provided by the application is described below, and the cross-terminal file synchronization method described below and the cross-terminal file synchronization method described above can be referred to correspondingly.
Fig. 5 is a schematic structural diagram of a cross-terminal file synchronization device according to an embodiment of the present application, where, as shown in fig. 5, the cross-terminal file synchronization device specifically includes:
A display module 501 for displaying at least one file; the at least one file is a file contained in the right to log in the same account with the first electronic device on the second 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; and the control module 503 is configured to send an operation instruction to the second electronic device, so that the second electronic device performs a corresponding operation based on the operation instruction and the file state of the first target 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 the second electronic device; a receiving module 505, configured to receive file information of at least one file sent by the second electronic device; a display module 501, specifically configured to display 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 506; an obtaining module 506, configured to obtain device information of a second electronic device logged into the target account based on the target account logged into by the first electronic device; the obtaining module 506 is further configured to obtain file information of at least one file associated with device information of the second electronic device within the authority of the target account.
Optionally, the target operation includes any one of: file access operation, file movement operation, file deletion operation; a control module 503, specifically configured to transmit the first target file from the second electronic device to the first electronic device when 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 from the current path to a path indicated by the moving operation on the first electronic device on the second electronic device; or deleting the first target file on the second electronic device in the case that the target operation is a file deletion operation.
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 the latest state and transmitting the second control instruction to the first electronic equipment after uploading the first target file to the server; the receiving module 505 is further configured to receive a second control instruction sent by the second electronic device; the obtaining module 506 is further configured to obtain and access a first target file stored on the server.
Optionally, the sending module 504 is further configured to send a file status acquisition request to the second electronic device; the receiving module 505 is further configured to receive file status information of the first target file sent by the second electronic device; the control module 503 is specifically configured to, if the file status 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, in response to the third control instruction, transmit the second target file to the second electronic device based on the file status of the second target file; 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 target file if the second target 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 the 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 perform a save and close operation on the second target file if a fifth control instruction sent by the second electronic device based on the acknowledgement information is received; the sending module 504 is configured to send a fourth control instruction to the second electronic device after the saved second target file is transmitted to the server, so as to control the second electronic device to obtain the saved second target file from the server.
According to the cross-terminal file synchronization device, file information of at least one file stored in the second electronic device can be displayed on an 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 for the first target file identification 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 may directly transfer the first target file to the first electronic device, facilitating access to the first target file by the user. Therefore, remote control of files among a plurality of devices is realized, barriers of different device models, systems and platforms are broken, interconnection and intercommunication of information and capability are realized, and the use efficiency of a user in a multi-device scene is improved.
Fig. 6 illustrates a physical schematic diagram of an electronic device, as shown in fig. 6, which may include: processor 610, communication interface (Communications Interface) 620, memory 630, and communication bus 640, wherein processor 610, communication interface 620, and memory 630 communicate with each other via communication bus 640. Processor 610 may invoke logic instructions in memory 630 to perform a cross-terminal file synchronization method comprising: 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; receiving an operation instruction for 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.
Further, the logic instructions in the memory 630 may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in 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, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present application also provides a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform a method of cross-terminal file synchronization provided by the methods described above, the method comprising: displaying at least one file; the at least one file is a file contained in the right to log in the same account with the first electronic device on the second device; receiving an operation instruction for 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 having stored thereon a computer program which when executed by a processor is implemented to perform the above provided cross-terminal file synchronization methods, the method comprising: displaying at least one file; the at least one file is a file contained in the right to log in the same account with the first electronic device on the second device; receiving an operation instruction for 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 apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (13)

1. The 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 with the first electronic device on the second electronic device;
receiving an operation instruction for a first target file; the first target file is a file in the at least one file;
the operation instruction is sent to second electronic equipment, and the second electronic equipment executes corresponding target operation based on the operation instruction and the file state of the first target file;
the sending the operation instruction to the second electronic device, and executing the corresponding target operation, including:
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;
sending a first control instruction to the second electronic equipment based on the file state information; the first control instruction is used for controlling the second electronic equipment to update the first target file to the latest state and send a second control instruction to the first electronic equipment after uploading the first target file to a server;
receiving the second control instruction sent by the second electronic equipment;
and acquiring and accessing the first target file stored on the server.
2. The method of claim 1, wherein prior to the displaying the 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 prior to the sending the file information retrieval request to the second electronic device, the method further comprises:
acquiring equipment information of second electronic equipment logged in a 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 equipment information of the second electronic equipment in the authority of the target account.
4. The method of claim 1, wherein the target operation comprises any one of: file moving operation, file deleting operation;
the sending the operation instruction to the second electronic device includes:
moving, on the second electronic device, the first target file from a current path to a path indicated by the movement operation on the first electronic device, if the target operation is a file movement operation;
or,
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 deleting operation.
5. The method of claim 4, wherein the sending a first control instruction to the second electronic device based on the file status information comprises:
And sending a first control instruction to the second electronic device when 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.
6. The method of claim 1, wherein after the 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 performed on the second electronic device.
7. The method according to claim 1, wherein 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;
the second target file is a file which needs to be accessed by the second electronic equipment.
8. The method of claim 7, wherein the transmitting the second target file to the second electronic device based on the file status of the second target file comprises:
Transmitting the second target file to a server;
and sending a fourth control instruction to the second electronic equipment, and controlling the second electronic equipment to acquire the second target file from the server.
9. The method of claim 7, wherein prior to the transferring the second target file to a server, the method further comprises:
and under the condition that the second target file is in an accessing state on the first electronic equipment, executing saving and closing operation on the second target file.
10. The method of claim 7, wherein the 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 comprises:
and sending confirmation information to the second electronic equipment when the copy of the second target file is stored on the server and the second target file is in an editing state.
11. The method of claim 10, wherein after the sending of 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 equipment 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 equipment to control the second electronic equipment to acquire the saved second target file from the server.
12. A cross-terminal file synchronization device, the device 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 logging in the same account with the first electronic device on the second device;
the input module is used for receiving an operation instruction for the first target file; the first target file is a file in the at least one file;
the control module is used for sending the operation instruction to second electronic equipment, so that the second electronic equipment executes corresponding target operation based on the operation instruction and the file state of the first target file;
the sending module is used for sending a file state acquisition request to the second electronic equipment;
the receiving module is used for receiving the file state information of the first target file sent by the second electronic equipment;
sending a first control instruction to the second electronic equipment based on the file state information; the first control instruction is used for controlling the second electronic equipment to update the first target file to the latest state and send a second control instruction to the first electronic equipment after uploading the first target file to a server;
The receiving module is further configured to receive the second control instruction sent by the second electronic device;
and the acquisition module is used for acquiring and accessing the first target file stored on the server.
13. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the cross-terminal file synchronization method according to any of claims 1 to 11.
CN202111205875.1A 2021-10-15 2021-10-15 Cross-terminal file synchronization method and device Active CN113992652B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202410277856.7A CN117938839A (en) 2021-10-15 2021-10-15 Cross-terminal file synchronization method and device
CN202410277881.5A CN118075255A (en) 2021-10-15 2021-10-15 Cross-terminal file synchronization method and device
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 (2)

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

Publications (2)

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

Family

ID=79738894

Family Applications (3)

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
CN202410277881.5A Pending CN118075255A (en) 2021-10-15 2021-10-15 Cross-terminal file synchronization method and device
CN202410277856.7A Pending CN117938839A (en) 2021-10-15 2021-10-15 Cross-terminal file synchronization method and device

Family Applications After (2)

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

Country Status (1)

Country Link
CN (3) CN113992652B (en)

Families Citing this family (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
CN116775419B (en) * 2023-08-28 2023-12-05 荣耀终端有限公司 File system monitoring method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9462061B2 (en) * 2012-09-14 2016-10-04 Tencent Technology (Shenzhen) Company Limited Method, device, server, and system for managing devices
KR102330249B1 (en) * 2014-10-27 2021-11-23 삼성전자주식회사 Method and device of providing communication between multi-devices

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN118075255A (en) 2024-05-24
CN117938839A (en) 2024-04-26
CN113992652A (en) 2022-01-28

Similar Documents

Publication Publication Date Title
EP2131363B1 (en) Video editing system, video editing server and communication terminal
CN113992652B (en) Cross-terminal file synchronization method and device
CN108965217B (en) Multi-screen multimedia interaction system based on C/S framework
US10887657B2 (en) Message transmission method, device and storage medium for media files
CN101399729B (en) Management system and method for file download and upload
CN109918345A (en) Document processing method, device, terminal and storage medium
CN111522604B (en) Application data processing method and device and computer readable storage medium
WO2021104455A1 (en) Cad drawing sharing and discussing system and method thereof, terminal, server, electronic device, and storage medium
US20110154255A1 (en) Apparatus and method for synchronization between devices through wireless connection
CN105721175A (en) Group processing method, group file processing method, and group file processing device
CN103916479A (en) Cloud synchronous local area network accelerating system based on working group document
CN102025515A (en) File directory based file transmission method, device and system
CN113168334A (en) Data processing method and device, electronic equipment and readable storage medium
CN115190147B (en) Intelligent device control method, device and system
CN115840754A (en) Virtual resource management method and device and electronic equipment
CN110224924B (en) State updating method and device, storage medium and electronic device
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
CN102148839A (en) Method, device and system for managing FTP (file transfer protocol) server
KR101840752B1 (en) Terminal and operation method of terminal
WO2016197897A1 (en) Converged communication interaction method, device and system
CN103379015A (en) Website server and IM client data transmission method, apparatus and system
CN114430405B (en) Instant messaging method, device, equipment and storage medium for command terminal
JP2016118837A (en) Thin client system, and document file control method of thin client
CN109309611B (en) File receiving mutual exclusion realization method and system in multi-terminal point-to-point file 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