CN112925756A - File storage method and device - Google Patents

File storage method and device Download PDF

Info

Publication number
CN112925756A
CN112925756A CN202110298647.7A CN202110298647A CN112925756A CN 112925756 A CN112925756 A CN 112925756A CN 202110298647 A CN202110298647 A CN 202110298647A CN 112925756 A CN112925756 A CN 112925756A
Authority
CN
China
Prior art keywords
file
keyword
target
identifier
identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110298647.7A
Other languages
Chinese (zh)
Inventor
张泰�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ioco Communication Software Co ltd
Original Assignee
Shenzhen Ioco Communication Software Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Ioco Communication Software Co ltd filed Critical Shenzhen Ioco Communication Software Co ltd
Priority to CN202110298647.7A priority Critical patent/CN112925756A/en
Publication of CN112925756A publication Critical patent/CN112925756A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems

Abstract

The application discloses a file storage method and device, and belongs to the field of mobile communication. The method comprises the following steps: when a first file is received through a target application program, acquiring target information of the first file; the target information comprises at least one of a first keyword and a second keyword; the first keyword comprises a first identifier or a second identifier; the first identification is an identification of a contact corresponding to a first file, or the second identification is an identification of a communication group corresponding to the first file; the second keywords comprise keywords extracted from the associated message of the first file; and storing the first file, and taking the target information as the file identifier of the first file.

Description

