File processing method and device

By clustering files across multiple electronic devices and displaying identification information, the problem of low efficiency in finding files across multiple devices is solved, thus achieving efficient file management.

CN120973744APending Publication Date: 2025-11-18VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511047088.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-28
Publication Date
2025-11-18

AI Technical Summary

Technical Problem

Users are less efficient at finding files across multiple electronic devices.

Method used

By receiving input, the system obtains files within the file range of the first electronic device and sends an instruction to the second electronic device to obtain files within its file range. Then, the files of the two devices are clustered to generate multiple file groups, and the identification information corresponding to the file groups is displayed.

Benefits of technology

It eliminates the need to search for files on multiple electronic devices, improving file retrieval efficiency and simplifying the file management process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120973744A_ABST
    Figure CN120973744A_ABST
Patent Text Reader

Abstract

The invention discloses a file processing method and device, and belongs to the technical field of electronic equipment. The file processing method applied to first electronic equipment comprises the following steps: receiving first input; in response to the first input, obtaining files in a first file range in the first electronic equipment; sending indication information to the second electronic equipment; wherein the indication information is used for indicating the second electronic equipment to send files in a second file range in the second electronic equipment to the first electronic equipment; receiving files in a second file range in the second electronic equipment sent by the second electronic equipment; clustering the files in the first file range and the files in the second file range to obtain a plurality of file groups; displaying the multiple pieces of identification information; wherein the multiple pieces of identification information are in one-to-one correspondence with the multiple file groups.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of electronic equipment technology, specifically relating to a document processing method and apparatus. Background Technology

[0002] As people's living standards improve and electronic devices develop, users own more and more electronic devices, such as mobile phones, tablets, laptops, and desktop computers. When users search for certain files, they need to search on multiple electronic devices separately, resulting in low efficiency. Summary of the Invention

[0003] The purpose of this application is to provide a file processing method and apparatus that can solve the problem of low file search efficiency.

[0004] In a first aspect, embodiments of this application provide a file processing method applied to a first electronic device, the method comprising:

[0005] Receive the first input;

[0006] In response to the first input, retrieve files within a first file range in the first electronic device;

[0007] Send instruction information to the second electronic device; wherein the instruction information is used to instruct the second electronic device to send a file within a second file range in the second electronic device to the first electronic device;

[0008] Receive files within the second file range sent by the second electronic device;

[0009] Cluster the files within the first file range and the files within the second file range to obtain multiple file groups;

[0010] Displays multiple identification information; each identification information corresponds to a different file group.

[0011] Secondly, embodiments of this application provide a document processing apparatus applied to a first electronic device, the apparatus comprising:

[0012] The receiving module is used to receive the first input;

[0013] The acquisition module is configured to acquire files within a first file range in response to a first input;

[0014] The sending module is used to send instruction information to the second electronic device; wherein the instruction information is used to instruct the second electronic device to send a file within a second file range in the second electronic device to the first electronic device;

[0015] The receiving module is also used to: receive files within a second file range sent by the second electronic device;

[0016] The clustering module is used to cluster files within a first file range and files within a second file range to obtain multiple file groups;

[0017] The display module is used to display multiple identification information; each identification information corresponds to a file group.

[0018] Thirdly, embodiments of this application provide an electronic device, which includes a processor and a memory. The memory stores programs or instructions that can run on the processor, and when the programs or instructions are executed by the processor, they implement the steps of the file processing method provided in embodiments of this application.

[0019] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, and when the program or instructions are executed by a processor, they implement the steps of the file processing method provided in embodiments of this application.

[0020] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the steps of the file processing method provided in embodiments of this application.

[0021] Sixthly, embodiments of this application provide a computer program product, which is stored in a storage medium and executed by at least one processor to implement the steps of the file processing method provided in embodiments of this application.

[0022] In this embodiment, the process involves receiving a first input; responding to the first input, acquiring files within a first file range in a first electronic device; sending instruction information to a second electronic device, wherein the instruction information instructs the second electronic device to send files within a second file range in the second electronic device to the first electronic device; receiving the files within the second file range sent by the second electronic device; clustering the files within the first file range and the files within the second file range to obtain multiple file groups; and displaying multiple identification information, wherein each identification information corresponds one-to-one with a file group. Thus, by clustering the files within the first file range in the first electronic device and the files within the second file range in the second electronic device into multiple file groups and displaying the identification information corresponding to each file group, the user can find the files included in the file group corresponding to the displayed identification information, eliminating the need for the user to search separately in the first and second electronic devices, thereby improving file search efficiency. Attached Figure Description

[0023] Figure 1 This is a flowchart illustrating a document processing method provided in some embodiments of this application;

[0024] Figure 2 These are schematic diagrams illustrating the display of identification information provided in some embodiments of this application;

