CN106648720A - Method, device and terminal for determining residual catalog cleaning type - Google Patents

Method, device and terminal for determining residual catalog cleaning type Download PDF

Info

Publication number
CN106648720A
CN106648720A CN201510732528A CN201510732528A CN106648720A CN 106648720 A CN106648720 A CN 106648720A CN 201510732528 A CN201510732528 A CN 201510732528A CN 201510732528 A CN201510732528 A CN 201510732528A CN 106648720 A CN106648720 A CN 106648720A
Authority
CN
China
Prior art keywords
directory
type
list
residual
remaining
Prior art date
Application number
CN201510732528A
Other languages
Chinese (zh)
Inventor
颜梅兴
Original Assignee
北京金山安全软件有限公司
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 北京金山安全软件有限公司 filed Critical 北京金山安全软件有限公司
Priority to CN201510732528A priority Critical patent/CN106648720A/en
Publication of CN106648720A publication Critical patent/CN106648720A/en

Links

Abstract

The embodiment of the invention discloses a method, device and terminal for determining a residual catalog cleaning type. The method comprises the steps that a residual catalog under a system storage catalog is determined; if catalog characteristics of the residual catalog cannot satisfy conditions for cautious cleaning, whether the catalog type of the residual catalog exists in a preset universal reservation list will be judged; if the catalog type does not exist in the preset universal reservation list, whether catalog information of the residual catalog contains sensitive word information will be judged; and if the catalog information does not contain the sensitive word information, the cleaning type of the residual catalog will be deemed as suggested cleaning. Through application of the method, device and terminal disclosed by the embodiment of the invention, the cleaning type of the residual catalog could be determined automatically, and the efficiency for determining the residual catalog cleaning type could be increased.

Description

一种残留目录清理类型的确定方法、装置及终端 A method for determining the type of cleaning residue directory, and a terminal device

技术领域 FIELD

[0001] 本发明涉及终端技术领域,尤其涉及一种残留目录清理类型的确定方法、装置及终端。 [0001] Technical Field The present invention relates to a terminal, particularly to a cleaning residual directory type determination method, and a terminal apparatus.

背景技术 Background technique

[0002]目前,用户可在个人终端(如智能手机、平板电脑、笔记本电脑、智能穿戴设备等)上装载多种应用,也可对装载的应用进行卸载。 [0002] Currently, the user may be a personal terminal (such as smart phones, tablet computers, notebook computers, intelligent wearable devices etc.) loaded on the plurality of applications, the application can also be loaded unloaded. 通常,当安装某一应用程序后,应用程序会在终端的内置或外置存储器中写入数据。 Typically, when an application after installing the application writes data in the internal or external memory of the terminal. 其中,外置存储器可包括安全数码卡(简称:SD卡)等。 Among them, the external memory may include Secure Digital Card (abbreviation: SD card) and so on. 当该应用程序被卸载后,在内置存储器中的数据会相应被删除,然而在外置存储器中存储的该应用对应的数据不会被删除,因此,会在个人终端上存储大量的卸载残留目录以及残留目录包含的子目录或子文件,而这些卸载残留文件大部分对于用户是垃圾文件,需要进一步清除。 When the application is uninstalled, the data in the internal memory will correspondingly be deleted, but the corresponding application stored in external memory data is not deleted, and therefore, a large number of unloading stored in the personal directory remaining terminal and subdirectories or subfolders contain residual directory, and uninstall these residual files for most users is junk files, need to be further removed.

[0003] 通常,需要通过预先设置的清理类型对其进行清理,在设置清理类型的过程中,需要人为判断残留目录的特征,并根据该特征设置残留目录的清理类型为保存或清理。 [0003] Generally, it is necessary to clean by cleaning its pre-set type, provided the type of cleaning process, requires human determination of residual directory features, and setting the purge residual type directory is stored or clean according to this feature. 然而通过人工识别残留目录清理类型的方式,导致确定残留目录的清理类型效率较低。 However, by manually identifying the type of cleaning residue directory manner, resulting in a lower directory to determine the residual cleaning efficiency type.

发明内容 SUMMARY

[0004] 本发明实施例提供了一种残留目录清理类型的确定方法、装置及终端。 Embodiment [0004] The present invention provides a method of determining the type of cleaning residue directory, and a terminal device. 能够自动确定残留目录的清理类型,提升了确定残留目录清理类型的效率。 Able to automatically determine the type of cleanup of residual directory, directory cleanup to enhance the residual determine the type of efficiency.

[0005] —方面,本发明的实施例提供了一种残留目录清理类型的确定方法,该方法可包括: [0005] - aspect, embodiments of the present invention provides a method of determining the type of cleaning residue directory, the method may comprise:

[0006] 确定系统存储目录下的残留目录; [0006] determining system directory in the remaining storage directory;

[0007] 若所述残留目录的目录特征不满足慎重清理的条件,则判断所述残留目录的目录类型是否在预设的通用保留列表中; [0007] wherein if the directory does not satisfy the remaining directory carefully cleaned condition, it is determined whether the remaining directory type universal directory retained in a preset list;

[0008] 若所述目录类型不在所述预设的通用保留列表中,则判断所述残留目录的目录信息是否包含敏感词信息; [0008] When the directory is not the type of the preset general reservation list, it is determined that the residual content information directory contains sensitive information word;

[0009] 若所述目录信息不包含所述敏感词信息,则确定所述残留目录的清理类型为建议清理。 [0009] When the content information does not include the word sensitive information, the type of cleaning residual directory is determined recommended cleaning.

[0010] 作为可选的实施例,所述确定系统存储目录下的残留目录,包括: [0010] As an alternative embodiment, determining the remaining storage directory under the directory system, comprising:

[0011] 获取所述系统存储目录下的文件目录; [0011] Gets the directory file system storage directory;

[0012] 针对所述获取的文件目录,判断所述文件目录对应的应用程序是否已经卸载; [0012] for the acquisition of a file directory, the file directory corresponding to the determination whether the application has been unloaded;

[0013] 如果判断出所述文件目录对应的应用程序已经卸载,则确定所述文件目录以及所述文件目录下的所有子目录为残留目录。 [0013] If it is determined that the file directory corresponding to the application has been unloaded, it is determined that the file directory and all subdirectories of the directory file directory residue.

[0014] 作为可选的实施例,所述针对所获取的某级目录,判断所述某级目录对应的应用程序是否已经卸载,包括: [0014] As an alternative embodiment, the level for a certain directory acquired, determining whether the directory corresponding to a stage of application has been uninstalled, comprising:

[0015] 判断应用程序安装列表中是否存在所述文件目录对应的包名称,如果不存在则确定所述文件目录对应的应用程序已经卸载。 [0015] It is determined whether there is application installation file directory corresponding to the package name in the list, determining if there is no file directory corresponding to the application has been uninstalled.

[0016] 作为可选的实施例,所述残留目录的目录特征满足慎重清理的条件包括以下条件中的至少一种或组合: [0016] As an optional feature of the directory embodiments, the careful cleaning of residual does satisfy condition comprises at least one or combination of the following conditions:

[0017] 所述残留目录的目录特征符合正则算法; [0017] Contents directory wherein said residual regular compliance algorithm;

[0018] 所述残留目录的目录特征中的路径长度小于预设阈值;和/或 [0018] wherein the remaining length of the directory path directory less than a preset threshold value; and / or

[0019] 所述残留目录的目录特征中包含中文信息。 [0019] wherein said directory contains Chinese residual directory information.

[0020] 作为可选的实施例,在所述判断所述残留目录的目录类型是否在预设的通用保留列表中之前,还包括: [0020] As an alternative embodiment, the determination of the residual directory type directory is before the reserved list preset general, further comprising:

[0021] 统计所述残留目录中包含的子文件的文件类型; [0021] The file type of said remaining sub-file statistics contained in the directory;

[0022] 将文件数量最多的文件类型确定为目录类型。 [0022] The largest number of file types to determine the type of directory.

[0023] 作为可选的实施例,所述方法还包括: [0023] As an alternative embodiment, the method further comprising:

[0024] 检测是否存在针对所述残留目录的特定保留列表,其中,所述特定保留列表包括通用保留列表中的一个或多个文件类型; [0024] detecting the presence of the residual reserve list for a particular directory, wherein the specific retention list comprises a list of generic file type, one or more reserved;

[0025] 所述判断所述残留目录的目录类型是否在预设的通用保留列表中,包括: [0025] The type of the directory is determined whether the remaining directory preset general the reserved list, comprising:

[0026] 若检测到存在所述特定保留列表,则判断所述残留目录的目录类型是否在所述特定保留列表中; [0026] If the particular reservation list to detect the presence, the type of the directory is determined whether or not residual in the specific directory reservation list;

[0027] 若检测到不存在所述特定保留列表,则判断所述残留目录的目录类型是否在所述通用保留列表中。 [0027] When the specific detection of the reserve list does not exist, the directory type is determined whether the remaining reserved directory list in said general.

[0028] 作为可选的实施例,所述方法还包括: [0028] As an alternative embodiment, the method further comprising:

[0029] 根据针对所述通用保留列表的修改指令,对所述通用保留列表进行修改; [0029] The reservation list for the general modification instruction, the general reserve list modification;

[0030] 其中,所述判断所述残留目录的目录类型是否在预设的通用保留列表中,包括: [0030] wherein, the directory type is determined whether the directory of the remaining preset general reserve list, comprising:

[0031] 判断所述残留目录的目录类型是否在修改后的通用保留列表中。 [0031] Contents of the type determining whether the remaining common directory modified reservation list.

[0032] 作为可选的实施例,所述方法还包括: [0032] As an alternative embodiment, the method further comprising:

[0033] 若所述残留目录的目录特征满足所述慎重清理的条件,或若所述残留目录的目录类型在所述保留列表中,或若所述残留目录的目录信息包括敏感词信息,则确定所述残留目录的清理类型为慎重清理。 [0033] wherein if the directory satisfy the remaining directory carefully cleaned condition, or if the remaining directory of directory type at the reservation list or directory if the directory information comprises residual information sensitive words, the determining the type of cleaning residual directory careful cleaning.

[0034] 作为可选的实施例,在所述确定所述残留目录的清理类型为建议清理之后,所述方法还包括: [0034] As an alternative embodiment, after the determination of the recommended cleaning residual directory type cleaning, said method further comprising:

[0035] 将所述残留目录加入建议清理列表; [0035] The residue was added recommend cleaning the directory listing;

[0036] 将所述建议清理列表显示在建议清理界面; [0036] recommend cleaning the recommendation list displayed on the screen cleaning;

[0037] 根据用户在所述建议清理界面上的确认操作,对所述建议清理列表的列表目录进行删除。 [0037] According to the recommendations in the user confirm the action on the clean-up interface, the list of suggestions to clean up the directory list will be deleted.

[0038] 作为可选的实施例,在所述确定所述残留目录的清理类型为慎重清理之后,所述方法还包括: After [0038] As an alternative embodiment, the determination of the type of cleaning residual directory careful cleaning, said method further comprising:

[0039] 将所述残留目录加入慎重清理列表; [0039] The residue was added carefully clean the directory listing;

[0040] 将所述慎重清理列表显示在深度清理界面; [0040] carefully cleaning the cleaning list display screen in the depth;

[0041] 根据用户在所述深度清理界面上的选择操作,对所述慎重清理列表中的所述选择操作对应的列表目录进行删除。 [0041] The user selects the cleaning operation on the depth of the interface, the careful cleaning of the selection list corresponding to an operation to delete a directory listing.

[0042] 另一方面,本发明的实施例提供了一种残留目录清理类型的确定装置,该装置可包括: [0042] On the other hand, embodiments of the present invention provides a method of determining the type of residue directory cleanup apparatus may comprise:

[0043] 第一确定模块,用于确定系统存储目录下的残留目录; [0043] a first determining module configured to determine the system directory in the remaining storage directory;

[0044] 第一判断模块,用于若所述残留目录的目录特征不满足慎重清理的条件,则判断所述残留目录的目录类型是否在预设的通用保留列表中; [0044] a first determining module, wherein if the directory does not satisfy the remaining directory carefully cleaned condition, it is determined whether the remaining directory type universal directory retained in a preset list;

[0045] 第二判断模块,用于若所述第一判断模块判断出所述目录类型不在所述预设的通用保留列表中,则判断所述残留目录的目录信息是否包含敏感词信息; [0045] The second determining module is configured to, if the first judging module determines that the type is not in the predetermined directory general reservation list, it is determined that the residual content information directory contains sensitive information word;

[0046] 第二确定模块,用于若所述第二判断模块判断出所述目录信息不包含所述敏感词信息,则确定所述残留目录的清理类型为建议清理。 [0046] The second determining module, for determining if the second module determines that the content information does not include the word sensitive information, it is determined that the remaining cleaning type directory is recommended cleaning.

[0047] 作为可选的实施例,所述第一确定模块包括: [0047] As an alternative embodiment, the first determination module comprises:

[0048] 获取单元,用于获取所述系统存储目录下的文件目录; [0048] acquiring unit, for acquiring a file directory in the directory of the storage system;

[0049] 第一判断单元,用于针对所述获取的文件目录,判断所述文件目录对应的应用程序是否已经卸载; [0049] The first determining unit configured for obtaining the file directory of the file directory corresponding to determining whether the application has been unloaded;

[0050] 第一确定单元,用于如果所述第一判断单元判断出所述文件目录对应的应用程序已经卸载,则确定所述文件目录以及所述文件目录下的所有子目录为残留目录。 [0050] The first determining unit, if said first determination means determines that the application program corresponding to the file directory has been unloaded, it is determined that the file directory and all subdirectories of the directory file directory residue.

[0051] 作为可选的实施例,所述第一判断单元具体用于: [0051] As an alternative embodiment, the first determination unit is configured to:

[0052] 判断应用程序安装列表中是否存在所述文件目录对应的包名称,如果不存在则确定所述文件目录对应的应用程序已经卸载。 [0052] It is determined whether there is application installation file directory corresponding to the package name in the list, determining if there is no file directory corresponding to the application has been uninstalled.

[0053] 作为可选的实施例,所述残留目录的目录特征满足慎重清理的条件包括以下条件中的至少一种或组合: [0053] As an optional feature of the directory embodiments, the careful cleaning of residual does satisfy condition comprises at least one or combination of the following conditions:

[0054] 所述残留目录的目录特征符合正则算法; [0054] Contents directory wherein said residual regular compliance algorithm;

[0055] 所述残留目录的目录特征中的路径长度小于预设阈值;和/或 [0055] wherein the remaining length of the directory path directory less than a preset threshold value; and / or

[0056] 所述残留目录的目录特征中包含中文信息。 The [0056] Contents directory contains the remaining features Chinese information.

[0057] 作为可选的实施例,所述装置还包括: [0057] As an alternative embodiment, the apparatus further comprising:

[0058] 统计模块,用于在所述第一判断模块判断所述残留目录的目录类型是否在预设的通用保留列表中之前,统计所述残留目录中包含的子文件的文件类型; [0058] Statistics module for the first judging module determines whether the directory before the remaining types in a predetermined directory general the reserved list, the count remaining sub-directory file contained in the file type;