File storage method and device
Technical Field
The application belongs to the field of mobile communication, and particularly relates to a file storage method and device.
Background
With the rapid development of mobile communication technology, various mobile electronic devices and non-mobile electronic devices have become indispensable tools in various aspects of people's lives. The functions of various Application programs (APPs) of the electronic equipment are gradually improved, and the functions do not only play a role in communication, but also provide various intelligent services for users, so that great convenience is brought to the work and life of the users.
However, as the frequency of use of electronic devices gradually increases, a large number of files are stored in the electronic devices, and a user has difficulty in searching for the files in the electronic devices. Taking communication type APP as an example, communication through communication type APP has become a main communication mode in a communication scenario. In the process of using the communication APP, the requirement of file storage becomes more and more frequent. In the prior art, the electronic device storage file is usually stored in a folder of the APP; however, after the electronic device is used for a long time, various files are more and more, finding and searching among a large number of files becomes difficult, it is difficult to quickly and effectively locate the position of the found file, many steps are usually needed for finding, the time consumption is long, and the operation efficiency of a user is reduced.
Disclosure of Invention
An embodiment of the present application provides a file storage method and apparatus, which can solve the problem in the prior art that searching for a file received in an APP in an electronic device is difficult.
In a first aspect, an embodiment of the present application provides a file storage method, where the method includes:
when a first file is received through a target application program, acquiring target information of the first file;
the target information comprises at least one of a first keyword and a second keyword; the first keyword comprises a first identifier or a second identifier; the first identification is an identification of a contact corresponding to a first file, or the second identification is an identification of a communication group corresponding to the first file; the second keywords comprise keywords extracted from the associated message of the first file;
and storing the first file, and taking the target information as the file identifier of the first file.
In a second aspect, an embodiment of the present application further provides a file storage apparatus, where the file storage apparatus includes:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring target information of a first file when the first file is received through a target application program;
the target information comprises at least one of a first keyword and a second keyword; the first keyword comprises a first identifier or a second identifier; the first identification is an identification of a contact corresponding to a first file, or the second identification is an identification of a communication group corresponding to the first file; the second keywords comprise keywords extracted from the associated message of the first file;
and the storage module is used for storing the first file and taking the target information as the file identifier of the first file.
In a third aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a program or an instruction stored on the memory and executable on the processor, where the processor implements the steps in the file storage method as described above when executing the program or the instruction.
In a fourth aspect, the present application further provides a readable storage medium, on which a program or instructions are stored, and when the program or instructions are executed by a processor, the program or instructions implement the steps in the file storage method as described above.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method described above.
In the embodiment of the application, when a first file is received through a target application program, target information of the first file is acquired; the target information comprises at least one of a first keyword and a second keyword; the first keyword comprises a first identifier or a second identifier; the first identification is an identification of a contact corresponding to a first file, or the second identification is an identification of a communication group corresponding to the first file; the second keywords comprise keywords extracted from the associated message of the first file; and storing the first file, and taking the target information as the file identifier of the first file, so that the recognition degree of the file identifier is improved, and the difficulty of searching the file is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a flowchart illustrating a file storage method according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating a first example provided by an embodiment of the present application;
FIG. 3 shows one of the schematic diagrams of a second example provided by an embodiment of the present application;
fig. 4 shows a second schematic diagram of a second example provided by an embodiment of the present application;
fig. 5 shows a flowchart of a third example provided by the embodiment of the present application.
FIG. 6 shows a block diagram of a file storage device provided by an embodiment of the present application;
fig. 7 shows a block diagram of an electronic device provided by an embodiment of the application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes the file storage method provided by the embodiment of the present application in detail through a specific embodiment and an application scenario thereof with reference to the accompanying drawings.
Referring to fig. 1, an embodiment of the present application provides a file storage method, which is optionally applicable 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 (MSs), Terminal devices (Terminal devices), and the like.
The method comprises the following steps:
step 101, when a first file is received through a target application program, acquiring target information of the first file;
the first file can be a picture, a document, an audio/video file and the like; when the electronic equipment receives the first file in the application program, the target information of the first file is obtained.
The target information includes at least one of a first keyword and a second keyword.
Specifically, 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 first identifier is an identifier of a contact corresponding to the first file, such as a first identifier being a contact name of the contact in the target application, for example, a nickname or a remarked name of the contact. As a first example, as shown in fig. 2, if a first file F of a contact a is received in APP-X, the first keyword includes "contact a"; it should be noted that the contact in the embodiment of the present application includes natural persons and other forms of contacts (other forms of contacts such as public numbers).
Or the second identifier is an identifier of a communication group corresponding to the first file, and the communication group is a communication group in the target application program; the second identification is a group name of the communication group for receiving the first file in the target application program; accordingly, the group name is, for example, the name of the group itself or the name to be remarked.
The second keywords comprise keywords extracted from the associated message of the first file. The association message, for example, receives a previous message or a subsequent message of the first file; still referring to fig. 2, a first file F of contact a is received, and a message M before the first file F is received is: y is a; then Y is some second key of the first file.
And 102, storing the first file, and taking the target information as a file identifier of the first file.
After determining the target information of a first file, storing the first file, and taking keywords as a file identifier of the first file; the file identifier may be a file name, for example, in the first example, if the target information includes the second keyword, "Y certain" is taken as the file name when the first file F is stored; or the target information comprises a first keyword and a second keyword, and the contact person A-Y is used as a file name; therefore, based on the keywords, when the first file is searched subsequently, the user can search the first file through the keywords; in the prior art, the name is usually irregular when the file is stored, and the key information of the file is difficult to obtain only from the file name, so that the retrieval cost of a user is high. For example, files received within APP, the file name is typically stored as a sequence of numbers, for example, with the numbers in the year, month and day as names, such as files received at 13 o 15/2/7/2021 are typically stored as: 202101071315, respectively; the number sequence is difficult for users to remember, and when the number sequence has more files, the searching difficulty is further enhanced. In the embodiment of the application, the keywords with strong identification are used as the file identification for storage, so that the difficulty of searching the file is reduced.
In the embodiment of the application, when a first file is received through a target application program, target information of the first file is acquired; the target information comprises at least one of a first keyword and a second keyword; the first keyword comprises a first identifier or a second identifier; the first identification is an identification of a contact corresponding to a first file, or the second identification is an identification of a communication group corresponding to the first file; the second keywords comprise keywords extracted from the associated message of the first file; and storing the first file, and taking the target information as the file identifier of the first file, so that the recognition degree of the file identifier is improved, and the difficulty of searching the file is reduced. The embodiment of the application solves the problem that in the prior art, files received in the APP are searched in the electronic equipment and are difficult to search.
In an optional embodiment, the association 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 a communication interface for receiving the first file in the target application program.
Optionally, keywords in the first N messages and the last N messages may be detected according to a preset keyword detection algorithm, for example, a Text Rank algorithm (Text Rank), a topic Page ranking algorithm (TPR), and the like.
The first N messages include N messages received before the time of receiving the first file, and the last N messages include N messages received after the time of receiving the first file, and because multiple messages continuously sent by a sending-end user in the daily communication process may not be strictly ordered according to the sending time of each message when arriving in the electronic device of a receiving-end user, for example, in the interface shown in fig. 2, the sending time of the message M is adjacent to that of the file F and the message M is sent before the file F, but when arriving at the receiving-end user, the order of the message M and the file F may be disturbed, or other messages may be interspersed in the middle; therefore, the selection range of the associated message is expanded to ensure the accuracy of the keyword.
In an optional embodiment, if the target information includes the first keyword, after the storing the first file, the method includes:
receiving a first input indicating to search for a file or to display a file;
in response to the first input, displaying the first file in a category according to the first keyword.
Wherein the first keyword comprises a first identifier or a second identifier; the first identification is an identification of a contact corresponding to a first file, or the second identification is an identification of a communication group corresponding to the first file; the second keywords comprise keywords extracted from the associated message of the first file; after a first file is stored by taking the target information as a file identifier, if a first input is received and indicates to search for the file or display the file, displaying the first file in a classified manner according to the first keyword; wherein, searching for files is a file searching operation, such as a searching operation received in an electronic file management interface; displaying the file, for example, initiates a file management interface.
If first input indicating that files are displayed is received, displaying the first files in a classified mode according to the first keywords; for example, in a file management interface, all files corresponding to the first keyword are displayed in one folder; as a second example, referring to fig. 3, when the first keyword includes contact a, the first file is presented with the first keyword as a dimension, as shown by an icon F in fig. 3; or when the first keyword includes the contact a and the contact B, the display interface displays the first file by using different contacts as the first keyword category as shown in fig. 4.
In an optional embodiment, the storing the first file includes:
if the electronic equipment comprises a target folder corresponding to the target information, storing the first file into the target folder;
and if the electronic equipment does not comprise the target folder, creating the target folder, and storing the first file to the target folder.
For the first keyword and/or the second keyword, when a first file corresponding to the first keyword and/or the second keyword is received, judging whether a target folder corresponding to the keyword exists in the electronic equipment, if so, directly storing the first file into the target folder, if not, creating a new target folder, and storing the first file into the target folder; therefore, the first file corresponding to each keyword is stored in the corresponding target folder, and subsequent searching, file management and classification are facilitated.
In an optional embodiment, the using the target information as the file identifier of the first file includes:
if the target information comprises the first keyword and the second keyword, combining the first keyword and the second keyword into a file identifier of the first file so as to improve the recognition degree of the file identifier of the first file; in the file identification, the first keyword and the second keyword are separated by a preset identifier; for example, the first keyword includes a contact name, for example, "contact a", the second keyword includes "B place", and the preset identifier is "-" the file name is stored as the contact a-B place ", so that the first file, the first keyword and the second keyword are all associated, the first file can be searched when the user inputs the first keyword or the second keyword during the searching operation, and the operation difficulty of searching the first file is reduced.
As a third example, referring to fig. 5, fig. 5 shows a specific example of applying the file storage method provided in the embodiment of the present application, and mainly includes the following steps:
step 501, pressing the desktop APP-W icon for a long time, and adding an option of using intelligent file storage in a bullet frame.
Alternatively, the long-press operation may also be other input operations, such as multi-touch, continuous-click touch, and the like.
Step 502, opening APP-W, and storing the received first file by taking the keyword as a file name.
If the chat is the case of single chat, taking a downloaded picture as an example, taking a nickname of a contact person as a storage directory, taking a keyword extracted from a message after the contact person and the file as a file name, and separating the keyword by "-" in the middle, wherein the storage directory is xxx/contact person A, and the storage name is; contacts a-B. Where "xxx" represents a generic character in the file storage path of the electronic device.
If the chat is a case of multi-person chat (i.e. group chat), taking a downloaded picture as an example, taking a group name as a storage directory, taking a keyword (B place) extracted from a message after the group name (B place travel) + the file as a file name, and separating the two by "-", for example, taking the storage directory as xxx/B travel, and the storage name is; and B, tourist and B.
Step 503, determining whether a target folder corresponding to the target information already exists:
if yes, executing step 504, and storing the first file into a target folder;
if not, step 505 is executed to create a target folder corresponding to the target information, and store the first file in the target folder.
Step 506, displaying the first file in the key character classification.
When the electronic equipment detects that the desktop icons of the applications such as APP-W are pressed for a long time, adding one item in the popped up elastic frame: and storing the intelligent file. After setting this option, the file store name in APP-W is named in the naming manner in step 502; in the file management, the file classification is modified, the file classification is not displayed in the dimensionality modes of pictures, videos, documents and the like, but is displayed in the form of a keyword list, so that the files are intelligently stored by a user, the files are automatically sorted according to rules, and the file viewing speed and experience of the user are improved.
In the embodiment of the application, when a first file is received through a target application program, target information of the first file is acquired; the target information comprises at least one of a first keyword and a second keyword; the first keyword comprises a first identifier or a second identifier; the first identification is an identification of a contact corresponding to a first file, or the second identification is an identification of a communication group corresponding to the first file; the second keywords comprise keywords extracted from the associated message of the first file; and storing the first file, and taking the target information as the file identifier of the first file, so that the recognition degree of the file identifier is improved, and the difficulty of searching the file is reduced.
In the above, the file storage method provided by the embodiment of the present application is described, and the file storage device provided by the embodiment of the present application will be described with reference to the accompanying drawings.
It should be noted that, in the file storage method provided in the embodiment of the present application, the execution main body may be a file storage device, or a control module in the file storage device for executing the file storage method. In the embodiment of the present application, a file storage device executes a file storage method as an example, and the file storage method provided in the embodiment of the present application is described.
Referring to fig. 6, an embodiment of the present application further provides a file storage apparatus 600, including:
the obtaining module 601 is configured to obtain target information of a first file when the first file is received by a target application.
The first file can be a picture, a document, an audio/video file and the like; when the electronic equipment receives the first file in the application program, the target information of the first file is obtained.
The target information includes at least one of a first keyword and a second keyword.
Specifically, 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 first identifier is an identifier of a contact corresponding to the first file, such as a first identifier being a contact name of the contact in the target application, for example, a nickname or a remarked name of the contact. As a first example, as shown in fig. 2, if a first file F of a contact a is received in APP-X, the first keyword includes "contact a"; it should be noted that the contact in the embodiment of the present application includes natural persons and other forms of contacts (other forms of contacts such as public numbers).
Or the second identifier is an identifier of a communication group corresponding to the first file, and the communication group is a communication group in the target application program; the second identification is a group name of the communication group for receiving the first file in the target application program; accordingly, the group name is, for example, the name of the group itself or the name to be remarked.
The second keywords comprise keywords extracted from the associated message of the first file. The association message, for example, receives a previous message or a subsequent message of the first file; still referring to fig. 2, a first file F of contact a is received, and a message M before the first file F is received is: y is a; then Y is some second key of the first file.
The storage module 602 is configured to store the first file, and use the target information as a file identifier of the first file.
After determining the target information of a first file, storing the first file, and taking keywords as a file identifier of the first file; the file identifier may be a file name, for example, in the first example, if the target information includes the second keyword, "Y certain" is taken as the file name when the first file F is stored; or the target information comprises a first keyword and a second keyword, and the contact person A-Y is used as a file name; therefore, based on the keywords, when the first file is searched subsequently, the user can search the first file through the keywords; in the prior art, the name is usually irregular when the file is stored, and the key information of the file is difficult to obtain only from the file name, so that the retrieval cost of a user is high. For example, files received within APP, the file name is typically stored as a sequence of numbers, for example, with the numbers in the year, month and day as names, such as files received at 13 o 15/2/7/2021 are typically stored as: 202101071315, respectively; the number sequence is difficult for users to remember, and when the number sequence has more files, the searching difficulty is further enhanced. In the embodiment of the application, the keywords with strong identification are used as the file identification for storage, so that the difficulty of searching the file is reduced.
In an optional embodiment, the association 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 a communication interface for receiving the first file in the target application program.
In an optional embodiment, if the target information includes the first keyword, the apparatus 600 includes:
a search module for receiving a first input indicating to search for a file or to display a file;
in response to the first input, displaying the first file in a category according to the first keyword.
In an alternative embodiment, the storage module 602 includes:
the first storage submodule is used for storing the first file into a target folder if the electronic equipment comprises the target folder corresponding to the target information;
and the second storage submodule is used for creating the target folder and storing the first file into the target folder if the target folder is not included in the electronic equipment.
In an alternative embodiment, the storage module 602 includes:
a third storage sub-module, configured 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; in the file identification, the first keyword and the second keyword are separated by a preset identifier.
In this embodiment of the present application, when receiving a first file through a target application program, an obtaining module 601 obtains target information of the first file; the target information comprises at least one of a first keyword and a second keyword; the first keyword comprises a first identifier or a second identifier; the first identification is an identification of a contact corresponding to a first file, or the second identification is an identification of a communication group corresponding to the first file; the second keywords comprise keywords extracted from the associated message of the first file; the storage module 602 stores the first file, and uses the target information as a file identifier of the first file, so as to improve the recognition degree of the file identifier and reduce the difficulty of file searching.
The file storage device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the Mobile electronic device may be a Mobile phone, a tablet Computer, a notebook Computer, a palm top Computer, an in-vehicle electronic device, a wearable device, an Ultra-Mobile Personal Computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-Mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (Personal Computer, PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
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 (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The file storage device provided in the embodiment of the present application can implement each process implemented by the file storage device in the method embodiments of fig. 1 to fig. 5, and is not described here again to avoid repetition.
Optionally, an electronic device is further provided in this embodiment of the present application, and includes a processor 710, a memory 709, and a program or an instruction stored in the memory 709 and capable of running on the processor 710, where the program or the instruction is executed by the processor 710 to implement each process of the above file storage method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 7 is a hardware structure diagram of an electronic device 700 for implementing various embodiments of the present application;
the electronic device 700 includes, but is not limited to: 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, a power supply 711, and the like.
Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 710 is configured to, when a first file is received by a target application, obtain target information of the first file;
the target information comprises at least one of a first keyword and a second keyword; the first keyword comprises a first identifier or a second identifier; the first identification is an identification of a contact corresponding to a first file, or the second identification is an identification of a communication group corresponding to the first file; the second keywords comprise keywords extracted from the associated message of the first file;
a memory 709, configured to store the first file, and use the target information as a file identifier of the first file.
Optionally, the association 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 a communication interface for receiving the first file in the target application program.
Optionally, the user input unit 707 is configured to receive a first input indicating to search for a file or to display a file;
a processor 710 for displaying the first file according to the first keyword classification in response to the first input.
Optionally, the memory 709 is configured to store the first file in a target folder if the electronic device includes the target folder corresponding to the target information;
and if the electronic equipment does not comprise the target folder, creating the target folder, and storing the first file to the target folder.
Optionally, the memory 709 is configured to, if the target information includes the first keyword and the second keyword, combine the first keyword and the second keyword into a file identifier of the first file; in the file identification, the first keyword and the second keyword are separated by a preset identifier.
In the embodiment of the application, when a first file is received through a target application program, target information of the first file is acquired; the target information comprises at least one of a first keyword and a second keyword; the first keyword comprises a first identifier or a second identifier; the first identification is an identification of a contact corresponding to a first file, or the second identification is an identification of a communication group corresponding to the first file; the second keywords comprise keywords extracted from the associated message of the first file; and storing the first file, and taking the target information as the file identifier of the first file, so that the recognition degree of the file identifier is improved, and the difficulty of searching the file is reduced.
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, and the Graphics Processing Unit 7041 processes image data of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts of a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 709 may be used to store software programs as well as various data, including but not limited to applications and operating systems. Processor 710 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the file storage method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above file storage method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method of file storage, the method comprising:
when a first file is received through a target application program, acquiring target information of the first file;
the target information comprises at least one of a first keyword and a second keyword; the first keyword comprises a first identifier or a second identifier; the first identification is an identification of a contact corresponding to a first file, and the second identification is an identification of a communication group corresponding to the first file; the second keywords comprise keywords extracted from the associated message of the first file;
and storing the first file, and taking the target information as the file identifier of the first file.
2. The file storage method according to claim 1, wherein the association message comprises 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 a communication interface for receiving the first file in the target application program.
3. The method of claim 1, wherein if the target information includes the first keyword, the method comprises, after storing the first file:
receiving a first input indicating to search for a file or to display a file;
in response to the first input, displaying the first file in a category according to the first keyword.
4. The file storage method according to claim 1, wherein said storing the first file comprises:
if the electronic equipment comprises a target folder corresponding to the target information, storing the first file into the target folder;
and if the electronic equipment does not comprise the target folder, creating the target folder, and storing the first file to the target folder.
5. The file storage method according to claim 1, wherein the using the target information as the file identifier of the first file comprises:
if the target information comprises the first keyword and the second keyword, combining the first keyword and the second keyword into a file identifier of the first file; in the file identification, the first keyword and the second keyword are separated by a preset identifier.
6. A file storage apparatus, the apparatus comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring target information of a first file when the first file is received through a target application program;
the target information comprises at least one of a first keyword and a second keyword; the first keyword comprises a first identifier or a second identifier; the first identification is an identification of a contact corresponding to a first file, or the second identification is an identification of a communication group corresponding to the first file; the second keywords comprise keywords extracted from the associated message of the first file;
and the storage module is used for storing the first file and taking the target information as the file identifier of the first file.
7. The file storage device of claim 6 wherein the association message comprises 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 a communication interface for receiving the first file in the target application program.
8. The file storage device of claim 6, wherein if the target information comprises the first keyword, the device comprises:
a search module for receiving a first input indicating to search for a file or to display a file;
in response to the first input, displaying the first file in a category according to the first keyword.
9. The file storage device of claim 6, wherein the storage module comprises:
the first storage submodule is used for storing the first file into a target folder if the electronic equipment comprises the target folder corresponding to the target information;
and the second storage submodule is used for creating the target folder and storing the first file into the target folder if the target folder is not included in the electronic equipment.
10. The file storage device of claim 6, wherein the storage module comprises:
a third storage sub-module, configured 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; in the file identification, the first keyword and the second keyword are separated by a preset identifier.
CN202110298647.7A 2021-03-19 2021-03-19 File storage method and device Pending CN112925756A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110298647.7A CN112925756A (en) 2021-03-19 2021-03-19 File storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110298647.7A CN112925756A (en) 2021-03-19 2021-03-19 File storage method and device

Publications (1)

Publication Number Publication Date
CN112925756A true CN112925756A (en) 2021-06-08

Family

ID=76175243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110298647.7A Pending CN112925756A (en) 2021-03-19 2021-03-19 File storage method and device

Country Status (1)

Country Link
CN (1) CN112925756A (en)

Similar Documents

Publication Publication Date Title
CN111984162A (en) Page display method and device and electronic equipment
CN112286887A (en) File sharing method and device and electronic equipment
CN112612391B (en) Message processing method and device and electronic equipment
CN112083854A (en) Application program running method and device
CN112099704A (en) Information display method and device, electronic equipment and readable storage medium
CN112947807A (en) Display method and device and electronic equipment
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN112787907A (en) Display method and device and electronic equipment
CN112615958A (en) Contact person display method and device and electronic equipment
CN113127432A (en) Operation execution method, device, electronic equipment and medium
CN113037925B (en) Information processing method, information processing apparatus, electronic device, and readable storage medium
CN112764633B (en) Information processing method and device and electronic equipment
CN112399010B (en) Page display method and device and electronic equipment
CN113849092A (en) Content sharing method and device and electronic equipment
CN113869063A (en) Data recommendation method and device, electronic equipment and storage medium
CN113311973A (en) Recommendation method and device
CN113220393A (en) Display method and device and electronic equipment
CN113590008A (en) Chat message display method and device and electronic equipment
CN113253903A (en) Operation method and operation device
CN113114845A (en) Notification message display method and device
CN113253883A (en) Application interface display method and device and electronic equipment
CN112416212A (en) Program access method, device, electronic equipment and readable storage medium
CN112702261A (en) Information display method and device and electronic equipment
CN111897474A (en) File processing method and electronic equipment
WO2022237877A1 (en) Information processing method and apparatus, and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination