CN113282546A - File processing method and device - Google Patents

File processing method and device Download PDF

Info

Publication number
CN113282546A
CN113282546A CN202110391235.8A CN202110391235A CN113282546A CN 113282546 A CN113282546 A CN 113282546A CN 202110391235 A CN202110391235 A CN 202110391235A CN 113282546 A CN113282546 A CN 113282546A
Authority
CN
China
Prior art keywords
file
electronic device
icon
sub
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110391235.8A
Other languages
Chinese (zh)
Other versions
CN113282546B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110391235.8A priority Critical patent/CN113282546B/en
Publication of CN113282546A publication Critical patent/CN113282546A/en
Priority to PCT/CN2022/085334 priority patent/WO2022218192A1/en
Application granted granted Critical
Publication of CN113282546B publication Critical patent/CN113282546B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/16File or folder operations, e.g. details of user interfaces specifically adapted to 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/14Details of searching files based on file metadata
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Library & Information Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a file processing method and device, belongs to the technical field of communication, and can solve the problem that a file is inconvenient to search when a user transmits files by using a cooperation function among multiple devices. The method comprises the following steps: the first electronic equipment receives first data sent by second electronic equipment, wherein the first data comprises: the first file information is used for indicating a storage directory of the first file in the second electronic equipment; the first electronic equipment displays a first icon corresponding to the first file; responding to a first input of the first icon, the first electronic equipment sends a second file and a target instruction to the second electronic equipment, wherein the second file is a file edited on the first electronic equipment by the first file; the target instruction is used for instructing the second electronic equipment to store the second file based on the first file information.

Description

