A file acquisition method and device, computer device, and storage medium

By leveraging the operating system's clipboard technology and sharing capabilities, file copying on the cloud desktop can be performed as if it were a local file, solving the problem of not being able to paste local files on the cloud desktop in existing technologies and improving the user experience.

CN115470013BActive Publication Date: 2026-02-27CHINA TELECOM CLOUD TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210906722.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-29
Publication Date
2026-02-27
Estimated Expiration
2042-07-29

AI Technical Summary

Technical Problem

Current technology does not allow users to copy or cut any local file and paste it anywhere on the cloud desktop as if it were a local computer file.

Method used

By leveraging the operating system's clipboard technology and clipboard sharing properties, the system monitors changes to the clipboard data of the first target object, synchronizes it to the clipboard of the second target object, and detects the user's paste operation within the second target object to complete the file copying.

Benefits of technology

It allows users to copy or cut files on the cloud desktop just like they would local files, and paste them anywhere on the cloud desktop, making the interaction more user-friendly and requiring no third-party software support.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115470013B_ABST
    Figure CN115470013B_ABST
Patent Text Reader

Abstract

The application provides a file acquisition method and device, computer equipment and a storage medium, and the method comprises the following steps: acquiring the clipboard data of a first target object, wherein the clipboard data comprises the storage path information of a first file and a first operation type performed on the first file; after the clipboard data is written into the clipboard corresponding to a second target object, the storage path information of the first file is replaced by the storage path of a second file which is pre-constructed, wherein the second file is a file created on the second target object; when a preset operation is performed on the second file, response information corresponding to the preset operation is generated; the response information is fed back to the first target object side, so that the first target object transmits the operation result to the storage path of the second file according to the response information. The application can realize that the user can copy or cut any local file as operating a local computer file, and paste the file anywhere in the cloud desktop.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular to a file acquisition method and device, computer equipment and storage medium. BACKGROUND

[0002] With the development of society, people's office scene is more diversified, and the cloud desktop that can be remotely operated has attracted people's attention. The cloud desktop, also known as desktop virtualization or cloud computer, is a new mode to replace the traditional computer. After using the cloud desktop, users no longer need to purchase computer hosts, and the central processing unit (CPU), memory, hard disk and other components included in the host are all virtually realized in the server in the back end. The cloud desktop has the advantages of high security, high work efficiency, low power consumption and flexible office.

[0003] When using the cloud desktop for remote operation, file transmission and acquisition between the cloud desktop and the local computer are often needed. At present, there are mainly the following methods for file copying between the cloud desktop and the local host computer: redirecting the USB storage device to the cloud desktop and then performing file copying operation; redirecting the disk of the local host computer to the cloud desktop and then performing file copying operation; and using software with file transmission function to send and receive through the network.

[0004] The above methods are not convenient enough in use, and cannot allow the user to copy or cut any local file as operating the local computer file and paste it anywhere in the cloud desktop. SUMMARY

[0005] Therefore, the technical problem to be solved by the present application is to overcome the defect that the user cannot copy or cut any local file as operating the local computer file and paste it anywhere in the cloud desktop in the prior art, so as to provide a file acquisition method and device, computer equipment and storage medium.

[0006] The first aspect of the present application provides a file acquisition method, comprising: acquiring clipboard data of a first target object, the clipboard data comprising storage path information of a first file and a first operation type performed on the first file; writing the clipboard data into a clipboard corresponding to a second target object, and replacing the storage path information of the first file with a pre-constructed storage path of a second file, wherein the second file is a file created on the second target object; generating response information corresponding to a preset operation when it is detected that the second file is executed; and feeding back the response information to the first target object side, so that the first target object transmits an operation result to the storage path of the second file according to the response information, to store the operation result to the second file, wherein the operation result is an operation result generated after performing an operation corresponding to the first operation type on the first file on the first target object side.

[0007] Based on the support of the operating system for the clipboard technology and the sharing attribute of the clipboard itself, the present application first listens to the change of the clipboard data of the first target object, synchronizes the clipboard data of the first target object to the clipboard of the second target object, then detects the paste operation of the user in the second target object, i.e. recognizes the entire file copying behavior, and then transmits the data of the first file to the second file of the second target object, to complete the actual file copying. In the present application, through the sharing attribute of the clipboard, the file data transmission from the first target object to the second target object is completed without using third-party software. Further, the remote attribute between the first target object and the second target object is faded, so that the user can copy or cut the first file on the first target object and paste on the second target object, to perform the copying operation between the first target object and the second target object, and the interaction is more friendly.

[0008] In combination with the first aspect of the present application, the first embodiment of the first aspect of the present application provides a file acquisition method, after writing the clipboard data into the clipboard corresponding to the second target object, the method further comprises: configuring the first operation type as a second operation type, wherein the second operation type is used to indicate a preset operation subsequently performed on the second file.

[0009] The present application configures the first operation type as the second operation type in the clipboard of the second target object, so as to subsequently perform the preset operation corresponding to the second operation type on the second file in the second target object.

[0010] In combination with the first aspect of the present application, the second embodiment of the first aspect of the present application provides a file acquisition method, wherein the preset operation comprises: a delete operation and a reconstruction operation performed on the second file, wherein the delete operation and the reconstruction operation are used to indicate the completion of the paste operation on the second file.

[0011] The present application can determine that the user has completed the paste operation of the second file on the second target object by detecting the delete operation and the rebuild operation performed on the second file.

[0012] In combination with the second embodiment of the first aspect of the present application, the third embodiment of the first aspect of the present application provides a file acquisition method, wherein the response information corresponding to the preset operation is used to indicate that the paste operation of the second file on the second target object has been completed.

[0013] The present application can trigger the first target object to transmit the data of the first file to the second file on the second target object by generating the response information, transmitting the response information to the first target object side to inform the first target object side that the user has completed the paste operation and the new storage path of the pasted second file.

[0014] In combination with the first aspect of the present application, the fourth embodiment of the first aspect of the present application provides a file acquisition method, wherein the clipboard data is the data generated in the clipboard after the first operation is performed on the first target object.

[0015] The present application can automatically generate the corresponding data in the clipboard when the user performs the first operation, such as cutting or copying, on the first file on the first target object by using the support of the operating system for the clipboard technology and the sharing attribute of the clipboard itself, without adding extra programs to perform this step, which is efficient and convenient.

[0016] In combination with any one of the first aspect of the present application, the first embodiment of the first aspect of the present application, the second embodiment of the first aspect of the present application, the third embodiment of the first aspect of the present application, and the fourth embodiment of the first aspect of the present application, the fifth embodiment of the first aspect of the present application provides a file acquisition method, wherein the first operation type includes a copy operation or a cut operation.

[0017] The copy operation or the cut operation performed on the first file on the first target object can be completed by using the keyboard or the mouse, which conforms to the operation habit of the user and has good user experience.

[0018] In combination with the first embodiment of the first aspect of the present application, the sixth embodiment of the first aspect of the present application provides a file acquisition method, wherein the second operation type includes a cut operation.

[0019] The present application sets the second operation type as the cut operation, which can directly cut the second file in the original storage path after the user pastes the second file to the target position, without generating redundant files and saving the storage space of the second target object.

[0020] To achieve the above technical purpose, the second aspect of the present application provides a file acquisition device, comprising: an acquisition module, configured to acquire clipboard data of a first target object, the clipboard data comprising storage path information of a first file and a first operation type performed on the first file; a processing module, configured to write the clipboard data into a clipboard corresponding to a second target object, replace the storage path information of the first file with a pre-constructed storage path of a second file, wherein the second file is a file created on the second target object; generate response information corresponding to a preset operation when the preset operation is detected on the second file; and a sending module, configured to feed back the response information to the first target object, so that the first target object transmits an operation result to the storage path of the second file according to the response information, and stores the operation result in the second file, wherein the operation result is generated after performing an operation corresponding to the operation type on the first file on the first target object.

[0021] To achieve the above technical purpose, the third aspect of the present application provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned file acquisition method when executing the computer program.

[0022] To achieve the above technical purpose, the fourth aspect of the present application provides a storage medium storing computer readable instructions, wherein the computer readable instructions are executed by one or more processors to make the one or more processors execute the above-mentioned file acquisition method.

[0023] It can be understood that the above-mentioned device, computer device or computer storage medium, etc. are used to execute the corresponding method provided above, and thus the beneficial effects achieved can refer to the beneficial effects in the corresponding method, which will not be described here again.

[0024] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0025] To more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly introduced below. Obviously, the drawings in the following description only relate to some embodiments of the present disclosure, but not limit the present disclosure.

[0026] Figure 1 The flowchart of the file acquisition method of the embodiments of the present application;

[0027] Figure 2 The flowchart of one specific example of the file acquisition method of the embodiments of the present application;

