CN105095296B - File management method and device - Google Patents

File management method and device Download PDF

Info

Publication number
CN105095296B
CN105095296B CN201410207332.7A CN201410207332A CN105095296B CN 105095296 B CN105095296 B CN 105095296B CN 201410207332 A CN201410207332 A CN 201410207332A CN 105095296 B CN105095296 B CN 105095296B
Authority
CN
China
Prior art keywords
file
files
path
name
category
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.)
Active
Application number
CN201410207332.7A
Other languages
Chinese (zh)
Other versions
CN105095296A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410207332.7A priority Critical patent/CN105095296B/en
Publication of CN105095296A publication Critical patent/CN105095296A/en
Application granted granted Critical
Publication of CN105095296B publication Critical patent/CN105095296B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure relates to a file management method and device, and belongs to the field of internet. The method comprises the following steps: classifying the files according to the stored file paths of the files to obtain the categories of the files; for each file in the files included in the multiple categories, comparing the file path of the file with the preset file path of the file to be hidden; and if the preset file path of the file to be hidden comprises the file path of the file, determining the file as a target file, and hiding a file icon of the target file. The device comprises: the device comprises a classification module, a comparison module and a hiding module. According to the invention, the file icons of the application program files are hidden, so that the interference on searching the file icons of the user files when the number of the file icons of the application program files is large can be avoided, and the user can be prevented from deleting the application program files by mistake.

Description

