CN106951492B - File searching method and device and electronic equipment - Google Patents

File searching method and device and electronic equipment Download PDF

Info

Publication number
CN106951492B
CN106951492B CN201710150925.8A CN201710150925A CN106951492B CN 106951492 B CN106951492 B CN 106951492B CN 201710150925 A CN201710150925 A CN 201710150925A CN 106951492 B CN106951492 B CN 106951492B
Authority
CN
China
Prior art keywords
folder
application program
folders
files
file
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.)
Expired - Fee Related
Application number
CN201710150925.8A
Other languages
Chinese (zh)
Other versions
CN106951492A (en
Inventor
张烨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710150925.8A priority Critical patent/CN106951492B/en
Publication of CN106951492A publication Critical patent/CN106951492A/en
Application granted granted Critical
Publication of CN106951492B publication Critical patent/CN106951492B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/156Query results presentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Library & Information Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a file searching method and device and electronic equipment. The method comprises the following steps: receiving an operation instruction acting on an application program icon in an electronic equipment interface; if the operation instruction is consistent with a preset operation instruction, acquiring an application program identifier corresponding to the application program icon, and searching a folder and/or a file corresponding to the application program identifier; and displaying the file folder and/or the file on an electronic equipment interface. The method can conveniently search the file corresponding to the application program.

Description

File searching method and device and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a file search method, an apparatus, and an electronic device.
Background
In an intelligent mobile terminal, a file system is a main way of managing files. Generally, when a user needs to search for a file corresponding to an application program in a mobile terminal, a file management application is generally used to search for the file. The file management application can display the files in the mobile terminal in a sequencing mode according to the file names, and a user can search the files corresponding to all application programs in the mobile terminal in the file management application.
Disclosure of Invention
The embodiment of the invention provides a file searching method, a file searching device and electronic equipment, which can conveniently search files corresponding to application programs.
A file search method, comprising:
receiving an operation instruction acting on an application program icon in an electronic equipment interface;
if the operation instruction is consistent with a preset operation instruction, acquiring an application program identifier corresponding to the application program icon, and searching a folder and/or a file corresponding to the application program identifier;
and displaying the file folder and/or the file on an electronic equipment interface.
A file search apparatus comprising:
the receiving module is used for receiving an operation instruction acting on an application program icon in an electronic equipment interface;
the searching module is used for acquiring an application program identifier corresponding to the application program icon and searching a folder and/or a file corresponding to the application program identifier if the operation instruction is consistent with a preset operation instruction;
and the display module is used for displaying the file folder and/or the file on an electronic equipment interface.
An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the program:
receiving an operation instruction acting on an application program icon in an electronic equipment interface;
if the operation instruction is consistent with a preset operation instruction, acquiring an application program identifier corresponding to the application program icon, and searching a folder and/or a file corresponding to the application program identifier;
and displaying the file folder and/or the file on an electronic equipment interface.
Drawings
FIG. 1 is a flow diagram of a method for file searching in one embodiment;
FIG. 2 is a flowchart of a file search method in another embodiment;
FIG. 3 is a block diagram showing the construction of a file search apparatus according to an embodiment;
fig. 4 is a block diagram of a partial structure of a mobile phone related to an electronic device provided in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
FIG. 1 is a flow diagram of a method for file searching in one embodiment. As shown in fig. 1, a file searching method includes steps S202 to S206. Wherein:
s102, receiving an operation instruction acting on an application program icon in an electronic equipment interface;
s104, if the operation instruction is consistent with a preset operation instruction, acquiring an application program identifier corresponding to the application program icon, and searching a folder and/or a file corresponding to the application program identifier;
and S106, displaying the folder and/or the file on the interface of the electronic equipment.
In one embodiment, the electronic device may be a computer, a mobile terminal, a wearable smart device, and the like, without limitation. The interface of the electronic equipment is displayed with an application icon, and the operation instruction acting on the application icon in the interface of the electronic equipment can be touch operation acting on the application icon or click operation acting on the application icon by a mouse. After receiving an operation instruction acting on an application program icon in an electronic equipment interface, detecting whether the received operation instruction is consistent with a preset operation instruction, if so, acquiring an application program identifier corresponding to the application program icon, and searching a folder, a file, a folder and a file corresponding to the application program identifier in an application program record table. The preset operation instruction may be a double click, a long press, a single click, or the like, but is not limited thereto.
The application identifier is used for uniquely identifying the application in the electronic device, and may be a name of the application or a package name corresponding to the application. The application program record table is used for recording mapping relations among the application programs, the folders corresponding to the application programs and the files corresponding to the application programs; the folder corresponding to the application program comprises a folder generated when the application program is installed and operated; the files corresponding to the application programs comprise installation files of the application programs, operation files of the application programs, download files of the application programs, editable files of the application programs and the like. When the application program executes the installation program, the file generated by installation can be marked; when the application program downloads the file, the downloaded file can be marked; when the application program runs, the file generated by running can be marked; after the application program record table acquires the file or the folder corresponding to the application program according to the application program identifier, the file corresponding to the application program can be divided into an installation file of the application program, an operation file corresponding to the application program and a download file corresponding to the application program according to the file mark; the files corresponding to the application program can be divided into editable files and non-editable files according to the file format.
The application record table records the name, size, path, and latest modification time of the folder corresponding to the application, and the name, size, path, latest modification time, and the like of the file corresponding to the application. By monitoring the file system, the application program record table can acquire application program identifiers corresponding to files or folders generated in the file system, and the files, the folders and the application program identifiers in the file system are correspondingly stored; the application program recording table can also monitor the file system in real time, acquire the application program for reading and writing the file or the folder, and correspondingly store the modified file or the modified folder and the application program identifier, namely the application program table can update the corresponding relation between the stored file or the stored folder and the application program identifier in real time.
After the application program identifier corresponding to the application program icon is obtained, a file corresponding to the application program identifier and a folder corresponding to the application program identifier can be searched in the application program record table. And if the files in the folder corresponding to the application program identification are all installation files, marking the folder as an installation folder. And after traversing the folders and the files corresponding to the application program identifiers in the application program record table, displaying the folders and the files corresponding to the application program identifiers on an electronic equipment interface. If all files in one folder are files corresponding to the application program, only the folder is displayed in the electronic equipment interface, and the files included in the folder are not displayed, namely, when the folder and the files corresponding to the application program are displayed on the electronic equipment interface, the folder corresponding to the application program is preferentially displayed. The manner of displaying the files and/or folders may be list display, thumbnail display, and the like, but is not limited thereto.
For example, a QQ icon is displayed on a mobile phone interface, after a double-click operation on the QQ icon on the mobile phone interface is obtained, the system searches for an application program name, namely Tencent QQ, corresponding to the QQ icon, then searches for a path, namely \ \ Tencent \ QQ, of a file and a folder corresponding to the Tencent QQ in an application program record table, obtains an identifier of the file by traversing the file and the folder under the path, and then divides the file under the path into a QQ installation file, a QQ running file and a QQ downloading file according to the identifier of the file; dividing files with suffix names of.doc,. txt,. docx and the like into QQ editable files according to file formats; and displaying the QQ installation file, the QQ operation file, the QQ download file and the QQ editable file in a classification list of the mobile phone interface.
According to the file searching method, after the operation instruction of the application program is obtained, the folder and the file corresponding to the application program are searched in the application program record table, the searched and obtained folder and file are displayed on the interface of the electronic equipment, and the file searching method is quicker and more convenient.
In one embodiment, finding a folder corresponding to the application identification comprises: acquiring a folder path corresponding to the application program identifier; traversing files included in the folder under the folder path step by step from the lower directory to the upper directory to determine whether the files are files corresponding to the application program identification; and if so, displaying the folder under the folder path in the interface of the electronic equipment.
When searching for folders and files corresponding to application program identifiers, firstly, acquiring a folder path corresponding to the application program recorded in an application program record table, traversing whether the folders and the files under the folder path are all the folders and the files corresponding to the application program, if so, acquiring a previous-level folder path corresponding to the folder path, and traversing whether the folders and the files included in the folder corresponding to the previous-level folder path are all the folders and the files corresponding to the application program; and if the folders and the files in the folders corresponding to the next-level folder path are all the folders and the files corresponding to the application program identification, and the files in the folders corresponding to the previous-level folder path comprise the folders and the files not all corresponding to the application program, acquiring the folders corresponding to the next-level folder path, and displaying the folders corresponding to the next-level folder path on an electronic equipment interface. For example, the system acquires that the folder path corresponding to the Tencent QQ is the file corresponding to the Tencent QQ, and traverses the file and the folder under the Tencent/Tencent path, and displays the folder corresponding to the Tencent QQ, namely the QQ folder under the Tencent/Tencent directory on the mobile phone interface if the file and the folder under the Tencent/Tencent path include the file corresponding to the WeChat.
In one embodiment, the electronic equipment interface is displayed with a classification label of the folder and/or the file; the file searching method further comprises the following steps: receiving an operation instruction acting on the classification label, and acquiring the selected classification label according to the operation instruction; and displaying the folders and/or files in a classified mode according to the selected classification labels.
The classification labels for the files and/or folders are displayed in the interface of the electronic equipment, and the classification labels can be classified according to the latest modification time, format, size, name, file label and the like. After the touch operation on the displayed classification label or the click instruction of the mouse is obtained, the folders and/or files of the application program are classified according to the selected classification label, and the classified folders and/or files are displayed. For example, the file folder and the file corresponding to the Tencent QQ are displayed on the mobile phone interface, the classification labels classified according to the latest modification time, the format, the size, the name and the file label are displayed, and the file folder corresponding to the Tencent QQ are displayed in a 'latest week', 'latest month', 'latest three months' and 'earlier' mode when the user clicks the classification label classified according to the latest modification time.
According to the file searching method, when the folders and the files corresponding to the application program are displayed, different classification labels are displayed, the folders and the files corresponding to the application program can be displayed in a classification mode according to the classification labels, and the folder and file displaying mode is diversified.
In one embodiment, an expansion button corresponding to a folder is displayed on the electronic equipment interface; the file searching method further comprises the following steps: receiving an operation instruction of an expansion button; and displaying the folders and/or files included in the folders according to the operation instruction of the expansion button.
When the folder corresponding to the application program is displayed on the interface of the electronic equipment, a contraction/expansion button corresponding to the folder can be displayed, and if touch operation on the contraction/expansion button or a click instruction of a mouse is obtained, the corresponding contraction/expansion instruction can be executed. For example, a folder and a file corresponding to the flight information QQ are displayed on the mobile phone interface, a contraction/expansion button is displayed in front of the folder, if a touch operation of the user on the contraction/expansion button is obtained, the folder corresponding to the contraction/expansion button is expanded, and the folder and the file included in the folder are displayed on the mobile phone interface. After the folders and the files included in the folders are displayed, if the touch operation of the user on the contraction/expansion button is obtained again, only the folders are displayed on the mobile phone interface.
According to the file searching method in the embodiment of the invention, the corresponding contraction/expansion button is arranged on the folder, so that the folders and the files in the folder can be displayed, a user can conveniently search the corresponding folders and files in the folders in a multi-stage display mode, and the file searching mode is more convenient.
In one embodiment, a search control is exposed on an electronic device interface; the file searching method further comprises the following steps: receiving a keyword input in a search control; searching a folder and/or a file corresponding to the keyword in the folder and/or the file corresponding to the application program identifier; and displaying the folders and/or files corresponding to the keywords in the interface of the electronic equipment.
A search control is displayed on the electronic equipment interface, and the search control can be a fixed search box, a floating search box and the like. By receiving the keywords entered in the search control, folders and/or files corresponding to the keywords may be located. The keywords may be names of folders or files, category labels of folders or files, and the like. After the corresponding folders and/or files are searched and acquired according to the keywords, the searched and acquired folders and/or files can be highlighted, bolded and displayed, or only the searched and acquired folders and/or files are displayed on an electronic equipment interface. For example, a folder and a file corresponding to the Tencent QQ are displayed on the mobile phone interface, and a user inputs 'download' in the search box, then a download file corresponding to the Tencent QQ is searched according to the file identification, and the searched and obtained download file is displayed on the mobile phone interface.
According to the file searching method, the searching control is arranged on the electronic equipment interface, so that the corresponding folders and files can be searched according to the keywords input in the searching control, the file searching mode is more convenient, and the user experience is improved.
Fig. 2 is a flowchart of a file search method in another embodiment. As shown in fig. 2, a file searching method includes:
s202, detecting whether preset operation on the desktop application icon of the mobile terminal is received.
And S204, judging whether the operation is consistent with the preset operation. If yes, go to S206.
S206, searching the folder and the file which are associated with the desktop application in the application program record table.
And S208, displaying the searched and obtained folders and files on the desktop of the mobile terminal according to a preset format.
S210, whether touch operation on the folder or the file is received or not is judged, and if yes, S212 is skipped.
S212, jumping to the position of the folder or the file in the file management system.
According to the file searching method, after the operation instruction of the application program is obtained, the folder and the file corresponding to the application program are searched in the application program record table, the searched and obtained folder and file are displayed on the interface of the electronic equipment, and the file searching method is quicker and more convenient.
Fig. 3 is a block diagram illustrating a structure of a file searching apparatus according to an embodiment, and as shown in fig. 3, the file searching apparatus includes a receiving module 302, a searching module 304, and a presenting module 306. Wherein:
the receiving module 302 is configured to receive an operation instruction acting on an application icon in an interface of an electronic device.
The searching module 304 is configured to, if the operation instruction is consistent with a preset operation instruction, obtain an application identifier corresponding to the application icon, and search for a folder and/or a file corresponding to the application identifier.
And a presentation module 306, configured to present the folders and/or files on the electronic device interface.
In one embodiment, the electronic equipment interface is displayed with a classification label of the folder and/or the file; the receiving module 302 is further configured to receive an operation instruction acting on the classification tag, and obtain the selected classification tag according to the operation instruction; the presentation module 306 is further configured to present the folders and/or files in a category according to the selected category label.
In one embodiment, an expansion button corresponding to a folder is displayed on the electronic equipment interface; the receiving module 302 is further configured to receive an operation instruction for the expansion button; the presentation module 306 is further configured to present folders and/or files included in the folders according to an operation instruction to the expansion button.
In one embodiment, a search control is exposed on an electronic device interface; the receiving module 302 is further configured to receive a keyword input in the search control; the searching module 304 is further configured to search for a folder and/or a file corresponding to the keyword from the folder and/or the file corresponding to the application program identifier; the presentation module 306 is further configured to present folders and/or files corresponding to the keywords in the electronic device interface.
In one embodiment, the search module 304 is further configured to obtain a folder path corresponding to the application identifier; traversing files included in the folder under the folder path step by step from the lower directory to the upper directory to determine whether the files are files corresponding to the application program identification; and if so, displaying the folder under the folder path in the interface of the electronic equipment.
The division of the modules in the file searching apparatus is only for illustration, and in other embodiments, the file searching apparatus may be divided into different modules as needed to complete all or part of the functions of the file searching apparatus.
The embodiment of the invention also provides the electronic equipment. As shown in fig. 4, for convenience of illustration, only the portion related to the embodiment of the present invention is shown, and details of the technology are not disclosed, please refer to the method portion of the embodiment of the present invention. The electronic device may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the like, taking the electronic device as the mobile phone as an example:
fig. 4 is a block diagram of a partial structure of a mobile phone related to an electronic device provided in an embodiment of the present invention. Referring to fig. 4, the handset includes: radio Frequency (RF) circuit 410, memory 420, input unit 430, display unit 440, sensor 450, audio circuit 460, wireless fidelity (WiFi) module 470, processor 480, and power supply 490. Those skilled in the art will appreciate that the handset configuration shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 410 may be used for receiving and transmitting signals during information transmission or communication, and may receive downlink information of a base station and then process the downlink information to the processor 480; the uplink data may also be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 410 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Messaging Service (SMS), and the like.
The memory 420 may be used to store software programs and modules, and the processor 480 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 420. The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playing function, an application program for an image playing function, and the like), and the like; the data storage area may store data (such as audio data, an address book, etc.) created according to the use of the mobile phone, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 400. Specifically, the input unit 430 may include a touch panel 431 and other input devices 432. The touch panel 431, which may also be referred to as a touch screen, may collect touch operations of a user on or near the touch panel 431 (e.g., operations of a user on or near the touch panel 431 using any suitable object or accessory such as a finger or a stylus) and drive a corresponding connection device according to a preset program. In one embodiment, the touch panel 431 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 480, and receives and executes commands sent from the processor 480. In addition, the touch panel 431 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 430 may include other input devices 432 in addition to the touch panel 431. In particular, other input devices 432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like.
The display unit 440 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The display unit 440 may include a display panel 441. In one embodiment, the Display panel 441 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, the touch panel 431 may cover the display panel 441, and when the touch panel 431 detects a touch operation thereon or nearby, the touch panel is transmitted to the processor 480 to determine the type of the touch event, and then the processor 480 provides a corresponding visual output on the display panel 441 according to the type of the touch event. Although the touch panel 431 and the display panel 441 are shown in fig. 4 as two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 431 and the display panel 441 may be integrated to implement the input and output functions of the mobile phone.
The cell phone 400 can also include at least one sensor 450, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 441 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 441 and/or the backlight when the mobile phone is moved to the ear. The motion sensor can comprise an acceleration sensor, the acceleration sensor can detect the magnitude of acceleration in each direction, the magnitude and the direction of gravity can be detected when the mobile phone is static, and the motion sensor can be used for identifying the application of the gesture of the mobile phone (such as horizontal and vertical screen switching), the vibration identification related functions (such as pedometer and knocking) and the like; the mobile phone may be provided with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor.
The audio circuit 460, speaker 461 and microphone 462 may provide an audio interface between the user and the cell phone. The audio circuit 460 may transmit the electrical signal converted from the received audio data to the speaker 461, and convert the electrical signal into a sound signal for output by the speaker 461; on the other hand, the microphone 462 converts the collected sound signal into an electrical signal, which is received by the audio circuit 460 and converted into audio data, and then the audio data is processed by the audio data output processor 480, and then the audio data is transmitted to another mobile phone through the RF circuit 410, or the audio data is output to the memory 420 for subsequent processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 470, and provides wireless broadband Internet access for the user. Although fig. 4 shows WiFi module 470, it is understood that it does not belong to the essential components of handset 400 and may be omitted as desired.
The processor 480 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 420 and calling data stored in the memory 420, thereby integrally monitoring the mobile phone. In one embodiment, processor 480 may include one or more processing units. In one embodiment, processor 480 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, and the like; the modem processor handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 480.
The handset 400 also includes a power supply 490 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 480 via a power management system to manage charging, discharging, and power consumption via the power management system.
In one embodiment, the cell phone 400 may also include a camera, a bluetooth module, and the like.
In the embodiment of the present invention, when the processor 480 included in the mobile terminal executes the program, the following steps are implemented:
(1) receiving an operation instruction acting on an application program icon in an electronic equipment interface;
(2) if the operation instruction is consistent with the preset operation instruction, acquiring an application program identifier corresponding to the application program icon, and searching a folder and/or a file corresponding to the application program identifier;
(3) and displaying the file folder and/or the file on an electronic equipment interface.
In one embodiment, the electronic device may be a computer, a mobile terminal, a wearable smart device, and the like, without limitation. The interface of the electronic equipment is displayed with an application icon, and the operation instruction acting on the application icon in the interface of the electronic equipment can be touch operation acting on the application icon or click operation acting on the application icon by a mouse. After receiving an operation instruction acting on an application program icon in an electronic equipment interface, detecting whether the received operation instruction is consistent with a preset operation instruction, if so, acquiring an application program identifier corresponding to the application program icon, and searching a folder, a file, a folder and a file corresponding to the application program identifier in an application program record table. The preset operation instruction may be a double click, a long press, a single click, or the like, but is not limited thereto. The application identifier is used for uniquely identifying the application in the electronic device, and may be a name of the application or a package name corresponding to the application. The application program record table is used for recording mapping relations among the application programs, the folders corresponding to the application programs and the files corresponding to the application programs; the folder corresponding to the application program comprises a folder generated when the application program is installed and operated; the files corresponding to the application programs comprise installation files of the application programs, operation files of the application programs, download files of the application programs, editable files of the application programs and the like. When the application program executes the installation program, the file generated by installation can be marked; when the application program downloads the file, the downloaded file can be marked; when the application program runs, the file generated by running can be marked; after the application program record table acquires the file or the folder corresponding to the application program according to the application program identifier, the file corresponding to the application program can be divided into an installation file of the application program, an operation file corresponding to the application program and a download file corresponding to the application program according to the file mark; the files corresponding to the application program can be divided into editable files and non-editable files according to the file format.
The application record table records names, sizes, paths, and latest modification times of folders corresponding to the application, names, sizes, paths, and latest modification times of files corresponding to the application, and the like. By monitoring the file system, the application program record table can acquire application program identifiers corresponding to files or folders generated in the file system, and the files, the folders and the application program identifiers in the file system are correspondingly stored; the application program recording table can also monitor the file system in real time, acquire the application program for reading and writing the file or the folder, and correspondingly store the modified file or the modified folder and the application program identifier, namely the application program table can update the corresponding relation between the stored file or the stored folder and the application program identifier in real time.
After the application program identifier corresponding to the application program icon is obtained, a file corresponding to the application program identifier and a folder corresponding to the application program identifier can be searched in the application program record table. And if the files in the folder corresponding to the application program identification are all installation files, marking the folder as an installation folder. And after traversing the folders and the files corresponding to the application program identifiers in the application program record table, displaying the folders and the files corresponding to the application program identifiers on an electronic equipment interface. If all files in one folder are files corresponding to the application program, only the folder is displayed in the electronic equipment interface, and the files included in the folder are not displayed, namely, when the folder and the files corresponding to the application program are displayed on the electronic equipment interface, the folder corresponding to the application program is preferentially displayed. The manner of displaying the files and/or folders may be list display, thumbnail display, and the like, but is not limited thereto.
According to the embodiment of the invention, after the operation instruction of the application program is obtained, the folder and the file corresponding to the application program are searched in the application program record table by the mobile terminal, and the searched and obtained folder and file are displayed on the interface of the electronic equipment, so that the method for searching the file is more rapid and convenient.
In one embodiment, finding a folder corresponding to the application identification comprises: acquiring a folder path corresponding to the application program identifier; traversing files included in the folder under the folder path step by step from the lower directory to the upper directory to determine whether the files are files corresponding to the application program identification; and if so, displaying the folder under the folder path in the interface of the electronic equipment.
When searching for folders and files corresponding to application program identifiers, firstly, acquiring a folder path corresponding to the application program recorded in an application program record table, traversing whether the folders and the files under the folder path are all the folders and the files corresponding to the application program, if so, acquiring a previous-level folder path corresponding to the folder path, and traversing whether the folders and the files included in the folder corresponding to the previous-level folder path are all the folders and the files corresponding to the application program; and if the folders and the files in the folders corresponding to the next-level folder path are all the folders and the files corresponding to the application program identification, and the files in the folders corresponding to the previous-level folder path comprise the folders and the files not all corresponding to the application program, acquiring the folders corresponding to the next-level folder path, and displaying the folders corresponding to the next-level folder path on an electronic equipment interface. For example, the system acquires that the folder path corresponding to the Tencent QQ is the file corresponding to the Tencent QQ, and traverses the file and the folder under the Tencent/Tencent path, and displays the folder corresponding to the Tencent QQ, namely the QQ folder under the Tencent/Tencent directory on the mobile phone interface if the file and the folder under the Tencent/Tencent path include the file corresponding to the WeChat.
In one embodiment, the electronic equipment interface is displayed with a classification label of the folder and/or the file; the processor 480 included in the mobile terminal further implements the following steps when executing the program: receiving an operation instruction acting on the classification label, and acquiring the selected classification label according to the operation instruction; and displaying the folders and/or files in a classified mode according to the selected classification labels.
The classification labels for the files and/or folders are displayed in the interface of the electronic equipment, and the classification labels can be classified according to the latest modification time, format, size, name, file label and the like. After the touch operation on the displayed classification label or the click instruction of the mouse is obtained, the folders and/or files of the application program are classified according to the selected classification label, and the classified folders and/or files are displayed.
According to the embodiment of the invention, the mobile terminal also displays different classification labels when displaying the folders and the files corresponding to the application program, so that the folders and the files corresponding to the application program can be displayed in a classification mode according to the classification labels, and the folder and file displaying mode is more diversified.
In one embodiment, an expansion button corresponding to a folder is displayed on the electronic equipment interface; the processor 480 included in the mobile terminal further implements the following steps when executing the program: receiving an operation instruction of an expansion button; and displaying the folders and/or files included in the folders according to the operation instruction of the expansion button.
When the folder corresponding to the application program is displayed on the interface of the electronic equipment, a contraction/expansion button corresponding to the folder can be displayed, and if touch operation on the contraction/expansion button or a click instruction of a mouse is obtained, the corresponding contraction/expansion instruction can be executed. For example, a folder and a file corresponding to the flight information QQ are displayed on the mobile phone interface, a contraction/expansion button is displayed in front of the folder, if a touch operation of the user on the contraction/expansion button is obtained, the folder corresponding to the contraction/expansion button is expanded, and the folder and the file included in the folder are displayed on the mobile phone interface. After the folders and the files included in the folders are displayed, if the touch operation of the user on the contraction/expansion button is obtained again, only the folders are displayed on the mobile phone interface.
According to the embodiment of the invention, the mobile terminal can display the folders and the files in the folders by setting the corresponding contraction/expansion buttons for the folders, and a user can conveniently search the corresponding folders and files in the folders in a multi-stage display mode, so that the file searching mode is more convenient.
In one embodiment, a search control is exposed on an electronic device interface; the processor 480 included in the mobile terminal further implements the following steps when executing the program: receiving a keyword input in a search control; searching a folder and/or a file corresponding to the keyword in the folder and/or the file corresponding to the application program identifier; and displaying the folders and/or files corresponding to the keywords in the interface of the electronic equipment.
A search control is displayed on the electronic equipment interface, and the search control can be a fixed search box, a floating search box and the like. By receiving the keywords entered in the search control, folders and/or files corresponding to the keywords may be located. The keywords may be names of folders or files, category labels of folders or files, and the like. After the corresponding folders and/or files are searched and acquired according to the keywords, the searched and acquired folders and/or files can be highlighted, bolded and displayed, or only the searched and acquired folders and/or files are displayed on an electronic equipment interface.
According to the embodiment of the invention, the mobile terminal is provided with the search control on the electronic equipment interface, so that the corresponding folder and file can be searched according to the keyword input in the search control, the file search mode is more convenient, and the user experience is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A file search method, comprising:
receiving an operation instruction acting on an application program icon in an electronic equipment interface;
if the operation instruction is consistent with a preset operation instruction, acquiring an application program identifier corresponding to the application program icon, and searching a folder and/or a file corresponding to the application program identifier in an application program record table; the application program record table is used for recording mapping relations among application programs, folders corresponding to the application programs and files corresponding to the application programs;
displaying the file folder and/or the file on an electronic equipment interface;
the searching for the folder corresponding to the application program identifier comprises:
acquiring a folder path corresponding to the application program identifier;
traversing files included in the folder under the folder path from the lower directory to the upper directory step by step to determine whether the files are files corresponding to the application program identification;
if the folders and the files in the folders corresponding to the lower folder paths are all the folders and the files corresponding to the application program identification, and the files in the folders corresponding to the upper folder paths comprise the folders and the files not all corresponding to the application program, acquiring the folders corresponding to the lower folder paths, and displaying the folders corresponding to the lower folder paths on an electronic equipment interface;
displaying a classification label of the folder and/or the file on the electronic equipment interface; the method further comprises the following steps:
receiving an operation instruction acting on the classification label, and acquiring the selected classification label according to the operation instruction;
and displaying the folders and/or files in a classified manner according to the selected classification labels.
2. The file searching method according to claim 1, wherein an expansion button corresponding to the folder is displayed on the electronic device interface; the method further comprises the following steps:
receiving an operation instruction of the expansion button;
and displaying the folders and/or files included in the folders according to the operation instruction of the expansion button.
3. The file searching method according to claim 1, wherein a search control is displayed on the electronic device interface; the method further comprises the following steps:
receiving a keyword input in the search control;
searching a folder and/or a file corresponding to the keyword in the folder and/or the file corresponding to the application program identification;
and displaying the folders and/or files corresponding to the keywords in the electronic equipment interface.
4. A file search apparatus characterized by comprising:
the receiving module is used for receiving an operation instruction acting on an application program icon in an electronic equipment interface;
the searching module is used for acquiring the application program identifier corresponding to the application program icon if the operation instruction is consistent with a preset operation instruction, and searching a folder and/or a file corresponding to the application program identifier in an application program record table; the application program record table is used for recording mapping relations among application programs, folders corresponding to the application programs and files corresponding to the application programs;
the display module is used for displaying the folders and/or the files on an electronic equipment interface;
the searching module is further used for acquiring a folder path corresponding to the application program identifier; traversing files included in the folder under the folder path from the lower directory to the upper directory step by step to determine whether the files are files corresponding to the application program identification; if the folders and the files in the folders corresponding to the lower folder paths are all the folders and the files corresponding to the application program identification, and the files in the folders corresponding to the upper folder paths comprise the folders and the files not all corresponding to the application program, acquiring the folders corresponding to the lower folder paths, and displaying the folders corresponding to the lower folder paths on an electronic equipment interface;
displaying a classification label of the folder and/or the file on the electronic equipment interface;
the receiving module is also used for receiving an operation instruction acting on the classification label and acquiring the selected classification label according to the operation instruction;
the display module is further used for displaying the folders and/or the files in a classified mode according to the selected classification labels.
5. The apparatus according to claim 4, wherein an expansion button corresponding to the folder is displayed on the electronic device interface;
the receiving module is also used for receiving an operation instruction of the expansion button;
the display module is further used for displaying the folders and/or files in the folders according to the operation instructions of the expansion buttons.
6. The apparatus according to claim 4, wherein a search control is displayed on the electronic device interface;
the receiving module is further used for receiving keywords input in the search control;
the searching module is also used for searching the folder and/or the file corresponding to the keyword in the folder and/or the file corresponding to the application program identification;
the display module is further used for displaying the folders and/or files corresponding to the keywords in the electronic equipment interface.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the steps of:
receiving an operation instruction acting on an application program icon in an electronic equipment interface;
if the operation instruction is consistent with a preset operation instruction, acquiring an application program identifier corresponding to the application program icon, and searching a folder and/or a file corresponding to the application program identifier in an application program record table; the application program record table is used for recording mapping relations among application programs, folders corresponding to the application programs and files corresponding to the application programs;
displaying the file folder and/or the file on an electronic equipment interface;
the searching for the folder corresponding to the application program identifier comprises:
acquiring a folder path corresponding to the application program identifier;
traversing files included in the folder under the folder path from the lower directory to the upper directory step by step to determine whether the files are files corresponding to the application program identification;
if the folders and the files in the folders corresponding to the lower folder paths are all the folders and the files corresponding to the application program identification, and the files in the folders corresponding to the upper folder paths comprise the folders and the files not all corresponding to the application program, acquiring the folders corresponding to the lower folder paths, and displaying the folders corresponding to the lower folder paths on an electronic equipment interface;
displaying a classification label of the folder and/or the file on the electronic equipment interface; the processor, when executing the program, further implements the steps of:
receiving an operation instruction acting on the classification label, and acquiring the selected classification label according to the operation instruction;
and displaying the folders and/or files in a classified manner according to the selected classification labels.
8. The electronic device of claim 7, wherein an expansion button corresponding to a folder is exposed on the electronic device interface;
the processor, when executing the program, further implements the steps of: receiving an operation instruction of the expansion button; and displaying the folders and/or files included in the folders according to the operation instruction of the expansion button.
9. The electronic device of claim 7, wherein a search control is exposed at the electronic device interface;
the processor, when executing the program, further implements the steps of: receiving a keyword input in the search control; searching a folder and/or a file corresponding to the keyword in the folder and/or the file corresponding to the application program identification; and displaying the folders and/or files corresponding to the keywords in the electronic equipment interface.
10. The electronic device of claim 9, wherein the search control comprises a fixed search box, a floating search box.
CN201710150925.8A 2017-03-14 2017-03-14 File searching method and device and electronic equipment Expired - Fee Related CN106951492B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710150925.8A CN106951492B (en) 2017-03-14 2017-03-14 File searching method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710150925.8A CN106951492B (en) 2017-03-14 2017-03-14 File searching method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN106951492A CN106951492A (en) 2017-07-14
CN106951492B true CN106951492B (en) 2020-09-22