File processing method and device
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a file processing method and device.
Background
With the development of electronic device technology, the cooperative use between computers and mobile phones is more and more widespread.
In the related art, the current interface of the mobile phone can be mapped and displayed through an application program installed on a computer, and a user can directly copy files on the computer to the mobile phone or copy files in the mobile phone to the computer in a mode of dragging a file icon.
However, after a user copies a file in a mobile phone to a computer and edits the file, if the user copies the edited file to the mobile phone again, since the default storage path of the mobile phone may be different from the original storage path of the file, a plurality of files with the same name are stored in the mobile phone, and the process is cumbersome when the user searches for the newly edited file.
Disclosure of Invention
An object of the embodiments of the present application is to provide a file processing method and apparatus, which can solve the problem that it is inconvenient to search a file when the file is transmitted between multiple devices of a user using a coordination function.
In a first aspect, an embodiment of the present application provides a file processing method, where the method includes: receiving first data sent by second electronic equipment, wherein the first data comprises: the first file information is used for indicating a storage directory of the first file in the second electronic equipment; displaying a first icon corresponding to the first file; in response to a first input to the first icon, sending a second file and a target instruction to the second electronic device, and controlling the second electronic device to store the second file based on the first file information; the second file is a file edited by the first file on the first electronic device.
In a second aspect, an embodiment of the present application further provides a file processing apparatus, where the apparatus includes: the device comprises a receiving module, a display module and an execution module; the receiving module is used for receiving first data sent by second electronic equipment, and the first data comprises: the first file information is used for indicating a storage directory of the first file in the second electronic equipment; the display module is used for displaying a first icon corresponding to the first file received by the receiving module; the execution module is used for responding to a first input of the first icon displayed by the display module, sending a second file and a target instruction to the second electronic equipment, and controlling the second electronic equipment to store the second file based on the first file information; the second file is a file edited by the first file on the first electronic device.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the file processing method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, after a first file and first file information sent by a second electronic device are received and the first file is edited by the first electronic device, a user controls the first electronic device to send the edited file and a target instruction to the second electronic device through a first input of a first icon displayed on the first electronic device, so that the second electronic device can store the edited file on the first electronic device based on the storage directory information of the original file, the user can browse the edited file in the directory of the original file, and the operation process of searching the file is saved.
Drawings
FIG. 1 is a schematic interface diagram illustrating a document processing method according to an embodiment of the present application;
FIG. 2 is a schematic flowchart of a document processing method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an interface applied by a document processing method according to an embodiment of the present disclosure;
FIG. 4 is a schematic structural diagram of a document processing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The file processing method provided by the embodiment of the application can be applied to a scene that multiple devices transmit files by using a cooperative function.
For example, in a scenario where a multi-device uses a collaborative function to transmit a file, in the related art, a mobile terminal and a computer may display a mapping interface of the mobile terminal on the computer through collaborative software, and a user may execute various operations such as running an application on the mapping interface, copying a file from the mobile terminal to the computer, or copying a file in the computer to the mobile terminal, and then copy the file from the mobile terminal to the computer, and then edit the copied file, and copy the edited file to the mobile terminal again after the editing is completed. For example, as shown in fig. 1, 10 in the figure is a computer interface, 11 in the figure is a mapping interface of the mobile terminal on a computer, files 1 to 4 are files which are copied from the mobile terminal to the computer and edited on the computer, and taking copying of file 3 to the mobile terminal as an example, a user may copy file 3 to the mobile terminal by dragging file 3 stored on the computer to the mapping interface.
However, the files copied to the mobile terminal in the above manner are stored in a fixed directory of the mobile terminal or an application currently opened by the mobile terminal. When the mobile terminal stores the file 3 in a fixed directory, the user cannot find the file in time because the user does not know the specific position of the directory, and because the mobile terminal stores two files with the same name, the user can hardly distinguish which file is the latest, sometimes even needs to open and view the files in sequence to determine the file with the latest version.
In view of this problem, in the technical solution provided in the embodiment of the present application, taking the file 3 as an example, when the computer receives the file 3 sent by the mobile terminal, the mobile terminal also sends file information of the file 3, where the file information is used to indicate a storage directory of the file 3 in the mobile terminal. After a user edits the first file on the computer, the computer can be controlled to send the edited file 3 and a target instruction to the mobile terminal through the first input of the first icon displayed on the computer, so that the mobile terminal can store the edited file 3 in the mobile terminal based on the file information, and the identifier of the computer is added on the icon of the file 3, so that the user can distinguish the source of the file with the same name conveniently, the user can directly position the transmitted file in the mobile terminal, and the operation process is saved.
The following describes the document processing method provided by the embodiment of the present application in detail through a specific embodiment and an application scenario thereof with reference to the accompanying drawings.
As shown in fig. 2, a file processing method provided in an embodiment of the present application may include the following steps 201 to 203:
step 201, the first electronic device receives first data sent by the second electronic device.
Wherein the first data includes: the first file information is used for indicating a storage directory of the first file in the second electronic equipment.
For example, the first electronic device may be a computer, and the second electronic device may be a mobile terminal. When the second electronic device sends the first file to the first electronic device, the second electronic device also sends a storage directory of the first file in the second electronic device to the first electronic device, so that a user can conveniently store the edited file in the directory after editing the first file on the first electronic device.
In a possible implementation manner, the first file information may be further used to indicate a target storage directory in the second electronic device, where the target storage directory is any directory in the electronic device. The storage directory may be set by a user or may be default by the system.
For example, the first data may be sent by the second electronic device when the user copies a file from the second electronic device to the first electronic device. When a user copies a file from the second electronic device to the first electronic device through the mapping interface of the second electronic device, the content of the first interface displayed by the mapping interface may be the same as or different from the content of the second interface displayed by the mapping interface when the user copies the file from the first electronic device to the second electronic device through the mapping interface of the second electronic device.
It should be noted that, in the related art, when a user copies a file from a first electronic device to a second electronic device through a mapping interface, the file is usually copied into an application directory of an application currently displayed by the second electronic device. In the file processing method provided by the embodiment of the present application, the second electronic device stores the second file based on the first file information, and the second file is not related to the interface content displayed on the mapping interface of the second electronic device.
Step 202, the first electronic device displays a first icon corresponding to the first file.
Illustratively, before the user does not edit the first file, the first icon is used for indicating the first file; after the user edits the first file, the first icon is used for indicating the edited file. Specifically, before the user does not edit the first file, the user may open the first file by double-clicking the first icon and edit the first file. After the user edits the first file, the user can send the edited file corresponding to the first icon to the second electronic device in a mode of dragging the first icon to a mapping interface of the second electronic device.
Step 203, the first electronic device responds to the first input of the first icon, sends the second file and the target instruction to the second electronic device, and controls the second electronic device to store the second file based on the first file information.
The second file is a file obtained by editing the first file on the first electronic device.
For example, the first input may be a touch input, a voice input, or the like of the user to the first icon. Specifically, the first input may be a drag input to the first icon or a click input to the first icon.
For example, after the first electronic device edits the first file, the user obtains a second file, and at this time, the first icon is used to indicate the second file. The user can control the first electronic device to send the second file and the target instruction to the second electronic device in a mode of dragging the first icon. And after receiving the second file and the target instruction sent by the first electronic equipment, the second electronic equipment stores the second file based on the first file information. Specifically, the second electronic device may store the second file in a storage directory to be indicated by the first file information when the file name of the second file is different from that of the first file, or replace the first file with the second file when the file name of the second file is the same as that of the first file, that is, store the second file in the same directory as the first file; the second electronic device can also avoid the storage directory indicated by the first file information, and store the second file in the directory at the same level as the storage directory, so that the user can conveniently search the second file.
It should be noted that, in order to prevent the original file from being covered and causing the user to lose the original file, when the second electronic device replaces the first file with the second file, the first file may be stored in the target directory, which is convenient for the user to retrieve.
Therefore, after the first electronic device receives the first file and the first file information sent by the second electronic device and edits the first file, the user controls the first electronic device to send the edited file and the target instruction to the second electronic device through the first input of the first icon displayed on the first electronic device, so that the second electronic device can store the edited file on the first electronic device based on the storage directory information of the original file, the user can browse the edited file in the directory of the original file, and the operation process of searching the file is saved.
Optionally, in this embodiment of the application, in order to facilitate a user to distinguish processing operations of an original file and an edited file, after receiving first data sent by a second electronic device, a first electronic device may display two different icons. And the first electronic equipment sends different control instructions based on different operations of the two icons by the user.
Illustratively, the first icon includes: a first sub-icon and a second sub-icon; the target instruction includes: a first instruction and a second instruction. The first sub-icon is used for triggering the first electronic device to send a first instruction to the second electronic device when receiving the touch operation of the user, and the second sub-icon is used for triggering the first electronic device to send a second instruction to the second electronic device when receiving the touch operation of the user.
In one implementation, the user may trigger the electronic device to directly store the edited second file in the storage directory indicated by the first file information through a specific input to the first sub-icon.
Illustratively, the step 203 may include the following steps 203 a:
step 203a, the first electronic device sends a second file and a first instruction to the second electronic device in response to the first input to the first sub-icon, and controls the second electronic device to replace the first file with the second file when the file name of the second file is the same as that of the first file, or store the second file in the storage directory indicated by the first file information when the file name of the second file is different from that of the first file.
It should be noted that, after the second electronic device sends the first file to the second electronic device, the user may also modify the file name of the first file on the second electronic device, so that the file name of the edited second file is different from the file name of the first file.
Illustratively, after a user edits a first file on a second electronic device, a second file is obtained, and when the second file needs to be copied to the second electronic device, the first electronic device can be triggered to send the second file and a first instruction to the second electronic device only by a first input to the first sub-icon, so that the second electronic device stores the second file in a storage directory indicated by the first file information.
For example, the first input may be a touch input to the first sub-icon, and specifically, the first input may be a double-click input to the first sub-icon.
Therefore, after the user finishes editing the first file by the first electronic device, the first electronic device can directly send the edited second file to the second electronic device after receiving the first input of the user to the first sub-icon, and control the second electronic device to store the second file in the storage directory indicated by the first file information.
In another implementation manner, a user may trigger the first electronic device to display all files with the same file name as the second file in the second electronic device by dragging the second sub-icon to the input of the mapping interface of the second electronic device, and distinguish the sources of different files by adding an identifier to the file icon.
For example, a mapping interface of the second electronic device is displayed on the screen of the first electronic device, and the mapping interface may be used to display screen interface content of the second electronic device, and may also be used to display other content. The first input may include: a first sub-input and a second sub-input.
Illustratively, the step 203 may include the following step 203b 1:
step 203b1, the first electronic device displays the second icon and N third icons on the mapping interface in response to dragging the second sub-icon to the first sub-input of the mapping interface, where N is a positive integer.
The second icon is used for indicating a second file and comprises a first identifier, and the first identifier is used for indicating that the second file is a file sent by the first electronic device. The N third icons are used for indicating file icons of N third files in the second electronic device, the file names of which are the same as the file names of the second files.
For example, the third icon may further include a second identifier, where the second identifier is used to indicate an application program to which the third icon belongs. The file icon of the first file has the highest display priority among the N third icons.
For example, the second icon may be displayed in a first area of the mapping interface, and the N third icons may be displayed in a second area of the mapping interface.
It can be understood that, in the case that the file names of the first file and the second file are the same, the first file is included in the N third files, and since the probability that the user stores the second file in the storage directory of the first file is higher, the display priority of the file icon of the first file is the highest, which is convenient for the user to select.
It should be noted that, different from the prior art, after the user drags the second sub-icon to the mapping interface, the first electronic device only displays the second icon in the mapping interface, at this time, the user does not select the storage directory of the second file, the first electronic device may not send the second file to the second electronic device, and after the user selects the storage directory, the first electronic device sends the second file to the second electronic device.
For example, referring to fig. 1, as shown in fig. 3, after the user drags the file 3 into the mapping interface 11, an icon of the file 3 is displayed in an area 13 of the mapping interface 11, and an identifier of a computer (i.e., the first electronic device) is displayed on the icon, so as to identify the file 3 as a file in the computer. Similarly, the application program to which the file belongs may be displayed on the file icon of the file having the same name as the file 3 in the mobile terminal (i.e., the second electronic device) displayed in the area 12 of the mapping interface 11.
Therefore, after the user drags the second sub-icon of the second file to the mapping interface, the first electronic device can respectively display the file icon of the file copied from the first file and the file icon of the file with the same name as the file in the second electronic device on the mapping interface, and the user can conveniently select the storage directory of the second file.
Further optionally, after the first electronic device displays the second icon and the N third icons, the user may copy the second file to the storage directory of the third file corresponding to a certain third icon by dragging the second icon to the area where the certain third icon is located.
After the step 203b1, the file processing method provided in the embodiment of the present application may further include the following steps 203b2 and 203b 3:
step 203b2, the first electronic device receives a second sub-input of the user.
Step 203b3, the first electronic device sends a second file and a second instruction to the second electronic device in response to the second sub-input, and controls the second electronic device to replace the file indicated by the target icon with the second file.
Wherein, the target icon is at least one of the N third icons.
Illustratively, the second sub-input may be a touch input, a slide input, or a voice input. Specifically, the second sub-input may be an input of a user dragging the second icon to a position where the target icon is located.
Illustratively, after receiving a drag input that a user drags the second icon to a position where the target icon is located, the first electronic device sends a second file and a second instruction to the second electronic device in response to the drag input, and controls the second electronic device to store the second file in a storage directory of a third file corresponding to the target icon. Specifically, the third file may be the first file, and the method of storing the second file in the storage directory of the third file is described in detail in the above embodiments, and is not repeated herein.
It should be noted that, after the second electronic device stores the second file in the storage directory, if the second file and the first file are included in the storage directory at the same time, or the second file and the third file are included in the storage directory at the same time, the first identifier is displayed on the file icon of the second file, the second identifier is displayed on the file icon of the third file, and the last modification time of each file can also be displayed, so that the user can distinguish the files conveniently.
In this way, after the second electronic device receives the control instruction sent by the first electronic device, the second electronic device stores the second file in the storage directory selected by the user.
According to the file processing method provided by the embodiment of the application, when the first electronic device receives the first file sent by the second electronic device, the second electronic device also sends the first file information, and the first file information is used for indicating the storage directory of the first file in the second electronic device. After the user edits the first file on the first electronic device to obtain the second file, the first electronic device can be controlled to send the edited second file and the first instruction to the second electronic device through the first input of the first sub-icon displayed on the first electronic device, and the edited second file is stored in the second electronic device. Or, through the first sub-input of the second sub-icon displayed on the first electronic device, the first electronic device displays all files with the same file name as the second file on the second electronic device, and displays the file source identifier on each file icon, so that a user can conveniently distinguish the source of the file with the same name, the user can directly position the transmitted file in the second electronic device, and the operation process is saved.
It should be noted that, in the file processing method provided in the embodiment of the present application, the execution main body may be a file processing apparatus, or a control module for executing the file processing method in the file processing apparatus. In the embodiment of the present application, a file processing apparatus executes a file processing method as an example, and the file processing method provided in the embodiment of the present application is described.
In the embodiments of the present application, the above-described methods are illustrated in the drawings. The document processing method is exemplarily described with reference to one of the drawings in the embodiments of the present application. In specific implementation, the file processing method shown in each method drawing can also be implemented by combining any other drawing which can be combined and is illustrated in the above embodiments, and details are not described here.
Fig. 4 is a schematic structural diagram of a possible document processing apparatus for implementing the embodiment of the present application, and as shown in fig. 4, the document processing apparatus 600 includes: a receiving module 601, a display module 602, and an execution module 603, wherein:
a receiving module 601, configured to receive, by a first electronic device, first data sent by a second electronic device, where the first data includes: the first file information is used for indicating a storage directory of the first file in the second electronic equipment; a display module 602, configured to display, by a first electronic device, a first icon corresponding to the first file received by the receiving module 601; an execution module 603, configured to, in response to a first input to the first icon displayed by the display module 602, send, by the first electronic device, the second file and the target instruction to the second electronic device, and control the second electronic device to store the second file based on the first file information; the second file is a file edited by the first file on the first electronic device.
Optionally, the first icon includes a first sub-icon and a second sub-icon; the target instruction includes: a first instruction and a second instruction; the first sub-icon is used for triggering the first electronic device to send a first instruction to the second electronic device when receiving the touch operation of the user, and the second sub-icon is used for triggering the first electronic device to send a second instruction to the second electronic device when receiving the touch operation of the user.
Optionally, the executing module 603 is specifically configured to, in response to a first input to the first sub-icon, the first electronic device sends a second file and a first instruction to the second electronic device, and controls the second electronic device to replace the first file with the second file when the file name of the second file is the same as that of the first file, or store the second file in the storage directory indicated by the first file information when the file name of the second file is different from that of the first file.
Optionally, a mapping interface of the second electronic device is displayed on a screen of the first electronic device; the first input includes: a first sub-input and a second sub-input; the executing module 603 is specifically configured to, in response to a first sub-input that drags the second sub-icon to the mapping interface, display, by the first electronic device, the second icon and N third icons on the mapping interface, where N is a positive integer; the second icon is used for indicating a second file and comprises a first identifier, and the first identifier is used for indicating that the second file is a file sent by the first electronic device; the N third icons are used for indicating the file icons of the N third files in the second electronic equipment, wherein the file names of the N third files are the same as the file names of the second files.
Optionally, the document processing apparatus 600 further includes: a user input module 604; a user input module 604, configured to receive, by the first electronic device, a second sub-input of the user; the executing module 603 is further specifically configured to, in response to the second sub-input received by the user input module 604, send, by the first electronic device, a second file and a second instruction to the second electronic device, and control the second electronic device to replace the file indicated by the target icon with the second file; and the target icon is at least one of the N third icons.
Optionally, the third icon includes a second identifier, where the second identifier is used to indicate an application program to which the third icon belongs; the file icon of the first file has the highest display priority among the N third icons.
The document processing apparatus in the embodiment of the present application may be an apparatus, and may also be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The file processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The file processing apparatus provided in the embodiment of the present application can implement each process implemented by the file processing apparatus in the method embodiments of fig. 1 to fig. 3, and is not described here again to avoid repetition.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
According to the file processing apparatus provided by the embodiment of the application, when the first electronic device receives the first file sent by the second electronic device, the second electronic device also sends the first file information, where the first file information is used to indicate the storage directory of the first file in the second electronic device. After the user edits the first file on the first electronic device to obtain the second file, the first electronic device can be controlled to send the edited second file and the first instruction to the second electronic device through the first input of the first sub-icon displayed on the first electronic device, and the edited second file is stored in the second electronic device. Or, through the first sub-input of the second sub-icon displayed on the first electronic device, the first electronic device displays all files with the same file name as the second file on the second electronic device, and displays the file source identifier on each file icon, so that a user can conveniently distinguish the source of the file with the same name, the user can directly position the transmitted file in the second electronic device, and the operation process is saved.
Optionally, an electronic device is further provided in this embodiment of the present application, and includes a processor 110, a memory 109, and a program or an instruction stored in the memory 109 and capable of being executed on the processor 110, where the program or the instruction is executed by the processor 110 to implement each process of the foregoing file processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 5 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Taking the electronic device 100 as an example of a first electronic device, the radio frequency unit 101 is configured to receive first data sent by a second electronic device, where the first data includes: the first file information is used for indicating a storage directory of the first file in the second electronic equipment; a display unit 106, configured to display a first icon corresponding to the first file received by the radio frequency unit 101; the radio frequency unit 101 is configured to send a second file and a target instruction to the second electronic device in response to a first input to the first icon displayed by the display unit 106, and control the second electronic device to store the second file based on the first file information; the second file is a file edited by the first file on the first electronic device.
Therefore, after the first electronic device receives the first file and the first file information sent by the second electronic device and edits the first file, the user controls the first electronic device to send the edited file and the target instruction to the second electronic device through the first input of the first icon displayed on the first electronic device, so that the second electronic device can store the edited file on the first electronic device based on the storage directory information of the original file, the user can browse the edited file in the directory of the original file, and the operation process of searching the file is saved.
Optionally, the first icon includes a first sub-icon and a second sub-icon; the target instruction includes: a first instruction and a second instruction; the first sub-icon is used for triggering the first electronic device to send a first instruction to the second electronic device, and the second sub-icon is used for triggering the first electronic device to send a second instruction to the second electronic device.
Optionally, the radio frequency unit 101 is specifically configured to send, in response to a first input to the first sub-icon, a second file and a first instruction to the second electronic device, and control the second electronic device to replace the first file with the second file when the file name of the second file is the same as that of the first file, or store the second file in the storage directory indicated by the first file information when the file name of the second file is different from that of the first file.
Therefore, after the user finishes editing the first file by the first electronic device, the first electronic device can directly send the edited second file to the second electronic device after receiving the first input of the user to the first sub-icon, and control the second electronic device to store the second file in the storage directory indicated by the first file information.
Optionally, a mapping interface of the second electronic device is displayed on a screen of the first electronic device; the first input includes: a first sub-input and a second sub-input; the display unit 106 is specifically configured to, in response to a first sub-input that drags the second sub-icon to the mapping interface, display the second icon and N third icons on the mapping interface, where N is a positive integer; the second icon is used for indicating a second file and comprises a first identifier, and the first identifier is used for indicating that the second file is a file sent by the first electronic device; the N third icons are used for indicating the file icons of the N third files in the second electronic equipment, wherein the file names of the N third files are the same as the file names of the second files.
Therefore, after the user drags the second sub-icon of the second file to the mapping interface, the first electronic device can respectively display the file icon of the file copied from the first file and the file icon of the file with the same name as the file in the second electronic device on the mapping interface, and the user can conveniently select the storage directory of the second file.
Optionally, a user input unit 107 for receiving a second sub-input of the user; the radio frequency unit 101 is further specifically configured to send a second file and a second instruction to the second electronic device in response to the second sub-input received by the user input unit 107, and control the second electronic device to replace the file indicated by the target icon with the second file; the target icon is at least one of the N third icons.
In this way, after the second electronic device receives the control instruction sent by the first electronic device, the second electronic device stores the second file in the storage directory selected by the user.
Optionally, the third icon includes a second identifier, where the second identifier is used to indicate an application program to which the third icon belongs; the file icon of the first file has the highest display priority among the N third icons.
According to the electronic device provided by the embodiment of the application, when the first electronic device receives the first file sent by the second electronic device, the second electronic device also sends the first file information, and the first file information is used for indicating the storage directory of the first file in the second electronic device. After the user edits the first file on the first electronic device to obtain the second file, the first electronic device can be controlled to send the edited second file and the first instruction to the second electronic device through the first input of the first sub-icon displayed on the first electronic device, and the edited second file is stored in the second electronic device. Or, through the first sub-input of the second sub-icon displayed on the first electronic device, the first electronic device displays all files with the same file name as the second file on the second electronic device, and displays the file source identifier on each file icon, so that a user can conveniently distinguish the source of the file with the same name, the user can directly position the transmitted file in the second electronic device, and the operation process is saved.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the file processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the file processing method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A method of file processing, the method comprising:
the method comprises the following steps that first electronic equipment receives first data sent by second electronic equipment, and the first data comprises: the first file information is used for indicating a storage directory of the first file in the second electronic equipment;
displaying a first icon corresponding to the first file on the first electronic device;
in response to a first input to the first icon, the first electronic device sends a second file and a target instruction to the second electronic device, and controls the second electronic device to store the second file based on the first file information;
the second file is a file edited by the first file on the first electronic device.
2. The method of claim 1, wherein the first icon comprises a first sub-icon and a second sub-icon; the target instruction includes: a first instruction and a second instruction; the first sub-icon is used for triggering the first electronic device to send the first instruction to the second electronic device when receiving the touch operation of the user, and the second sub-icon is used for triggering the first electronic device to send the second instruction to the second electronic device when receiving the touch operation of the user.
3. The method of claim 2, wherein the sending a second file and a target instruction to the second electronic device in response to the first input to the first icon and controlling the second electronic device to store the second file based on the first file information comprises:
in response to a first input to the first sub-icon, the first electronic device sends the second file and the first instruction to the second electronic device, and controls the second electronic device to replace the first file with the second file if the file names of the second file and the first file are the same,
or,
and when the file name of the second file is different from that of the first file, the first electronic equipment stores the second file in a storage directory indicated by the first file information.
4. The method according to claim 2, wherein a mapping interface of the second electronic device is displayed on a screen of the first electronic device; the first input includes: a first sub-input and a second sub-input;
the sending, by the first electronic device, a second file and a target instruction to the second electronic device in response to the first input to the first icon, and controlling the second electronic device to store the second file based on the first file information, includes:
in response to dragging the second sub-icon to a first sub-input of the mapping interface, the first electronic device displays a second icon and N third icons on the mapping interface, wherein N is a positive integer;
the second icon is used for indicating the second file and comprises a first identifier, and the first identifier is used for indicating that the second file is a file sent by the first electronic device; the N third icons are used for indicating file icons of N third files which are identical to the file name of the second file in the second electronic equipment.
5. The method of claim 4, wherein after the first electronic device displays the second icon and the N third icons on the mapping interface in response to dragging the second sub-icon to the first sub-input of the mapping interface, the method further comprises:
the first electronic equipment receives a second sub-input of the user;
responding to the second sub-input, the first electronic equipment sends a second file and a second instruction to the second electronic equipment, and controls the second electronic equipment to replace the file indicated by the target icon with the second file;
wherein the target icon is at least one of the N third icons.
6. The method according to claim 4 or 5, wherein the third icon comprises a second identifier indicating an application program to which the third icon belongs; the file icon of the first file is displayed with the highest priority among the N third icons.
7. A file processing device applied to a first electronic device is characterized by comprising: the device comprises a receiving module, a display module and an execution module;
the receiving module is configured to receive, by the first electronic device, first data sent by a second electronic device, where the first data includes: the first file information is used for indicating a storage directory of the first file in the second electronic equipment;
the display module is used for displaying a first icon corresponding to the first file received by the receiving module by the first electronic device;
the execution module is used for responding to a first input of a first icon displayed by the display module, sending a second file and a target instruction to the second electronic equipment by the first electronic equipment, and controlling the second electronic equipment to store the second file based on the first file information;
the second file is a file edited by the first file on the first electronic device.
8. The apparatus of claim 7, wherein the first icon comprises a first sub-icon and a second sub-icon; the target instruction includes: a first instruction and a second instruction; the first sub-icon is used for triggering the first electronic device to send the first instruction to the second electronic device when receiving the touch operation of the user, and the second sub-icon is used for triggering the first electronic device to send the second instruction to the second electronic device when receiving the touch operation of the user.
9. The apparatus of claim 8,
the execution module is specifically configured to, in response to a first input to the first sub-icon, send, by the first electronic device, the second file and the first instruction to the second electronic device, and control the second electronic device to replace the first file with the second file when the file names of the second file and the first file are the same,
or,
and storing the second file into the storage directory indicated by the first file information when the file name of the second file is different from that of the first file.
10. The apparatus according to claim 8, wherein a mapping interface of the second electronic device is displayed on a screen of the first electronic device; the first input includes: a first sub-input and a second sub-input;
the execution module is specifically configured to, in response to a first sub-input that drags the second sub-icon to the mapping interface, display, by the first electronic device, the second icon and N third icons on the mapping interface, where N is a positive integer;
the second icon is used for indicating the second file and comprises a first identifier, and the first identifier is used for indicating that the second file is a file sent by the first electronic device; the N third icons are used for indicating file icons of N third files which are identical to the file name of the second file in the second electronic equipment.
11. The apparatus of claim 10, further comprising: a user input module;
the user input module is used for the first electronic equipment to receive a second sub-input of a user;
the execution module is specifically further configured to, in response to a second sub-input received by the user input module, send, by the first electronic device, a second file and a second instruction to the second electronic device, and control the second electronic device to replace the file indicated by the target icon with the second file;
wherein the target icon is at least one of the N third icons.
12. The apparatus of claim 11, wherein the third icon comprises a second identifier indicating an application to which the third icon belongs; the file icon of the first file is displayed with the highest priority among the N third icons.
CN202110391235.8A 2021-04-12 2021-04-12 File processing method and device Active CN113282546B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110391235.8A CN113282546B (en) 2021-04-12 2021-04-12 File processing method and device
PCT/CN2022/085334 WO2022218192A1 (en) 2021-04-12 2022-04-06 File processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110391235.8A CN113282546B (en) 2021-04-12 2021-04-12 File processing method and device