[0028] Figure 3A flowchart illustrating another specific example of a file acquisition method according to an embodiment of the present invention;

[0029] Figure 4 This is a schematic diagram of the structure of a document acquisition device according to an embodiment of the present invention;

[0030] Figure 5 This is a schematic diagram of the structure of a computer device according to an embodiment of the present invention. Detailed Implementation

[0031] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0032] Furthermore, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0033] The clipboard is a data sharing mechanism provided by the operating system, also known as a data transfer station. All applications can read and write to the clipboard, so this technology is commonly used to enable data sharing between different applications (or between an application and the system). The clipboard can be operated in various ways, including via keyboard shortcuts, right-click, and system interfaces, providing a very good user experience and is adopted and supported by the vast majority of mainstream operating systems.

[0034] This invention provides a method for obtaining files. This method can utilize the operating system's clipboard, allowing users to copy or cut any local file as if it were a local computer file, and paste it anywhere on the cloud desktop.

[0035] like Figure 1 As shown, one or more embodiments of the present invention provide a method for obtaining a file, the method comprising the following steps:

[0036] Step S110: Obtain clipboard data of the first target object. The clipboard data includes the storage path information of the first file and the first operation type performed on the first file.

[0037] Step S120: After writing the clipboard data to the clipboard corresponding to the second target object, replace the storage path information of the first file with the storage path of the pre-built second file; when the second file is detected to have been subjected to a preset operation, generate response information corresponding to the preset operation.

[0038] The second file is the file created on the second target object.

[0039] Step S130: feedback the response information to the first target object side.

[0040] The first target object transmits the operation result to the storage path of the second file according to the response information, so as to store the operation result to the second file, wherein the operation result is the operation result generated after the first target object side performs the operation corresponding to the first operation type on the first file.

[0041] Specifically, in step S110, the clipboard data of the first target object can be periodically updated data, or the monitor set for the clipboard of the first target object, which reads the data when it listens to the change of the clipboard data of the first target object. The first file includes but is not limited to text, picture or file. The first operation type can be the operation performed by the user on the first file using the keyboard or mouse, such as cutting or copying.

[0042] Specifically, in step S120, the second file is a blank file temporarily created on the second target object, which is used to receive the data of the first file from the first target object in the subsequent operation step. The storage location of the second file on the second target object is not limited in this step. Listening to the second file being executed with the preset operation can include listening to the second file being executed with the paste operation, for example, the paste operation of the second file can be judged by deleting and rebuilding the second file. The response information corresponding to the preset operation is used for subsequent sending to the first target object side to prompt the user that the paste operation has been performed on the second file on the second target object side. In addition, the response information can also include the storage location of the second file after the paste operation.

[0043] Specifically, in step S130, the second target object side sends the response information to the first target object side, triggers the first target object side to transmit the data of the first file to the second target object side, and stores the data of the first file to the second file on the second target object side.

[0044] The application is based on the support of the operating system to the clipboard technology and the sharing attribute of the clipboard itself. First, the clipboard data change of the first target object is listened to, and the clipboard data of the first target object is synchronized to the clipboard of the second target object. Then, the paste operation of the user in the second target object is detected, that is, the entire file copying behavior is recognized, and then the data of the first file is transmitted to the second file of the second target object, and the actual file copying is completed. In this application, through the sharing attribute of the clipboard, the file data transmission from the first target object to the second target object is completed without using third-party software. Further, the remote attribute between the first target object and the second target object is faded, so that the user can operate the first file in the first target object as if it is a local file, and perform the paste operation on the second target object to copy the operation between the first target object and the second target object, and the interaction is more friendly.

[0045] In some embodiments of the application, considering that in some cases, there may be a case that the operation corresponding to the first operation type is not suitable or the same as the operation on the second file, for safety, after writing the clipboard data into the clipboard corresponding to the second target object, the method further comprises: configuring the first operation type as a second operation type, wherein the second operation type is used to indicate the preset operation subsequently performed on the second file.

[0046] The application configures the first operation type as the second operation type in the clipboard of the second target object, so as to subsequently perform the preset operation corresponding to the second operation type on the second file in the second target object.

[0047] In some embodiments of the application, the preset operation includes a delete operation and a reconstruction operation performed on the second file, wherein the delete operation and the reconstruction operation are used to indicate the completion of the paste operation on the second file.

[0048] Specifically, the file monitor can be set for the second file on the second target object, and when the delete operation and the reconstruction operation of the second file are listened to, it means that the user has completed the paste operation on the second file on the second target object.

[0049] The application listens to the state change of the second file by calling the file monitor of the operating system, so as to judge whether the user has completed the paste operation on the second file on the second target object, which is more rapid and convenient.

[0050] In some embodiments of the application, the response information corresponding to the preset operation is used to indicate that the paste operation on the second file on the second target object has been completed.

[0051] Specifically, when it is detected on the second target object that the preset operation has been performed, response information can be generated, the response information being used to indicate that the second target object side has completed the paste operation on the second file, and the response information can include a storage path of the second file after being pasted.

[0052] The application can trigger the first target object side to transmit the data of the first file to the second file of the second target object side by generating the response information, transmitting the response information to the first target object side to inform the user of the first target object side that the paste operation is completed and the new storage path of the second file after being pasted.

[0053] In some embodiments of the application, the clipboard data is data generated in a clipboard after the first operation is performed on the first target object.

[0054] Specifically, a monitor can be set on the first target object for the clipboard of the first target object to monitor whether the clipboard data changes.

[0055] The application utilizes the support of the operating system for the clipboard technology and the sharing attribute of the clipboard itself. When the user performs the first operation, such as cutting or copying, on the first file of the first target object, corresponding data is automatically generated in the clipboard, and no extra program needs to be added to perform this step. This method is efficient and convenient.

[0056] In some embodiments of the application, the first operation type includes a copy operation or a cut operation.

[0057] Specifically, the copy operation or the cut operation on the first file of the first target object can be performed by using a keyboard or a mouse.

[0058] The copy operation or the cut operation performed on the first file of the first target object can be completed by using a keyboard or a mouse, which conforms to the operation habit of the user and is good in user experience.

[0059] In some embodiments of the application, the second operation type includes a cut operation.

[0060] The application sets the second operation type as a cut operation, which can realize that the second file in the original storage path is directly cut after the user pastes the second file to the target position, so that no redundant file is generated and the storage space of the second target object is saved.

[0061] The method for obtaining the file of the application will be further described below with reference to specific examples.

[0062] In one specific example of the application, the first target object is a local end, and the second target object is a cloud desktop end. Figure 2The flowchart illustrates how to paste files copied or cut on the local device to the cloud desktop.

[0063] like Figure 2 As shown, pasting a file copied or cut on the local machine to the cloud desktop involves the following steps: 1. The user adds a clipboard monitor on the local machine, which can monitor changes in the local clipboard data in real time; 2. When the clipboard monitor detects file operation data in the local clipboard, it reads the local clipboard data to obtain the file copy type data. This data generally includes the storage path of the file to be transferred and the type of operation performed on the file to be transferred, which is copy or cut; 3. The local clipboard data is sent to the cloud desktop; 4. A flag file is created in the temporary directory of the cloud desktop as the target for subsequent user operations; 5. A file monitor is added to the cloud desktop, which can monitor the status changes of the flag file in real time; 6. 1. Write the local clipboard data received from the local end to the cloud desktop clipboard, and replace the path information of the file to be transferred with the path information of the marker file, setting the operation type to cut; 7. Wait for the user to paste; 8. After the user pastes the file on the cloud desktop using the keyboard or mouse, the marker file will be cut to the directory selected by the user. During the process, the file monitor will detect the deletion and recreation of the marker file and can identify the user's pasting behavior; 9. After recognizing the user's pasting behavior, the cloud desktop will generate a response message and send the response message to the local end, notifying the local end that the user has pasted the file on the cloud desktop. The local end will then transfer the file to be transferred to the second file on the cloud desktop, completing the entire copy process.

[0064] In another specific example of the present invention, the first target object is a cloud desktop client, and the second target object is a local client. Figure 3 This diagram illustrates a flowchart of pasting files copied or cut from the cloud desktop to the local device. It's understood that the only difference between this example and the previous one is the direction of data transfer; the methods used for file transfer are the same.