Family

ID=59467474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710150925.8A Expired - Fee Related CN106951492B (en) 2017-03-14 2017-03-14 File searching method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN106951492B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107436948B (en) * 2017-08-04 2020-01-14 Oppo广东移动通信有限公司 File searching method and device and terminal
CN108958578B (en) * 2018-06-21 2021-01-26 Oppo(重庆)智能科技有限公司 File control method and device and electronic device
CN110869902B (en) 2018-06-29 2021-09-07 华为技术有限公司 Method for browsing application folder and electronic equipment
CN109284261B (en) * 2018-10-18 2021-06-25 Oppo广东移动通信有限公司 Application searching method and device, storage medium and electronic equipment
CN116069207A (en) * 2021-11-03 2023-05-05 华为技术有限公司 Display method and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455640A (en) * 2013-09-29 2013-12-18 宇龙计算机通信科技(深圳)有限公司 Method and device for displaying file management interfaces
CN104252284A (en) * 2013-06-26 2014-12-31 中兴通讯股份有限公司 File display method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007032095A1 (en) * 2005-09-16 2007-03-22 Bits Co., Ltd. Document data managing method, managing system, and computer software

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104252284A (en) * 2013-06-26 2014-12-31 中兴通讯股份有限公司 File display method and device
CN103455640A (en) * 2013-09-29 2013-12-18 宇龙计算机通信科技(深圳)有限公司 Method and device for displaying file management interfaces