Publications (2)

Publication Number Publication Date
CN113282546A true CN113282546A (en) 2021-08-20
CN113282546B CN113282546B (en) 2024-08-20

Family

ID=77276544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110391235.8A Active CN113282546B (en) 2021-04-12 2021-04-12 File processing method and device

Country Status (2)

Country Link
CN (1) CN113282546B (en)
WO (1) WO2022218192A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113992652A (en) * 2021-10-15 2022-01-28 珠海金山办公软件有限公司 Cross-terminal file synchronization method and device
WO2022218192A1 (en) * 2021-04-12 2022-10-20 维沃移动通信有限公司 File processing method and apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106462539A (en) * 2014-06-27 2017-02-22 英特尔公司 Mechanism for file transformation and sharing across devices using camera interface
CN107562372A (en) * 2017-08-01 2018-01-09 广东欧珀移动通信有限公司 A kind of electronic equipment and its data managing method, computer-readable recording medium
CN111158543A (en) * 2019-12-24 2020-05-15 华为技术有限公司 File processing method, electronic equipment, system and storage medium
CN111511045A (en) * 2020-04-10 2020-08-07 玳能科技(杭州)有限公司 Interaction method and device of mobile terminal and computer, electronic equipment and storage medium
CN111813741A (en) * 2020-06-15 2020-10-23 维沃移动通信有限公司 File sharing method and electronic equipment
CN112399006A (en) * 2020-10-28 2021-02-23 维沃移动通信(杭州)有限公司 File sending method and device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282546B (en) * 2021-04-12 2024-08-20 维沃移动通信有限公司 File processing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106462539A (en) * 2014-06-27 2017-02-22 英特尔公司 Mechanism for file transformation and sharing across devices using camera interface
CN107562372A (en) * 2017-08-01 2018-01-09 广东欧珀移动通信有限公司 A kind of electronic equipment and its data managing method, computer-readable recording medium
CN111158543A (en) * 2019-12-24 2020-05-15 华为技术有限公司 File processing method, electronic equipment, system and storage medium
CN111511045A (en) * 2020-04-10 2020-08-07 玳能科技(杭州)有限公司 Interaction method and device of mobile terminal and computer, electronic equipment and storage medium
CN111813741A (en) * 2020-06-15 2020-10-23 维沃移动通信有限公司 File sharing method and electronic equipment
CN112399006A (en) * 2020-10-28 2021-02-23 维沃移动通信(杭州)有限公司 File sending method and device and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022218192A1 (en) * 2021-04-12 2022-10-20 维沃移动通信有限公司 File processing method and apparatus
CN113992652A (en) * 2021-10-15 2022-01-28 珠海金山办公软件有限公司 Cross-terminal file synchronization method and device
CN113992652B (en) * 2021-10-15 2024-03-15 珠海金山办公软件有限公司 Cross-terminal file synchronization method and device