[0059] 第三确定模块,用于将文件数量最多的文件类型确定为目录类型。 [0059] The third determining module, the largest number of the file type is used to determine the type of the directory.

[0060] 作为可选的实施例,所述装置还包括: [0060] As an alternative embodiment, the apparatus further comprising:

[0061] 检测模块,用于检测是否存在针对所述残留目录的特定保留列表,其中,所述特定保留列表包括通用保留列表中的一个或多个文件类型; [0061] detection means for detecting the presence or absence of the residual reserve list for a particular directory, wherein the list comprises the specific retention general reservation list one or more file types;

[0062] 其中,所述第一判断模块还用于: [0062] wherein the first determining module is further configured to:

[0063] 若所述检测模块检测到存在所述特定保留列表,则判断所述残留目录的目录类型是否在所述特定保留列表中; [0063] When the detection module detects the presence of the particular reservation list, it is determined that the remaining directory type in the specific directory whether the reserved list;

[0064] 若所述检测模块检测到不存在所述特定保留列表,则判断所述残留目录的目录类型是否在所述通用保留列表中。 [0064] When the detection module detects the specific reservation list does not exist, the directory type is determined whether the remaining reserved directory list in said general.

[0065] 作为可选的实施例,所述装置还包括: [0065] As an alternative embodiment, the apparatus further comprising:

[0066] 修改模块,用于根据针对所述通用保留列表的修改指令,对所述通用保留列表进行修改; [0066] The modification module for modifying the generic instruction for reservation list, the modified list general reservation;

[0067] 其中,所述第一判断模块还用于: [0067] wherein the first determining module is further configured to:

[0068] 判断所述残留目录的目录类型是否在修改后的通用保留列表中。 [0068] Contents of the type determining whether the remaining common directory modified reservation list.

[0069] 作为可选的实施例,所述装置还包括: [0069] As an alternative embodiment, the apparatus further comprising:

[0070] 第四确定模块,用于若所述残留目录的目录特征满足所述慎重清理的条件,或若所述第一判断模块判断出所述残留目录的目录类型在所述保留列表中,或若所述第二判断模块判断出所述残留目录的目录信息包括敏感词信息,则确定所述残留目录的清理类型为慎重清理。 [0070] The fourth determining module, if the directory for the directory feature residue carefully cleaned satisfy the condition, or if the first judging module determines that the type of the directory in the directory remaining reservation list, or if the second determining module determines the residual content information directory including sensitive information words, the type of cleaning residual directory is determined to be carefully cleaned.

[0071] 作为可选的实施例,所述装置还包括: [0071] As an alternative embodiment, the apparatus further comprising:

[0072] 第一加入模块,用于在所述第二确定模块确定所述残留目录的清理类型为建议清理之后,将所述残留目录加入建议清理列表; [0072] Add to a first module for cleaning is recommended after the addition of the remaining recommended cleaning directory listings in the second determining module determines that the type of cleaning residual directory;

[0073] 第一显示模块,用于将所述建议清理列表显示在建议清理界面; [0073] The first display module, for displaying the list of recommendations in the proposed cleaning clean interface;

[0074] 第一删除模块,用于根据用户在所述建议清理界面上的确认操作,对所述建议清理列表的列表目录进行删除。 [0074] a first deleting module, according to a user the recommendation on the confirmation operation screen cleaning, the cleaning is recommended playlist directory list for deletion.

[0075] 作为可选的实施例,所述装置还包括: [0075] As an alternative embodiment, the apparatus further comprising:

[0076] 第二加入模块,用于在所述第四确定模块确定所述残留目录的清理类型为慎重清理之后,将所述残留目录加入慎重清理列表; [0076] The addition of a second module for careful cleaning of the fourth determination module determines that the type of residual directory after cleaning, the residue was added carefully cleaning the directory listing;

[0077] 第二显示模块,用于将所述慎重清理列表显示在深度清理界面; [0077] The second display module configured to display the list carefully cleaning the clean interface depth;

[0078] 第二删除模块,用于根据用户在所述深度清理界面上的选择操作,对所述慎重清理列表中的所述选择操作对应的列表目录进行删除。 [0078] The second deleting module, configured to operate according to user selection interface in the depth of cleaning, the careful cleaning of the selection list corresponding to an operation to delete a directory listing.

[0079] 又一方面,本发明的实施例提供了一种终端,该终端可包括用户接口、存储器及处理器,其中,所述存储器中存储一组程序代码,且所述处理器调用所述存储器中存储的程序代码,用于执行以下操作: [0079] In yet another aspect, embodiments of the present invention provides a terminal, the terminal may include a user interface, a memory and a processor, wherein the memory stores a set of program code, and the processor invoking the program code stored in the memory, for performing the following operations:

[0080] 确定系统存储目录下的残留目录; [0080] determining system directory in the remaining storage directory;

[0081] 若所述残留目录的目录特征不满足慎重清理的条件,则判断所述残留目录的目录类型是否在预设的通用保留列表中; [0081] wherein if the directory does not satisfy the remaining directory carefully cleaned condition, it is determined whether the remaining directory type universal directory retained in a preset list;

[0082] 若所述目录类型不在所述预设的通用保留列表中,则判断所述残留目录的目录信息是否包含敏感词信息; [0082] When the directory is not the type of the preset general reservation list, it is determined that the residual content information directory contains sensitive information word;

[0083] 若所述目录信息不包含所述敏感词信息,则确定所述残留目录的清理类型为建议清理。 [0083] When the content information does not include the word sensitive information, the type of cleaning residual directory is determined recommended cleaning.

[0084] 本发明实施例中,通过确定系统存储目录下的残留目录,并通过判断该残留目录的目录特征是否满足清理条件,残留目录的目录类型是否在预设的通用保留列表中,残留目录的目录信息是否包含敏感词信息等多维度方式,确定残留目录的清理类型,从而能够自动识别及确定残留目录的清理类型,提高了对残留目录的处理效率。 [0084] The embodiments of the present invention, the system determines the residual storage directory under the directory, and the directory is determined by the characteristics of the remaining directory flush condition is satisfied, whether the directory type residue in a predetermined directory of general reserve list, the residual directory content information contains sensitive information word multi-dimensional manner, determine the type of cleaning residual directory, it is possible to automatically identify and determine the type of cleaning residual directory, the processing efficiency of the residual directory.

附图说明 BRIEF DESCRIPTION

[0085] 为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。 [0085] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, briefly describes the accompanying drawings required for describing the embodiments used in the following embodiments will be apparent in the following description of the accompanying drawings show some embodiments of the present invention. , those of ordinary skill in the art is concerned, without any creative effort, and may also obtain other drawings based on these drawings.

[0086] 图1是本发明中的一种残留目录清理类型的确定方法的一实施例的流程图; [0086] FIG. 1 is a flowchart of an embodiment of the determination method of the present invention provides a directory cleaning residual type;

[0087] 图2是本发明中的一种残留目录清理类型的确定方法的另一实施例的流程图; [0087] FIG 2 is a flowchart of another method of determining the present invention provides a cleaning residual directory type embodiment;

[0088]图3是本发明中的一种残留目录清理类型的确定装置的一实施例的结构示意图; [0088] FIG. 3 is a schematic view of an embodiment of the present invention, means for determining a type of cleaning residual directory;

[0089]图4是本发明中的一种残留目录清理类型的确定装置的另一实施例的结构示意图; [0089] FIG. 4 is a schematic diagram of another configuration of the present invention provides a cleaning residual directory type determination apparatus of the embodiment;

[0090] 图5是本发明中的一种终端的一实施例的结构示意图; [0090] FIG. 5 is a schematic structural diagram of an embodiment of the present invention in a terminal;

[0091]图6是本发明中的目录类型与扩展名和/或文件头的对应关系列表的一实施例的示意图。 [0091] FIG. 6 is a schematic view of an embodiment of the correspondence relationship between the directory name of the type and extension of the present invention and / or file header list.

具体实施方式 Detailed ways

[0092] 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。 [0092] below in conjunction with the present invention in the accompanying drawings, technical solutions of embodiments of the present invention are clearly and completely described, obviously, the described embodiments are part of the embodiments of the present invention rather than all embodiments . 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments of ordinary skill in the art without any creative effort shall fall within the scope of the present invention.

[0093] 下面参考附图对本发明的实施例进行描述。 [0093] Next, with reference to drawings, embodiments of the present invention will be described. 其中,本发明实施例所述装置或终端包括可安装Android系统的应用程序的用户设备,如手机、平板电脑、笔记本、穿戴式设备等。 Wherein the embodiments of the invention the apparatus comprises a user equipment or terminal can install applications Android system, such as mobile phones, tablet PCs, laptops, and the like wearable devices.

[0094] 参见图1,图1为本发明中的一种残留目录清理类型的确定方法的一实施例的流程图。 A flowchart of a method for determining [0094] Referring to FIG. 1, FIG. 1 of the present invention, one residue for directory cleanup type embodiment. 该方法可包括以下步骤。 The method may comprise the following steps.

[0095] 步骤S101,确定系统存储目录下的残留目录。 [0095] step S101, the system determines the residual directory under the directory.

[0096] 在一个实施例中,当某一应用程序被卸载后,需要确定终端中系统存储目录下的残留文件。 [0096] In one embodiment, when an application is uninstalled, the residue is determined in the system file stored in the terminal directory. 具体的,可通过多种方式确定存储目录下的文件目录为残留目录。 Specifically, a file directory may determine the residual storage directory by directory number of ways. 若应用程序在Android系统中写的不规范,有可能出现多个应用程序写一个路径的情况,则当某一应用程序被卸载后,确定该文件目录中是否存在被卸载的应用程序对应的包文件,或确定终端的应用程序安装列表中是否存在该文件目录的目录名称;若确定出该文件目录中不存在包文件或应用程序安装列表中不存在该文件目录的目录名称,则可确定该文件目录为残留目录。 If the application is not written in the Android system specifications, it is possible to write a plurality of applications where a path occurs, when an application is uninstalled, the uninstalled determines whether there is an application corresponding to the package directory file file or application to determine whether there is a terminal installation directory name of the file directory list; if it is determined that the application installation package file or directory name of the file directory does not exist in the list of files in the directory does not exist, it may be determined that the file directory residual directory. 当确定该文件目录为残留目录后,则可确定该文件目录下的所有子目录为残留目录,所有子文件为残留文件。 When it is determined that the file directory after the residual directory, you can identify all subdirectories under that directory as residual directory, all subfolders for the remaining files. 当确定为残留目录后,即可进一步确定该残留目录的清理类型。 When determining the residual directory, you can further determine the type of cleaning up the residue directory.

[0097] 步骤S102,若所述残留目录的目录特征不满足慎重清理的条件,则判断所述残留目录的目录类型是否在预设的保留列表中。 [0097] step S102, if the directory does not satisfy the remaining directory feature carefully clean conditions, the type of the directory is determined whether the preset residual directory reserved list.

[0098] 在一个实施例中,可根据残留目录的目录特征对残留目录进行预先过滤,其中,预先过滤即检测残留目录的目录特征是否满足需要慎重清理的条件。 [0098] In one embodiment, the residue may be prefiltered directory according to the directory of the directory feature residue, wherein the pre-filtered conditions require careful cleaning characteristics i.e. whether the directory does satisfy residue detection. 若满足,则将残留目录过滤掉,可确定其清理条件为慎重清理,若不满足,则可进一步判断残留目录的目录类型是否在预设的保留列表中。 If satisfied, the directory will filter out the residue, which can be determined to clean up the conditions for careful cleaning, if not satisfied, you can further determine whether the directory type residue in the default directory reserved list.

[0099] 在一个实施例中,残留目录的目录特征可包括残留目录的路径长度以及是否包含中文信息等特征。 [0099] In one embodiment, the directory may comprise directory features remaining residual path length and contains directory information Chinese characteristics. 其中,针对残留目录的目录特征满足慎重清理的条件可包括设置正则算法,其中,该正则算法具体为:['Λ.[az\d] {8}-[az\d] {4}-[az\d] {4}-[az\d]{4}-[az\d] {12}',' /\.[af\d] {10}',' /\.[a_f\d] {32},],判断所述残留目录的目录特征是否符合该正则算法,若符合,该残留目录的清理类型可被确定为慎重清理,被过滤掉后以加入慎重清理列表中。 Wherein meet carefully cleaned for directory features remaining directory conditions may include a regularization algorithm, wherein the regularization algorithm is specifically: [ 'Λ [az \ d] {8} - [az \ d] {4} - [. az \ d] {4} - [az \ d] {4} - [az \ d] {12} ',' /\.[af\d] {10} ',' /\.[a_f\d] {32}], wherein determining whether the remaining directory directory meets the regularization algorithm, if they meet, the remaining directory clean type may be determined to be carefully cleaned after being filtered clean carefully added to the list. 满足慎重清理的条件也可包括判断该残留目录的路径长度特征是否小于预设阈值,优选的,预设阈值可设置为3 ;其中,当残留目录的路径长度小于3时,则确定该残留目录的清理类型为慎重清理,被过滤掉后以加入慎重清理列表中。 Meet carefully clean conditions may also include determining whether the remaining directory path length characteristic is less than a predetermined threshold value, preferably, the preset threshold may be set to 3; wherein, when the path length of the remaining directory is less than 3, it is determined that the remaining directory the clean-up type carefully cleaned after being filtered to join carefully clean up the list. 满足慎重清理的条件也可包括判断该残留目录中是否包含中文信息的特征,若目录特征中提示该残留目录包含中文信息,则确定该残留目录的清理类型为慎重清理,被过滤掉后以加入慎重清理列表中,同时,可选的,可对该包含中文信息的残留目录进行备注,以使在用户在深度清理界面对该残留目录进行操作时,可提示用户该残留目录包含中文信息,也可将所包含的中文信息显示给用户。 Conditions are carefully cleaned may comprise determining characteristics of the remaining directory contains Chinese information, if the directory feature prompts the remaining directory contains Chinese information, it is determined that cleaning type of the remaining directory is carefully cleaned after being filtered by the addition of carefully clean up the list, while optional, may make comment to the directory containing the remaining information in Chinese, so that when the user interface to operate at a depth of cleaning up the residue directory, can prompt the user to the directory containing the remaining Chinese information, also Chinese included information may be displayed to the user.

[0100] 在一个实施例中,若残留目录的目录特征不满足慎重清理的条件,可进一步判断残留目录是否需要被清理,具体的,通过判断该残留目录的目录类型是否在预设的通用保留列表中。 [0100] In one embodiment, if the directory does not satisfy the remaining directory feature carefully clean condition, it may be further determined whether the residual directories need to be cleaned, in particular, by determining whether the type of the directory in the default directory remaining general reserved List. 其中,根据残留目录中包含的子文件的文件类型,可获得残留目录的目录类型。 Wherein, based on file type child files contained in the directory residue obtained residue directory type directory. 获取目录类型的方式的其中之一,可通过统计不同文件类型的文件数量,当某一文件类型的文件数量被统计出为最大时,即可确定该残留目录的目录类型。 One way of obtaining directory type, by number of files of different file types statistic, when the number of the file is a file type of statistics is maximum, can be determined that the remaining directory type directory. 具体的,子文件的文件类型可具体包括扩展名或文件头等信息,统计不同文件类型的文件数量,可统计相同扩展名的文件数量,也可统计不同扩展名,但为同一文件类型的文件数量,如文件类型为图片的文件扩展名可包括JPG,PNG等。 Specifically, the file type subfolders may specifically include extension or file class information, statistics, the number of files of different file types, you can count the number of files with the same extension, but also statistics on the different extension, but the number of the same file type file extension, such as a file type of picture to include JPG, PNG and so on. 当对子文件的文件类型进行统计时,可分别统计扩展名为JPG或PNG的文件数量,也可统一统计文件类型为图片的文件数量。 When statistical sub-file file type, you can expand the number of statistics were named JPG or PNG file, the file number can be unified statistical picture of the file type.

[0101] 在一个实施例中,当确定残留目录的目录类型后,可判断该残留目录的目录类型是否在预设的通用保留列表中,其中,通用保留列表可对应目录类型,在其中每个目录类型里包括多个该类型下的扩展名和/或文件头,若确定的目录类型对应某一具体的扩展名,如确定目录类型为JPG,则可在预设的保留列表中对应查找是否包括扩展名JPG,若包括,则可判断该目录类型在通用保留列表中;或目录类型为确定为某一具体类型,如确定目录类型为图片,则可在预设的通用保留列表中对应查找是否包括图片类型,若包括,则可判断该目录类型在通用保留列表中。 [0101] In one embodiment, when determining the remaining directory type directory, the directory may determine whether the type of the residue in a predetermined directory general reservation list, which may correspond to keep a list of directory general type, in which each type in the directory include multiple extensions under the type and / or the file header, to determine if a specific directory corresponding to the type of extension, such as directories to determine the type of JPG, you can find in the corresponding pre-reservation list is included extension JPG, if comprising, determining whether the directory can be retained in a general type of list; or directory type is determined to be a specific type, such as a picture type determines the directory can be preset corresponding to find whether the reserved list of general types including pictures, if included, it can determine the directory type the reserved list in general. 当目录类型在通用保留列表中,则确定该残留目录的清理类型为慎重清理。 When directory type in the general reserve list, the type of cleaning up the remaining directory is determined to be carefully cleaned.

[0102] 步骤S103,若所述目录类型不在所述预设的通用保留列表中,则判断所述残留目录的目录信息是否包含敏感词信息。 [0102] step S103, the directory if the generic type that is not retained in the preset list, the determination of the residual content information directory contains sensitive information word.

[0103] 在一个实施例中,若判断出目录类型不在预设的通用保留列表中,则可进一步判断残留目录是否需要被清理。 [0103] In one embodiment, if it is determined that the default directory is not the type of the general reserve list, the residue can be further determined whether the directory needs to be cleaned. 具体的,通过判断残留目录的目录信息是否包含敏感词信息,确定该残留目录的清理类型。 Specifically, by determining the residue content information directory word contains sensitive information, it is determined that the type of cleaning residual directory. 其中,残留目录的目录信息可包括目录名称等目录标识,敏感词信息具体可为用户设置或系统在生成目录自动设置的包含用户信息的敏感词。 Wherein, the directory information may comprise residual directory like directory directory name identification, may be particularly sensitive word information set by the user or the system containing the sensitive user information word to generate a directory automatically. 如下敏感词为列举的一部分,当然本发明实施例还可包括其他敏感词信息。 As part of the enumerated sensitive words, embodiments of the present invention may of course include other sensitive information words.

[0104] 其中,敏感词信息可包括但不限于:“camera”、“photo”、“backup”、“hide”、“encrypt,,、“note”、“wallpaper,,、“calI '“record,,、“ video”、“movie,,、“music”、“aud1,,、“gallery,,、“picture,,、“ringtone,,、“ring,,、“player,,、“MP3”、“download,,、“保险箱”、“隐藏,,、“备份,,、“加密”、“隐私”、“office,,、“gard,,、“mail'“password,,、“copy,,、“new,,、“folder,,、“copia,,、“,s” 等。 [0104] wherein the word sensitive information may include, without limitation: "camera", "photo", "backup", "hide", "encrypt ,,," note "," wallpaper ,,, "calI '" record, ,, "video", "movie ,,," music "," aud1 ,,, "gallery ,,," picture ,,, "ringtone ,,," ring ,,, "player ,,," MP3 "," download ,,, "safe", "Hide ,,," backup ,,, "encryption", "Privacy", "office ,,," gard ,,, "mail '" password ,,, "copy ,,," new ,,, "folder ,,," copia ,,, ", s" and the like.

[0105] 步骤S104,若所述目录信息不包含所述敏感词信息,则确定所述残留目录的清理类型为建议清理。 [0105] step S104, if the content information does not include the word sensitive information, it is determined that the remaining cleaning type directory is recommended cleaning.

[0106] 在一个实施例中,若残留目录的目录信息不包含敏感词信息时,则可最终确定该残留目录的清理类型为建议清理。 [0106] In one embodiment, if the residual content information directory does not contain sensitive information words, the type of cleaning that can be ultimately determine the recommended cleaning residual directory. 其中,残留目录的清理类型包括建议清理及慎重清理,即通过上述方式过滤掉的残留目录,可确定其清理类型为慎重清理,慎重清理类型的残留目录一般包含用户相关信息,由于用户行为产生的数据文件,比如主动下载等。 Wherein, clean type remaining entries include recommended cleaning and careful cleaning, i.e., filtered out by the above-described manner residue directory may determine which cleaning type is carefully cleaned carefully clean type residue directory typically contains user-related information, since the user behavior of data files, such as active downloads. 因此可在终端进行清理扫描时,将其显示在深度清理界面,对于深度清理界面的残留目录,用户可以根据残留目录的目录特征,以确定是否要对该残留目录进行保留,如当残留目录的目录特征包含中文信息时,用户可根据该残留目录的备注,确定是否要对该包含中文信息的残留目录进行保留,当用户确定该残留目录文件可清理时,可对其进行勾选以便终端进行清理;经过上述处理最终留下的残留目录即可确定其清理类型为建议清理。 Thus cleaning can be scanned when the terminal, which displays the depth clean interface, for cleaning residual directory depth interface, the user can be performed to determine whether the remaining reserved directory according to the directory feature residue directory, such as when the residual directory when the directory feature information comprises Chinese, the user according to the remaining notes directory, to determine whether to retain the directory that contains the remaining Chinese information, when the user determines that the remaining directory files can be cleaned so that the terminal can be checked for clean up; through the above process eventually left residual directory to determine the type of cleanup is recommended to clean. 可在终端进行清理扫描时,将该清理类型的残留目录加入待清理列表,并可将其显示在建议清理界面,对于建议清理界面的残留目录,终端进行清理。 When scanned at a terminal can be cleaned, the type of cleaning to be cleaned of the residue was added directory list, and may display the recommendation clean interface, it is recommended for cleaning residual directory interface terminal clean.

[0107] 本发明实施例中,通过确定系统存储目录下的残留目录,并通过判断该残留目录的目录特征是否满足清理条件,残留目录的目录类型是否在预设的通用保留列表中,残留目录的目录信息是否包含敏感词信息等多维度方式,确定残留目录的清理类型,从而能够自动识别及确定残留目录的清理类型,提高了对残留目录的处理效率。 [0107] embodiment of the present invention, the system determines the residual storage directory under the directory, and the directory is determined by the characteristics of the remaining directory flush condition is satisfied, whether the directory type residue in a predetermined directory of general reserve list, the residual directory content information contains sensitive information word multi-dimensional manner, determine the type of cleaning residual directory, it is possible to automatically identify and determine the type of cleaning residual directory, the processing efficiency of the residual directory.

[0108] 参见图2,图2为本发明中的一种残留目录清理类型的确定方法的另一实施例的流程图。 [0108] 2, a flow chart of another method for determining the present invention in FIG. 2 type of one residue for directory cleanup embodiment Referring to FIG. 该方法可包括以下步骤。 The method may comprise the following steps.

[0109] 步骤S201,获取所述系统存储目录下的文件目录。 [0109] step S201, the acquired file storage directory of the directory system.

[0110] 在一个实施例中,在对终端的系统存储目录进行扫描时,可获取该终端中系统存储目录下的文件目录。 [0110] In one embodiment, when the terminal system storage directory scan is available in the file system directory under the directory stored in the terminal. 其中,可定期对系统存储目录进行扫描,以发现残留目录,并可将残留目录加入终端内的卸载残留库中;也可通过触发指令对系统存储目录进行扫描,以发现残留目录。 Wherein the storage system periodically scans the directory to find the residual directory, and directories to unload the residue remaining in the terminal database; scanning system can also be triggered by an instruction storage directory, the directory to find the residual.

[0111] 步骤S202,针对所述获取的文件目录,判断所述文件目录对应的应用程序是否已经卸载。 [0111] step S202, the acquired file directory for determining whether the file directory corresponding to the application is uninstalled.

[0112] 在一个实施例中,针对所获取的文件目录,可通过判断终端中该文件目录对应的应用程序是否已经卸载,确定才文件目录是否为残留目录。 [0112] In one embodiment, for the acquired file directory may be determined whether the application has been unloaded by the terminal in the directory corresponding to the file, it is determined whether the residual directory file directory. 其中,可通过多种方式进行判断: Wherein, it can be determined by a variety of ways:

[0113] 如可通过判断该文件目录中是否存在该应用程序对应的包文件。 [0113] The package file by determining whether the application corresponding to the presence of the files in the directory. 具体的,可通过向终端建立的本地高频库或服务器进行查询,查询该目录下对应的包文件的个数以及对应的包文件的文件名,进而判断在该目录下是否还存在该应用程序对应的包文件; Specifically, the frequency can be queried by the local server to establish a library or to a terminal, a file name query packet number corresponding to the file and the directory file corresponding packet, and then determines whether or not there is the application in the directory corresponding package file;

[0114] 又如,可通过判断终端的应用程序安装列表中是否还存在该文件目录对应的包名称,由于该文件目录对应应用程序,若在应用程序安装列表中不存在该文件目录对应的包名称,则表明其对应的应用程序已不再应用程序安装列表内。 [0114] As another example, if there is a directory corresponding to the package name of the file list is determined by the application program installed in the terminal, because the file corresponding to the application directory, the file directory does not exist if the corresponding packet in the list of applications installed name, it indicates that the corresponding application is no longer in the list of installed applications.

[0115] 步骤S203,如果判断出所述文件目录对应的应用程序已经卸载,则确定所述文件目录以及所述文件目录下的所有子目录为残留目录。 [0115] step S203, the application program if it is determined that the corresponding file directory has been unloaded, it is determined that the file directory and all subdirectories of the directory file directory residue.

[0116] 在一个实施例中,当通过上述方式判断出终端中该文件目录对应的应用程序已经卸载,则可确定该文件目录以及文件目录下的所有子目录均为残留目录,并且该文件目录下的所有子文件为残留文件。 [0116] In one embodiment, when it is judged in the file directory corresponding to the terminal application has been unloaded by the above-described embodiment, it may be determined subdirectories are all remaining directory in the file directory and file directories, and the file directory all subfolders under the residual file. 具体的,当判断出终端的文件目录中不存在该应用程序对应的包文件,或终端的应用程序安装列表中不存在该目录的目录名称,则可确定该目录为残留目录,并且该文件目录下的所有子目录也为残留目录。 Specifically, when the package file corresponding to the application is judged that the terminal does not exist in the file directory, the terminal or application installation directory name does not already exist in the list, it may be determined that the residual directory directory, and the file directory all subdirectories are also residual directory.

[0117] 步骤S204,判断所述残留目录的目录特征是否满足慎重清理的条件。 [0117] step S204, the directory feature judging whether said residual directory carefully cleaned condition is satisfied.

[0118] 在一个实施例中,残留目录的目录特征可包括残留目录的路径长度以及是否包含中文信息等特征。 [0118] In one embodiment, the directory may comprise directory features remaining residual path length and contains directory information Chinese characteristics. 其中,针对残留目录的目录特征满足慎重清理的条件可包括设置正则算法,其中,该正则算法具体为:['Λ.[az\d] {8}-[az\d] {4}-[az\d] {4}-[az\d]{4}-[az\d] {12}',' /\.[af\d] {10}',' /\.[a_f\d] {32},],判断所述残留目录的目录特征是否符合该正则算法,若符合,该残留目录的清理类型可被确定为慎重清理,被过滤掉后以加入慎重清理列表中。 Wherein meet carefully cleaned for directory features remaining directory conditions may include a regularization algorithm, wherein the regularization algorithm is specifically: [ 'Λ [az \ d] {8} - [az \ d] {4} - [. az \ d] {4} - [az \ d] {4} - [az \ d] {12} ',' /\.[af\d] {10} ',' /\.[a_f\d] {32}], wherein determining whether the remaining directory directory meets the regularization algorithm, if they meet, the remaining directory clean type may be determined to be carefully cleaned after being filtered clean carefully added to the list. 满足慎重清理的条件也可包括判断该残留目录的路径长度特征是否小于预设阈值,优选的,预设阈值可设置为3 ;其中,当残留目录的路径长度小于3时,则确定该残留目录的清理类型为慎重清理,被过滤掉后以加入慎重清理列表中。 Meet carefully clean conditions may also include determining whether the remaining directory path length characteristic is less than a predetermined threshold value, preferably, the preset threshold may be set to 3; wherein, when the path length of the remaining directory is less than 3, it is determined that the remaining directory the clean-up type carefully cleaned after being filtered to join carefully clean up the list. 满足慎重清理的条件也可包括判断该残留目录中是否包含中文信息的特征,若目录特征中提示该残留目录包含中文信息,则确定该残留目录的清理类型为慎重清理,被过滤掉后以加入慎重清理列表中,同时,可选的,可对该包含中文信息的残留目录进行备注,以使在用户在深度清理界面对该残留目录进行操作时,可提示用户该残留目录包含中文信息,也可将所包含的中文信息显示给用户。 Conditions are carefully cleaned may comprise determining characteristics of the remaining directory contains Chinese information, if the directory feature prompts the remaining directory contains Chinese information, it is determined that cleaning type of the remaining directory is carefully cleaned after being filtered by the addition of carefully clean up the list, while optional, may make comment to the directory containing the remaining information in Chinese, so that when the user interface to operate at a depth of cleaning up the residue directory, can prompt the user to the directory containing the remaining Chinese information, also Chinese included information may be displayed to the user.

[0119] 综上所述,可根据上述其中的一个条件判断残留目录的目录特征是否满足慎重清理的条件,也可根据上述的一个或多个条件依次判断残留目录的目录特征是否满足慎重清理条件,若满足慎重清理条件,则该残留目录被过滤掉后以加入慎重清理列表中,可执行步骤S210,若不满足慎重清理条件,则执行步骤S205。 [0119] In summary, it can be determined whether the conditions carefully cleaned of residual directory directory feature satisfies a condition according to which the above-described, may be sequentially determined whether the directory carefully clean condition wherein residual does satisfy one or more of the above-described conditions If the conditions are satisfied careful cleaning, the remaining directory is added after being filtered to carefully clean the list, perform step S210, the conditions are not satisfied careful cleaning, step S205.

[0120] 步骤S205,若在步骤S204中的判断结果为否,则统计所述残留目录中包含的子文件的文件类型。 [0120] step S205, where the determination result in step S204 is NO, the file type of the remaining sub-directory included in the statistics.

[0121 ] 步骤S206,将文件数量最多的文件类型确定为目录类型。 [0121] step S206, the largest number of the file type is determined as a directory type.

[0122] 在一个实施例中,若残留目录的目录特征不满足慎重清理条件,可进一步判断残留目录是否需要被清理,具体的,通过判断该残留目录的目录类型是否在预设的通用保留列表中。 [0122] In one embodiment, if the directory does not satisfy the remaining directory feature carefully clean conditions, the residue may be further determined whether the directory needs to be cleaned, particularly by the type of the directory is determined whether the remaining directory preset common reservation list in. 其中,根据残留目录中包含的子文件的文件类型,可获得残留目录的目录类型。 Wherein, based on file type child files contained in the directory residue obtained residue directory type directory. 获取目录类型的方式的其中之一,可通过统计不同文件类型的文件数量,当某一文件类型的文件数量被统计出为最大时,即可确定该残留目录的目录类型。 One way of obtaining directory type, by number of files of different file types statistic, when the number of the file is a file type of statistics is maximum, can be determined that the remaining directory type directory. 具体的,子文件的文件类型可具体包括扩展名或文件头等信息,统计不同文件类型的文件数量,可统计相同扩展名的文件数量,也可统计不同扩展名,但为同一文件类型的文件数量,如文件类型为图片的文件扩展名可包括JPG,PNG等。 Specifically, the file type subfolders may specifically include extension or file class information, statistics, the number of files of different file types, you can count the number of files with the same extension, but also statistics on the different extension, but the number of the same file type file extension, such as a file type of picture to include JPG, PNG and so on. 当对子文件的文件类型进行统计时,可分别统计扩展名为JPG或PNG的文件数量,也可统一统计文件类型为图片的文件数量。 When statistical sub-file file type, you can expand the number of statistics were named JPG or PNG file, the file number can be unified statistical picture of the file type.

[0123] 步骤S207,判断所述残留目录的目录类型是否在保留列表中。 [0123] step S207, the directory type determining whether the remaining reserved directory list. 在一个实施例中,该保留列表可包括针对该残留目录的特定保留列表,或通用保留列表。 In one embodiment, the list may include reserved, or reserved for a particular generic reservation list of the remaining directory listing. 当确定残留目录的目录类型后,可首先检测是否存在针对该残留目录的特定保留列表。 After determining the type of directory residual directory may first detect the presence of a particular reservation list for the remaining directory. 若检测存在针对该残留目录的预设的特定保留列表时,可判断该残留目录的目录类型是否在特定保留列表中,若检测到不存在,则可判断该残留目录的目录类型是否在通用保留列表中。 If there is detected for a particular reservation list of the preset residual directory, the directory type can be determined whether the particular directory residual reserve list, when the absence is detected, it can be determined whether the remaining directory type in a general directory reserved List.

[0124] 其中,保留列表(包括通用保留列表及特定保留列表)可对应目录类型,在其中每个目录类型里包括多个该类型下的扩展名和/或文件头,若确定的目录类型对应某一具体的扩展名,如确定目录类型为JPG,则可在预设的通用或特定保留列表中对应查找是否包括扩展名JPG,若包括,则可判断该目录类型在通用或特定保留列表中;或目录类型为确定为某一具体类型,如确定目录类型为图片,则可在预设的保留列表中对应查找是否包括图片类型,若包括,则可判断该目录类型在通用或特定保留列表中。 [0124] wherein the reservation list (including a list of generic and specific reserved reservation list) may correspond to catalog type, where each directory in the type comprising a plurality of extensions in the type and / or file header, determining if a directory corresponding to the type a specific extension, directory type is determined as JPG, can preset a particular purpose or to find out whether a corresponding reservation list including the extension JPG, including if, it can be determined that the reserved list directory type in a general or specific; or directory type is determined to be a specific type, such as a picture type determines the directory can be preset in the reserved list to find the corresponding picture type is included, if comprising, determining whether the directory can be retained in general or a particular type of list . 当目录类型在通用或特定保留列表中,则确定该残留目录的清理类型为慎重清理。 When a directory in a generic or specific type in the reservation list, the remaining cleaning type directory is determined to be carefully cleaned.

[0125] 可选的,该保留列表可作为目录类型与扩展名和/或文件头的对应关系列表的其中一部分。 [0125] Optionally, the list may be retained as a list of correspondence relationship between the directory name and the type of extension / or wherein a portion of the file header. 该对应关系列表中不仅能够包括保留列表,也可包括清理列表。 The corresponding list can include not only the relationship reserve list may also include a cleanup list. 该对应关系列表可参见图6。 This correspondence list can be found in relation to FIG 6. 其中,每个目录类型或文件类型下可对应多个扩展名和/或文件头,可标识其中一部分作为敏感文件类型,如图片类型、音频类型等。 Wherein the type of each directory or file type may correspond to a plurality of extensions and / or file header, which may be identified as part of the sensitive file types such as picture type, audio type and the like. 当判断目录类型为敏感类型时,即表明该残留目录需被被清理掉过滤掉后以加入慎重清理列表中。 When it is determined the type of directory type is sensitive, i.e., the directory indicates that the residue needs to be cleaned after being filtered off to clean up the list carefully added.

[0126] 可选的,可对该通用保留列表进行修改,选择等指令操作,可根据来自后端或其他设备的修改指令,对类型进行添加或删除,也可添加或删除某一类型内的扩展名或文件头。 [0126] Alternatively, modifications can be made, the selection instruction operation common reserve list, may, add or delete type according to the modification instruction from the rear or other devices may be added or deleted within a certain type of extension or file header. 也可对该保留列表进行选择,如图6中序号为1、2、3、4、17的列表选项可组成通用保留列表,针对某一个或多个残留目录,可选择该通用列表中的一项或多项,组成新的特定的保留列表。 Also be selected for the reserve list, as shown in FIG. 6 is a sequence number may be composed of a list of options 1,2,3,4,17 general reserve list for one or more directories residue, which may select a generic list items or more, to form a new specific reserve list. 则判断目录类型是否在保留列表中时,针对某一残留目录,可判断该残留目录的目录类型是否在该残留目录对应的保留列表中。 It is determined whether the type of the directory list when, for a certain residual directory, directory type is determined to retain the remaining reserved directory is in the list directory corresponding to the residue.

[0127] 可选的,通用或特定保留列表可存储在本地终端或服务器中,当通用或特定保留列表存储在服务器中时,终端可通过网络实时获取更新后的保留列表。 [0127] Alternatively, general or specific reservation list stored in the local server or the terminal, when a general purpose or specific reservation list stored in the server, the terminal may obtain a list of reserved updated in real time through a network.

[0128] 步骤S208,若在步骤S207中的判断结果为否,则判断所述残留目录的目录信息是否包含敏感词信息。 [0128] step S208, where the determination result in step S207 is NO, it is determined that the residual content information directory contains sensitive information word.

[0129] 在一个实施例中,若判断出目录类型不在预设的通用或特定保留列表中,则可进一步判断残留目录是否需要被清理。 [0129] In one embodiment, if it is determined that the type is not a predetermined directory general purpose or special reserved list, the residue can be further determined whether the directory needs to be cleaned. 具体的,通过判断残留目录的目录信息是否包含敏感词信息,确定该残留目录的清理类型。 Specifically, by determining the residue content information directory word contains sensitive information, it is determined that the type of cleaning residual directory. 其中,残留目录的目录信息可包括目录名称等目录标识,敏感词信息具体可为用户设置或系统在生成目录自动设置的包含用户信息的敏感词。 Wherein, the directory information may comprise residual directory like directory directory name identification, may be particularly sensitive word information set by the user or the system containing the sensitive user information word to generate a directory automatically. 如下敏感词为列举的一部分,当然本发明实施例还可包括其他敏感词信息。 As part of the enumerated sensitive words, embodiments of the present invention may of course include other sensitive information words.

[0130] 其中,敏感词信息可包括但不限于:“camera”、“photo”、“backup”、“hide”、“encrypt,,、“note”、“wallpaper,,、“calI '“record,,、“ video”、“movie,,、“music”、“aud1,,、“gallery,,、“picture,,、“ringtone,,、“ring,,、“player,,、“MP3”、“download,,、“保险箱”、“隐藏,,、“备份,,、“加密”、“隐私”、“office,,、“gard,,、“mail'“password,,、“copy,,、“new,,、“folder,,、“copia,,、“,s” 等。 [0130] wherein the word sensitive information may include, without limitation: "camera", "photo", "backup", "hide", "encrypt ,,," note "," wallpaper ,,, "calI '" record, ,, "video", "movie ,,," music "," aud1 ,,, "gallery ,,," picture ,,, "ringtone ,,," ring ,,, "player ,,," MP3 "," download ,,, "safe", "Hide ,,," backup ,,, "encryption", "Privacy", "office ,,," gard ,,, "mail '" password ,,, "copy ,,," new ,,, "folder ,,," copia ,,, ", s" and the like.

[0131] 步骤S209,若在步骤S208中的判断结果为否,则确定所述残留目录的清理类型为建议清理。 [0131] step S209, where the determination result in step S208 is NO, it is determined that the type of cleaning is recommended to clean up residual directory.

[0132] 在一个实施例中,当确定该残留目录的清理类型为建议清理后,本发明实施例还可包括以下步骤,以进一步对建议清理类型的残留目录进行处理: [0132] In one embodiment, after determining the type of cleaning residual directory recommended cleaning, embodiments of the present invention may further comprise the following steps, to further clean up the residual catalog recommendation processing types:

[0133] 将所述残留目录加入建议清理列表; [0133] The residue was added recommend cleaning the directory listing;

[0134] 将所述建议清理列表显示在建议清理界面; [0134] recommend cleaning the recommendation list displayed on the screen cleaning;

[0135] 根据用户在所述建议清理界面上的确认操作,对所述建议清理列表的列表目录进行删除。 [0135] According to the recommendations in the user confirm the action on the clean-up interface, the list of suggestions to clean up the directory list will be deleted.

[0136] 在一个实施例中,若残留目录的目录信息不包含敏感词信息时,则可最终确定该残留目录的清理类型为建议清理。 [0136] In one embodiment, if the residual content information directory does not contain sensitive information words, the type of cleaning that can be ultimately determine the recommended cleaning residual directory. 经过上述处理最终留下的残留目录即可确定其清理类型为建议清理。 After the above process eventually left residual directory to determine the type of cleanup is recommended to clean. 可在终端进行清理扫描时,将该清理类型的残留目录加入待清理列表,并可将其显示在建议清理界面,对于建议清理界面的残留目录,终端进行清理。 When scanned at a terminal can be cleaned, the type of cleaning to be cleaned of the residue was added directory list, and may display the recommendation clean interface, it is recommended for cleaning residual directory interface terminal clean.

[0137] 步骤S210,若在步骤S204中的判断结果为是,或在步骤S207中的判断结果为是,或在步骤S209中的判断结果为是,则确定所述残留目录的清理类型为慎重清理。 [0137] step S210, where the determination result in step S204 is YES, or the determination result in step S207 is YES, or the determination result in step S209 is YES, the remaining directory type of cleaning is determined to be prudent clean-up.

[0138] 在一个实施例中,当确定该残留目录的清理类型为慎重清理后,本发明实施例还可包括以下步骤,以进一步对慎重清理类型的残留目录进行处理: [0138] In one embodiment, after determining the type of cleaning residual directory careful cleaning, embodiments of the present invention may further comprise the step, in order to further clean up the residue carefully treated directory types:

[0139] 将所述残留目录加入慎重清理列表; [0139] The residue was added carefully clean the directory listing;

[0140] 将所述慎重清理列表显示在深度清理界面; [0140] carefully cleaning the cleaning list display screen in the depth;

[0141] 根据用户在所述深度清理界面上的选择操作,对所述慎重清理列表中的所述选择操作对应的列表目录进行删除。 [0141] The user selects the cleaning operation on the depth of the interface, the careful cleaning of the selection list corresponding to an operation to delete a directory listing.

[0142] 在一个实施例中,残留目录的清理类型包括建议清理及慎重清理,即通过上述方式过滤掉的残留目录,可确定其清理类型为慎重清理,慎重清理类型的残留目录一般包含用户相关信息,由于用户行为产生的数据文件,比如主动下载等。 [0142] In one embodiment, the clean type remaining entries include recommended cleaning and careful cleaning, i.e., filtered out by the above-described manner residue directory may determine which cleaning type is carefully cleaned carefully clean type residue directory typically contains user-related information, data files due to the user's behavior, such as active downloads. 因此可在终端进行清理扫描时,将其显示在深度清理界面,对于深度清理界面的残留目录,用户可以根据残留目录的目录特征,以确定是否要对该残留目录进行保留,如当残留目录的目录特征包含中文信息时,用户可根据该残留目录的备注,确定是否要对该包含中文信息的残留目录进行保留,当用户确定该残留目录文件可清理时,可对其进行勾选以便终端进行清理。 Thus cleaning can be scanned when the terminal, which displays the depth clean interface, for cleaning residual directory depth interface, the user can be performed to determine whether the remaining reserved directory according to the directory feature residue directory, such as when the residual directory when the directory feature information comprises Chinese, the user according to the remaining notes directory, to determine whether to retain the directory that contains the remaining Chinese information, when the user determines that the remaining directory files can be cleaned so that the terminal can be checked for clean-up.

[0143] 本发明实施例中,通过确定系统存储目录下的残留目录,并通过判断该残留目录的目录特征是否满足清理条件,残留目录的目录类型是否在预设的通用或特定保留列表中,残留目录的目录信息是否包含敏感词信息等多维度方式,确定残留目录的清理类型,从而能够自动识别及确定残留目录的清理类型,提高了对残留目录的处理效率。 [0143] embodiment of the present invention, by determining the remaining storage system directory under the directory, and the directory is determined by the characteristics of the remaining directory flush condition is satisfied, whether the directory type residue in a predetermined directory of general or specific reservation list, residual content information directory contains sensitive information word multi-dimensional manner, determine the type of cleaning residual directory, it is possible to automatically identify and determine the type of cleaning residual directory, the processing efficiency of the residual directory.

[0144] 参见图3,图3为本发明中的一种残留目录清理类型的确定装置的一实施例的结构示意图。 A structural diagram of [0144] Referring to FIG. 3, FIG. 3 in the present invention means determining one residue for directory cleanup type embodiment. 该装置可包括:第一确定模块301、第一判断模块302、第二判断模块303、第二确定模块304。 The apparatus may include: a first determining module 301, a first determining module 302, a second determining module 303, a second determination module 304.

[0145] 其中,第一确定模块301,用于确定系统存储目录下的残留目录。 [0145] wherein the first determining module 301 for determining the residual system directory under the directory.

[0146] 在一个实施例中,当某一应用程序被卸载后,第一确定模块301需要确定终端中系统存储目录下的残留文件。 [0146] In one embodiment, when an application is uninstalled, a first determination module 301 determines the need remaining in the system file stored in the terminal directory. 具体的,第一确定模块301可通过多种方式确定存储目录下的文件目录为残留目录。 Specifically, the first determination module 301 may determine the file storage directory of the directory by directory residual number of ways. 若应用程序在Android系统中写的不规范,有可能出现多个应用程序写一个路径的情况,则当某一应用程序被卸载后,确定该文件目录中是否存在被卸载的应用程序对应的包文件,或确定终端的应用程序安装列表中是否存在该文件目录的目录名称;若确定出该文件目录中不存在包文件或应用程序安装列表中不存在该文件目录的目录名称,则可确定该文件目录为残留目录。 If the application is not written in the Android system specifications, it is possible to write a plurality of applications where a path occurs, when an application is uninstalled, the uninstalled determines whether there is an application corresponding to the package directory file file or application to determine whether there is a terminal installation directory name of the file directory list; if it is determined that the application installation package file or directory name of the file directory does not exist in the list of files in the directory does not exist, it may be determined that the file directory residual directory. 当确定该文件目录为残留目录后,则可确定该文件目录下的所有子目录为残留目录,所有子文件为残留文件。 When it is determined that the file directory after the residual directory, you can identify all subdirectories under that directory as residual directory, all subfolders for the remaining files. 当确定为残留目录后,即可进一步确定该残留目录的清理类型。 When determining the residual directory, you can further determine the type of cleaning up the residue directory.

[0147] 第一判断模块302,用于若所述残留目录的目录特征不满足慎重清理的条件,则判断所述残留目录的目录类型是否在预设的通用保留列表中。 [0147] General reservation list 302, wherein the directory if the directory does not satisfy the remaining conditions carefully cleaned, the type of the directory is determined whether the remaining directory predetermined first determination module.

[0148] 在一个实施例中,可根据残留目录的目录特征对残留目录进行预先过滤,其中,预先过滤即检测残留目录的目录特征是否满足需要慎重清理的条件。 [0148] In one embodiment, the residue may be prefiltered directory according to the directory of the directory feature residue, wherein the pre-filtered conditions require careful cleaning characteristics i.e. whether the directory does satisfy residue detection. 若满足,则将残留目录过滤掉,可确定其清理条件为慎重清理,若不满足,则第一判断模块302可进一步判断残留目录的目录类型是否在预设的保留列表中。 If satisfied, the residue was filtered off directory, which clean conditions may be determined carefully clean, if not satisfied, the first determination module 302 further determines whether the directory type residue in a predetermined directory of the reserved list.

[0149] 在一个实施例中,残留目录的目录特征可包括残留目录的路径长度以及是否包含中文信息等特征。 [0149] In one embodiment, the directory may comprise directory features remaining residual path length and contains directory information Chinese characteristics. 其中,针对残留目录的目录特征满足慎重清理的条件可包括设置正则算法,其中,该正则算法具体为:['Λ.[az\d] {8}-[az\d] {4}-[az\d] {4}-[az\d]{4}-[az\d] {12}',' /\.[af\d] {10}',' /\.[a_f\d] {32},],判断所述残留目录的目录特征是否符合该正则算法,若符合,该残留目录的清理类型可被确定为慎重清理,被过滤掉后以加入慎重清理列表中。 Wherein meet carefully cleaned for directory features remaining directory conditions may include a regularization algorithm, wherein the regularization algorithm is specifically: [ 'Λ [az \ d] {8} - [az \ d] {4} - [. az \ d] {4} - [az \ d] {4} - [az \ d] {12} ',' /\.[af\d] {10} ',' /\.[a_f\d] {32}], wherein determining whether the remaining directory directory meets the regularization algorithm, if they meet, the remaining directory clean type may be determined to be carefully cleaned after being filtered clean carefully added to the list. 满足慎重清理的条件也可包括判断该残留目录的路径长度特征是否小于预设阈值,优选的,预设阈值可设置为3 ;其中,当残留目录的路径长度小于3时,则确定该残留目录的清理类型为慎重清理,被过滤掉后以加入慎重清理列表中。 Meet carefully clean conditions may also include determining whether the remaining directory path length characteristic is less than a predetermined threshold value, preferably, the preset threshold may be set to 3; wherein, when the path length of the remaining directory is less than 3, it is determined that the remaining directory the clean-up type carefully cleaned after being filtered to join carefully clean up the list. 满足慎重清理的条件也可包括判断该残留目录中是否包含中文信息的特征,若目录特征中提示该残留目录包含中文信息,则确定该残留目录的清理类型为慎重清理,被过滤掉后以加入慎重清理列表中,同时,可选的,可对该包含中文信息的残留目录进行备注,以使在用户在深度清理界面对该残留目录进行操作时,可提示用户该残留目录包含中文信息,也可将所包含的中文信息显示给用户。 Conditions are carefully cleaned may comprise determining characteristics of the remaining directory contains Chinese information, if the directory feature prompts the remaining directory contains Chinese information, it is determined that cleaning type of the remaining directory is carefully cleaned after being filtered by the addition of carefully clean up the list, while optional, may make comment to the directory containing the remaining information in Chinese, so that when the user interface to operate at a depth of cleaning up the residue directory, can prompt the user to the directory containing the remaining Chinese information, also Chinese included information may be displayed to the user.

[0150] 在一个实施例中,若残留目录的目录特征不满足慎重清理的条件,第一判断模块302可进一步判断残留目录是否需要被清理,具体的,通过判断该残留目录的目录类型是否在预设的通用保留列表中。 [0150] In one embodiment, if the directory does not satisfy the remaining directory feature carefully cleaned condition, the first determining module 302 may further judge whether the residual directory needs to be cleaned, particularly by the type of the directory is determined whether the remaining directory universal pre-reserved list. 其中,根据残留目录中包含的子文件的文件类型,可获得残留目录的目录类型。 Wherein, based on file type child files contained in the directory residue obtained residue directory type directory. 获取目录类型的方式的其中之一,可通过统计不同文件类型的文件数量,当某一文件类型的文件数量被统计出为最大时,即可确定该残留目录的目录类型。 One way of obtaining directory type, by number of files of different file types statistic, when the number of the file is a file type of statistics is maximum, can be determined that the remaining directory type directory. 具体的,子文件的文件类型可具体包括扩展名或文件头等信息,统计不同文件类型的文件数量,可统计相同扩展名的文件数量,也可统计不同扩展名,但为同一文件类型的文件数量,如文件类型为图片的文件扩展名可包括JPG,PNG等。 Specifically, the file type subfolders may specifically include extension or file class information, statistics, the number of files of different file types, you can count the number of files with the same extension, but also statistics on the different extension, but the number of the same file type file extension, such as a file type of picture to include JPG, PNG and so on. 当对子文件的文件类型进行统计时,可分别统计扩展名为JPG或PNG的文件数量,也可统一统计文件类型为图片的文件数量。 When statistical sub-file file type, you can expand the number of statistics were named JPG or PNG file, the file number can be unified statistical picture of the file type.

[0151] 在一个实施例中,当确定残留目录的目录类型后,第一判断模块302可判断该残留目录的目录类型是否在预设的通用保留列表中,其中,通用保留列表可对应目录类型,在其中每个目录类型里包括多个该类型下的扩展名和/或文件头,若确定的目录类型对应某一具体的扩展名,如确定目录类型为JPG,则可在预设的保留列表中对应查找是否包括扩展名JPG,若包括,则可判断该目录类型在通用保留列表中;或目录类型为确定为某一具体类型,如确定目录类型为图片,则可在预设的通用保留列表中对应查找是否包括图片类型,若包括,则可判断该目录类型在通用保留列表中。 [0151] In one embodiment, when determining the remaining directory type directory, the first determination module 302 can determine the type of the directory whether the directory residue preset general the reserved list, wherein the universal directory type may correspond to a list of reserved , where each directory in the type comprising a plurality of extensions in the type and / or file header, determining if a directory corresponding to a particular type of extension, directory type is determined as JPG, can be preset in the reserve list look for the corresponding extension comprises JPG, if comprising, determining whether the directory can be retained in a general type of list; or directory type is determined to be a specific type, such as a picture type determines the directory, can be retained in a predetermined common Find the list of the corresponding picture type is included, if included, you can determine the directory type in general reserved list. 当目录类型在通用保留列表中,则确定该残留目录的清理类型为慎重清理。 When directory type in the general reserve list, the type of cleaning up the remaining directory is determined to be carefully cleaned.

[0152] 第二判断模块303,用于若所述第一判断模块302判断出所述目录类型不在所述预设的通用保留列表中,则判断所述残留目录的目录信息是否包含敏感词信息。 [0152] The second determination module 303 for determining if the first directory module 302 determines that the type is not generic to retain the preset list, the determination of the residual content information directory contains sensitive information word .

[0153] 在一个实施例中,若第一判断模块302判断出目录类型不在预设的通用保留列表中,则可进一步判断残留目录是否需要被清理。 [0153] In one embodiment, if the first determination module 302 determines that the type is not a predetermined common directory the reserved list, the residue can be further determined whether the directory needs to be cleaned. 具体的,通过第二判断模块303判断残留目录的目录信息是否包含敏感词信息,确定该残留目录的清理类型。 Specifically, the second determination module 303 determines the residual content information directory word contains sensitive information, it is determined that the type of cleaning residual directory. 其中,残留目录的目录信息可包括目录名称等目录标识,敏感词信息具体可为用户设置或系统在生成目录自动设置的包含用户信息的敏感词。 Wherein, the directory information may comprise residual directory like directory directory name identification, may be particularly sensitive word information set by the user or the system containing the sensitive user information word to generate a directory automatically. 如下敏感词为列举的一部分,当然本发明实施例还可包括其他敏感词信息。 As part of the enumerated sensitive words, embodiments of the present invention may of course include other sensitive information words.

[0154] 其中,敏感词信息可包括但不限于:“camera”、“photo”、“backup”、“hide”、“encrypt”、“note”、“wallpaper”、“call '“record ”、“ video”、“movie ”、“musi c ”、“ aud1,,、“gallery,,、“picture,,、“ringtone,,、“ring,,、“player,,、“MP3”、“download,,、“保险箱”、“隐藏,,、“备份,,、“加密”、“隐私”、“office,,、“gard,,、“mail'“password,,、“copy,,、“new,,、“folder,,、“copia,,、“,s” 等。 [0154] wherein, sensitive word information may include, but are not limited to: "camera", "photo", "backup", "hide", "encrypt", "note", "wallpaper", "call '" record "," video "," movie "," musi c "," aud1 ,,, "gallery ,,," picture ,,, "ringtone ,,," ring ,,, "player ,,," MP3 "," download ,, , "safe", "Hide ,,," backup ,,, "encryption", "Privacy", "office ,,," gard ,,, "mail '" password ,,, "copy ,,," new ,, , "folder ,,," copia ,,, ", s" and so on.

[0155] 第二确定模块304,用于若所述第二判断模块303判断出所述目录信息不包含所述敏感词信息,则确定所述残留目录的清理类型为建议清理。 [0155] The second determination module 304 for determining if the second module determines that the content information 303 does not include the word sensitive information, it is determined that the remaining cleaning type directory is recommended cleaning.

[0156] 在一个实施例中,若第二判断模块303判断出残留目录的目录信息不包含敏感词信息时,则第二确定模块304可最终确定该残留目录的清理类型为建议清理。 [0156] In one embodiment, if the second determination module 303 determines that the remaining content information directory does not contain sensitive information word, the second determination module 304 may determine the final cleaning of the type recommended for cleaning residual directory. 其中,残留目录的清理类型包括建议清理及慎重清理,即通过上述方式过滤掉的残留目录,可确定其清理类型为慎重清理,慎重清理类型的残留目录一般包含用户相关信息,由于用户行为产生的数据文件,比如主动下载等。 Wherein, clean type remaining entries include recommended cleaning and careful cleaning, i.e., filtered out by the above-described manner residue directory may determine which cleaning type is carefully cleaned carefully clean type residue directory typically contains user-related information, since the user behavior of data files, such as active downloads. 因此可在终端进行清理扫描时,将其显示在深度清理界面,对于深度清理界面的残留目录,用户可以根据残留目录的目录特征,以确定是否要对该残留目录进行保留,如当残留目录的目录特征包含中文信息时,用户可根据该残留目录的备注,确定是否要对该包含中文信息的残留目录进行保留,当用户确定该残留目录文件可清理时,可对其进行勾选以便终端进行清理;经过上述处理最终留下的残留目录即可确定其清理类型为建议清理。 Thus cleaning can be scanned when the terminal, which displays the depth clean interface, for cleaning residual directory depth interface, the user can be performed to determine whether the remaining reserved directory according to the directory feature residue directory, such as when the residual directory when the directory feature information comprises Chinese, the user according to the remaining notes directory, to determine whether to retain the directory that contains the remaining Chinese information, when the user determines that the remaining directory files can be cleaned so that the terminal can be checked for clean up; through the above process eventually left residual directory to determine the type of cleanup is recommended to clean. 可在终端进行清理扫描时,将该清理类型的残留目录加入待清理列表,并可将其显示在建议清理界面,对于建议清理界面的残留目录,终端进行清理。 When scanned at a terminal can be cleaned, the type of cleaning to be cleaned of the residue was added directory list, and may display the recommendation clean interface, it is recommended for cleaning residual directory interface terminal clean.

[0157] 本发明实施例中,通过确定系统存储目录下的残留目录,并通过判断该残留目录的目录特征是否满足清理条件,残留目录的目录类型是否在预设的通用保留列表中,残留目录的目录信息是否包含敏感词信息等多维度方式,确定残留目录的清理类型,从而能够自动识别及确定残留目录的清理类型,提高了对残留目录的处理效率。 [0157] embodiment of the present invention, the system determines the residual storage directory under the directory, and the directory is determined by the characteristics of the remaining directory flush condition is satisfied, whether the directory type residue in a predetermined directory of general reserve list, the residual directory content information contains sensitive information word multi-dimensional manner, determine the type of cleaning residual directory, it is possible to automatically identify and determine the type of cleaning residual directory, the processing efficiency of the residual directory.

[0158] 参见图4,图4为本发明中的一种残留目录清理类型的确定装置的一实施例的结构示意图。 [0158] 4 a schematic structural diagram, 4 is determined in the apparatus of FIG INVENTION A type of cleaning residual directory embodiment Referring to FIG. 该装置可包括:第一确定模块401、第一判断模块402、统计模块403、第三确定模块404、第二判断模块405、第三判断模块406、第二确定模块407、第一加入模块408、第一显示模块409、第一删除模块410、第四确定模块411、第二加入模块412、第二显示模块413、第二删除模块414。 The apparatus may include: a first determining module 401, a first determining module 402, a statistics module 403, the third determination module 404, a second determining module 405, the third determination module 406, a second determining module 407, first module 408 is added The first display module 409, a first deleting module 410, a fourth determination module 411, second module 412 is added, a second display module 413, a second deleting module 414.

[0159] 其中,第一确定模块401,用于确定系统存储目录下的残留目录。 [0159] wherein the first determining module 401, a storage system for determining residual directory under the directory.

[0160] 本发明实施例中,第一确定模块401可包括以下单元: [0160] embodiment of the present invention, the first determination module 401 may include the following units:

[0161 ] 获取单元,用于获取所述系统存储目录下的文件目录; [0161] acquiring unit, for acquiring a file directory in the directory of the storage system;

[0162] 在一个实施例中,在对终端的系统存储目录进行扫描时,获取单元4011可获取该终端中系统存储目录下的文件目录。 [0162] In one embodiment, when the terminal system storage directory scanning, the acquisition unit 4011 may acquire a file system directory in the directory stored in the terminal. 其中,可定期对系统存储目录进行扫描,以发现残留目录,并可将残留目录加入终端内的卸载残留库中;也可通过触发指令对系统存储目录进行扫描,以发现残留目录。 Wherein the storage system periodically scans the directory to find the residual directory, and directories to unload the residue remaining in the terminal database; scanning system can also be triggered by an instruction storage directory, the directory to find the residual.

[0163] 第一判断单元,用于针对所述获取的文件目录,判断所述文件目录对应的应用程序是否已经卸载; [0163] a first determining unit configured for obtaining the file directory of the file directory corresponding to determining whether the application has been unloaded;

[0164] 在一个实施例中,针对所获取的文件目录,可通过第一判断单元4012判断终端中该文件目录对应的应用程序是否已经卸载,确定才文件目录是否为残留目录。 [0164] In one embodiment, the file for the directory acquired by the first judging unit 4012 determines whether the file directory corresponding to the terminal application has been uninstalled, it is determined whether the residual directory file directory. 其中,可通过多种方式进行判断: Wherein, it can be determined by a variety of ways:

[0165] 如可通过判断该文件目录中是否存在该应用程序对应的包文件。 [0165] The package file by determining whether the application corresponding to the presence of the files in the directory. 具体的,可通过向终端建立的本地高频库或服务器进行查询,查询该目录下对应的包文件的个数以及对应的包文件的文件名,进而判断在该目录下是否还存在该应用程序对应的包文件; Specifically, the frequency can be queried by the local server to establish a library or to a terminal, a file name query packet number corresponding to the file and the directory file corresponding packet, and then determines whether or not there is the application in the directory corresponding package file;

[0166] 又如,可通过判断终端的应用程序安装列表中是否还存在该文件目录对应的包名称,由于该文件目录对应应用程序,若在应用程序安装列表中不存在该文件目录对应的包名称,则表明其对应的应用程序已不再应用程序安装列表内。 [0166] As another example, if there is a directory corresponding to the package name of the file list is determined by the application program installed in the terminal, because the file corresponding to the application directory, the file directory does not exist if the corresponding packet in the list of applications installed name, it indicates that the corresponding application is no longer in the list of installed applications.

[0167] 第一确定单元,用于如果所述第一判断单元判断出所述文件目录对应的应用程序已经卸载,则确定所述文件目录以及所述文件目录下的所有子目录为残留目录。 [0167] a first determining unit, if said first determination means determines that the application program corresponding to the file directory has been unloaded, it is determined that the file directory and all subdirectories of the directory file directory residue.

[0168] 在一个实施例中,当通过第一判断单元判断出终端中该文件目录对应的应用程序已经卸载,则第一确定单元可确定该文件目录以及文件目录下的所有子目录均为残留目录,并且该文件目录下的所有子文件为残留文件。 [0168] In one embodiment, when it is judged in the file directory corresponding to the terminal application through the first judging unit has been unloaded, the first determination unit may determine that all subdirectories and files in the file directories are directories residue directory, and the file directory in all subfolders for the remaining files. 具体的,当判断出终端的文件目录中不存在该应用程序对应的包文件,或终端的应用程序安装列表中不存在该目录的目录名称,则可确定该目录为残留目录,并且该文件目录下的所有子目录也为残留目录。 Specifically, when the package file corresponding to the application is judged that the terminal does not exist in the file directory, the terminal or application installation directory name does not already exist in the list, it may be determined that the residual directory directory, and the file directory all subdirectories are also residual directory.

[0169] 第一判断模块402,用于判断所述残留目录的目录特征是否满足慎重清理的条件。 [0169] a first determining module 402, a careful cleaning of determining whether a condition wherein the residual directory does satisfy.

[0170] 在一个实施例中,残留目录的目录特征可包括残留目录的路径长度以及是否包含中文信息等特征。 [0170] In one embodiment, the directory may comprise directory features remaining residual path length and contains directory information Chinese characteristics. 其中,针对残留目录的目录特征满足慎重清理的条件可包括设置正则算法,其中,该正则算法具体为:['Λ.[az\d] {8}-[az\d] {4}-[az\d] {4}-[az\d]{4}-[az\d] {12}',' /\.[af\d] {10}',' /\.[a_f\d] {32},],第一判断模块402 判断所述残留目录的目录特征是否符合该正则算法,若符合,该残留目录的清理类型可被确定为慎重清理,被过滤掉后以加入慎重清理列表中。 Wherein meet carefully cleaned for directory features remaining directory conditions may include a regularization algorithm, wherein the regularization algorithm is specifically: [ 'Λ [az \ d] {8} - [az \ d] {4} - [. az \ d] {4} - [az \ d] {4} - [az \ d] {12} ',' /\.[af\d] {10} ',' /\.[a_f\d] {32}], wherein the first determining module directory 402 determines whether the remaining directory matches the regular algorithm, if they meet, the remaining directory clean type may be determined to be carefully cleaned after being filtered clean carefully added to the list in. 满足慎重清理的条件也可包括判断该残留目录的路径长度特征是否小于预设阈值,优选的,预设阈值可设置为3 ;其中,当残留目录的路径长度小于3时,则确定该残留目录的清理类型为慎重清理,被过滤掉后以加入慎重清理列表中。 Meet carefully clean conditions may also include determining whether the remaining directory path length characteristic is less than a predetermined threshold value, preferably, the preset threshold may be set to 3; wherein, when the path length of the remaining directory is less than 3, it is determined that the remaining directory the clean-up type carefully cleaned after being filtered to join carefully clean up the list. 满足慎重清理的条件也可包括判断该残留目录中是否包含中文信息的特征,若目录特征中提示该残留目录包含中文信息,则确定该残留目录的清理类型为慎重清理,被过滤掉后以加入慎重清理列表中,同时,可选的,可对该包含中文信息的残留目录进行备注,以使在用户在深度清理界面对该残留目录进行操作时,可提示用户该残留目录包含中文信息,也可将所包含的中文信息显示给用户。 Conditions are carefully cleaned may comprise determining characteristics of the remaining directory contains Chinese information, if the directory feature prompts the remaining directory contains Chinese information, it is determined that cleaning type of the remaining directory is carefully cleaned after being filtered by the addition of carefully clean up the list, while optional, may make comment to the directory containing the remaining information in Chinese, so that when the user interface to operate at a depth of cleaning up the residue directory, can prompt the user to the directory containing the remaining Chinese information, also Chinese included information may be displayed to the user.

[0171] 综上所述,第一判断模块402可根据上述其中的一个条件判断残留目录的目录特征是否满足慎重清理的条件,也可根据上述的一个或多个条件依次判断残留目录的目录特征是否满足慎重清理条件,若满足慎重清理条件,则该残留目录被过滤掉后以加入慎重清理列表中,若不满足慎重清理条件,则通过以下模块继续确认。 [0171] In summary, the first determination module 402 may determine whether the conditions for careful cleaning of residual directory directory feature satisfies a condition according to which the above-described, may be determined based on the sequence of one or more conditions remaining features directories Directory meets the conditions carefully clean up, clean up carefully if meet the conditions, then the residue is filtered out after the directory was added carefully to clean up the list, if not careful cleanup to meet the conditions, it continues to be recognized by the following modules.

[0172] 统计模块403,用于当第一判断模块402的判断结果为否,则统计所述残留目录中包含的子文件的文件类型。 [0172] Statistics module 403 is configured to, when the first determination module 402 determines the result is NO, the file type of said remaining sub-file directory is included in the statistics.

[0173] 第三确定模块404,用于将文件数量最多的文件类型确定为目录类型。 [0173] The third determination module 404, configured to determine the maximum number of directory type file type.

[0174] 在一个实施例中,若第一判断模块402判断出残留目录的目录特征不满足慎重清理条件,可进一步判断残留目录是否需要被清理,具体的,通过判断该残留目录的目录类型是否在预设的通用保留列表中。 [0174] In one embodiment, if the first determination module 402 determines that the directory does not satisfy the remaining directory features carefully clean conditions, the residue may be further determined whether the directory needs to be cleaned, particularly by the type of the directory is determined whether the remaining directory in general reserved preset list. 其中,根据残留目录中包含的子文件的文件类型,可获得残留目录的目录类型。 Wherein, based on file type child files contained in the directory residue obtained residue directory type directory. 获取目录类型的方式的其中之一,统计模块403可通过统计不同文件类型的文件数量,当某一文件类型的文件数量被统计出为最大时,第三确定模块404可确定该残留目录的目录类型。 One way of obtaining the type of the directory, statistics module 403 can count the number of files of different file types, when the maximum number of files is a file type of statistics, the third determination module 404 may determine a directory of the directory residue Types of. 具体的,子文件的文件类型可具体包括扩展名或文件头等信息,统计不同文件类型的文件数量,可统计相同扩展名的文件数量,也可统计不同扩展名,但为同一文件类型的文件数量,如文件类型为图片的文件扩展名可包括JPG,PNG等。 Specifically, the file type subfolders may specifically include extension or file class information, statistics, the number of files of different file types, you can count the number of files with the same extension, but also statistics on the different extension, but the number of the same file type file extension, such as a file type of picture to include JPG, PNG and so on. 当对子文件的文件类型进行统计时,可分别统计扩展名为JPG或PNG的文件数量,也可统一统计文件类型为图片的文件数量。 When statistical sub-file file type, you can expand the number of statistics were named JPG or PNG file, the file number can be unified statistical picture of the file type.

[0175] 第二判断模块405,用于判断所述第三确定模块404确定的残留目录的目录类型是否在保留列表中。 [0175] The second determination module 405, a directory for determining the type of said remaining third directory determination module 404 determines whether the reservation list.

[0176] 本发明实施例中,该终端还可包括检测模块。 Embodiment [0176] of the present invention, the terminal may further include a detection module.

[0177] 在一个实施例中,该保留列表可包括针对该残留目录的特定保留列表,或通用保留列表。 [0177] In one embodiment, the list may include reserved, or reserved for a particular generic reservation list of the remaining directory listing. 当第三确定模块404确定残留目录的目录类型后,可首先检测是否存在针对该残留目录的特定保留列表。 When the third determination module 404 determines the type of directory residual directory may first detect the presence of a particular reservation list for the remaining directory. 若检测模块检测存在针对该残留目录的预设的特定保留列表时,第二判断模块405可判断该残留目录的目录类型是否在特定保留列表中,若检测模块检测到不存在,则第二判断模块405可判断该残留目录的目录类型是否在通用保留列表中。 When the detection module detects the presence of a predetermined time for a particular reservation list of the remaining directory, the second determination module 405 may determine the type of the directory is in a particular directory residual reserve list, when the detection module detects an absence of, the second determination module 405 may determine whether the remaining directory type directory in general the reserved list.

[0178] 其中,保留列表(包括通用保留列表及特定保留列表)可对应目录类型,在其中每个目录类型里包括多个该类型下的扩展名和/或文件头,若确定的目录类型对应某一具体的扩展名,如确定目录类型为JPG,则可在预设的通用或特定保留列表中对应查找是否包括扩展名JPG,若包括,则可判断该目录类型在通用或特定保留列表中;或目录类型为确定为某一具体类型,如确定目录类型为图片,则可在预设的保留列表中对应查找是否包括图片类型,若包括,则可判断该目录类型在通用或特定保留列表中。 [0178] wherein the reservation list (including a list of generic and specific reserved reservation list) may correspond to catalog type, where each directory in the type comprising a plurality of extensions in the type and / or file header, determining if a directory corresponding to the type a specific extension, directory type is determined as JPG, can preset a particular purpose or to find out whether a corresponding reservation list including the extension JPG, including if, it can be determined that the reserved list directory type in a general or specific; or directory type is determined to be a specific type, such as a picture type determines the directory can be preset in the reserved list to find the corresponding picture type is included, if comprising, determining whether the directory can be retained in general or a particular type of list . 当目录类型在通用或特定保留列表中,则确定该残留目录的清理类型为慎重清理。 When a directory in a generic or specific type in the reservation list, the remaining cleaning type directory is determined to be carefully cleaned.

[0179] 可选的,该保留列表可作为目录类型与扩展名和/或文件头的对应关系列表的其中一部分。 [0179] Optionally, the list may be retained as a list of correspondence relationship between the directory name and the type of extension / or wherein a portion of the file header. 该对应关系列表中不仅能够包括保留列表,也可包括清理列表。 The corresponding list can include not only the relationship reserve list may also include a cleanup list. 该对应关系列表可参见图6。 This correspondence list can be found in relation to FIG 6. 其中,每个目录类型或文件类型下可对应多个扩展名和/或文件头,可标识其中一部分作为敏感文件类型,如图片类型、音频类型等。 Wherein the type of each directory or file type may correspond to a plurality of extensions and / or file header, which may be identified as part of the sensitive file types such as picture type, audio type and the like. 当判断目录类型为敏感类型时,即表明该残留目录需被被清理掉过滤掉后以加入慎重清理列表中。 When it is determined the type of directory type is sensitive, i.e., the directory indicates that the residue needs to be cleaned after being filtered off to clean up the list carefully added.

[0180] 可选的,可对该通用保留列表进行修改,选择等指令操作,可根据来自后端或其他设备的修改指令,对类型进行添加或删除,也可添加或删除某一类型内的扩展名或文件头。 [0180] Alternatively, modifications can be made, the selection instruction operation common reserve list, may, add or delete type according to the modification instruction from the rear or other devices may be added or deleted within a certain type of extension or file header. 也可对该保留列表进行选择,如图6中序号为1、2、3、4、17的列表选项可组成通用保留列表,针对某一个或多个残留目录,可选择该通用列表中的一项或多项,组成新的特定的保留列表。 Also be selected for the reserve list, as shown in FIG. 6 is a sequence number may be composed of a list of options 1,2,3,4,17 general reserve list for one or more directories residue, which may select a generic list items or more, to form a new specific reserve list. 则判断目录类型是否在保留列表中时,针对某一残留目录,可判断该残留目录的目录类型是否在该残留目录对应的保留列表中。 It is determined whether the type of the directory list when, for a certain residual directory, directory type is determined to retain the remaining reserved directory is in the list directory corresponding to the residue.

[0181] 可选的,通用或特定保留列表可存储在本地终端或服务器中,当通用或特定保留列表存储在服务器中时,终端可通过网络实时获取更新后的保留列表。 [0181] Alternatively, general or specific reservation list stored in the local server or the terminal, when a general purpose or specific reservation list stored in the server, the terminal may obtain a list of reserved updated in real time through a network.

[0182] 第三判断模块406,用于若第二判断模块405的判断结果为否,则判断所述残留目录的目录信息是否包含敏感词信息。 [0182] The third determining module 406 for determining if the result of the second determining module 405 is NO, it is determined that the residual content information directory contains sensitive information word.