[0025] Figure 3 This is a schematic diagram showing the files and file sources included in a file group, provided by some embodiments of this application;

[0026] Figure 4 These are schematic diagrams provided by some embodiments of this application, showing the files included in a file group and the source of each file in terms of time and device dimensions;

[0027] Figure 5 These are schematic diagrams illustrating the differences between two files provided in some embodiments of this application;

[0028] Figure 6 This is a schematic diagram of the overall document processing flow provided by some embodiments of this application;

[0029] Figure 7 These are schematic diagrams of the structure of a document processing apparatus provided in some embodiments of this application;

[0030] Figure 8 These are schematic diagrams of the structure of electronic devices provided in some embodiments of this application;

[0031] Figure 9 This is a schematic diagram of the hardware structure of an electronic device that implements some embodiments of this application. Detailed Implementation

[0032] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0033] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0034] The terminology used in the implementation section of this application is only for explaining specific embodiments of this application and is not intended to limit this application. The terminology involved in the embodiments of this application is explained below.

[0035] Clustering is the process of dividing a collection of physical or abstract objects into multiple classes composed of similar objects. The clusters generated by clustering are a set of data objects. These objects are similar to objects in the same cluster and different from objects in other clusters.

[0036] The interface is the medium for interaction and information exchange between the system and the user. It realizes the conversion between the internal form of information and the form that humans can accept.

[0037] General Options refers to the categories of items that users can choose from.

[0038] A control (also called a part, component, widget, or control) is a graphical user interface element and a basic building block of the user interface. It is a window or text box that is displayed in the program interface of any application. Controls can be buttons, text boxes, labels, etc., and are used to control all the data processed by each application and the interactive operations on that data.

[0039] The document processing methods, apparatus, devices, and media provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.

[0040] It should be noted that the file processing method provided in this application can be executed by electronic devices such as mobile phones, tablets, laptops, PDAs, and in-vehicle electronic devices. Some embodiments of this application use electronic devices as the executing entity to illustrate the file processing method provided in this application.

[0041] The file processing method provided in this application can be applied to scenarios where files are managed across multiple electronic devices, or to scenarios where files are located across multiple electronic devices. It should be noted that the above application scenario is only one example, and other application scenarios may also be included in actual applications.

[0042] Figure 1 This is a flowchart illustrating the file processing method provided in this application embodiment. The file processing method provided in this application embodiment can be applied to a first electronic device, which can be a mobile phone, tablet computer, laptop computer, PDA, vehicle-mounted electronic device, or other electronic devices. The file processing method applied to the first electronic device includes:

[0043] Step 101: Receive the first input;

[0044] In some embodiments of this application, the first input in these embodiments can be an input used to trigger multi-device file management, such as a user clicking the "Multi-device File Management" control.

[0045] Step 102: In response to the first input, obtain files within a first file range in the first electronic device;

[0046] In some embodiments of this application, the first file range can be the entire storage space of the first electronic device, or it can be a range specified by the user, such as a folder specified by the user. After the first electronic device receives the first input, it starts a file scanning program to scan the first file range in the first electronic device to obtain the files within the first file range.

[0047] In some embodiments of this application, the user can also set the file type of the files to be acquired, for example, the file type is .pdf format. After acquiring the files within the first file range in the first electronic device, only the files with the .pdf format are retained, and files of other file types are discarded.

[0048] Step 103: Send instruction information to the second electronic device; wherein, the instruction information is used to instruct the second electronic device to send files within the second file range of the second electronic device to the first electronic device;

[0049] In some embodiments of this application, the second electronic device may be one electronic device or multiple electronic devices.

[0050] In some embodiments of this application, the second file range can be the entire storage space of the second electronic device, or it can be a range specified by the user, such as a folder specified by the user. After the first electronic device receives the first input, the first electronic device sends an instruction message to the second electronic device. After receiving the instruction message, the second electronic device starts a file scanning program to scan the second file range in the second electronic device to obtain the files within the second file range.

[0051] In some embodiments of this application, the second electronic device and the first electronic device are electronic devices that log in using the same account. For example, a mobile phone and a tablet computer that log in using a user's phone number.

[0052] In some embodiments of this application, prior to step 102, the file processing method applied to a first electronic device provided in this application may further include: receiving a seventh input; and in response to the seventh input, setting a first file range and a second file range according to the seventh input.

[0053] In some embodiments of this application, the seventh input in these embodiments is used to select a first file range and a second file range.

[0054] In some embodiments of this application, a file range selection interface may be displayed. This interface may include multiple file range options for a first electronic device and multiple file range options for a second electronic device. The user selects a file range by checking the corresponding file range options.

[0055] In some embodiments of this application, when the user selects files from a third-party application, the third-party application's authorization interface can be displayed. When the user authorizes access to the application's files through this authorization interface, a file scanning program is started to scan the files within that file range to obtain the files. When the user authorizes access to the application's files through this authorization interface, the file scanning program is prohibited from scanning the files within that file range.