Also Published As

Publication number Publication date
WO2022218192A1 (en) 2022-10-20
CN113282546B (en) 2024-08-20

Similar Documents

Publication Publication Date Title
WO2022194004A1 (en) Application icon arrangement method and apparatus, and electronic device
CN112399006B (en) File sending method and device and electronic equipment
CN113794795B (en) Information sharing method and device, electronic equipment and readable storage medium
CN113849092A (en) Content sharing method and device and electronic equipment
WO2022218192A1 (en) File processing method and apparatus
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN112269506A (en) Screen splitting method and device and electronic equipment
CN112702261A (en) Information display method and device and electronic equipment
CN113282213A (en) Interface display method and device
CN114116098B (en) Application icon management method and device, electronic equipment and storage medium
CN112698762B (en) Icon display method and device and electronic equipment
CN112399010B (en) Page display method and device and electronic equipment
CN113836089A (en) Application program display method and device, electronic equipment and readable storage medium
CN113485600A (en) Singing list sharing method and device and electronic equipment
CN113485853A (en) Information interaction method and device and electronic equipment
WO2023155874A1 (en) Application icon management method and apparatus, and electronic device
WO2022194077A1 (en) Application program icon management method and apparatus, and electronic device
CN111796733B (en) Image display method, image display device and electronic equipment
CN115167721A (en) Display method and device of functional interface
CN112099715B (en) Information processing method and device
CN114489414A (en) File processing method and device
CN114116087A (en) Interface operation method and device between two systems, electronic equipment and medium
CN114442881A (en) Information display method and device, electronic equipment and readable storage medium
CN113839789A (en) Information sending method and device
CN114089885A (en) Application icon management method and device, electronic equipment and readable storage medium

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