CN111913914A - File processing method and device, electronic equipment and storage medium - Google Patents

File processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111913914A
CN111913914A CN202010843081.7A CN202010843081A CN111913914A CN 111913914 A CN111913914 A CN 111913914A CN 202010843081 A CN202010843081 A CN 202010843081A CN 111913914 A CN111913914 A CN 111913914A
Authority
CN
China
Prior art keywords
file
description information
directory
application program
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010843081.7A
Other languages
Chinese (zh)
Other versions
CN111913914B (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.)
Zhuhai Pantum Electronics Co Ltd
Original Assignee
Zhuhai Pantum Electronics 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 Zhuhai Pantum Electronics Co Ltd filed Critical Zhuhai Pantum Electronics Co Ltd
Priority to CN202010843081.7A priority Critical patent/CN111913914B/en
Publication of CN111913914A publication Critical patent/CN111913914A/en
Application granted granted Critical
Publication of CN111913914B publication Critical patent/CN111913914B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • 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/148File search processing
    • 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

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)
  • Library & Information Science (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a file processing method and device, electronic equipment and a storage medium. The method comprises the following steps: receiving a file retrieval request; when the file retrieval request corresponds to a file directory corresponding to a second application program, determining whether description information of files in the file directory corresponding to the second application program, which is acquired by the electronic equipment, exists in files included in a system index directory; and if the file information does not exist, submitting a file information updating request to an operating system in the electronic equipment, wherein the file information updating request is used for enabling the operating system to store the description information of the newly acquired file in the file directory corresponding to the second application program into the file included in the system index directory. The embodiment of the invention can facilitate the electronic equipment to open the newly acquired file in real time, and effectively improve the user experience.

Description

File processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of file processing technologies, and in particular, to a file processing method and apparatus, an electronic device, and a storage medium.
Background
With the development of computer technology, electronic devices are more and more widely applied, and users often need to use electronic devices (including mobile phones, tablets and the like) to receive files sent by other electronic devices. Due to the update mechanism of the operating system of the electronic device, when a user wants to open a newly acquired file by using an application program in the electronic device, the electronic device may need to be restarted or wait for a period of time before the application program in the electronic device can open the newly acquired file, but the number of times of restarting or the waiting time is not fixed.
Therefore, the application program in the electronic device may not be able to view the newly acquired file in real time, and the user experience is poor.
Disclosure of Invention
The embodiment of the invention provides a file processing method and device, electronic equipment and a storage medium, and aims to solve the technical problem that an application program in the electronic equipment cannot check a newly acquired file in real time.
In a first aspect, an embodiment of the present invention provides a file processing method, which is applied to a first application program in an electronic device, and the method includes:
receiving a file retrieval request;
when the file retrieval request corresponds to a file directory corresponding to a second application program, determining whether description information of files in the file directory corresponding to the second application program, which is acquired by the electronic equipment, exists in files included in a system index directory;
and if the file information does not exist, submitting a file information updating request to an operating system in the electronic equipment, wherein the file information updating request is used for enabling the operating system to store the description information of the newly acquired file in the file directory corresponding to the second application program into the file included in the system index directory.
In a possible implementation manner, determining whether description information of a file in a file directory corresponding to the second application acquired by the electronic device exists in files included in a system index directory includes:
starting a file retrieval module, and acquiring a file directory corresponding to the second application program and files included in the system index directory through the file retrieval module;
and determining whether the description information of the file in the file directory corresponding to the second application program, which is acquired by the electronic device, exists in the file included in the system index directory by performing traversal matching on the description information of the file in the file directory corresponding to the second application program and the description information of the file included in the system index directory.
In a possible implementation manner, the file processing method further includes:
determining a file which is not indexed, wherein the file which is not indexed is a file included in a file directory corresponding to the second application program, and the description information of the file which is not indexed does not exist in the file included in the system index target;
and starting a file information management module, acquiring the description information of the file without the index establishment through the file information management module, and storing the description information.
In one possible implementation, submitting a file information update request to an operating system within an electronic device includes:
and starting an index management module, and submitting a file information updating request for enabling the operating system to store the description information of the newly acquired file in the file directory corresponding to the second application program into the file included in the system index directory to the operating system through the index management module.
In a possible implementation manner, the file processing method further includes:
after submitting a file information updating request to an operating system in the electronic equipment, judging whether the description information of a newly acquired file in a file directory corresponding to the second application program is stored in a file included in the system index directory;
if yes, loading a file corresponding to description information stored in a file included in the system index directory, wherein the description information includes description information of a newly acquired file;
if not, loading a file corresponding to the description information stored in the file included in the system index directory, wherein the description information does not include the description information of the newly acquired file.
In a possible implementation manner, the file processing method further includes:
after submitting a file information updating request to an operating system in the electronic equipment, the first application program displays a file corresponding to description information in files included in the system index directory.
In a possible implementation manner, the newly acquired file in the file directory corresponding to the second application acquired by the electronic device includes at least one of the following:
a file received through wired transmission;
transmitting the received file wirelessly;
files saved by third party applications.
In a second aspect, an embodiment of the present invention provides a file processing apparatus, applied to a first application program in an electronic device, including:
the receiving module is used for receiving a file retrieval request;
the determining module is used for determining whether the description information of the file in the file directory corresponding to the second application program acquired by the electronic equipment exists in the file included in the system index directory when the file retrieval request corresponds to the file directory corresponding to the second application program;
and a submitting module, configured to submit a file information updating request to an operating system in the electronic device when it is determined that the description information of the file in the file directory corresponding to the second application does not exist in the file included in the system index directory, where the file information updating request is used for enabling the operating system to store the description information of the file newly acquired in the file directory corresponding to the second application in the file included in the system index directory.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory and at least one processor;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the electronic device to perform the method of any of the first aspects.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the method according to any one of the first aspect is implemented.
According to the file processing method, the file processing device, the electronic equipment and the storage medium provided by the embodiment of the invention, the file retrieval request is received through the first application program in the electronic equipment, when the file retrieval request corresponds to the calling of the file directory corresponding to the second application program, whether the description information of the file in the file directory corresponding to the second application program, which is acquired by the electronic equipment, exists in the file included in the system index directory is determined, if the description information does not exist, the file information updating request is submitted to the operating system in the electronic equipment, and the file information updating request is used for enabling the operating system to store the description information of the file, which is newly acquired in the file directory corresponding to the second application program, in the file included in the system index directory, so that the electronic equipment can conveniently open the newly acquired file in real time, and the user experience is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present invention;
fig. 2 is a schematic flowchart of a file processing method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another document processing method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating another file processing method according to an embodiment of the present invention;
FIG. 5 is a schematic interface diagram of a mobile printing application according to an embodiment of the present invention;
FIG. 6 is a schematic interface diagram of another mobile printing application provided by an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a document processing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present invention. As shown in fig. 1, the solution provided by the embodiment of the present invention may be applied to an electronic device, which may be, in particular, a mobile device such as a mobile phone, a tablet computer, and the like. The electronic device may receive a file sent by another device, and the other device may be, for example, a mobile phone, a tablet Computer, a PC (Personal Computer), a server, or the like.
After the electronic device obtains a file from another device, the file may be used for a first application program in the electronic device to open and view, where the first application program may include a system application program or a third-party application program, where the system application program may be an application program that is carried by the electronic device and cannot be uninstalled by a user, such as a system album. The third party application may be an application that can be downloaded, installed and uninstalled by the user himself, such as WeChat. However, after the file is obtained by the second application, sometimes the first application cannot normally open and view the file, and there are two main reasons for this: firstly, the operating system of most electronic devices does not have a mechanism for discovering a newly acquired file in real time, so that the description information of the newly acquired file cannot be updated in the file included in the system index directory in real time, and any application program in the electronic device can only open the file corresponding to the description information already recorded in the file included in the system index directory. For example, after the PC transmits the picture to the mobile device through the USB data line or the a mobile device transmits the picture to the B mobile device through the bluetooth module, the operating system of the mobile device does not have a mechanism for discovering and updating the newly acquired picture in real time, so that the successfully transmitted picture cannot be seen in the system album or the third-party application program of the mobile device. Another possible reason is that the third-party application, after retrieving the file, does not have a mechanism to trigger the operating system to update the description information of the saved file in the file included in the system index directory. For example, the mobile device saves the picture received from the WeChat, but since the WeChat does not trigger the operating system to update the description information of the saved picture in the file included in the system index directory, the picture saved from the WeChat cannot be seen in the system album or other application program of the mobile device.
In order to solve the problem, in the embodiment of the present invention, a file retrieval request is received by a first application program in an electronic device, and according to the file retrieval request, it is determined whether a file included in a system index directory includes description information of a file in a file directory corresponding to a second application program acquired by the electronic device, and when the file included in the system index directory does not include the description information, a file information update request is submitted to an operating system, so that the description information of the file newly acquired in the file directory corresponding to the second application program is stored in the file included in the system index directory.
Fig. 2 is a schematic flowchart of a file processing method according to an embodiment of the present invention. The execution subject of the method in the embodiment of the present invention may be a first application program in the electronic device, and particularly may be a third-party application program, for example, an application program for implementing mobile printing. As shown in fig. 2, the method in this embodiment may include:
step 201, receiving a file retrieval request.
In this embodiment, the file retrieval request may include a file retrieval request triggered by a user clicking a relevant icon or button in the first application program, or a file retrieval request periodically received by clicking and starting the first application program or the first application program in a background running process of the operating system. For example, a user clicks on a file retrieval request triggered by an album on a display interface of a mobile printing application, starts the mobile printing application or periodically receives a refresh file retrieval request during the background running process of an operating system.
Step 202, when the file retrieval request corresponds to a file directory corresponding to a second application program, determining whether description information of a file in the file directory corresponding to the second application program, which is acquired by the electronic device, exists in files included in a system index directory.
The second application program in the embodiment of the present invention may be a system application program or a third-party application program, such as a USB driver, a bluetooth driver, a system album or WeChat, a WeChat, or the like. The obtained file in the file directory corresponding to the second application program may refer to a file obtained through any way, for example, a received and/or saved file. Optionally, the file in the file directory corresponding to the second application acquired by the electronic device may include at least one of the following: the received files are transmitted through a wire, for example, a PC can transmit the files to the mobile equipment through a USB data wire and the like; transmitting the received files wirelessly, for example, the A mobile device transmits the files to the B mobile device point-to-point by using a Bluetooth module or WI-FI; and selecting pictures from the WeChat chat records to be saved in the mobile equipment through files saved by the third-party application program. The file may include any type of acquired file, such as a document, a picture, and the like, where the document may include at least one of the following: word documents, PDF documents, Excel tables, PPT documents, TXT documents, etc.; the pictures may include pictures in a format of JPG, PNG, or the like.
In this step, it may be determined, by a first application program in the electronic device, whether description information of a file in a file directory corresponding to the second application program, which is acquired by the electronic device, exists in files included in a system index directory. The form of the file included in the system index directory may include, but is not limited to, a system index directory table, a virtual mapping file, and the like, and the specific form is not limited in the present invention. The system index directory is a folder and is used for storing the system index directory table or the virtual mapping file, and the name of the system index directory is not limited by the invention. The system index directory comprises files, wherein the files comprise description information of files saved by an operating system, and the description information comprises file names, file storage paths and the like.
Whether the description information of the acquired file is stored in the file included in the system index directory can be determined by comparing the file directory corresponding to the second application program with the file included in the system index directory.
Step 203, if the file information does not exist, submitting a file information updating request to an operating system in the electronic device, where the file information updating request is used for enabling the operating system to store the description information of the file newly acquired in the file directory corresponding to the second application program in the file included in the system index directory.
In this embodiment, the operating system may include an Android system, an iOS system, a Windows mobile system, and the like.
In practical applications, when a user acquires a file through various manners, for example, a picture is stored through WeChat, the picture will be stored in a picture directory of the WeChat, but description information of the picture may not be updated in the file included in the system index directory, so the picture will not exist in a system album.
In the file processing method provided by this embodiment, by receiving a file retrieval request, when the file retrieval request corresponds to a file directory corresponding to a second application program, it is determined whether description information of a file in the file directory corresponding to the second application program, which is acquired by the electronic device, exists in a file included in the system index directory, and if the description information does not exist, a file information update request is submitted to an operating system in the electronic device, and the description information of a newly acquired file in the file directory corresponding to the second application program is stored in the file included in the system index directory, so that the newly acquired file can be conveniently opened by the electronic device in real time, and user experience is effectively improved.
Fig. 3 is a flowchart illustrating another file processing method according to an embodiment of the present invention. The embodiment is based on the technical scheme provided by the embodiment, and the file retrieval request is triggered by the operation of the user. As shown in fig. 3, the method in this embodiment may include:
step 301, receiving a file retrieval request triggered by a user.
In this embodiment, the user's trigger operation may be implemented by the user touching a relevant icon or button on the screen, or by the user clicking a relevant icon or button with a mouse, or by the user through voice control.
In an actual application, for example, when a user clicks on an album on a display interface of a mobile printing application, the application may receive a file retrieval request.
Step 302, when the file retrieval request corresponds to a file directory corresponding to a second application program, determining whether description information of a file in the file directory corresponding to the second application program, which is acquired by the electronic device, exists in files included in the system index directory.
Step 303, if the file information does not exist, submitting a file information updating request to an operating system in the electronic device, where the file information updating request is used for enabling the operating system to store the description information of the file newly acquired in the file directory corresponding to the second application program in the file included in the system index directory.
In this embodiment, the specific implementation principle and process of step 302 to step 303 may refer to other embodiments, which are not described herein again.
And step 304, displaying files corresponding to the description information in the files included in the system index directory.
In this embodiment, after submitting a file information update request to an operating system in the electronic device, a file corresponding to description information in files included in the system index directory may also be displayed, so that a user may view a newly acquired file in time.
According to the file processing method provided by the embodiment, by receiving a file retrieval request triggered by a user, performing file information updating operation according to the file retrieval request, and displaying a file corresponding to description information in files included in the system index directory to the user, when the user needs to view a newly acquired file, the description information of the newly acquired file can be updated into the file included in the system index directory, so that an operating system can display the file corresponding to the description information, and user experience is improved.
Fig. 4 is a flowchart illustrating another file processing method according to an embodiment of the present invention. For convenience of description, in this embodiment, the first application is a mobile printing application, the second application is a WeChat, and the file included in the system index directory is a system index directory table. As shown in fig. 4, the method in this embodiment may include:
step 401, the mobile printing application receives a file retrieval request.
Fig. 5 is a schematic interface diagram of a mobile printing application according to an embodiment of the present invention.
When the technical scheme provided by the embodiment of the invention is not adopted, the operating system of the mobile equipment is triggered to update at the moment A, and only 400 pictures exist in the WeChat photo album at the moment; since the applications within the mobile device are limited by the update mechanism of the mobile device's operating system, it is possible that: between the time A and the time B, 500 pictures are actually accumulated and stored in the WeChat photo album, and when the photo album in the mobile printing application program is clicked at the time B, 400 pictures are still displayed, so that the newly acquired pictures cannot be normally opened and viewed. However, by adopting the technical solution provided by the embodiment of the present invention, the mobile printing application may receive a file retrieval request, where the file retrieval request may include a file retrieval request triggered by a user clicking an album on a display interface of the mobile printing application, and a refresh file retrieval request periodically received by starting the mobile printing application or the mobile printing application during the background running process of the operating system. As shown in fig. 5, the user may click on an "album" on the display interface of the mobile printing application in the mobile device, thereby triggering a file retrieval request, so that the user can view the newly acquired picture when clicking on the album in the mobile printing application.
Fig. 6 is a schematic interface diagram of another mobile printing application provided in the embodiment of the present invention. As shown in FIG. 6, a user may click on a "document" on the display interface of a mobile printing application within a mobile device, thereby triggering a file retrieval request.
Step 402, when the file retrieval request corresponds to the retrieval of the file directory corresponding to the second application program, starting a file retrieval module, and obtaining the file directory corresponding to the second application program and the file included in the system index directory through the file retrieval module.
In this embodiment, the file retrieval module may load the computer storage medium in the memory through a processor of the electronic device. When a file index request is received, the mobile printing application program can start a file retrieval module, and the file retrieval module can realize the step of acquiring the file directory corresponding to the second application program and the system index directory table and the following steps.
Step 403, determining whether the description information of the file in the file directory corresponding to the second application program, which is acquired by the electronic device, exists in the file included in the system index directory by performing traversal matching on the description information of the file in the file directory corresponding to the second application program and the description information of the file included in the system index directory.
In this embodiment, the traversal matching may be performed by comparing description information of a file in a file directory corresponding to the second application program with description information of a file included in the system index directory one by one. And judging whether the description information of the files in the file directory corresponding to the second application program exists in the files included in the system index directory or not according to the traversal matching result.
For example, the image directory of the WeChat includes an image 00, an image 01, an image 02, and the like, and the system index directory table includes description information of the image 00, the image 01, and the like, and then the description information of the image in the image directory of the WeChat and the image description information in the system index directory table are subjected to traversal matching, that is, one-to-one comparison. According to the traversal matching result, the description information of the picture 02 in the picture directory of the WeChat cannot be matched with any picture description information in the system index directory table, namely the description information of the picture 02 in the picture directory of the WeChat does not exist in the system index directory table, it is determined that the picture 00 and the picture 01 in the picture directory of the WeChat acquired by the mobile device exist in the system album, and meanwhile it is determined that the picture 02 does not exist in the system album.
If the system index directory table contains the description information corresponding to all the files in the file directory corresponding to the second application program, the description information of all the files is updated into the system index directory table, and the files corresponding to the description information in the system index directory table are directly loaded and displayed to the user.
Step 404, determining a file without index establishment, where the file without index establishment is a file included in a file directory corresponding to the second application program, and the description information of the file without index establishment does not exist in the files included in the system index directory.
For example, if the description information of the picture 02 included in the picture directory of the WeChat does not exist in the system index directory table, the picture 02 is regarded as a file for which an index is not established.
Step 405, starting a file information management module, obtaining the description information of the file without the index establishment through the file information management module, and storing the description information.
In this embodiment, the file information management module may load a computer storage medium in a memory through a processor of an electronic device to obtain the description information of the file without the index, and store the description information, so that the description information of the file newly obtained in the file directory corresponding to the second application program may be stored in the file included in the system index directory more quickly and accurately.
For example, after the picture 02 in the picture directory of the WeChat is regarded as a picture without an index being built, the starting file information management module may obtain and store description information such as a picture name, a picture storage path and the like of the picture 02 without an index being built, so as to store the description information of the picture 02 without an index being built into a file included in the system index directory.
Step 406, submitting a file information update request to an operating system in the electronic device, so that the operating system stores the description information of the file in a file included in the system index directory.
Specifically, submitting a file information update request to an operating system in the electronic device may include: and starting an index management module, and submitting a file information updating request for enabling the operating system to store the description information of the newly acquired file in the file directory corresponding to the second application program into the file included in the system index directory to the operating system through the index management module.
In this embodiment, the index management module is configured to submit, to an operating system, a file information update request for enabling the operating system to store description information of a file newly acquired from a file directory corresponding to the second application program in a file included in the system index directory. The description information of the file is updated through the operating system, so that the update of the description information of the file can be more accurately realized, and errors are avoided.
For example, after the description information of the picture 02 without the index is acquired and stored, the index management module is started, and a picture information updating request for enabling the Android system to store the description information of the picture 02 newly acquired from the WeChat picture directory into the system index directory table is submitted to the Android system through the index management module, so that the Android system stores the description information of the picture 02 into the system index directory table, and the picture 02 can be updated in the system album.
Step 407, after submitting a file information update request to an operating system in the electronic device, determining whether description information of a file newly acquired in a file directory corresponding to the second application program is stored in a file included in the system index directory.
In this embodiment, the determining whether the description information of the file newly acquired from the file directory corresponding to the second application program is saved in the file included in the system index directory may include but is not limited to: the file retrieval method comprises the steps of obtaining a file included in a system index directory by starting a file retrieval module, and performing traversal matching on description information of the newly obtained file and description information in the file included in the system index directory to further judge whether the description information of the file is stored in the file included in the system index directory.
For example, after a picture information updating request is submitted to the Android system, the file retrieval module is started to obtain a system index directory table in a system index directory, traversal matching is performed on the description information of the newly obtained picture 02 and the picture description information in the system index directory table, whether the description information of the picture 02 is stored in the system index directory table or not is judged, and whether the picture 02 is updated to a system album or not is further judged.
And step 408, if yes, loading a file corresponding to the description information stored in the file included in the system index directory, where the description information includes description information of the newly acquired file.
Step 409, if not, loading a file corresponding to the description information stored in the file included in the system index directory, wherein the description information does not include the description information of the newly acquired file.
After the file corresponding to the description information saved in the file included in the system index directory is loaded, the file corresponding to the description information saved in the file included in the system index directory may be displayed to the user.
For example, if the description information of the picture 02 is already stored in the system index directory table, the picture corresponding to the description information stored in the system index directory table is loaded, where the picture includes the picture 02. And if the description information of the picture 02 is not stored in the system index directory table, loading the picture corresponding to the description information stored in the system index directory table, wherein the picture does not include the picture 02.
Taking fig. 5 as an example, a user may click an "album" on a display interface of a mobile printing application in a mobile device to trigger a file retrieval request, the mobile printing application starts a file retrieval module according to the received file retrieval request to obtain a picture directory of a WeChat and a system index directory table, and performs traversal matching on description information of pictures in the picture directory of the WeChat and picture description information in the system index directory table, determines whether the description information of the pictures in the picture directory of the WeChat obtained by the mobile device exists in the system index directory table according to a matching result, and recognizes pictures corresponding to the non-existing description information as non-indexed pictures, then starts a file information management module to obtain the description information of the non-indexed pictures and store the description information, and according to the description information, submits a picture information update request to an operating system in the mobile device, the operating system stores the description information of the newly acquired picture in the WeChat picture directory into the system index directory table, and the newly acquired picture can be displayed in the system album after the update is completed.
In the file processing method provided in this embodiment, a file retrieval request is received, a file directory corresponding to the second application program and a file included in the system index directory are obtained, whether description information of a file in the file directory corresponding to the second application program exists in the file included in the system index directory is determined, then a file corresponding to the non-existing description information is determined as a file without an index built, description information of the file without an index built is obtained, a file information update request is submitted to an operating system, so that the operating system stores the description information of the file newly obtained in the file directory corresponding to the second application program in the file included in the system index directory, and determines whether the description information of the file newly obtained in the file directory corresponding to the second application program is stored in the file included in the system index directory, if the file corresponding to the description information stored in the file included in the system index directory is loaded, the description information includes the description information of the newly acquired file, if the file corresponding to the description information stored in the file included in the system index directory is not loaded, the description information does not include the description information of the newly acquired file, the description information of the newly acquired file can be updated by starting the plurality of modules and the operating system, the updating accuracy of the description information of the newly acquired file is ensured, the newly acquired file can be conveniently opened by the electronic equipment in real time, and the user experience is effectively improved.
While the above embodiment has been described with the first application being a mobile printing application, the second application being a wechat, and the files included in the system index directory being a system index directory table, it will be understood by those skilled in the art that the first application is not limited to the mobile printing application, the second application is not limited to the wechat, and the files included in the system index directory are not limited to the system index directory table.
Fig. 7 is a schematic structural diagram of a file processing apparatus according to an embodiment of the present invention. As shown in fig. 7, the file processing apparatus provided in this embodiment may include: a receiving module 71, a determining module 72 and a submitting module 73.
A receiving module 71, configured to receive a file retrieval request;
a determining module 72, configured to determine, when the file retrieval request corresponds to a file directory corresponding to a second application program, whether description information of a file in the file directory corresponding to the second application program, which is acquired by the electronic device, exists in files included in a system index directory;
a submitting module 73, configured to submit a file information update request to an operating system in the electronic device when it is determined that the description information of the file in the file directory corresponding to the second application does not exist in the file included in the system index directory, where the file information update request is used for enabling the operating system to store the description information of the file newly acquired in the file directory corresponding to the second application in the file included in the system index directory.
The file processing apparatus provided in this embodiment may execute the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 8, the electronic device provided in this embodiment includes: a memory 81 and at least one processor 82;
the memory 81 stores computer-executable instructions;
the at least one processor 82 executes computer-executable instructions stored by the memory 81 to cause the electronic device to perform a method as in any of the embodiments described above.
Wherein the memory 81 and the processor 82 may be connected by a bus 83.
For specific implementation principles and effects of the device provided in this embodiment, reference may be made to relevant descriptions and effects corresponding to the embodiments shown in fig. 1 to fig. 6, which are not described herein in detail.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer executing instruction is stored in the computer-readable storage medium, and when a processor executes the computer executing instruction, the method according to any of the above embodiments is implemented.
The computer readable storage medium may be, among others, ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to implement the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute some steps of the methods described in the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A file processing method applied to a first application program in an electronic device, the method comprising:
receiving a file retrieval request;
when the file retrieval request corresponds to a file directory corresponding to a second application program, determining whether description information of files in the file directory corresponding to the second application program, which is acquired by the electronic equipment, exists in files included in a system index directory;
and if the file information does not exist, submitting a file information updating request to an operating system in the electronic equipment, wherein the file information updating request is used for enabling the operating system to store the description information of the newly acquired file in the file directory corresponding to the second application program into the file included in the system index directory.
2. The method according to claim 1, wherein determining whether the description information of the file in the file directory corresponding to the second application acquired by the electronic device exists in the file included in the system index directory comprises:
starting a file retrieval module, and acquiring a file directory corresponding to the second application program and files included in the system index directory through the file retrieval module;
and determining whether the description information of the file in the file directory corresponding to the second application program, which is acquired by the electronic device, exists in the file included in the system index directory by performing traversal matching on the description information of the file in the file directory corresponding to the second application program and the description information of the file included in the system index directory.
3. The method of claim 2, further comprising:
determining files which are not indexed, wherein the files which are not indexed are files included in a file directory corresponding to the second application program, and the description information of the files which are not indexed does not exist in the files included in the system index directory;
and starting a file information management module, acquiring the description information of the file without the index establishment through the file information management module, and storing the description information.
4. The method of claim 1, wherein submitting a file information update request to an operating system within the electronic device comprises:
and starting an index management module, and submitting a file information updating request for enabling the operating system to store the description information of the newly acquired file in the file directory corresponding to the second application program into the file included in the system index directory to the operating system through the index management module.
5. The method of claim 1, further comprising:
after submitting a file information updating request to an operating system in the electronic equipment, judging whether the description information of a newly acquired file in a file directory corresponding to the second application program is stored in a file included in the system index directory;
if yes, loading a file corresponding to description information stored in a file included in the system index directory, wherein the description information includes description information of a newly acquired file;
if not, loading a file corresponding to the description information stored in the file included in the system index directory, wherein the description information does not include the description information of the newly acquired file.
6. The method of claim 1, further comprising:
after submitting a file information updating request to an operating system in the electronic equipment, the first application program displays a file corresponding to description information in files included in the system index directory.
7. The method according to any one of claims 1 to 6, wherein the newly acquired file in the file directory corresponding to the second application acquired by the electronic device includes at least one of:
a file received through wired transmission;
transmitting the received file wirelessly;
files saved by third party applications.
8. A file processing apparatus applied to a first application program in an electronic device, comprising:
the receiving module is used for receiving a file retrieval request;
the determining module is used for determining whether the description information of the file in the file directory corresponding to the second application program acquired by the electronic equipment exists in the file included in the system index directory when the file retrieval request corresponds to the file directory corresponding to the second application program;
and a submitting module, configured to submit a file information updating request to an operating system in the electronic device when it is determined that the description information of the file in the file directory corresponding to the second application does not exist in the file included in the system index directory, where the file information updating request is used for enabling the operating system to store the description information of the file newly acquired in the file directory corresponding to the second application in the file included in the system index directory.
9. An electronic device, comprising: a memory and at least one processor;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the electronic device to perform the method of any of claims 1-7.
10. A computer-readable storage medium having computer-executable instructions stored thereon which, when executed by a processor, implement the method of any one of claims 1-7.
CN202010843081.7A 2020-08-20 2020-08-20 File processing method and device, electronic equipment and storage medium Active CN111913914B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010843081.7A CN111913914B (en) 2020-08-20 2020-08-20 File processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010843081.7A CN111913914B (en) 2020-08-20 2020-08-20 File processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111913914A true CN111913914A (en) 2020-11-10
CN111913914B CN111913914B (en) 2024-04-30

Family

ID=73278453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010843081.7A Active CN111913914B (en) 2020-08-20 2020-08-20 File processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111913914B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104424321A (en) * 2013-09-09 2015-03-18 腾讯科技(深圳)有限公司 File directory obtainment method and file directory obtainment device
CN104636464A (en) * 2015-02-09 2015-05-20 腾讯科技(深圳)有限公司 Method and device for having access to file
CN107609119A (en) * 2017-09-13 2018-01-19 广东欧珀移动通信有限公司 Document handling method, mobile terminal and computer-readable recording medium
CN107977469A (en) * 2017-12-22 2018-05-01 腾讯科技(深圳)有限公司 To the method, apparatus and terminal being managed recently using file
CN109299039A (en) * 2018-08-30 2019-02-01 努比亚技术有限公司 A kind of file management method, equipment and computer readable storage medium
CN109359092A (en) * 2018-09-27 2019-02-19 腾讯科技(深圳)有限公司 File management method, desktop display method, device, terminal and medium
US20190121872A1 (en) * 2017-10-19 2019-04-25 International Business Machines Corporation Index management in storage system
US20190266258A1 (en) * 2018-02-28 2019-08-29 Microsoft Technology Licensing, Llc In-application support for topological changes to files during remote synchronization

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104424321A (en) * 2013-09-09 2015-03-18 腾讯科技(深圳)有限公司 File directory obtainment method and file directory obtainment device
CN104636464A (en) * 2015-02-09 2015-05-20 腾讯科技(深圳)有限公司 Method and device for having access to file
CN107609119A (en) * 2017-09-13 2018-01-19 广东欧珀移动通信有限公司 Document handling method, mobile terminal and computer-readable recording medium
US20190121872A1 (en) * 2017-10-19 2019-04-25 International Business Machines Corporation Index management in storage system
CN107977469A (en) * 2017-12-22 2018-05-01 腾讯科技(深圳)有限公司 To the method, apparatus and terminal being managed recently using file
US20190266258A1 (en) * 2018-02-28 2019-08-29 Microsoft Technology Licensing, Llc In-application support for topological changes to files during remote synchronization
CN109299039A (en) * 2018-08-30 2019-02-01 努比亚技术有限公司 A kind of file management method, equipment and computer readable storage medium
CN109359092A (en) * 2018-09-27 2019-02-19 腾讯科技(深圳)有限公司 File management method, desktop display method, device, terminal and medium

Also Published As

Publication number Publication date
CN111913914B (en) 2024-04-30

Similar Documents

Publication Publication Date Title
US11921996B2 (en) Information processing terminal and control method
US10554647B2 (en) Information processing device, information management method, and information processing system
EP3335411B1 (en) Electronic device and method of managing application programs thereof
US10599336B2 (en) Method of displaying content and electronic device adapted to the same
US20150278033A1 (en) Terminal and application restoring method
US20150128068A1 (en) Method for operating message application and electronic device implementing the same
CN109359091B (en) File management method, device, terminal and computer readable storage medium
AU2018430027B2 (en) Method for browsing application folder and electronic device
EP2972818B1 (en) Application registration and interaction
EP3340155A1 (en) Electronic device and method for displaying web page using the same
WO2024011899A1 (en) Widget loading method and apparatus, device, and storage medium
CN109117153B (en) Application processing method, device, terminal and storage medium
CN111316618B (en) Network page storage method and terminal
US10540415B2 (en) Apparatus and method for managing history information in an electronic device
EP3021250A1 (en) Electronic device and method for suggesting response manual in occurrence of denial
CN109845224B (en) Electronic device and method for operating an electronic device
CN114461691A (en) Control method and device of state machine, electronic equipment and storage medium
US20140365430A1 (en) Information processing apparatus, system, and control method
JP5975113B2 (en) Information processing apparatus, work environment cooperation method, and work environment cooperation program
CN112788090A (en) Network resource transmission method, device and system
CN111913914B (en) File processing method and device, electronic equipment and storage medium
US20170206209A1 (en) Junk directory identification method and apparatus
CN106302821B (en) Data request method and equipment thereof
US11240108B1 (en) End-to-end configuration assistance for cloud services
KR20190098516A (en) Method for managing data related to application and electronic device thereof

Legal Events

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