File management method and device
Technical Field
The present disclosure relates to the field of internet, and in particular, to a file management method and apparatus.
Background
With the rapid development of terminal technology, more and more applications are supported by the terminal. Because the application program file is created when the application program is installed, and the application program file is displayed in the form of the file icon, when the number of the application programs installed by a user is large, the number of the file icons displayed in the terminal is large.
The terminal includes not only application files but also user files storing user data, and the user is generally not concerned with the application files. When the number of file icons of the application program file is large, the search of the file icon of the user file is interfered, so that the user file is not easy to search. And the user does not know which files are application files, it can also cause the user to delete application files by mistake.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a file management method and apparatus. The technical scheme is as follows:
according to a first aspect of embodiments of the present disclosure, there is provided a file management method, the method including:
classifying the files according to the stored file paths of the files to obtain the categories of the files;
for each file in the files included in the multiple categories, comparing the file path of the file with the preset file path of the file to be hidden;
and if the preset file path of the file to be hidden comprises the file path of the file, determining the file as a target file, and hiding a file icon of the target file.
Optionally, after the classifying the plurality of files according to the stored file paths of the plurality of files to obtain the categories to which the plurality of files belong, the method further includes:
moving the file icons of the files to corresponding category folders according to the categories to which the files belong;
modifying file paths of the plurality of files.
Optionally, the classifying the plurality of files according to the stored file paths of the plurality of files to obtain categories to which the plurality of files belong includes:
for each file in a plurality of stored files, acquiring a corresponding file name from a corresponding relation between the stored file name and a file path according to the file path of the file;
modifying the file name of the file according to the acquired file name, and acquiring a corresponding category from the corresponding relation between the stored file name and the category according to the modified file name;
and determining the obtained category as the category to which the file belongs.
Optionally, the modifying the file name of the file according to the acquired file name includes:
replacing the file name of the file with the acquired file name; or the like, or, alternatively,
and adding the acquired file name in the file name of the file.
Optionally, before hiding the file icon of the target file, the method further includes:
judging whether the target file is a file in a white list, wherein the white list comprises files with display attributes;
and if the target file is not the file in the white list, hiding a file icon of the target file.
Optionally, the method further comprises:
when a hiding instruction for setting a hiding attribute for a specified file is received, sending a file path of the specified file to a server, so that the server stores a corresponding relation between the file path and the file name and stores a corresponding relation between the file name and the category.
Optionally, the method further comprises:
receiving a corresponding relation between a file name and a file path sent by a server, and receiving a corresponding relation between a file name and a category sent by the server;
and updating the corresponding relation between the locally stored file name and the file path according to the corresponding relation between the received file name and the file path, and updating the corresponding relation between the locally stored file name and the category according to the corresponding relation between the received file name and the category.
According to a second aspect of the embodiments of the present disclosure, there is provided a file management apparatus, the apparatus including:
the classification module is used for classifying the files according to the stored file paths of the files to obtain the classes of the files;
the comparison module is used for comparing the file path of each file in the files included in the multiple categories with the preset file path of the file to be hidden;
and the hiding module is used for determining the file as a target file and hiding a file icon of the target file when the preset file path of the file to be hidden comprises the file path of the file.
Optionally, the apparatus further comprises:
the moving module is used for moving the file icons of the files to corresponding category folders according to the categories to which the files belong;
and the modification module is used for modifying the file paths of the files.
Optionally, the classification module comprises:
the device comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a corresponding file name from the corresponding relation between the stored file name and a file path according to the file path of each stored file in a plurality of files;
the second acquisition unit is used for modifying the file name of the file according to the acquired file name and acquiring a corresponding category from the corresponding relation between the stored file name and the category according to the modified file name;
a determining unit configured to determine the acquired category as a category to which the file belongs.
Optionally, the second obtaining unit includes:
the replacing subunit is used for replacing the file name of the file with the acquired file name; or the like, or, alternatively,
and the adding subunit is used for adding the acquired file name in the file name of the file.
Optionally, the hiding module further comprises:
the judging unit is used for judging whether the target file is a file in a white list, and the white list comprises files with display attributes;
and the hiding unit is used for hiding the file icon of the target file if the target file is not the file in the white list.
Optionally, the apparatus further comprises:
and the sending module is used for sending the file path of the specified file to a server when a hiding instruction for setting a hiding attribute for the specified file is received, so that the server stores the corresponding relation between the file path and the file name and stores the corresponding relation between the file name and the category.
Optionally, the apparatus further comprises:
the receiving module is used for receiving the corresponding relation between the file name and the file path sent by the server and receiving the corresponding relation between the file name and the category sent by the server;
and the updating module is used for updating the corresponding relation between the locally stored file name and the file path according to the corresponding relation between the received file name and the file path, and updating the corresponding relation between the locally stored file name and the locally stored file path according to the corresponding relation between the received file name and the locally stored file path.
According to a second aspect of the embodiments of the present disclosure, there is provided a file management apparatus, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
classifying the files according to the stored file paths of the files to obtain the categories of the files;
for each file in the files included in the multiple categories, comparing the file path of the file with the preset file path of the file to be hidden;
and if the preset file path of the file to be hidden comprises the file path of the file, determining the file as a target file, and hiding a file icon of the target file.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, after a plurality of files stored in the terminal are classified, only the category folder is displayed in the display interface of the terminal, so that the display interface of the terminal is tidier. In addition, the embodiment of the disclosure hides the file icons of some files to be hidden, wherein the files to be hidden are generally application program files, and after the file icons of the application program files are hidden, the number of the file icons displayed in the display interface of the terminal is small, so that the interference caused by searching the user files is avoided, and the user is prevented from deleting the application program files by mistake.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a file management method in accordance with an exemplary embodiment.
FIG. 2 is a flow diagram illustrating a file management method in accordance with an exemplary embodiment.
FIG. 3 is a schematic diagram illustrating a display interface in accordance with an exemplary embodiment.
FIG. 4 is a schematic diagram illustrating another display interface in accordance with an exemplary embodiment.
FIG. 5 is a schematic diagram illustrating a file management apparatus according to an example embodiment.
FIG. 6 is a block diagram illustrating an apparatus for file management in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Before explaining the embodiments of the present disclosure in detail, an application scenario of the embodiments of the present disclosure will be explained. When the number of the application programs installed in the terminal is large, the number of file icons of the application program files displayed in the terminal is large, the terminal also comprises user files for storing user data, and the user files are displayed in the file icons, so that a display interface of the terminal is messy, the files in the terminal can be classified to display the classified file icons, and the display interface is tidy. In addition, the file icon of the application file and the file icon of the user file are both displayed to the user, the user does not know which files are application files, when the user deletes the file icon of the application file, that is, the user deletes the application file, if the application file is the installation file of the application, a problem occurs in the operation of the application. If the application program file is the downloaded data file of the application program, the data needs to be downloaded again when the application program reuses the downloaded data. Therefore, the method provided by the embodiment of the disclosure can hide the file icon of the application program file, so as to avoid that the user deletes the application program file by mistake.
Fig. 1 is a flowchart illustrating a file management method according to an exemplary embodiment, which is used in a terminal, as shown in fig. 1, and includes the following steps.
In step 101, a plurality of files are classified according to file paths of the plurality of files stored, and categories to which the plurality of files belong are obtained.
In step 102, for each file in the files included in the plurality of categories, the file path of the file is compared with the preset file path of the file to be hidden.
In step 103, if the preset file path of the file to be hidden includes the file path of the file, the file is determined as a target file, and a file icon of the target file is hidden.
Optionally, after classifying the plurality of files according to the file paths of the plurality of stored files and obtaining the categories to which the plurality of files belong, the method further includes:
moving the file icons of the files to corresponding category folders according to the categories to which the files belong;
the file paths of the plurality of files are modified.
Optionally, classifying the plurality of files according to file paths of the plurality of stored files to obtain categories to which the plurality of files belong, including:
for each file in a plurality of stored files, acquiring a corresponding file name from the corresponding relation between the stored file name and the file path according to the file path of the file;
modifying the file name of the file according to the acquired file name, and acquiring a corresponding category from the corresponding relation between the stored file name and the category according to the modified file name;
and determining the acquired category as the category to which the file belongs.
Optionally, modifying the file name of the file according to the acquired file name includes:
replacing the file name of the file with the acquired file name; or the like, or, alternatively,
the acquired file name is added to the file name of the file.
Optionally, before hiding the file icon of the target file, the method further includes:
judging whether the target file is a file in a white list, wherein the white list comprises files with display attributes;
and if the target file is not a file in the white list, hiding a file icon of the target file.
Optionally, the method further comprises:
when a hiding instruction for setting a hiding attribute for a specified file is received, a file path of the specified file is sent to a server, so that the server stores the corresponding relation between the file path and the file name and stores the corresponding relation between the file name and the category.
Optionally, the method further comprises:
receiving a corresponding relation between a file name and a file path sent by a server, and receiving a corresponding relation between a file name and a category sent by the server;
and updating the corresponding relation between the locally stored file name and the file path according to the corresponding relation between the received file name and the file path, and updating the corresponding relation between the locally stored file name and the category according to the corresponding relation between the received file name and the category.
In the embodiment of the disclosure, after a plurality of files stored in the terminal are classified, only the category folder is displayed in the display interface of the terminal, so that the display interface of the terminal is tidier. In addition, the embodiment of the disclosure hides the file icons of some files to be hidden, wherein the files to be hidden are generally application program files, and after the file icons of the application program files are hidden, the number of the file icons displayed in the display interface of the terminal is small, so that the interference caused by searching the user files is avoided, and the user is prevented from deleting the application program files by mistake.
Fig. 2 is a flowchart illustrating a file management method according to an exemplary embodiment, where the file management method is used in a terminal, and the terminal may be a mobile phone, a handheld computer, or the like. Referring to fig. 2, the method includes:
in step 201, the terminal classifies the plurality of files according to the file paths of the plurality of files stored, and obtains the categories to which the plurality of files belong.
Specifically, for each file in a plurality of stored files, the terminal acquires a corresponding file name from the corresponding relation between the stored file name and the file path according to the file path of the file; modifying the file name of the file according to the acquired file name, and acquiring a corresponding category from the corresponding relation between the stored file name and the category according to the modified file name; and determining the acquired category as the category to which the file belongs.
The specific operation of modifying the file name of the file according to the acquired file name may be: replacing the file name of the file with the acquired file name; or, the acquired file name is added to the file name of the file. For example, the acquired file name is "Baidu", the file name of the file "Baidu" may be replaced by "Baidu", and "Baidu" may be added after or before the file name of the file "Baidu", so as to obtain the file name of the file "Baidu-Baidu" or "Baidu-Baidu".
The correspondence between the stored file name and the file path, and the correspondence between the file name and the category may be obtained from a server. The server can periodically send the corresponding relation between the file name and the file path and the corresponding relation between the file name and the category to the terminal; of course, the terminal may also send a request to the server to obtain the correspondence between the file name and the file path stored in the server, and the correspondence between the file name and the category when creating a new folder.
Further, the terminal receives the corresponding relation between the file name and the file path sent by the server and receives the corresponding relation between the file name and the category sent by the server; and updating the corresponding relation between the locally stored file name and the file path according to the corresponding relation between the received file name and the file path, and updating the corresponding relation between the locally stored file name and the category according to the corresponding relation between the received file name and the category.
It should be added that the application program in the terminal may be updated or upgraded frequently, and when the file path of the application program file may be modified after the application program is updated or upgraded, the terminal needs to obtain the correspondence between the file name and the file path and the correspondence between the file name and the category from the server again. Or, when the terminal cannot identify a file path in the correspondence between the file name and the file path stored locally, the terminal also needs to obtain the correspondence between the file name and the file path and the correspondence between the file name and the category from the server again.
In the embodiment of the present disclosure, the stored files may be application files, user files storing user data, application files and user files. The embodiments of the present disclosure are not particularly limited in this regard.
In the embodiment of the present disclosure, the terminal classifies a plurality of files according to file paths of the stored files, where the triggering condition may be a triggering when a folder is newly created, or may be a triggering when the terminal receives a file stored in the terminal for viewing, and this is not specifically limited in the embodiment of the present disclosure.
In step 202, the terminal moves the file icons of the plurality of files to corresponding category folders according to the categories to which the plurality of files belong.
The corresponding files are linked in the terminal in the form of file icons, so that after the files are classified, the file icons of the files can be moved to corresponding category folders, and at the moment, the files are classified.
The category folder may be created in advance by the terminal, or a corresponding category folder may be created for each category after a plurality of files included in the terminal are classified.
For example, the terminal includes 4 files, namely, a file run library, a comic book, a WPS, and a american show. Before the 4 files are classified, file icons of the 4 files displayed in the terminal are as shown in fig. 3. After the 4 files are classified, the categories of the running library and the consecutive watching belong to games, the category of the WPS belongs to documents, and the category of the American show belongs to pictures, so that the icons of the running library and the consecutive watching are moved to the category folder game corresponding to the games, the icons of the WPS are moved to the category folder document corresponding to the documents, the icons of the American show are moved to the category file pictures corresponding to the pictures, and the display interface after the movement is as shown in FIG. 4.
In step 203, the terminal modifies file paths of the plurality of files.
After the file icons of the files are moved to the corresponding category folders, the file paths of the files are also changed, so that the file paths of the files need to be modified.
Specifically, the specific operation of modifying the file paths of the multiple files may be: and adding the paths of the category folders in which the file icons of the files are positioned in the file paths of the files. For example, the file path of the run library is sd:/run library/paoku, the file path of the continuous view is sd:/continuous view/lianliankan, the file path of the WPS is sd:/WPS/dff/WPS, and the file path of the American show is sd:/American show/pt/mtxx. The file name of the category folder where the running library and the continuously-viewed file icon are located is game, the file name of the category folder where the WPS file icon is located is document, and the file name of the category folder where the American show file icon is located is picture. Therefore, the file path of the running library is modified to sd:/game/running library/paoku, the file path of the continuous view is sd:/game/continuous view/lianliankan, the file path of the WPS is sd:/document/WPS/dff/WPS, and the file path of the American show is sd:/picture/American show/pt/mtxx.
After the files in the terminal are classified according to the steps, the terminal displays category folders, each category folder comprises a plurality of file icons, each file icon links with the corresponding file, and at the moment, the number of folders displayed in the interface of the terminal is small, so that the interface of the terminal is tidy. In addition, the terminal can hide the file icon of the application program file in the terminal according to the following steps, so that the file icon of the application program file is prevented from interfering with the search of the user file, and the user is prevented from deleting the application program file by mistake.
In step 204, for each file in the files included in the plurality of categories, the file path of the file is compared with the preset file path of the file to be hidden.
The preset file path of the file to be hidden may be acquired from the server, or may be set in the terminal by the user. Preferably, the file path of the file to be hidden is obtained from the server.
The file path of the file to be hidden stored in the server can be obtained in any one of the following three ways, including:
in the first mode, when a terminal receives a hiding instruction for setting a hiding attribute for a specified file, the terminal sends a file path of the specified file to a server, so that the server stores a corresponding relationship between the file path and a file name of the specified file and a corresponding relationship between the file name and a category.
In a second manner, for any file, the server may count the number of users who set the hidden attribute for the file, and if the number of users is greater than or equal to a first preset threshold, the server may determine the file as a file to be hidden, and store a file path of the file in a file path of the file to be hidden. In addition, the server may also count the number of users using the file, and if the number of users is less than or equal to a second preset threshold, the server may add the file to a blacklist and store the file path of the file in the file path of the file to be hidden.
In this way, when the user needs to set the hidden attribute for the file, the terminal corresponding to the user needs to notify the server, so that the server counts the number of users who set the hidden attribute for the file.
Wherein the first preset threshold and the second preset threshold are set in advance.
And in the third mode, the manager counts the file paths of all the application program files, and stores the counted file paths as the file paths of the files to be hidden in the server.
Further, if the file path of the file to be hidden is acquired from the server, the file path of the file to be hidden may be periodically acquired from the server, and the file path of the locally stored file to be hidden may be updated. Of course, when the terminal executes the operation of hiding the file, the file path of the file to be hidden may be acquired from the server, and the file path of the file to be hidden stored locally may be updated.
In step 205, if the preset file path of the file to be hidden includes the file path of the file, the file is determined as the target file.
And if the preset file path of the file to be hidden comprises the file path of the file, determining that the file is the file needing to be hidden, and determining the file as a target file. If the preset file path of the file to be hidden does not comprise the file path of the file, determining that the file is the file which does not need to be hidden, and performing no operation on the file.
In step 206, the terminal determines whether the target file is a file in a white list, where the white list includes files with display attributes.
When a user sets a display attribute for a specified file, the user wants to display the file all the time without hiding the file, and at this time, the terminal stores the file name of the file or the file path of the file in a white list. Before hiding the file icon of the target file, whether the target file is a file in a white list needs to be judged first, so that the file icon of the file in the white list is prevented from being hidden.
In step 207, if the target file is not a file in the white list, the file icon of the target file is hidden.
After the file icon of the target file is hidden, the user cannot see the file icon of the target file, but the target file is still stored in the terminal.
Further, if the target file is a file in the white list, no operation is performed on the target file.
In the embodiment of the disclosure, after a plurality of files stored in the terminal are classified, file icons of the plurality of files are moved to corresponding category folders, so that only the category folders are displayed in a display interface of the terminal, and the display interface of the terminal is tidier. In addition, the embodiment of the disclosure hides the file icons of some files to be hidden, wherein the files to be hidden are generally application program files, and after the file icons of the application program files are hidden, the number of the file icons displayed in the display interface of the terminal is small, so that the interference caused by searching the user files is avoided, and the user is prevented from deleting the application program files by mistake.
FIG. 5 is a schematic diagram illustrating a file management apparatus according to an example embodiment. Referring to fig. 5, the apparatus includes a classification module 501, a comparison module 502, and a concealment module 503.
A classifying module 501, configured to classify the multiple files according to file paths of the stored multiple files, so as to obtain categories to which the multiple files belong;
a comparing module 502, configured to compare, for each file in the files included in the multiple categories, a file path of the file with a preset file path of a file to be hidden;
the hiding module 503 is configured to determine the file as a target file when a preset file path of the file to be hidden includes the file path of the file, and hide a file icon of the target file.
Optionally, the apparatus further comprises:
the moving module is used for moving the file icons of the files to corresponding category folders according to the categories to which the files belong;
and the modification module is used for modifying the file paths of the files.
Optionally, the classification module 501 comprises:
a first obtaining unit, configured to obtain, for each of the stored multiple files, a corresponding file name from a correspondence between the stored file name and a file path according to the file path of the file;
the second acquisition unit is used for modifying the file name of the file according to the acquired file name and acquiring a corresponding category from the stored corresponding relation between the file name and the category according to the modified file name;
and the determining unit is used for determining the acquired category as the category to which the file belongs.
Optionally, the second obtaining unit includes:
the replacing subunit is used for replacing the file name of the file with the acquired file name; or the like, or, alternatively,
and the adding subunit is used for adding the acquired file name in the file name of the file.
Optionally, the hiding module 503 further includes:
the judging unit is used for judging whether the target file is a file in a white list, and the white list comprises files with display attributes;
and the hiding unit is used for hiding the file icon of the target file if the target file is not the file in the white list.
Optionally, the apparatus further comprises:
and the sending module is used for sending the file path of the specified file to a server when a hiding instruction for setting a hiding attribute for the specified file is received, so that the server stores the corresponding relation between the file path and the file name and stores the corresponding relation between the file name and the category.
Optionally, the apparatus further comprises:
the receiving module is used for receiving the corresponding relation between the file name and the file path sent by the server and receiving the corresponding relation between the file name and the category sent by the server;
and the updating module is used for updating the corresponding relation between the locally stored file name and the file path according to the corresponding relation between the received file name and the file path, and updating the corresponding relation between the locally stored file name and the locally stored file path according to the corresponding relation between the received file name and the locally stored file path.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In the embodiment of the disclosure, after a plurality of files stored in the terminal are classified, only the category folder is displayed in the display interface of the terminal, so that the display interface of the terminal is tidier. In addition, the embodiment of the disclosure hides the file icons of some files to be hidden, wherein the files to be hidden are generally application program files, and after the file icons of the application program files are hidden, the number of the file icons displayed in the display interface of the terminal is small, so that the interference caused by searching the user files is avoided, and the user is prevented from deleting the application program files by mistake.
FIG. 6 is a block diagram illustrating an apparatus 600 for file management in accordance with an example embodiment. For example, the apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, apparatus 600 may include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operation at the device 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 606 provides power to the various components of device 600. Power components 606 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 600.
The multimedia component 608 includes a screen that provides an output interface between the device 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 600 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, audio component 610 includes a Microphone (MIC) configured to receive external audio signals when apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of components, such as a display and keypad of the apparatus 600, the sensor component 614 may also detect a change in position of the apparatus 600 or a component of the apparatus 600, the presence or absence of user contact with the apparatus 600, orientation or acceleration/deceleration of the apparatus 600, and a change in temperature of the apparatus 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the apparatus 600 and other devices in a wired or wireless manner. The apparatus 600 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the apparatus 600 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a file management method, the method comprising:
classifying the plurality of files according to the stored file paths of the plurality of files to obtain the categories to which the plurality of files belong;
for each file in the files included in the multiple categories, comparing the file path of the file with the preset file path of the file to be hidden;
and if the preset file path of the file to be hidden comprises the file path of the file, determining the file as a target file, and hiding a file icon of the target file.
Optionally, after classifying the plurality of files according to the file paths of the plurality of stored files and obtaining the categories to which the plurality of files belong, the method further includes:
moving the file icons of the files to corresponding category folders according to the categories to which the files belong;
the file paths of the plurality of files are modified.
Optionally, classifying the plurality of files according to file paths of the plurality of stored files to obtain categories to which the plurality of files belong, including:
for each file in a plurality of stored files, acquiring a corresponding file name from the corresponding relation between the stored file name and the file path according to the file path of the file;
modifying the file name of the file according to the acquired file name, and acquiring a corresponding category from the corresponding relation between the stored file name and the category according to the modified file name;
and determining the acquired category as the category to which the file belongs.
Optionally, modifying the file name of the file according to the acquired file name includes:
replacing the file name of the file with the acquired file name; or the like, or, alternatively,
the acquired file name is added to the file name of the file.
Optionally, before hiding the file icon of the target file, the method further includes:
judging whether the target file is a file in a white list, wherein the white list comprises files with display attributes;
and if the target file is not a file in the white list, hiding a file icon of the target file.
Optionally, the method further comprises:
when a hiding instruction for setting a hiding attribute for a specified file is received, a file path of the specified file is sent to a server, so that the server stores the corresponding relation between the file path and the file name and stores the corresponding relation between the file name and the category.
Optionally, the method further comprises:
receiving a corresponding relation between a file name and a file path sent by a server, and receiving a corresponding relation between a file name and a category sent by the server;
and updating the corresponding relation between the locally stored file name and the file path according to the corresponding relation between the received file name and the file path, and updating the corresponding relation between the locally stored file name and the category according to the corresponding relation between the received file name and the category.
In the embodiment of the disclosure, after a plurality of files stored in the terminal are classified, only the category folder is displayed in the display interface of the terminal, so that the display interface of the terminal is tidier. In addition, the embodiment of the disclosure hides the file icons of some files to be hidden, wherein the files to be hidden are generally application program files, and after the file icons of the application program files are hidden, the number of the file icons displayed in the display interface of the terminal is small, so that the interference caused by searching the user files is avoided, and the user is prevented from deleting the application program files by mistake.
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 application 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 (13)