[0183] 在一个实施例中,若第二判断模块405判断出目录类型不在预设的通用或特定保留列表中,则可进一步判断残留目录是否需要被清理。 [0183] In one embodiment, if the second determination module 405 determines that the directory is not the type of generic or specific preset the reserved list, the residue can be further determined whether the directory needs to be cleaned. 具体的,通过第三判断模块406判断残留目录的目录信息是否包含敏感词信息,确定该残留目录的清理类型。 Specifically, the third determination module 406 determines the residual content information directory word contains sensitive information, it is determined that the type of cleaning residual directory. 其中,残留目录的目录信息可包括目录名称等目录标识,敏感词信息具体可为用户设置或系统在生成目录自动设置的包含用户信息的敏感词。 Wherein, the directory information may comprise residual directory like directory directory name identification, may be particularly sensitive word information set by the user or the system containing the sensitive user information word to generate a directory automatically. 如下敏感词为列举的一部分,当然本发明实施例还可包括其他敏感词信息。 As part of the enumerated sensitive words, embodiments of the present invention may of course include other sensitive information words.

[0184] 其中,敏感词信息可包括但不限于:“camera”、“photo”、“backup”、“hide”、“encrypt,,、“note”、“wallpaper,,、“calI '“record,,、“ video”、“movie,,、“music”、“aud1,,、“gallery,,、“picture,,、“ringtone,,、“ring,,、“player,,、“MP3”、“download,,、“保险箱”、“隐藏,,、“备份,,、“加密”、“隐私”、“office,,、“gard,,、“mail'“password,,、“copy,,、“new,,、“folder,,、“copia,,、“,s” 等。 [0184] wherein the word sensitive information may include, without limitation: "camera", "photo", "backup", "hide", "encrypt ,,," note "," wallpaper ,,, "calI '" record, ,, "video", "movie ,,," music "," aud1 ,,, "gallery ,,," picture ,,, "ringtone ,,," ring ,,, "player ,,," MP3 "," download ,,, "safe", "Hide ,,," backup ,,, "encryption", "Privacy", "office ,,," gard ,,, "mail '" password ,,, "copy ,,," new ,,, "folder ,,," copia ,,, ", s" and the like.

[0185] 第二确定模块407,用于若第三判断模块406中的判断结果为否,则确定所述残留目录的清理类型为建议清理。 [0185] The second determination module 407 determines if the third determination module 406 for the result is NO, the remaining cleaning type directory is determined to be recommended cleaning.

[0186] 在一个实施例中,当第二确定模块407确定该残留目录的清理类型为建议清理后,本发明实施例还可包括以下模块,以进一步对建议清理类型的残留目录进行处理: [0186] In one embodiment, when the second determination module 407 determines the type of cleaning residue directory recommended cleaning, embodiments of the present invention further includes the following modules to further clean type directory recommendations residue is treated:

[0187] 第一加入模块408,用于将所述残留目录加入建议清理列表; [0187] The first module 408 is added, to the residue was added recommend cleaning the directory listing;

[0188] 第一显示模块409,用于将所述建议清理列表显示在建议清理界面; [0188] The first display module 409, the recommendations for cleaning clean interface recommendation list displayed;

[0189] 第一删除模块410,用于根据用户在所述建议清理界面上的确认操作,对所述建议清理列表的列表目录进行删除。 [0189] The first deleting module 410, according to a user the recommendation on the confirmation operation screen cleaning, the cleaning is recommended playlist directory list for deletion.

[0190] 在一个实施例中,若残留目录的目录信息不包含敏感词信息时,则第二确定模块407可最终确定该残留目录的清理类型为建议清理。 [0190] In one embodiment, if the residual content information directory does not contain sensitive information word, the second determination module 407 may determine the final cleaning of the type recommended for cleaning residual directory. 经过上述处理最终留下的残留目录即可确定其清理类型为建议清理。 After the above process eventually left residual directory to determine the type of cleanup is recommended to clean. 可在终端进行清理扫描时,第一加入模块408将该清理类型的残留目录加入待清理列表,并第一显示模块409可将其显示在建议清理界面,对于建议清理界面的残留目录,第一删除模块410进行清理。 When scanning terminal can be cleaned, the cleaning module 408 added to the first type of residue added to the directory list to be cleaned, and the first display module 409 may display clean interface recommendations, recommendations for cleaning residual directory interface, a first delete module 410 to clean up.

[0191] 第四确定模块411,若第一判断模块402的判断结果为是,或第二判断模块405的判断结果为是,或第三判断模块406的判断结果为是,则确定所述残留目录的清理类型为慎重清理。 [0191] The fourth determination module 411, determines if the result of the first determining module 402 is YES, or the determination result of the second determination module 405 is YES, or the third determination module 406 determines the result is YES, it is determined that the remaining clean-type directory is carefully cleaned.

[0192] 在一个实施例中,当第四确定模块411确定该残留目录的清理类型为慎重清理后,本发明实施例还可包括以下模块,以进一步对慎重清理类型的残留目录进行处理: [0192] In one embodiment, when the fourth determining module 411 determines the type of cleaning residual directory is carefully cleaned embodiment of the present invention may also include modules, to further carefully clean type directory residue is treated:

[0193] 第二加入模块412,用于将所述残留目录加入慎重清理列表; [0193] The second module 412 is added, to the residue was added carefully clean the directory listing;

[0194] 第二显示模块413,用于将所述慎重清理列表显示在深度清理界面; [0194] The second display module 413, for cleaning the careful cleaning list display screen in the depth;

[0195] 第二删除模块414,用于根据用户在所述深度清理界面上的选择操作,对所述慎重清理列表中的所述选择操作对应的列表目录进行删除。 [0195] The second deleting module 414, according to a user selection operation in the depth clean interface, the careful cleaning of the selection list corresponding to an operation to delete a directory listing.

[0196] 在一个实施例中,残留目录的清理类型包括建议清理及慎重清理,即通过上述方式过滤掉的残留目录,第四确定模块411可确定其清理类型为慎重清理,慎重清理类型的残留目录一般包含用户相关信息,由于用户行为产生的数据文件,比如主动下载等。 [0196] In one embodiment, the type of cleaning residual directory includes cleaning and careful cleaning is recommended, i.e., filtered out by the above-described manner residue directory, the fourth determination module 411 may determine which type of cleaning careful cleaning, carefully clean type residue general directory contains user-related information, data files, because the user's behavior, such as active downloads. 因此可在终端进行清理扫描时,第二加入模块412可将该残留目录加入慎重清理列表,并第二显示模块413将其显示在深度清理界面,对于深度清理界面的残留目录,用户可以根据残留目录的目录特征,以确定是否要对该残留目录进行保留,如当残留目录的目录特征包含中文信息时,用户可根据该残留目录的备注,确定是否要对该包含中文信息的残留目录进行保留,当用户确定该残留目录文件可清理时,第二删除模块414可对其进行勾选以便终端进行清理。 Thus cleaning can be scanned at the terminal, the second module 412 can be added to this residue was added carefully clean directory list and the second display module 413 displays the depth clean interface, for cleaning residual directory depth interface, the user can Residues Contents directory feature, to determine whether to retain the residue of the directory, such as directory when the directory contains residual Chinese feature information, the user can Remarks this residue directory, determines whether or not to retain the directory containing the remaining information in Chinese when the user determines that the remaining directory files can be cleaned a second deleting module 414 may be checked in order to clean the terminal.

[0197] 本发明实施例中,通过确定系统存储目录下的残留目录,并通过判断该残留目录的目录特征是否满足清理条件,残留目录的目录类型是否在预设的通用或特定保留列表中,残留目录的目录信息是否包含敏感词信息等多维度方式,确定残留目录的清理类型,从而能够自动识别及确定残留目录的清理类型,提高了对残留目录的处理效率。 Embodiment [0197] of the present invention, the system determines the residual storage directory under the directory, and the directory is determined by the characteristics of the remaining directory flush condition is satisfied, whether the directory type residue in a predetermined directory of general or specific reservation list, residual content information directory contains sensitive information word multi-dimensional manner, determine the type of cleaning residual directory, it is possible to automatically identify and determine the type of cleaning residual directory, the processing efficiency of the residual directory.

[0198] 参见图5,是本发明中的一种终端的一实施例的结构示意图。 [0198] Referring to FIG. 5, it is a schematic structural diagram of an embodiment of the present invention in a terminal. 该终端可以包括:至少一个处理器501,如CPU,至少一个用户接口503,存储器504以及至少一个通信总线502。 The terminal may comprise: at least one processor 501, such as CPU, the at least one user interface 503, memory 504, and at least one communication bus 502. 其中,通信总线502用于实现这些组件之间的连接通信,用户接口503可以包括显示屏(Display)及键盘(Keyboard),可选的,用户接口503还可以包括标准的有线接口及无线接口,存储器504可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatilememory),如至少一个磁盘存储器,可选的,存储器504还可以是至少一个位于远离前述处理器501的存储装置。 Wherein the communication bus 502 for realizing a communication connection, the user interface 503 between these components may include a display screen (Display) and a keyboard (Keyboard), an optional user interface 503 may further include standard wired interface and a wireless interface, the memory 504 may be a high speed RAM memory, may be non-volatile memory (non-volatilememory), such as at least one disk memory, an optional memory storage device 504 may also be located remotely from the at least one processor 501. 其中,存储器504中存储一组程序代码,且处理器501调用存储器504中存储的程序代码,用于执行以下操作: Wherein, the memory 504 stores a set of program codes, call processor 501 and the program code stored in memory 504, to perform the following operations:

[0199] 确定系统存储目录下的残留目录; [0199] determining system directory in the remaining storage directory;

[0200] 若所述残留目录的目录特征不满足慎重清理的条件,则判断所述残留目录的目录类型是否在预设的通用保留列表中; [0200] wherein if the directory does not satisfy the remaining directory carefully cleaned condition, it is determined whether the remaining directory type universal directory retained in a preset list;

[0201] 若所述目录类型不在所述预设的通用保留列表中,则判断所述残留目录的目录信息是否包含敏感词信息; [0201] When the directory is not the type of the preset general reservation list, it is determined that the residual content information directory contains sensitive information word;

[0202] 若所述目录信息不包含所述敏感词信息,则确定所述残留目录的清理类型为建议清理。 [0202] When the content information does not include the word sensitive information, the type of cleaning residual directory is determined recommended cleaning.

[0203] 作为可选的实施例,所述处理器501确定系统存储目录下的残留目录的具体方式为: [0203] As an alternative embodiment, processor 501 determines the remaining storage directory system directory under specific way:

[0204] 获取所述系统存储目录下的文件目录; [0204] Gets the directory file system storage directory;

[0205] 针对所述获取的文件目录,判断所述文件目录对应的应用程序是否已经卸载; [0205] for the acquisition of a file directory, the file directory corresponding to the determination whether the application has been unloaded;

[0206] 如果判断出所述文件目录对应的应用程序已经卸载,则确定所述文件目录以及所述文件目录下的所有子目录为残留目录。 [0206] If it is determined that the file directory corresponding to the application has been unloaded, it is determined that the file directory and all subdirectories of the directory file directory residue.

[0207] 作为可选的实施例,所述处理器501针对所获取的某级目录,判断所述某级目录对应的应用程序是否已经卸载的具体方式为: [0207] As an alternative embodiment, the processor 501 for a certain level directory acquired, determines whether the particular embodiment of a stage corresponding to the directory of the application has been uninstalled:

[0208] 判断应用程序安装列表中是否存在所述文件目录对应的包名称,如果不存在则确定所述文件目录对应的应用程序已经卸载。 [0208] It is determined whether there is application installation file directory corresponding to the package name in the list, determining if there is no file directory corresponding to the application has been uninstalled.

[0209] 作为可选的实施例,所述残留目录的目录特征满足慎重清理的条件包括以下条件中的至少一种或组合: [0209] As an optional feature of the directory embodiments, the careful cleaning of residual does satisfy condition comprises at least one or combination of the following conditions:

[0210] 所述残留目录的目录特征符合正则算法; [0210] Contents directory wherein said residual regular compliance algorithm;

[0211] 所述残留目录的目录特征中的路径长度小于预设阈值;和/或 [0211] wherein the remaining length of the directory path directory less than a preset threshold value; and / or

[0212] 所述残留目录的目录特征中包含中文信息。 [0212] wherein said directory contains Chinese residual directory information.

[0213] 作为可选的实施例,在所述判断所述残留目录的目录类型是否在预设的通用保留列表中之前,处理器501还用于调用存储器504中的程序代码,以执行以下操作: [0213] As an alternative embodiment, prior to the determination of the residual directory type whether the predetermined directory general the reserved list, the processor 501 also calls the program code memory 504 to perform the following operations :

[0214] 统计所述残留目录中包含的子文件的文件类型; [0214] The file type of said remaining sub-file statistics contained in the directory;

[0215] 将文件数量最多的文件类型确定为目录类型。 [0215] The largest number of file types to determine the type of directory.

[0216] 作为可选的实施例,处理器501还用于调用存储器504中的程序代码,以执行以下操作: [0216] As an alternative embodiment, the processor 501 is further configured to invoke the program code memory 504 to perform the following operations:

[0217] 检测是否存在针对所述残留目录的特定保留列表,其中,所述特定保留列表包括通用保留列表中的一个或多个文件类型; [0217] detecting the presence of the residual reserve list for a particular directory, wherein the specific retention list comprises a list of generic file type, one or more reserved;

[0218] 所述判断所述残留目录的目录类型是否在预设的通用保留列表中,包括: [0218] The type of the directory is determined whether the remaining directory preset general the reserved list, comprising:

[0219] 若检测到存在所述特定保留列表,则判断所述残留目录的目录类型是否在所述特定保留列表中; [0219] If the particular reservation list to detect the presence, the type of the directory is determined whether or not residual in the specific directory reservation list;

[0220] 若检测到不存在所述特定保留列表,则判断所述残留目录的目录类型是否在所述通用保留列表中。 [0220] When the specific detection of the reserve list does not exist, the directory type is determined whether the remaining reserved directory list in said general.

[0221] 作为可选的实施例,处理器501还用于调用存储器504中的程序代码,以执行以下操作: [0221] As an alternative embodiment, the processor 501 is further configured to invoke the program code memory 504 to perform the following operations:

[0222] 根据针对所述通用保留列表的修改指令,对所述通用保留列表进行修改; [0222] The reservation list for the general modification instruction, the general reserve list modification;

[0223] 其中,所述判断所述残留目录的目录类型是否在预设的通用保留列表中,包括: [0223] wherein, the directory type is determined whether the directory of the remaining preset general reserve list, comprising:

[0224] 判断所述残留目录的目录类型是否在修改后的通用保留列表中。 [0224] Contents of the type determining whether the remaining common directory modified reservation list.

[0225] 作为可选的实施例,处理器501还用于调用存储器504中的程序代码,以执行以下操作: [0225] As an alternative embodiment, the processor 501 is further configured to invoke the program code memory 504 to perform the following operations:

[0226] 若所述残留目录的目录特征满足所述慎重清理的条件,或若所述残留目录的目录类型在所述保留列表中,或若所述残留目录的目录信息包括敏感词信息,则确定所述残留目录的清理类型为慎重清理。 [0226] wherein if the directory satisfy the remaining directory carefully cleaned condition, or if the remaining directory of directory type at the reservation list or directory if the directory information comprises residual information sensitive words, the determining the type of cleaning residual directory careful cleaning.