[0056] Step 104: Receive files within the second file range sent by the second electronic device;

[0057] In some embodiments of this application, after scanning a second file range and obtaining files within that range, the second electronic device sends the files within the second file range to the first electronic device, and the first electronic device receives the files within the second file range sent by the second electronic device.

[0058] Step 105: Cluster the files in the first file range and the files in the second file range to obtain multiple file groups;

[0059] In some embodiments of this application, after the first electronic device scans out files within a first file range and receives files within a second file range sent by the second electronic device, the files within the first file range and the files within the second file range are clustered to obtain multiple file groups.

[0060] In some embodiments of this application, when clustering files within a first file range and files within a second file range, clustering can be performed according to file name or file content.

[0061] When clustering by file name, the name similarity between files within a first file range and files within a second file range can be calculated, and files with a name similarity greater than a first threshold are grouped together. When clustering by file content, the content similarity between files within a first file range and files within a second file range can be calculated, and files with a content similarity greater than a second threshold are grouped together. The first and second thresholds can be set according to actual needs.

[0062] In some embodiments of this application, when clustering according to file name or file content, a Bidirectional Encoder Representations from Transformers (BERT) model can be used to compare the semantic features of file name or file content, and files with semantic feature similarity greater than a similarity threshold can be identified as a file group.

[0063] For example, a file group may include files such as: XX paper draft, XX paper final, XX paper final version, XX paper July 3rd revised version, etc.

[0064] Step 106: Display multiple identification information; where each identification information corresponds to a file group.

[0065] For example, such as Figure 2 As shown, Figure 2 These are schematic diagrams illustrating the display of identification information provided in some embodiments of this application. Figure 2 Two identifiers are shown: one is "XX Conference" and the other is "XX Paper".

[0066] In this embodiment, the process involves receiving a first input; responding to the first input, acquiring files within a first file range in a first electronic device; sending instruction information to a second electronic device, wherein the instruction information instructs the second electronic device to send files within a second file range in the second electronic device to the first electronic device; receiving the files within the second file range sent by the second electronic device; clustering the files within the first file range and the files within the second file range to obtain multiple file groups; and displaying multiple identification information, wherein each identification information corresponds one-to-one with a file group. Thus, by clustering the files within the first file range in the first electronic device and the files within the second file range in the second electronic device into multiple file groups and displaying the identification information corresponding to each file group, the user can find the files included in the file group corresponding to the displayed identification information, eliminating the need for the user to search separately in the first and second electronic devices, thereby improving file search efficiency.

[0067] In some embodiments of this application, after step 106, the file processing method provided in this application may further include: receiving a second input on first identification information; wherein the first identification information is any one of a plurality of identification information; in response to the second input, displaying the files included in the first file group and the source of each file; wherein the first file group is a file group corresponding to the first identification information.

[0068] In some embodiments of this application, the second input is used to display the files included in the file group and the source of each file. The second input in these embodiments includes, but is not limited to: touch input of identification information by the user using a touch device such as a finger or stylus; wherein, touch input includes, but is not limited to, click input, swipe input, etc. Click input can be a single click, double click, or any number of clicks, and can also be a long press or short press; specific gesture input can be any one of a single click gesture, swipe gesture, drag gesture, long press gesture, area change gesture, double press gesture, or double click gesture. The second input in these embodiments can be set and modified adaptively according to actual needs.

[0069] For example, when the user clicks Figure 2 Following the "XX Paper" identifier, the file group "XX Paper" containing the "XX Paper" identifier and the source of each file are displayed, such as... Figure 3 As shown. Figure 3This is a schematic diagram illustrating the files and their sources included in a file group, provided in some embodiments of this application. The file group "XX Thesis" corresponding to the "XX Thesis" identifier information includes six files: XX Thesis Draft, XX Thesis Final, XX Thesis Final Draft, XX Thesis July 3rd Revised Version, XX Thesis Final Draft Version 1, and XX Thesis Revised Draft. The XX Thesis Draft, XX Thesis Final, and XX Thesis Final Draft originate from device A, while the XX Thesis July 3rd Revised Version, XX Thesis Final Draft Version 1, and XX Thesis Revised Draft originate from device B. It is understood that one of device A and device B is the first electronic device in this application embodiment, and the other device is the second electronic device in this application embodiment.

[0070] In this embodiment, the user can find the files included in the file group by performing an input on the displayed identification information corresponding to the file group, without having to search separately in the first and second electronic devices, thus improving the efficiency of file search.

[0071] In some embodiments of this application, when listing the files included in a file group and the source of each file, the last modification time of each file can also be displayed.