1. A method of file management, the method comprising:
for each file in a plurality of stored files, acquiring a corresponding file name from a corresponding relation between the stored file name and a file path according to the file path of the file;
modifying the file name of the file according to the acquired file name, acquiring a corresponding category from the stored corresponding relation between the file name and the category according to the modified file name, and determining the acquired category as the category to which the file belongs;
for each file in files included in multiple categories, comparing a file path of the file with a preset file path of a file to be hidden, wherein the preset file path of the file to be hidden is determined by a server, the server is used for counting the number of users for setting a hidden attribute for each file in the files included in the multiple categories, determining the file with the number of users being larger than or equal to a first preset threshold value as the file to be hidden, and storing the file path of the file to be hidden;
and if the preset file path of the file to be hidden comprises the file path of the file, determining the file as a target file, and hiding a file icon of the target file.
2. The method of claim 1, wherein the obtaining a corresponding category from the stored correspondence between the file name and the category according to the modified file name, and determining the obtained category as the category to which the file belongs, further comprises:
moving the file icons of the files to corresponding category folders according to the categories to which the files belong;
modifying file paths of the plurality of files.
3. The method of claim 1, wherein the modifying the file name of the file according to the obtained file name comprises:
replacing the file name of the file with the acquired file name; or the like, or, alternatively,
and adding the acquired file name in the file name of the file.
4. The method of claim 1, wherein prior to hiding the file icon of the target file, further comprising:
judging whether the target file is a file in a white list, wherein the white list comprises files with display attributes;
and if the target file is not the file in the white list, hiding a file icon of the target file.
5. The method of any one of claims 1-4, further comprising:
when a hiding instruction for setting a hiding attribute for a specified file is received, sending a file path of the specified file to the server, so that the server stores a corresponding relation between the file path and the file name and stores a corresponding relation between the file name and the category.
6. The method of any one of claims 1-4, further comprising:
receiving a corresponding relation between a file name and a file path sent by the server, and receiving a corresponding relation between a file name and a category sent by the server;
and updating the corresponding relation between the locally stored file name and the file path according to the corresponding relation between the received file name and the file path, and updating the corresponding relation between the locally stored file name and the category according to the corresponding relation between the received file name and the category.
7. A file management apparatus, characterized in that the apparatus comprises:
the classification module is used for classifying the files according to the stored file paths of the files to obtain the classes of the files;
the device comprises a comparison module, a storage module and a processing module, wherein the comparison module is used for comparing a file path of a file with a preset file path of a file to be hidden for each file in a plurality of classes, the preset file path of the file to be hidden is determined by a server, the server is used for counting the number of users for setting a hidden attribute for each file in the files in the plurality of classes, determining the file with the number of the users being larger than or equal to a first preset threshold value as the file to be hidden, and storing the file path of the file to be hidden;
the hiding module is used for determining the file as a target file and hiding a file icon of the target file when the preset file path of the file to be hidden comprises the file path of the file;
the classification module comprises:
the device comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a corresponding file name from the corresponding relation between the stored file name and a file path according to the file path of each stored file in a plurality of files;
the second acquisition unit is used for modifying the file name of the file according to the acquired file name and acquiring a corresponding category from the corresponding relation between the stored file name and the category according to the modified file name;
a determining unit configured to determine the acquired category as a category to which the file belongs.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the moving module is used for moving the file icons of the files to corresponding category folders according to the categories to which the files belong;
and the modification module is used for modifying the file paths of the files.
9. The apparatus of claim 7, wherein the second obtaining unit comprises:
the replacing subunit is used for replacing the file name of the file with the acquired file name; or the like, or, alternatively,
and the adding subunit is used for adding the acquired file name in the file name of the file.
10. The apparatus of claim 7, wherein the concealment module further comprises:
the judging unit is used for judging whether the target file is a file in a white list, and the white list comprises files with display attributes;
and the hiding unit is used for hiding the file icon of the target file if the target file is not the file in the white list.
11. The apparatus of any of claims 7-10, wherein the apparatus further comprises:
and the sending module is used for sending the file path of the specified file to the server when a hiding instruction for setting a hiding attribute for the specified file is received, so that the server stores the corresponding relation between the file path and the file name and stores the corresponding relation between the file name and the category.
12. The apparatus of any of claims 7-10, wherein the apparatus further comprises:
the receiving module is used for receiving the corresponding relation between the file name and the file path sent by the server and receiving the corresponding relation between the file name and the category sent by the server;
and the updating module is used for updating the corresponding relation between the locally stored file name and the file path according to the corresponding relation between the received file name and the file path, and updating the corresponding relation between the locally stored file name and the locally stored file path according to the corresponding relation between the received file name and the locally stored file path.
13. A file management apparatus, characterized in that the apparatus comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
for each file in a plurality of stored files, acquiring a corresponding file name from a corresponding relation between the stored file name and a file path according to the file path of the file;
modifying the file name of the file according to the acquired file name, acquiring a corresponding category from the stored corresponding relation between the file name and the category according to the modified file name, and determining the acquired category as the category to which the file belongs;
for each file in files included in multiple categories, comparing a file path of the file with a preset file path of a file to be hidden, wherein the preset file path of the file to be hidden is determined by a server, the server is used for counting the number of users for setting a hidden attribute for each file in the files included in the multiple categories, determining the file with the number of users being larger than or equal to a first preset threshold value as the file to be hidden, and storing the file path of the file to be hidden;
and if the preset file path of the file to be hidden comprises the file path of the file, determining the file as a target file, and hiding a file icon of the target file.
CN201410207332.7A 2014-05-16 2014-05-16 File management method and device Active CN105095296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410207332.7A CN105095296B (en) 2014-05-16 2014-05-16 File management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410207332.7A CN105095296B (en) 2014-05-16 2014-05-16 File management method and device

Publications (2)

Publication Number Publication Date
CN105095296A CN105095296A (en) 2015-11-25
CN105095296B true CN105095296B (en) 2020-03-17

Family

ID=54575747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410207332.7A Active CN105095296B (en) 2014-05-16 2014-05-16 File management method and device

Country Status (1)

Country Link
CN (1) CN105095296B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105915501A (en) * 2015-12-25 2016-08-31 乐视致新电子科技(天津)有限公司 Method, server and client for hiding photograph album files
CN106997367B (en) 2016-01-26 2020-05-08 华为技术有限公司 Program file classification method, classification device and classification system
CN105912589A (en) * 2016-03-31 2016-08-31 联想(北京)有限公司 Information processing method and electronic device
CN109634920A (en) * 2018-11-19 2019-04-16 北京奇虎科技有限公司 File consolidation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077214A (en) * 2012-12-28 2013-05-01 华为技术有限公司 File storage method and device
CN103077199A (en) * 2012-12-26 2013-05-01 北京思特奇信息技术股份有限公司 File resource searching and locating method and device
CN103324717A (en) * 2013-06-26 2013-09-25 上海斐讯数据通信技术有限公司 File management method and mobile terminal
CN103618947A (en) * 2013-11-22 2014-03-05 北京奇虎科技有限公司 Method and device for displaying television external device files

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916164A (en) * 2010-08-11 2010-12-15 中兴通讯股份有限公司 Mobile terminal and file browsing method implemented by same
CN102163238A (en) * 2011-05-09 2011-08-24 奇智软件(北京)有限公司 Method and system for file management based on type

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077199A (en) * 2012-12-26 2013-05-01 北京思特奇信息技术股份有限公司 File resource searching and locating method and device
CN103077214A (en) * 2012-12-28 2013-05-01 华为技术有限公司 File storage method and device
CN103324717A (en) * 2013-06-26 2013-09-25 上海斐讯数据通信技术有限公司 File management method and mobile terminal
CN103618947A (en) * 2013-11-22 2014-03-05 北京奇虎科技有限公司 Method and device for displaying television external device files

Also Published As

Publication number Publication date
CN105095296A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
KR101725706B1 (en) Method, device and terminal for displaying application messages, program and recording medium
CN105843615B (en) Notification message processing method and device
US10509540B2 (en) Method and device for displaying a message
CN107908351B (en) Application interface display method and device and storage medium
CN104866179B (en) Terminal application program management method and device
US20180121040A1 (en) Method and device for managing notification messages
CN106775202B (en) Information transmission method and device
CN107562349B (en) Method and device for executing processing
CN104462296B (en) File management method and device and terminal
CN106896991B (en) Method and device for updating information
CN106354504B (en) Message display method and device
EP3089436A1 (en) Methods and devices for calling based on cloud card
CN105095296B (en) File management method and device
CN107402767B (en) Method and device for displaying push message
CN109521938B (en) Method and device for determining data evaluation information, electronic device and storage medium
CN108984098B (en) Information display control method and device based on social software
CN105260088B (en) Information classification display processing method and device
CN109842688B (en) Content recommendation method and device, electronic equipment and storage medium
CN112130719A (en) Page display method, device and system, electronic equipment and storage medium
CN106919302B (en) Operation control method and device of mobile terminal
CN112083841B (en) Information input method, device and storage medium
CN111049732B (en) Push message display method and device, electronic equipment and medium
CN110213062B (en) Method and device for processing message
CN109714247B (en) Group chat information processing method and device, electronic equipment and storage medium
CN113761275A (en) Video preview moving picture generation method, device and equipment and readable storage medium

Legal Events

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