Also Published As

Publication number Publication date
CN106951492A (en) 2017-07-14

Similar Documents

Publication Publication Date Title
CN109241765B (en) Mobile terminal and method and device for managing authority of application program
CN107562835B (en) File searching method and device, mobile terminal and computer readable storage medium
CN106951492B (en) File searching method and device and electronic equipment
CN106557330B (en) Method and device for processing notification information of notification bar of mobile terminal system and mobile terminal
CN107329985B (en) Page collection method and device and mobile terminal
CN110637290A (en) File management method and device
CN110869902B (en) Method for browsing application folder and electronic equipment
CN108549698B (en) File processing method and device, mobile terminal and computer readable storage medium
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
US10956653B2 (en) Method and apparatus for displaying page and a computer storage medium
CN111316618B (en) Network page storage method and terminal
US9798713B2 (en) Method for configuring application template, method for launching application template, and mobile terminal device
CN109032491B (en) Data processing method and device and mobile terminal
US20200310771A1 (en) Application Processing Method for Terminal Device, and Terminal Device
CN110688347A (en) File storage method, file storage device and terminal equipment
CN110688497A (en) Resource information searching method and device, terminal equipment and storage medium
CN108304575B (en) Identification display method and terminal
CN110955788A (en) Information display method and electronic equipment
CN107291326A (en) Icon processing method and terminal
CN110532231B (en) File query method, file query device and terminal equipment
US20160308879A1 (en) Application-Based Service Providing Method, Apparatus, and System
CN110287443B (en) Page data display method and related device
CN107153715B (en) Method and device for adding file on page
CN110799958A (en) File management method and device, mobile terminal and computer readable storage medium
CN107145572B (en) Data processing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200922