[0072] In some embodiments of this application, after displaying the files included in the first file group and the source of each file, the file processing method provided in the embodiments of this application may further include: receiving a third input; in response to the third input, displaying the files included in the first file group and the source of each file in at least two dimensions; wherein, the at least two dimensions include at least a time dimension and a device dimension.

[0073] In some embodiments of this application, the third input is used to trigger the display of files included in the file group and the source of each file in at least two dimensions. Exemplarily, the third input in this application is a two-finger swipe in opposite directions on the screen. In this application, the time dimension represents the last modification time of the file, and the device dimension represents the source of the file.

[0074] For example, when a user is Figure 3 The interface shown displays the files in the "XX Papers" file group and the source of each file by swiping two fingers in opposite directions on the screen, arranged by time and device dimensions. Figure 4 As shown. Figure 4 These are schematic diagrams provided by some embodiments of this application, showing the files included in a file group and the source of each file in terms of time and device dimensions.

[0075] In this embodiment of the application, by displaying the files included in the file group and the source of each file in terms of time and device dimensions, users can directly know the modification order and source of the files.

[0076] In some embodiments of this application, the user can adjust the granularity of the time dimension, wherein the granularity of the time dimension includes, but is not limited to, year, month, week, day, hour, etc.

[0077] In some embodiments of this application, at least two dimensions may also include a modifier dimension. When displaying the files included in the first file group and the source of each file in at least two dimensions, the file modifier can be marked on the file identifier corresponding to the file included in the first file group, or the file identifier can be filled with different colors to represent different modifiers.

[0078] In some embodiments of this application, after displaying the files included in the first file group and the source of each file, the file processing method provided in this application further includes: receiving a fourth input on a first file and a second file included in the first file group; and in response to the fourth input, displaying file difference information of the first file and the second file.

[0079] In some embodiments of this application, the fourth input is used to trigger a comparison of the differences between two files and to display the difference information between the two files. Specifically, the fourth input can be the click input after the user selects two files to be compared and clicks the "Compare" control.

[0080] For example, such as Figure 5 As shown, Figure 5 These are schematic diagrams illustrating the differences between two files, provided in some embodiments of this application. Figure 5 The document shows the differences between the final draft of paper XX and version 1 of the final draft of paper XX. Specifically, in... Figure 5 In the document, the difference between the two files is the text in bold and the text in underline.

[0081] In some embodiments of this application, when displaying the difference information between two files, the difference information can be displayed in a specific way, such as highlighting, bolding the font, using a specific color, underlining, etc. Annotation information can also be displayed at the difference information points between the two files, which may include information such as the modifying device, the modifier, and the modification time.

[0082] In some embodiments of this application, when displaying the difference information between two files, the user can also view either file by inputting information, for example, by swiping the screen. For instance, swiping left displays one of the two files, and swiping right displays the other.

[0083] In this embodiment of the application, the user does not need to manually open the two files for comparison. The files can be automatically compared and the difference information between the two files can be displayed, which can improve the efficiency of file comparison.

[0084] In some embodiments of this application, after displaying the files included in the first file group and the source of each file, the file processing method provided in the embodiments of this application further includes: receiving a fifth input to a third file among the files included in the first file group; in response to the fifth input, performing an editing operation on the third file corresponding to the fifth input; and storing the first edited content corresponding to the editing operation.

[0085] In some embodiments of this application, users can edit files, and after editing, click the "Save" control to save the edited file.

[0086] In some embodiments of this application, when storing the first edited content corresponding to the editing operation, an incremental analysis engine can be activated to compare the differences between the edited file and the file before editing, generating a high-compression patch file based on the incremental difference (BSDiff) algorithm, and storing the patch file. The patch file may further include information such as the editor's device information, editing timestamp, and digital signature.

[0087] In this embodiment of the application, by performing differential storage on the edited files, the storage space occupied can be saved.

[0088] In some embodiments of this application, after storing the first edited content corresponding to the editing operation, the file processing method provided in this application further includes: synchronizing the first synchronization content to the second electronic device when the network signal strength of the first electronic device is less than the signal strength threshold; wherein, when the network signal strength of the first electronic device is less than the signal strength threshold, the first synchronization content includes the first edited content; and when the network signal strength is greater than or equal to the signal strength threshold, the first synchronization content includes the edited third file.

[0089] In some embodiments of this application, the signal strength threshold can be set according to actual needs. When an electronic device starts the file synchronization function, the network signal strength of the first electronic device is detected. When the network signal strength of the first electronic device is greater than or equal to the signal strength threshold, that is, when the network signal of the first electronic device is good, the edited file is synchronized to other electronic devices; when the network signal strength of the first electronic device is less than the signal strength threshold, that is, when the network signal of the first electronic device is poor, only the edited content corresponding to the file editing operation is synchronized to other electronic devices.