[0065] like Figure 3As shown, the file copied or cut at the cloud desktop end is pasted to the local end, including the following steps: 1. A user adds a clipboard monitor at the cloud desktop end, and the clipboard monitor can monitor cloud desktop clipboard data in real time; 2. When the clipboard monitor listens to the existence of file operation data in the cloud desktop clipboard, cloud desktop clipboard data is read, and data of the cloud desktop clipboard file copy type is obtained, which generally includes the storage path of the to-be-transmitted file and the operation type performed on the to-be-transmitted file, and the operation type is copy or cut; 3. The cloud desktop clipboard data is sent to the local end; 4. A flag file is created in a temporary directory at the local end, which is used as a subsequent user operation object; 5. A file monitor is added at the local end, which can monitor the state change of the flag file in real time; 6. The cloud desktop clipboard data received from the cloud desktop end is written into the local clipboard, and the path information of the to-be-transmitted file is replaced with the path information of the flag file, and the operation type is set to cut; 7. The user waits for a paste operation; 8. After the user performs a paste operation at the local end through a keyboard or a mouse, the flag file will be cut to the directory selected by the user, and in the process, the file monitor can perceive the deletion operation and the re-creation operation of the flag file, and can identify the paste behavior of the user; 9. After identifying the paste behavior of the user, the cloud desktop generates response information, and sends the response information to the cloud desktop end, to inform the cloud desktop end that the user has performed a paste operation at the local end, and the cloud desktop end transmits the data of the to-be-transmitted file to the second file at the local end, to complete the entire copy process.

[0066] As shown in the Figure 4 To achieve the above technical purposes, one or more embodiments of the present application provide a file acquisition device, which comprises:

[0067] The acquisition module 110 is configured to acquire clipboard data of the first target object, and the clipboard data comprises storage path information of a first file and a first operation type performed on the first file.

[0068] The processing module 120 is configured to, after writing the clipboard data into a clipboard corresponding to the second target object, replace the storage path information of the first file with a storage path of a second file pre-constructed; and generate response information corresponding to the preset operation when it is listened that the second file is executed with the preset operation.

[0069] The second file is a file created on the second target object.

[0070] The sending module 130 is configured to feed back the response information to the first target object side.

[0071] The first target object transmits the operation result to a storage path of the second file according to the response information, so as to store the operation result to the second file, wherein the operation result is generated after the first target object performs the operation corresponding to the first operation type on the first file.

[0072] Specifically, the clipboard data of the first target object acquired by the acquisition module 110 can be periodically updated data, or the data read by a monitor set for the clipboard of the first target object when the monitor listens to the change of the clipboard data of the first target object. The first file includes but is not limited to text, picture or file. The first operation type can be the operation performed by the user on the first file using the keyboard or mouse, for example, cutting or copying.

[0073] Specifically, the second file created by the processing module 120 is a blank file temporarily created on the second target object, used to receive the data of the first file from the first target object in the subsequent operation step. The storage location of the second file on the second target object in this step is not limited. The processing module 120 listens to the second file being executed the preset operation can include listening to the second file being executed the paste operation, for example, the paste operation of the second file can be judged by deleting and rebuilding the second file. The response information corresponding to the preset operation is used to be sent to the first target object side in the subsequent step, used to prompt the user that the paste operation has been performed on the second file on the second target object side. In addition, the response information can also include the storage location of the second file after the paste operation.

[0074] Specifically, the sending module 130 sends the response information to the first target object side, triggers the first target object side to transmit the data of the first file to the second target object side, and stores the data of the first file to the second file on the second target object side.

[0075] In addition, as Figure 5 shown, one or more embodiments of the present application also provide a computer device 200, which includes a processor 201 and a memory 202, the processor 201 and the memory 202 are mutually communicated and connected through a communication bus 203, the memory 202 stores computer instructions, and the processor 201 executes the computer instructions, thereby executing the file acquisition method.

[0076] Finally, one or more embodiments of the present application also provide a computer readable storage medium. The computer readable storage medium stores computer instructions for causing a computer to execute the aforementioned file acquisition method. The aforementioned storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes. The detailed implementation process of the file acquisition method has been described in the specification, and will not be repeated here.

[0077] Logic and / or steps represented in flow diagrams or otherwise described herein, for example, can be considered a set of instructions to achieve the logic function covered by the steps, and can be embodied in any computer-readable storage medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor- containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For purposes of this specification, a "computer-readable storage medium" can be any apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable storage medium include the following: an electrical connection having one or more wires (electrical apparatus), a portable computer diskette (magnetic apparatus), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer-readable storage medium can even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, for example, via an optical scanner, then compiled, interpreted, or otherwise processed in a suitable manner, if necessary, and stored in a computer memory.

[0078] It should be understood that aspects of the application can be implemented in hardware, software, firmware or combinations thereof. In the embodiments described above, various steps or methods can be implemented, for example, through software or firmware in storage media which are executed by suitable instruction executing systems. For example, if implemented in hardware, and as in another embodiment, any of the following technologies, or combinations thereof, can be used: a discrete logic circuit having logic gates for implementing logic functionality; an application specific integrated circuit having appropriate combinational logic gates; a programmable gate array (PGA), a field programmable gate array (FPGA), and / or the like.

