File storage method and device
By using contact or group identifiers and associated message keywords as file identifiers in electronic devices, the problem of difficult file search is solved and the search efficiency is improved.
Patent Information
- Application Number
- CN202110298647.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-19
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2041-08-26
AI Technical Summary
In electronic devices, it is difficult to find files received within the application, especially due to the lack of identification marks when storing files, resulting in inefficient searches.
By obtaining the target information of the file as the file identifier, the target information includes the identity of the contact person or the identification of the communication group, and the keywords in the associated message, these highly recognizable keywords are used as the file identifier when storing the file.
It improves the degree of file recognition, reduces the difficulty of file search, and makes the search process more efficient.
Smart Images

Figure CN112925756B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile communications, and specifically relates to a file storage method and device. Background Art
[0002] With the rapid development of mobile communication technology, various mobile and non-mobile electronic devices have become indispensable tools in all aspects of people's lives. The functions of various applications (APPs) on electronic devices have also gradually improved. They no longer simply serve as communication functions, but increasingly provide users with various intelligent services, bringing great convenience to their work and daily lives.
[0003] However, as the frequency of use of electronic devices gradually increases, a large number of files are stored in electronic devices, and it is difficult for users to find files in electronic devices. Taking communication apps as an example, communication through communication apps has become the main communication method in communication scenarios. In the process of using communication apps, the need for file storage becomes more and more frequent. In the prior art, electronic devices usually store files in the folder of the app; however, after an electronic device has been used for a long time, there are more and more files of various kinds, and it becomes difficult to find them in a large number of files. It is difficult to quickly and effectively locate the location of the file being searched for. It usually takes many steps to find the file, which takes a long time and reduces the user's operating efficiency. Summary of the Invention
[0004] The purpose of the embodiments of the present application is to provide a file storage method and device that can solve the problem in the prior art of difficulty in finding files received in an APP in an electronic device.
[0005] In a first aspect, an embodiment of the present application provides a file storage method, the method comprising:
[0006] When receiving a first file through a target application, obtaining target information of the first file;
[0007] The target information includes at least one of a first keyword and a second keyword; the first keyword includes a first identifier or a second identifier; the first identifier is an identifier of a contact corresponding to the first file, or the second identifier is an identifier of a communication group corresponding to the first file; the second keyword includes a keyword extracted from an associated message of the first file;
[0008] The first file is stored, and the target information is used as a file identifier of the first file.
[0009] In a second aspect, an embodiment of the present application further provides a file storage device, the file storage device comprising:
[0010] an acquisition module, configured to acquire target information of a first file when the first file is received through a target application;
[0011] The target information includes at least one of a first keyword and a second keyword; the first keyword includes a first identifier or a second identifier; the first identifier is an identifier of a contact corresponding to the first file, or the second identifier is an identifier of a communication group corresponding to the first file; the second keyword includes a keyword extracted from an associated message of the first file;
[0012] A storage module is used to store the first file and use the target information as a file identifier of the first file.
[0013] In a third aspect, an embodiment of the present application further provides an electronic device comprising a memory, a processor, and a program or instruction stored in the memory and executable on the processor, wherein the processor implements the steps in the file storage method described above when executing the program or instruction.
[0014] In a fourth aspect, an embodiment of the present application further provides a readable storage medium having a program or instruction stored thereon, which implements the steps in the file storage method described above when the program or instruction is executed by a processor.
[0015] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the method described above.
[0016] In an embodiment of the present application, when a first file is received through a target application, target information of the first file is obtained; the target information includes at least one of a first keyword and a second keyword; the first keyword includes a first identifier or a second identifier; the first identifier is an identifier of a contact person corresponding to the first file, or the second identifier is an identifier of a communication group corresponding to the first file; the second keyword includes a keyword extracted from an associated message of the first file; the first file is stored, and the target information is used as a file identifier of the first file to improve the recognition degree of the file identifier and reduce the difficulty of file search. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0018] Figure 1 A flowchart showing a file storage method provided by an embodiment of the present application;
[0019] Figure 2 A schematic diagram showing a first example provided in an embodiment of the present application;
[0020] Figure 3 One of the schematic diagrams showing the second example provided in the embodiments of the present application;
[0021] Figure 4 A second schematic diagram showing a second example provided in an embodiment of the present application;
[0022] Figure 5 A flowchart showing the third example provided in an embodiment of the present application.
[0023] Figure 6 A block diagram showing a file storage device provided by an embodiment of the present application;
[0024] Figure 7 A block diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0026] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects and are not used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments of this application can be implemented in an order other than those illustrated or described herein. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0027] The following describes in detail the file storage method provided by the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0028] See also Figure 1An embodiment of the present application provides a file storage method. Optionally, the method can be applied to electronic devices, including various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, as well as various forms of mobile stations (MS), terminal devices, etc.
[0029] The method comprises:
[0030] Step 101, when receiving a first file through a target application, obtaining target information of the first file;
[0031] The first file may be a picture, a document, an audio or video file, etc. When the electronic device receives the first file in the application, it obtains the target information of the first file.
[0032] The target information includes at least one of a first keyword and a second keyword.
[0033] Specifically, the first keyword includes a first identifier or a second identifier.
[0034] The first identifier is the identifier of the contact corresponding to the first file. For example, the first identifier is the contact name of the contact in the target application, such as the nickname of the contact or the name of the note. The contact is a contact in the target application. For example, the target application is a communication APP, and the contact is a contact in the APP. As a first example, Figure 2 As shown, if the first file F of contact A is received in APP-X, the first keyword includes "contact A"; it should be noted that the contacts in the embodiment of the present application include natural persons and other forms of contacts (other forms of contacts such as public accounts).
[0035] Or the second identifier is the identifier of the communication group corresponding to the first file, and the communication group is the communication group within the target application; the second identifier is the group name of the communication group that receives the first file within the target application; accordingly, the group name is, for example, the group's own name or the annotated name.
[0036] The second keyword includes a keyword extracted from the associated message of the first file. The associated message is, for example, a message before or after receiving the first file; Figure 2 , the first file F of contact A is received, and the message M before receiving the first file F is: Y; then Y is the second keyword of the first file.
[0037] Step 102: Store the first file and use the target information as a file identifier of the first file.
[0038] After determining the target information of the first file, the first file is stored, and the keyword is used as the file identifier of the first file; the file identifier can be a file name. For example, in the first example, if the target information includes the second keyword, then when storing the first file F, "Y" is used as the file name; or if the target information includes the first keyword and the second keyword, then "contact AY" is used as the file name; in this way, based on the keyword, when subsequently searching for the first file, the user can search for the first file by keyword; in the prior art, the names of files are usually irregular when they are stored, and it is difficult to obtain the key information of the file from the file name alone, resulting in high user retrieval costs. For example, for files received in an APP, the file name is usually stored as a numerical sequence, such as using the numbers in the year, month, and day as the name. For example, the file received at 13:15 on February 7, 2021 is usually stored as: 202101071315; and this numerical sequence is difficult for the user to remember, and when there are many files with similar numerical sequences, the difficulty of finding them is further increased. In the embodiment of the present application, keywords with strong recognition are used as file identifiers for storage to reduce the difficulty of file search.
[0039] In an embodiment of the present application, when a first file is received through a target application, target information of the first file is obtained; the target information includes at least one of a first keyword and a second keyword; the first keyword includes a first identifier or a second identifier; the first identifier is the identifier of a contact corresponding to the first file, or the second identifier is the identifier of a communication group corresponding to the first file; the second keyword includes a keyword extracted from an associated message of the first file; the first file is stored, and the target information is used as the file identifier of the first file, thereby improving the recognition level of the file identifier and reducing the difficulty of file search. The embodiment of the present application solves the problem in the prior art of difficulty in searching for files received in an APP in an electronic device.
[0040] In an optional embodiment, the associated message includes the first N messages and at least one of the last N messages of the first file in the target communication interface; wherein N is a positive integer; the target communication interface is the communication interface for receiving the first file in the target application.
[0041] Optionally, keywords in the first N messages and the last N messages may be detected according to a preset keyword detection algorithm, such as a text ranking algorithm (Text Rank), a topic page ranking algorithm (Topical PageRank, TPR), and the like.
[0042] The first N messages include the N messages received before the time of receiving the first file, and the last N messages include the N messages received after the time of receiving the first file. In daily communication, when a sending user sends multiple messages continuously, they may not be strictly sorted according to the sending time of each message when they arrive at the receiving user's electronic device. For example, Figure 2 In the interface shown in , the sending time of message M and file F is adjacent and message M is sent before file F. However, when reaching the receiving user, the order of message M and file F may have been disrupted, or other messages may have been interspersed in between. Therefore, the selection range of related messages is expanded to ensure the accuracy of the keywords.
[0043] In an optional embodiment, if the target information includes the first keyword, after storing the first file, the method includes:
[0044] receiving a first input instructing to find a file or to display a file;
[0045] In response to the first input, the first files are displayed according to the first keyword classification.
[0046] In which, the first keyword includes a first identifier or a second identifier; the first identifier is the identifier of the contact person corresponding to the first file, or the second identifier is the identifier of the communication group corresponding to the first file; the second keyword includes a keyword extracted from an associated message of the first file; after the first file is stored with the target information as the file identifier, if a first input is received, and the first input indicates searching for a file or displaying a file, the first file is displayed according to the first keyword classification; in which, searching for a file is a file search operation, such as a search operation received in an electronic file management interface; displaying a file is such as launching a file management interface.
[0047] If a first input indicating display of files is received, the first files are displayed according to the first keyword classification; for example, in the file management interface, all files corresponding to the first keyword are displayed in a folder; as a second example, see Figure 3 , when the first keyword includes contact A, the first document is displayed with the first keyword as a dimension, such as Figure 3 As shown by icon F; or when the first keyword includes contact A and contact B, the display interface is as follows Figure 4 As shown, the first files are displayed by classifying them using different contacts as first keywords.
[0048] In an optional embodiment, storing the first file includes:
[0049] If the electronic device includes a target folder corresponding to the target information, storing the first file in the target folder;
[0050] If the electronic device does not include the target folder, the target folder is created and the first file is stored in the target folder.
[0051] For the first keyword and / or the second keyword, when the first file corresponding to it is received, it is determined whether there is a target folder corresponding to the keyword in the electronic device. If it exists, the first file is directly stored in the target folder. If it does not exist, a new target folder is created and the first file is stored in the target folder. In this way, the first file corresponding to each keyword is stored in the corresponding target folder, which is convenient for subsequent search, file management and classification.
[0052] In an optional embodiment, using the target information as the file identifier of the first file includes:
[0053] If the target information includes the first keyword and the second keyword, the first keyword and the second keyword are combined into a file identifier of the first file to improve the recognition of the file identifier of the first file; and in the file identifier, the first keyword and the second keyword are separated by a preset identifier; taking the example of the first keyword including a contact name, such as "Contact A", and the second keyword including "Place B", the preset identifier is "-", then the file name is stored as "Contact AB Place", so that the first file is associated with both the first keyword and the second keyword. When a user enters the first keyword or the second keyword during a search operation, the first file can be found, thereby reducing the difficulty of finding the first file.
[0054] As a third example, see Figure 5 , Figure 5 A specific example of applying the file storage method provided by the embodiment of the present application is shown, which mainly includes the following steps:
[0055] Step 501: Long press the APP-W icon on the desktop and add the "Use Smart File Storage" option in the pop-up box.
[0056] Optionally, the long press operation may also be other input operations, such as multi-touch, continuous click touch, and other operations.
[0057] Step 502: Open APP-W and store the received first file using the keyword as the file name.
[0058] For example, in a single-person chat, for example, downloading an image, the contact's nickname is used as the storage directory, and the keyword extracted from the message following the contact and the file is used as the file name, separated by a "-". For example, the storage directory is xxx / Contact A, and the storage name is "Contact AB Address". "xxx" represents common characters in the file storage path of electronic devices.
[0059] If it is a multi-person chat (i.e. group chat), taking downloading pictures as an example, the group name is used as the storage directory, and the group name (B place travel) + the keyword (B place) extracted from the message after the file is used as the file name, separated by "-" in the middle. For example, the storage directory is xxx / B place travel, and the storage name is; B place travel_B place.
[0060] Step 503: Determine whether the target folder corresponding to the target information already exists:
[0061] If so, executing step 504, storing the first file in the target folder;
[0062] If it does not exist, execute step 505 to create a target folder corresponding to the target information and store the first file in the target folder.
[0063] Step 506: Display the first file by the keyword classification.
[0064] When the electronic device detects a long press on the desktop icon of an application such as APP-W, a new option is added to the pop-up window: Smart File Storage. After setting this option, the file storage in APP-W is named according to the naming method in step 502. In file management, file classification is modified and displayed as a keyword list instead of pictures, videos, and documents. This enables users to intelligently store files and automatically sort files according to rules, improving the user's file viewing speed and experience.
[0065] In an embodiment of the present application, when a first file is received through a target application, target information of the first file is obtained; the target information includes at least one of a first keyword and a second keyword; the first keyword includes a first identifier or a second identifier; the first identifier is an identifier of a contact person corresponding to the first file, or the second identifier is an identifier of a communication group corresponding to the first file; the second keyword includes a keyword extracted from an associated message of the first file; the first file is stored, and the target information is used as a file identifier of the first file to improve the recognition degree of the file identifier and reduce the difficulty of file search.
[0066] The above describes the file storage method provided by the embodiment of the present application. The following describes the file storage device provided by the embodiment of the present application with reference to the accompanying drawings.
[0067] It should be noted that the file storage method provided in the embodiments of the present application can be executed by a file storage device or a control module in the file storage device for executing the file storage method. In the embodiments of the present application, the file storage method provided in the embodiments of the present application is described by taking the file storage device executing the file storage method as an example.
[0068] See also Figure 6 , this embodiment of the application further provides a file storage device 600, including:
[0069] The acquisition module 601 is configured to acquire target information of a first file when the first file is received by a target application.
[0070] The first file may be a picture, a document, an audio or video file, etc. When the electronic device receives the first file in the application, it obtains the target information of the first file.
[0071] The target information includes at least one of a first keyword and a second keyword.
[0072] Specifically, the first keyword includes a first identifier or a second identifier.
[0073] The first identifier is the identifier of the contact corresponding to the first file. For example, the first identifier is the contact name of the contact in the target application, such as the nickname of the contact or the name of the note. The contact is a contact in the target application. For example, the target application is a communication APP, and the contact is a contact in the APP. As a first example, Figure 2 As shown, if the first file F of contact A is received in APP-X, the first keyword includes "contact A"; it should be noted that the contacts in the embodiment of the present application include natural persons and other forms of contacts (other forms of contacts such as public accounts).
[0074] Or the second identifier is the identifier of the communication group corresponding to the first file, and the communication group is the communication group within the target application; the second identifier is the group name of the communication group that receives the first file within the target application; accordingly, the group name is, for example, the group's own name or the annotated name.
[0075] The second keyword includes a keyword extracted from the associated message of the first file. The associated message is, for example, a message before or after receiving the first file; Figure 2 , the first file F of contact A is received, and the message M before receiving the first file F is: Y; then Y is the second keyword of the first file.
[0076] The storage module 602 is configured to store the first file and use the target information as a file identifier of the first file.
[0077] After determining the target information of the first file, the first file is stored, and the keyword is used as the file identifier of the first file; the file identifier can be a file name. For example, in the first example, if the target information includes the second keyword, then when storing the first file F, "Y" is used as the file name; or if the target information includes the first keyword and the second keyword, then "contact AY" is used as the file name; in this way, based on the keyword, when subsequently searching for the first file, the user can search for the first file by keyword; in the prior art, the names of files are usually irregular when they are stored, and it is difficult to obtain the key information of the file from the file name alone, resulting in high user retrieval costs. For example, for files received in an APP, the file name is usually stored as a numerical sequence, such as using the numbers in the year, month, and day as the name. For example, the file received at 13:15 on February 7, 2021 is usually stored as: 202101071315; and this numerical sequence is difficult for the user to remember, and when there are many files with similar numerical sequences, the difficulty of finding them is further increased. In the embodiment of the present application, keywords with strong recognition are used as file identifiers for storage to reduce the difficulty of file search.
[0078] In an optional embodiment, the associated message includes the first N messages and at least one of the last N messages of the first file in the target communication interface; wherein N is a positive integer; the target communication interface is the communication interface for receiving the first file in the target application.
[0079] In an optional embodiment, if the target information includes the first keyword, the apparatus 600 includes:
[0080] A search module, configured to receive a first input indicating searching for a file or displaying a file;
[0081] In response to the first input, the first files are displayed according to the first keyword classification.
[0082] In an optional embodiment, the storage module 602 includes:
[0083] a first storage submodule, configured to store the first file in a target folder corresponding to the target information if the electronic device includes the target folder;
[0084] The second storage submodule is configured to create the target folder if the electronic device does not include the target folder, and store the first file in the target folder.
[0085] In an optional embodiment, the storage module 602 includes:
[0086] The third storage submodule is used to combine the first keyword and the second keyword into a file identifier of the first file if the target information includes the first keyword and the second keyword; and in the file identifier, the first keyword and the second keyword are separated by a preset identifier.
[0087] In an embodiment of the present application, the acquisition module 601 acquires target information of the first file when receiving the first file through the target application; the target information includes at least one of a first keyword and a second keyword; the first keyword includes a first identifier or a second identifier; the first identifier is the identifier of the contact person corresponding to the first file, or the second identifier is the identifier of the communication group corresponding to the first file; the second keyword includes a keyword extracted from an associated message of the first file; the storage module 602 stores the first file and uses the target information as the file identifier of the first file to improve the recognition degree of the file identifier and reduce the difficulty of file search.
[0088] The file storage device in the embodiments of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), an ATM, or an kiosks, etc., which are not specifically limited in the embodiments of the present application.
[0089] The file storage device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0090] The file storage device provided in the embodiment of the present application can achieve Figures 1 to 5 To avoid repetition, the various processes implemented by the file storage device in the method embodiment are not described here.
[0091] Optionally, an embodiment of the present application also provides an electronic device, including a processor 710, a memory 709, and a program or instruction stored in the memory 709 and executable on the processor 710. When the program or instruction is executed by the processor 710, each process of the above-mentioned file storage method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0092] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0093] Figure 7 A schematic diagram of the hardware structure of an electronic device 700 for implementing various embodiments of the present application;
[0094] The electronic device 700 includes but is not limited to components such as a radio frequency unit 701 , a network module 702 , an audio output unit 703 , an input unit 704 , a sensor 705 , a display unit 706 , a user input unit 707 , an interface unit 708 , a memory 709 , a processor 710 , and a power supply 711 .
[0095] Those skilled in the art will understand that the electronic device 700 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 710 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.
[0096] The processor 710 is configured to obtain target information of the first file when the first file is received through the target application;
[0097] The target information includes at least one of a first keyword and a second keyword; the first keyword includes a first identifier or a second identifier; the first identifier is an identifier of a contact corresponding to the first file, or the second identifier is an identifier of a communication group corresponding to the first file; the second keyword includes a keyword extracted from an associated message of the first file;
[0098] The memory 709 is configured to store the first file and use the target information as a file identifier of the first file.
[0099] Optionally, the associated message includes the first N messages and at least one of the last N messages of the first file in the target communication interface; wherein N is a positive integer; the target communication interface is the communication interface for receiving the first file in the target application.
[0100] Optionally, the user input unit 707 is configured to receive a first input instructing to search for a file or display a file;
[0101] The processor 710 is configured to, in response to the first input, display the first file according to the first keyword classification.
[0102] Optionally, the memory 709 is configured to store the first file in a target folder corresponding to the target information if the electronic device includes the target folder;
[0103] If the electronic device does not include the target folder, the target folder is created and the first file is stored in the target folder.
[0104] Optionally, the memory 709 is used to combine the first keyword and the second keyword into a file identifier of the first file if the target information includes the first keyword and the second keyword; and in the file identifier, the first keyword and the second keyword are separated by a preset identifier.
[0105] In an embodiment of the present application, when a first file is received through a target application, target information of the first file is obtained; the target information includes at least one of a first keyword and a second keyword; the first keyword includes a first identifier or a second identifier; the first identifier is an identifier of a contact person corresponding to the first file, or the second identifier is an identifier of a communication group corresponding to the first file; the second keyword includes a keyword extracted from an associated message of the first file; the first file is stored, and the target information is used as a file identifier of the first file to improve the recognition degree of the file identifier and reduce the difficulty of file search.
[0106] It should be understood that in the embodiment of the present application, the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042. The graphics processor 7041 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 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, power keys, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here. The memory 709 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 710 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and applications, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 710.
[0107] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned file storage method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0108] 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 computer read-only memory (ROM), random access memory (RAM), a magnetic disk, or an optical disk.
[0109] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned file storage method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0110] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0111] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0112] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course 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 the present application, or the part that contributes to the prior art, can 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 a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0113] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A file storage method, characterized in that: The method comprises: When receiving a first file through a target application, obtaining target information of the first file; The target information includes at least one of a first keyword and a second keyword; the first keyword includes a first identifier or a second identifier; the first identifier is an identifier of a contact corresponding to the first file, and the second identifier is an identifier of a communication group corresponding to the first file; the second keyword includes a keyword extracted from an associated message of the first file; storing the first file, and using the target information as a file identifier of the first file; The associated message includes at least one of the first N messages and the last N messages of the first file in the target communication interface; wherein N is a positive integer; and the target communication interface is the communication interface in the target application program that receives the first file; The using the target information as the file identifier of the first file includes: If the target information includes the first keyword and the second keyword, the first keyword and the second keyword are combined into a file identifier of the first file; and in the file identifier, the first keyword and the second keyword are separated by a preset identifier.
2. The file storage method according to claim 1, wherein: If the target information includes the first keyword, after storing the first file, the method includes: receiving a first input instructing to find a file or to display a file; In response to the first input, the first files are displayed according to the first keyword classification.
3. The file storage method according to claim 1, wherein: The storing of the first file includes: If the electronic device includes a target folder corresponding to the target information, storing the first file in the target folder; If the electronic device does not include the target folder, the target folder is created and the first file is stored in the target folder.
4. A file storage device, characterized in that: The device comprises: an acquisition module, configured to acquire target information of a first file when the first file is received through a target application; The target information includes at least one of a first keyword and a second keyword; the first keyword includes a first identifier or a second identifier; the first identifier is an identifier of a contact corresponding to the first file, or the second identifier is an identifier of a communication group corresponding to the first file; the second keyword includes a keyword extracted from an associated message of the first file; a storage module, configured to store the first file and use the target information as a file identifier of the first file; The associated message includes at least one of the first N messages and the last N messages of the first file in the target communication interface; wherein N is a positive integer; and the target communication interface is the communication interface in the target application program that receives the first file; The storage module includes: The third storage submodule is used to combine the first keyword and the second keyword into a file identifier of the first file if the target information includes the first keyword and the second keyword; and in the file identifier, the first keyword and the second keyword are separated by a preset identifier.
5. The file storage device according to claim 4, wherein: If the target information includes the first keyword, the device includes: A search module, configured to receive a first input indicating searching for a file or displaying a file; In response to the first input, the first files are displayed according to the first keyword classification.
6. The file storage device according to claim 4, wherein: The storage module includes: a first storage submodule, configured to store the first file in a target folder corresponding to the target information if the electronic device includes the target folder; The second storage submodule is configured to create the target folder if the electronic device does not include the target folder, and store the first file in the target folder.
Citation Information
Patent Citations
Document management method and system, readable storage medium and electronic device
CN111666259A