[0090] In some embodiments of this application, when the electronic device does not activate the file synchronization function, the user can manually trigger file synchronization, for example, by clicking the "file synchronization" control or by issuing a file synchronization command via voice. In this case, the edited file will be synchronized to other electronic devices.

[0091] In some embodiments of this application, the file processing method provided in this application may further include: when synchronizing the first synchronization content to the second electronic device, if the third electronic device synchronizes the second synchronization content to the second electronic device, receiving a sixth input on the third synchronization content; wherein the third synchronization content is either the first synchronization content or the second synchronization content; and in response to the sixth input, synchronizing the third synchronization content to the second electronic device.

[0092] In some embodiments of this application, there are situations where a first electronic device synchronizes a file to a second electronic device, and a third electronic device also synchronizes the same file to the second electronic device. That is, two electronic devices modify the same file and synchronize it to another electronic device. In this case, file synchronization conflicts exist. The user can choose one file from the files synchronized from the first electronic device to the second electronic device and the files synchronized from the third electronic device to the second electronic device as the file to be synchronized, and then synchronize the user-selected file to the second electronic device. For example, suppose a user modifies a paper on their mobile phone and also modifies the paper on their computer, and simultaneously synchronizes the modified paper to a tablet. The user can then choose whether to synchronize the modified paper from the mobile phone or the computer to the tablet. If the user chooses to synchronize the modified paper from the computer to the tablet, then the modified paper from the computer will be synchronized to the tablet.

[0093] In some embodiments of this application, the user can also backtrack the file, that is, restore the modified file to the file before the modification.

[0094] When files are successfully synchronized, the user can be notified in the first way; when files are not successfully synchronized, the user can be notified in the second way. For example, the first way is to vibrate the electronic device for a short time, and the second way is to vibrate the electronic device for a long time.

[0095] Figure 6 This is a schematic diagram of the overall document processing flow provided by some embodiments of this application. The overall document processing flow includes:

[0096] Step 601: The user launches the multi-device file management application on the first electronic device;

[0097] Step 602: In the file selection interface of the multi-device file management application, the user selects the first file range for obtaining files on the first electronic device and the second file range for obtaining files on the second electronic device logged into the multi-device file management application with the same account;

[0098] It should be noted that in step 602, when the user selects files from third-party applications, the user needs to authorize the multi-device file management application to access the files through the third-party application's authorization interface.

[0099] Step 603: Obtain files within the first file range and files within the second file range;

[0100] Step 604: Cluster the files in the first file range and the files in the second file range to obtain multiple file groups;

[0101] Step 605: Display the identification information corresponding to each filegroup in the multiple filegroups;

[0102] Step 606: When the user clicks on the first identifier information, the files included in the file group corresponding to the first identifier information and the source of each file are displayed;

[0103] Step 607: When the user swipes in opposite directions on the screen using two fingers, the files included in the file group corresponding to the first identification information and the source of each file are displayed in terms of time and device dimensions;

[0104] Step 608: When the user selects two files and clicks the "Compare" control, display the differences between the two selected files;

[0105] Step 609: After the user clicks on a file, open the file, edit the file according to the user's editing operations, and generate the corresponding edit patch file;

[0106] Step 610: Determine the appropriate synchronization strategy based on the network conditions of the first electronic device;

[0107] In step 610, when the network signal of the first electronic device is good, the edited file is synchronized to the second electronic device; when the network signal of the first electronic device is poor, the edited patch file is synchronized to the second electronic device.

[0108] Step 611: Perform file synchronization conflict detection; if a file synchronization conflict exists, proceed to step 612; if no file synchronization conflict exists, proceed to step 613.

[0109] Step 612: The user selects the files that need to be synchronized to the second electronic device from the files with synchronization conflicts, and synchronizes the selected files to the second electronic device;

[0110] Step 613: Synchronize the files to the second electronic device;

[0111] Step 614: Provide feedback to the user on the file synchronization results.

[0112] The file processing method provided in this application can be executed by a file processing device. This application uses an example of a file processing device executing the file processing method to illustrate the file processing device provided in this application.

[0113] Figure 7 This is a schematic diagram of the structure of a document processing apparatus provided in some embodiments of this application. The document processing apparatus provided in the embodiments of this application can be applied to a first electronic device. The document processing apparatus 700 includes:

[0114] Receiver module 701 is used to receive the first input;

[0115] Acquisition module 702 is configured to acquire files within a first file range in response to a first input;

[0116] The sending module 703 is used to send instruction information to the second electronic device; wherein, the instruction information is used to instruct the second electronic device to send a file within a second file range in the second electronic device to the first electronic device;

[0117] The receiving module 701 is also configured to: receive files within the second file range of the second electronic device sent by the second electronic device;

[0118] Clustering module 704 is used to cluster files in the first file range and files in the second file range to obtain multiple file groups;

[0119] Display module 705 is used to display multiple identification information; wherein, the multiple identification information corresponds one-to-one with multiple file groups.

[0120] In this embodiment, the process involves receiving a first input; responding to the first input, acquiring files within a first file range in a first electronic device; sending instruction information to a second electronic device, wherein the instruction information instructs the second electronic device to send files within a second file range in the second electronic device to the first electronic device; receiving the files within the second file range sent by the second electronic device; clustering the files within the first file range and the files within the second file range to obtain multiple file groups; and displaying multiple identification information, wherein each identification information corresponds one-to-one with a file group. Thus, by clustering the files within the first file range in the first electronic device and the files within the second file range in the second electronic device into multiple file groups and displaying the identification information corresponding to each file group, the user can find the files included in the file group corresponding to the displayed identification information, eliminating the need for the user to search separately in the first and second electronic devices, thereby improving file search efficiency.

[0121] In some embodiments of this application, the clustering module 704 is specifically used for:

[0122] Calculate the name similarity between files within the first file range and files within the second file range, and identify files whose name similarity is greater than a first threshold as a file group;

[0123] or,

[0124] Calculate the content similarity between files within the first file range and files within the second file range, and identify files with a content similarity greater than a second threshold as a file group.

[0125] In some embodiments of this application, the receiving module 701 is further configured to:

[0126] Receive a second input for the first identification information; wherein the first identification information is any one of a plurality of identification information;

[0127] The display module 705 is also used for:

[0128] In response to the second input, the files included in the first file group and the source of each file are displayed; wherein, the first file group is the file group corresponding to the first identification information.

[0129] In this embodiment, the user can find the files included in the file group corresponding to the displayed file group by performing an input on the identification information corresponding to the identification information, without the need for the user to search separately on the first electronic device and the second electronic device, which can improve the efficiency of file search.

[0130] In some embodiments of this application, the receiving module 701 is further configured to:

[0131] Receive third input;

[0132] The display module 705 is also used for:

[0133] In response to a third input, the files included in the first file group and the source of each file are displayed in at least two dimensions; wherein the at least two dimensions include at least a time dimension and a device dimension.

[0134] In this embodiment of the application, by displaying the files included in the file group and the source of each file in terms of time and device dimensions, users can directly know the modification order and source of the files.

[0135] In some embodiments of this application, the receiving module 701 is further configured to:

[0136] Receive a fourth input for the first and second files included in the first filegroup;

[0137] The display module 705 is also used for:

[0138] In response to the fourth input, display the file difference information between the first and second files.

[0139] In this embodiment of the application, the user does not need to manually open the two files for comparison. The files can be automatically compared and the difference information between the two files can be displayed, which can improve the efficiency of file comparison.

[0140] In some embodiments of this application, the receiving module 701 is further configured to:

[0141] Receive the fifth input for the third file among the files included in the first filegroup;

[0142] The document processing apparatus provided in this application embodiment also includes:

[0143] The editing module is used to perform editing operations on the third file corresponding to the fifth input in response to the fifth input;

[0144] The storage module is used to store the first edited content corresponding to the editing operation.

[0145] In this embodiment of the application, by performing differential storage on the edited files, the storage space occupied can be saved.

[0146] In some embodiments of this application, the document processing apparatus provided in this application further includes:

[0147] A synchronization module is used to synchronize first synchronization content to a second electronic device when the network signal strength of the first electronic device is less than the signal strength threshold; wherein, when the network signal strength of the first electronic device is less than the signal strength threshold, the first synchronization content includes first edited content; and when the network signal strength is greater than or equal to the signal strength threshold, the first synchronization content includes an edited third file.

[0148] In some embodiments of this application, the receiving module 701 is further configured to:

[0149] When synchronizing the first synchronization content to the second electronic device, if the third electronic device synchronizes the second synchronization content to the second electronic device, a sixth input on the third synchronization content is received; wherein the third synchronization content is either the first synchronization content or the second synchronization content.

[0150] The synchronization module is also used for:

[0151] In response to the sixth input, the third synchronization content is synchronized to the second electronic device.

[0152] In some embodiments of this application, the receiving module 701 is further configured to:

[0153] Receive the seventh input;

[0154] The document processing apparatus provided in this application embodiment also includes:

[0155] The settings module is used to respond to the seventh input and set the first file range and the second file range based on the seventh input.

[0156] In some embodiments of this application, the second electronic device and the first electronic device are electronic devices that log in using the same account.

[0157] The first electronic device in this application embodiment can be a terminal, or it can be any other device besides a terminal. For example, the first electronic device can be a mobile phone, tablet computer, laptop computer, handheld computer, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not make specific limitations.

[0158] The first electronic device in this application embodiment can be an electronic device with an operating system. The operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system.