[0227] 作为可选的实施例,在所述确定所述残留目录的清理类型为建议清理之后,处理器501还用于调用存储器504中的程序代码,以执行以下操作: [0227] As an alternative embodiment, determining the type of said residual cleaning recommendations directory after cleaning, the processor 501 is further configured to invoke the program code memory 504 to perform the following operations:

[0228] 将所述残留目录加入建议清理列表; [0228] The residue was added recommend cleaning the directory listing;

[0229] 将所述建议清理列表显示在建议清理界面; [0229] recommend cleaning the recommendation list displayed on the screen cleaning;

[0230] 根据用户在所述建议清理界面上的确认操作,删除在所述建议清理界面上显示的建议清理列表。 [0230] The user is recommended to confirm the cleaning operation on the screen, deleting the recommendation list displayed recommend cleaning the upper cleaning screen.

[0231] 作为可选的实施例,在所述确定所述残留目录的清理类型为慎重清理之后,处理器501还用于调用存储器504中的程序代码,以执行以下操作: [0231] As an alternative embodiment, the determination of the type of cleaning residual directory after careful cleaning, the processor 501 is further configured to invoke the program code memory 504 to perform the following operations:

[0232] 将所述残留目录加入慎重清理列表; [0232] The residue was added carefully clean the directory listing;

[0233] 将所述慎重清理列表显示在深度清理列表; [0233] carefully cleaning the cleaning list display list in depth;

[0234] 根据用户在所述深度清理列表上的选择操作,对所述慎重清理列表中的所述选择操作对应的列表目录进行删除操作。 [0234] The user selects the cleaning operation on the depth of the list, the careful cleaning of the selection list corresponding to an operation list directory delete operation.

[0235] 本发明实施例中,通过确定系统存储目录下的残留目录,并通过判断该残留目录的目录特征是否满足清理条件,残留目录的目录类型是否在预设的通用保留列表中,残留目录的目录信息是否包含敏感词信息等多维度方式,确定残留目录的清理类型,从而能够自动识别及确定残留目录的清理类型,提高了对残留目录的处理效率。 [0235] embodiment of the present invention, the system determines the residual storage directory under the directory, and the directory is determined by the characteristics of the remaining directory flush condition is satisfied, whether the directory type residue in a predetermined directory of general reserve list, the residual directory content information contains sensitive information word multi-dimensional manner, determine the type of cleaning residual directory, it is possible to automatically identify and determine the type of cleaning residual directory, the processing efficiency of the residual directory.

[0236] 以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。 Example [0236] The apparatus described above is merely exemplary, as a unit wherein the separate parts may be or may not be physically separate, parts displayed as units may be or may not be physical units, i.e., it may be located in one place, or may be distributed to multiple network units. 可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。 You can select some or all of the modules according to actual needs to achieve the object of the solutions of the embodiments. 本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。 Those of ordinary skill in the art in the case without creative labor, i.e., can be understood and implemented.

[0237] 本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。 Embodiment [0237] embodiment of the present invention, the method steps may be adjusted according to actual needs sequence, deletion and merger.

[0238] 本发明实施例终端或设备中的单元或子单元可以根据实际需要进行合并、划分和删减。 [0238] The present invention in a terminal device or unit or subunit embodiment may be combined according to actual needs, division and deletion.

[0239] 通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。 [0239] By the above described embodiments, those skilled in the art may clearly understand that the embodiments may be implemented by software plus a necessary universal hardware platform, also be implemented by hardware. 基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如R0M/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。 Based on such understanding, the technical solutions of the above or the part contributing to the prior art may be embodied in a software product out of the computer software product may be stored in a computer-readable storage medium, such as a R0M / RAM, magnetic disk, optical disk, etc., some parts of the various method embodiments or embodiment includes a plurality of instruction execution to enable a computer device (may be a personal computer, a server, or network device).

[0240] 以上所述的实施方式,并不构成对该技术方案保护范围的限定。 [0240] The embodiment described above is not intended to limit the scope of protection of the technical solution. 任何在上述实施方式的精神和原则之内所作的修改、等同替换和改进等,均应包含在该技术方案的保护范围之内。 Any modifications within the spirit and principle of the above embodiments, equivalent alterations and modifications all fall within the scope of protection of the technical solution.

Claims (10)

1.一种残留目录清理类型的确定方法,其特征在于,包括: 确定系统存储目录下的残留目录; 若所述残留目录的目录特征不满足慎重清理的条件,则判断所述残留目录的目录类型是否在预设的通用保留列表中; 若所述目录类型不在所述预设的通用保留列表中,则判断所述残留目录的目录信息是否包含敏感词信息; 若所述目录信息不包含所述敏感词信息,则确定所述残留目录的清理类型为建议清理。 1. A method for determining the type of cleaning residue directory, characterized in that, comprising: determining a remaining storage directory directory system; wherein if the directory does not satisfy the remaining directory carefully clean conditions, the remaining directory directory is determined general type is retained in a predetermined list; if the directory is not the type of the preset general reservation list, it is determined that the residual content information directory contains sensitive information word; and if the content information does not contain the said sensitive word information, determining the type of cleaning is recommended to clean up residual directory.
2.如权利要求1所述方法,其特征在于,所述确定系统存储目录下的残留目录,包括: 获取所述系统存储目录下的文件目录; 针对所述获取的文件目录,判断所述文件目录对应的应用程序是否已经卸载; 如果判断出所述文件目录对应的应用程序已经卸载,则确定所述文件目录以及所述文件目录下的所有子目录为残留目录。 2. The method as claimed in claim 1, wherein said determining residual directory under the directory storage system, comprising: obtaining a file storage directory of the directory system; for the acquired file directory, the file is determined whether the directory corresponding application has been uninstalled; if it is determined that the file directory corresponding to the application has been unloaded, it is determined that all the subdirectories under the file directory and file directory is a directory residue.
3.如权利要求2所述方法,其特征在于,所述针对所获取的某级目录,判断所述某级目录对应的应用程序是否已经卸载,包括: 判断应用程序安装列表中是否存在所述文件目录对应的包名称,如果不存在则确定所述文件目录对应的应用程序已经卸载。 3. The method as claimed in claim 2, characterized in that, for a certain stage of the directory acquired, determining whether the directory corresponding to a stage of application has been uninstalled, comprising: determining a list of applications installed in the presence or absence of file directory corresponding to the package name, determining if there is no file directory corresponding to the application has been uninstalled.
4.如权利要求1-3任一所述方法,其特征在于,所述残留目录的目录特征满足慎重清理的条件包括以下条件中的至少一种或组合: 所述残留目录的目录特征符合正则算法; 所述残留目录的目录特征中的路径长度小于预设阈值;和/或所述残留目录的目录特征中包含中文信息。 4. The method according to any one of claims 1-3, wherein said residual characterized directory does satisfy the conditions of carefully cleaning composition comprising at least one or more of the following conditions: a directory wherein said residual meet regular directory algorithm; wherein the remaining length of the directory path directory less than a preset threshold value; and / or wherein said directory contains Chinese residual directory information.
5.如权利要求4所述方法,其特征在于,在所述判断所述残留目录的目录类型是否在预设的通用保留列表中之前,还包括: 统计所述残留目录中包含的子文件的文件类型; 将文件数量最多的文件类型确定为目录类型。 5. The method as claimed in claim 4, characterized in that, prior to the determination of the residual directory type whether the predetermined directory general the reserved list, further comprising: said statistics file sub directory contained in the residue file type; the largest number of file types to determine the type of directory.
6.如权利要求5所述方法,其特征在于,所述方法还包括: 检测是否存在针对所述残留目录的特定保留列表,其中,所述特定保留列表包括通用保留列表中的一个或多个文件类型; 所述判断所述残留目录的目录类型是否在预设的通用保留列表中,包括: 若检测到存在所述特定保留列表,则判断所述残留目录的目录类型是否在所述特定保留列表中; 若检测到不存在所述特定保留列表,则判断所述残留目录的目录类型是否在所述通用保留列表中。 6. The method as claimed in claim 5, wherein said method further comprises: detecting whether a particular reservation list for the remaining directory, wherein the list comprises the specific retention general reservation list of one or more file type; a type of the directory is determined whether the remaining directory preset general the reserved list, comprising: when the particular reservation list to detect the presence, the type of the directory is determined whether the remaining directory specified reservations list; if the specific detection of the reserve list does not exist, the directory type is determined whether the remaining reserved directory list in said general.
7.如权利要求5所述方法,其特征在于,所述方法还包括: 根据针对所述通用保留列表的修改指令,对所述通用保留列表进行修改; 其中,所述判断所述残留目录的目录类型是否在预设的通用保留列表中,包括: 判断所述残留目录的目录类型是否在修改后的通用保留列表中。 7. The method as claimed in claim 5, characterized in that, said method further comprising: the list of reserved for the universal modification instruction, the general reserve list modification; wherein said determining said residual directory directory type is retained in a predetermined list of common, comprising: determining whether the directory of the remaining types in a general directory retained in the modified list.
8.如权利要求1所述方法,其特征在于,所述方法还包括: 若所述残留目录的目录特征满足所述慎重清理的条件,或若所述残留目录的目录类型在所述保留列表中,或若所述残留目录的目录信息包括敏感词信息,则确定所述残留目录的清理类型为慎重清理。 8. The method as claimed in claim 1, wherein said method further comprises: if the directory of the directory feature satisfies residual careful cleaning conditions, or if the remaining directory of directory type at the reservation list directory information, or if the remaining entries include sensitive information words, it is determined that the type of the cleaning residual directory is carefully cleaned.
9.一种残留目录清理类型的确定装置,其特征在于,包括: 第一确定模块,用于确定系统存储目录下的残留目录; 第一判断模块,用于若所述残留目录的目录特征不满足慎重清理的条件,则判断所述残留目录的目录类型是否在预设的通用保留列表中; 第二判断模块,用于若所述第一判断模块判断出所述目录类型不在所述预设的通用保留列表中,则判断所述残留目录的目录信息是否包含敏感词信息; 第二确定模块,用于若所述第二判断模块判断出所述目录信息不包含所述敏感词信息,则确定所述残留目录的清理类型为建议清理。 A cleaning residual directory type determining apparatus, comprising: a first determining module configured to determine the system directory in the remaining storage directory; a first determining module, wherein if the directory is not said residual directory conditions carefully cleaned, the type of the directory is determined whether the remaining directory preset common reserve list; a second determining module configured to, if the first judging module determines that the type is not in the predetermined directory universal the reserved list, the determination of the residual content information directory contains sensitive information word; and a second determining means for determining if the second module determines that the sensitive information of the word does not include the content information, the determine the type of cleanup of the remaining directory is recommended to clean.
10.一种终端,其特征在于,包括用户接口、存储器及处理器,其中,所述存储器中存储一组程序代码,且所述处理器调用所述存储器中存储的程序代码,用于执行以下操作: 确定系统存储目录下的残留目录; 若所述残留目录的目录特征不满足慎重清理的条件,则判断所述残留目录的目录类型是否在预设的通用保留列表中; 若所述目录类型不在所述预设的通用保留列表中,则判断所述残留目录的目录信息是否包含敏感词信息; 若所述目录信息不包含所述敏感词信息,则确定所述残留目录的清理类型为建议清理。 10. A terminal, comprising a user interface, a memory and a processor, wherein the memory stores a set of program code and the program code calls stored in the memory of the processor for performing the following operation: determining residual directory storage directory system; wherein if the directory does not satisfy the remaining directory carefully clean conditions, the type of the directory is determined whether the remaining directory preset common reserve list; if the directory type is not the preset general reservation list, it is determined that the residual content information directory contains sensitive information word; and if the content information does not include the word sensitive information, the type of cleaning residual directory is determined recommendations clean-up.
CN201510732528A 2015-11-02 2015-11-02 Method, device and terminal for determining residual catalog cleaning type CN106648720A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510732528A CN106648720A (en) 2015-11-02 2015-11-02 Method, device and terminal for determining residual catalog cleaning type

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510732528A CN106648720A (en) 2015-11-02 2015-11-02 Method, device and terminal for determining residual catalog cleaning type

Publications (1)

Publication Number Publication Date
CN106648720A true CN106648720A (en) 2017-05-10

Family

ID=58809597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510732528A CN106648720A (en) 2015-11-02 2015-11-02 Method, device and terminal for determining residual catalog cleaning type

Country Status (1)

Country Link
CN (1) CN106648720A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609495A (en) * 2012-01-29 2012-07-25 奇智软件(北京)有限公司 Method for deleting file and system
CN103176828A (en) * 2013-03-29 2013-06-26 北京奇虎科技有限公司 Method and device of deleting application program residual files
CN104536792A (en) * 2014-12-30 2015-04-22 北京奇虎科技有限公司 Method and device for eliminating application program residual files
CN104866510A (en) * 2014-02-26 2015-08-26 北京金山安全软件有限公司 Residual file cleaning method and device as well as residual file feature library establishment method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609495A (en) * 2012-01-29 2012-07-25 奇智软件(北京)有限公司 Method for deleting file and system
CN103176828A (en) * 2013-03-29 2013-06-26 北京奇虎科技有限公司 Method and device of deleting application program residual files
CN104866510A (en) * 2014-02-26 2015-08-26 北京金山安全软件有限公司 Residual file cleaning method and device as well as residual file feature library establishment method and device
CN104536792A (en) * 2014-12-30 2015-04-22 北京奇虎科技有限公司 Method and device for eliminating application program residual files

Similar Documents

Publication Publication Date Title
US8213332B2 (en) Peer-to-peer data synchronization architecture
CN102135992B (en) Terminal application program classifying method and terminal
US20160019234A1 (en) Application recommendation using stored files
AU2008205032B2 (en) Data backup for mobile device
US9977668B2 (en) Automatic updating of applications
EP1942422A1 (en) Widget synchronization in accordance with synchronization preferences
EP1942424B1 (en) Background data transmission between media device and host device
US10275355B2 (en) Method and apparatus for cleaning files in a mobile terminal and associated mobile terminal
US20170004050A1 (en) Systems and methods for automatic synchronization of recently modified data
US20140365451A1 (en) Method and system for cleaning up files on a device
CN103002124B (en) A method for processing communication data, means
KR101472397B1 (en) Mobile terminal and method for processing notification information
CN103049515A (en) Method, device and equipment for classifying application programs
US8812983B2 (en) Automatic magnification and selection confirmation
CN101853296A (en) Method and device for managing application program
US9098370B2 (en) Apparatus and methods for improving uninstall process
CN103176828B (en) Delete the application of the residual method and device files
US20090325630A1 (en) Method, apparatus, and computer program product for personalizing a device
US20070079377A1 (en) Virus scanning in a computer system
US8281366B1 (en) Systems and methods for using guardian proximity to control computing activities of children
US8281399B1 (en) Systems and methods for using property tables to perform non-iterative malware scans
WO2011130971A1 (en) Method and mobile terminal for deleting files
US7483895B2 (en) Metadata management
Cahyani et al. Forensic data acquisition from cloud‐of‐things devices: windows Smartphones as a case study
US20140007255A1 (en) Privacy Control in a Social Network

Legal Events

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