[0079] It can be understood that the apparatus, computer device or computer storage medium provided by the above are used to execute the corresponding method provided above, and thus the beneficial effects achieved thereby can refer to the beneficial effects of the corresponding method, which will not be described here.

[0080] In the description of the present specification, the description of the terms "the embodiment", "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In the present specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in any one or more embodiments or examples. In addition, the person skilled in the art can combine and combine the different embodiments or examples described in the present specification and the features of the different embodiments or examples without contradiction.

[0081] In addition, the terms "first", "second" are only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "a plurality of" is at least two, for example, two, three, etc., unless otherwise explicitly specified.

[0082] The above only describes the preferred embodiments of the present application and is not intended to limit the present application. Any modification, equivalent replacement and simple improvement made on the essential content of the present application shall be included in the protection scope of the present application.

[0083] Obviously, the above embodiments are merely example for clearly illustrating but not limitation to the embodiments. Based on the above description, other different forms of changes or variations can be made by those skilled in the art. Here, all the embodiments need not and can not be enumerated. The obvious changes or variations derived from the above description are still within the protection scope of the present application.

Claims

1. A method for obtaining a file, characterized in that, include: Obtain clipboard data of a first target object, the clipboard data including storage path information of a first file and a first operation type performed on the first file; wherein, the first target object is a local device; After writing the clipboard data to the clipboard corresponding to the second target object, the storage path information of the first file is replaced with the storage path of the pre-built second file. Here, the second target object is the cloud desktop, and the second file is a marker file created on the second target object as the object for subsequent user operations. The local clipboard data received from the local end is written to the clipboard of the cloud desktop. When a preset operation is detected on the second file, response information corresponding to the preset operation is generated. The response information is fed back to the first target object, so that the first target object can transmit the operation result to the storage path of the second file according to the response information, so as to store the operation result in the second file. The operation result is the operation result generated after the first target object performs an operation corresponding to the first operation type on the first file. The deletion and reconstruction operations performed on the second file, wherein the deletion and reconstruction operations are used to indicate the completion of the pasting operation on the second file.

2. The method for obtaining files according to claim 1, characterized in that, After writing the clipboard data to the clipboard corresponding to the second target object, the method further includes: Configure the first operation type in the clipboard corresponding to the second target object as the second operation type, wherein the second operation type is used to indicate the preset operation to be performed on the second file subsequently.

3. The method for obtaining files according to claim 1, characterized in that, The response information corresponding to the preset operation is used to indicate that the second target object has completed the pasting operation on the second file.

4. The method for obtaining files according to claim 1, characterized in that, The clipboard data is the data generated in the clipboard after the first operation is performed on the first target object.

5. The method for obtaining documents according to any one of claims 1 to 3, characterized in that, The first operation type includes copy operation and cut operation.

6. The method for obtaining files according to claim 2, characterized in that, The second operation type includes a cut operation.

7. A file acquisition device, characterized in that, include: The acquisition module is used to acquire clipboard data of a first target object, wherein the clipboard data includes storage path information of a first file and a first operation type performed on the first file; wherein the first target object is a local device; The processing module is configured to write the clipboard data to the clipboard corresponding to the second target object, replace the storage path information of the first file with the storage path of the pre-built second file, wherein the second target object is a cloud desktop, the second file is a marker file created on the second target object as the object for subsequent user operations, and write the local clipboard data received from the local end to the clipboard of the cloud desktop; when a preset operation is detected on the second file, a response information corresponding to the preset operation is generated; The sending module is used to feed back the response information to the first target object side, so that the first target object can transmit the operation result to the storage path of the second file according to the response information, so as to store the operation result in the second file. The operation result is the operation result generated after the first target object side performs an operation corresponding to the operation type on the first file. The deletion and reconstruction operations performed on the second file, wherein the deletion and reconstruction operations are used to indicate the completion of the pasting operation on the second file.

8. A computer device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method for obtaining a file according to any one of claims 1-6.

9. A storage medium storing computer-readable instructions, characterized in that, When the computer-readable instructions are executed by one or more processors, the one or more processors cause the one or more processors to perform the file acquisition method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Copying and pasting method and device in remote assistance and electronic equipment

    CN107967184A

  • File acquisition method, cloud desktop, local computer and readable storage medium

    CN114490532A