[0159] The document processing device provided in this application embodiment can achieve... Figures 1 to 6 The various processes implemented in the document processing method embodiment will not be described again here to avoid repetition.

[0160] Optionally, such as Figure 8 As shown, this application embodiment also provides an electronic device 800, including a processor 801 and a memory 802. The memory 802 stores a program or instructions that can run on the processor 801. When the program or instructions are executed by the processor 801, they implement the various steps of the file processing method embodiment provided in this application embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0161] Figure 9 This is a schematic diagram of the hardware structure of an electronic device that implements some embodiments of this application.

[0162] The electronic device 900 includes, but is not limited to, components such as: radio frequency unit 901, network module 902, audio output unit 903, input unit 904, sensor 905, display unit 906, user input unit 907, interface unit 908, memory 909, and processor 910.

[0163] Those skilled in the art will understand that the electronic device 900 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 910 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 9 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0164] The user input unit 907 is used to: receive a first input;

[0165] The processor 910 is configured to: in response to a first input, acquire files within a first file range in the electronic device 900; send instruction information to a second electronic device; wherein the instruction information is used to instruct the second electronic device to send files within a second file range in the second electronic device to the electronic device 900; receive files within a second file range in the second electronic device sent by the second electronic device; and cluster the files within the first file range and the files within the second file range to obtain multiple file groups;

[0166] The display unit 906 is used to display multiple identification information; wherein each of the multiple identification information corresponds to a multiple file group.

[0167] In this embodiment, the process involves receiving a first input; responding to the first input by acquiring files within a first file range; sending instruction information to a second electronic device, wherein the instruction information instructs the second electronic device to send files within a second file range; receiving the files within the second file range sent by the second electronic device; clustering the files within the first and second file ranges to obtain multiple file groups; and displaying multiple identification information, wherein each identification information corresponds one-to-one with a file group. Thus, by clustering files within two file ranges in two electronic devices into multiple file groups and displaying the corresponding identification information for each file group, the user can find the files included in the file group corresponding to the displayed identification information, eliminating the need for separate searches in the first and second electronic devices and improving file search efficiency.

[0168] In some embodiments of this application, the processor 910 is specifically used for:

[0169] Calculate the name similarity between files within the first file range and files within the second file range, and identify files whose name similarity is greater than a first threshold as a file group;

[0170] or,

[0171] Calculate the content similarity between files within the first file range and files within the second file range, and identify files with a content similarity greater than a second threshold as a file group.

[0172] In some embodiments of this application, the user input unit 907 is further configured to:

[0173] Receive a second input for the first identification information; wherein the first identification information is any one of a plurality of identification information;

[0174] The display unit 906 is also used for:

[0175] In response to the second input, the files included in the first file group and the source of each file are displayed; wherein, the first file group is the file group corresponding to the first identification information.

[0176] In this embodiment, the user can find the files included in the file group by performing an input on the displayed identification information corresponding to the file group, without having to search on two different electronic devices, thus improving file search efficiency.

[0177] In some embodiments of this application, the user input unit 907 is further configured to:

[0178] Receive third input;

[0179] The display unit 906 is also used for:

[0180] In response to a third input, the files included in the first file group and the source of each file are displayed in at least two dimensions; wherein the at least two dimensions include at least a time dimension and a device dimension.

[0181] In this embodiment of the application, by displaying the files included in the file group and the source of each file in terms of time and device dimensions, users can directly know the modification order and source of the files.

[0182] In some embodiments of this application, the user input unit 907 is further configured to:

[0183] Receive a fourth input for the first and second files included in the first filegroup;

[0184] The display unit 906 is also used for:

[0185] In response to the fourth input, display the file difference information between the first and second files.

[0186] In this embodiment of the application, the user does not need to manually open the two files for comparison. The files can be automatically compared and the difference information between the two files can be displayed, which can improve the efficiency of file comparison.

[0187] In some embodiments of this application, the user input unit 907 is further configured to:

[0188] Receive the fifth input for the third file among the files included in the first filegroup;

[0189] Processor 910 is also used to: in response to the fifth input, perform an editing operation on the third file corresponding to the fifth input;

[0190] The memory 909 is used to store the first edited content corresponding to the edit operation.

[0191] In this embodiment of the application, by performing differential storage on the edited files, the storage space occupied can be saved.

[0192] In some embodiments of this application, the processor 910 is also used for:

[0193] When the network signal strength of electronic device 900 is less than the signal strength threshold, the first synchronization content is synchronized to the second electronic device; wherein, when the network signal strength of electronic device 900 is less than the signal strength threshold, the first synchronization content includes the first edited content; when the network signal strength is greater than or equal to the signal strength threshold, the first synchronization content includes the edited third file.

[0194] In some embodiments of this application, the user input unit 907 is further configured to:

[0195] When synchronizing the first synchronization content to the second electronic device, if the third electronic device synchronizes the second synchronization content to the second electronic device, a sixth input on the third synchronization content is received; wherein the third synchronization content is either the first synchronization content or the second synchronization content.

[0196] The processor 910 is also used for:

[0197] In response to the sixth input, the third synchronization content is synchronized to the second electronic device.

[0198] In some embodiments of this application, the user input unit 907 is further configured to:

[0199] Receive the seventh input;

[0200] Processor 910 is also configured to: in response to a seventh input, set a first file range and a second file range based on the seventh input.

[0201] In some embodiments of this application, the second electronic device and the electronic device 900 are electronic devices that log in using the same account.

[0202] It should be understood that, in this embodiment, the input unit 904 may include a graphics processing unit (GPU) 9041 and a microphone 9042. The GPU 9041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 906 may include a display panel 9061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 907 includes at least one of a touch panel 9071 and other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0203] The memory 909 can be used to store software programs and various data. The memory 909 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 909 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 909 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0204] Processor 910 may include one or more processing units; optionally, processor 910 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 910.

[0205] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the file processing method provided in this application and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0206] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0207] This application also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the file processing method provided in this application and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0208] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0209] This application also provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the file processing method embodiment provided in this application, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0210] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0211] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0212] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A file processing method, characterized in that, Applied to a first electronic device, the method includes: Receive the first input; In response to the first input, retrieve files within a first file range from the first electronic device; Sending instruction information to a second electronic device; wherein the instruction information is used to instruct the second electronic device to send a file within a second file range of the second electronic device to the first electronic device; Receive files within the second file range sent by the second electronic device; The files within the first file range and the files within the second file range are clustered to obtain multiple file groups; Multiple identification information is displayed; wherein, each of the multiple identification information corresponds one-to-one with the multiple file groups.

2. The method according to claim 1, characterized in that, The step of clustering files within the first file range and files within the second file range to obtain multiple file groups includes: Calculate the name similarity between files within the first file range and files within the second file range, and identify files whose name similarity is greater than a first threshold as a file group; or, Calculate the content similarity between files within the first file range and files within the second file range, and identify files with a content similarity greater than a second threshold as a file group.

3. The method according to claim 1, characterized in that, After displaying multiple identification information, the method further includes: Receive a second input for the first identification information; wherein the first identification information is any one of the plurality of identification information; In response to the second input, the files included in the first file group and the source of each file are displayed; wherein the first file group is the file group corresponding to the first identification information.

4. The method according to claim 3, characterized in that, After displaying the files included in the first file group and the source of each file, the method further includes: Receive third input; In response to the third input, the files included in the first file group and the source of each file are displayed in at least two dimensions; wherein the at least two dimensions include at least a time dimension and a device dimension.

5. The method according to claim 3, characterized in that, After displaying the files included in the first file group and the source of each file, the method further includes: Receive a fourth input for the first and second files included in the first file group; In response to the fourth input, file difference information between the first file and the second file is displayed.

6. The method according to claim 3, characterized in that, After displaying the files included in the first file group and the source of each file, the method further includes: Receive a fifth input for a third file among the files included in the first file group; In response to the fifth input, an editing operation corresponding to the fifth input is performed on the third file to obtain the first edited content; Store the first edited content.

7. A document processing device, characterized in that, Applied to a first electronic device, the device includes: The receiving module is used to receive the first input; The acquisition module is configured to, in response to the first input, acquire files within a first file range in the first electronic device; A sending module is used to send instruction information to a second electronic device; wherein the instruction information is used to instruct the second electronic device to send a file within a second file range of the second electronic device to the first electronic device; The receiving module is also configured to: receive files within the second file range sent by the second electronic device; The clustering module is used to cluster the files in the first file range and the files in the second file range to obtain multiple file groups; The display module is used to display multiple identification information; wherein, the multiple identification information corresponds one-to-one with the multiple file groups.

8. The apparatus according to claim 7, characterized in that, The clustering module is specifically used for: Calculate the name similarity between files within the first file range and files within the second file range, and identify files whose name similarity is greater than a first threshold as a file group; or, Calculate the content similarity between files within the first file range and files within the second file range, and identify files with a content similarity greater than a second threshold as a file group.

9. The apparatus according to claim 7, characterized in that, The receiving module is also used for: Receive a second input for the first identification information; wherein the first identification information is any one of the plurality of identification information; The display module is also used for: In response to the second input, the files included in the first file group and the source of each file are displayed; wherein the first file group is the file group corresponding to the first identification information.

10. The apparatus according to claim 9, characterized in that, The receiving module is also used for: Receive third input; The display module is also used for: In response to the third input, the files included in the first file group and the source of each file are displayed in at least two dimensions; wherein the at least two dimensions include at least a time dimension and a device dimension.