Movatterモバイル変換


[0]ホーム

URL:


CN103501241B - Method, device and system for cleaning useless files - Google Patents

Method, device and system for cleaning useless files
Download PDF

Info

Publication number
CN103501241B
CN103501241BCN201310429456.5ACN201310429456ACN103501241BCN 103501241 BCN103501241 BCN 103501241BCN 201310429456 ACN201310429456 ACN 201310429456ACN 103501241 BCN103501241 BCN 103501241B
Authority
CN
China
Prior art keywords
file
junk
creator
custom
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310429456.5A
Other languages
Chinese (zh)
Other versions
CN103501241A (en
Inventor
何益
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co LtdfiledCriticalHuawei Technologies Co Ltd
Priority to CN201310429456.5ApriorityCriticalpatent/CN103501241B/en
Publication of CN103501241ApublicationCriticalpatent/CN103501241A/en
Application grantedgrantedCritical
Publication of CN103501241BpublicationCriticalpatent/CN103501241B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

Translated fromChinese

本发明公开了一种垃圾文件清理方法、装置和系统,属于计算机信息维护领域。所述方法包括:根据自定义扫描规则在全部文件中扫描第一垃圾文件集,自定义扫描规则由文件创建者定义;在第一垃圾文件集中查找与定义自定义扫描规则的文件创建者相对应的第一垃圾文件;删除与定义自定义扫描规则的文件创建者相对应的第一垃圾文件。本发明通过根据文件创建者定义的自定义扫描规则在全部文件中扫描第一垃圾文件集之后进行删除操作;解决了现有在垃圾文件的清理过程中,对垃圾文件的识别不充分的问题;达到了充分识别垃圾文件的效果。

The invention discloses a garbage file cleaning method, device and system, belonging to the field of computer information maintenance. The method includes: scanning the first garbage file set in all files according to the custom scanning rule, the custom scanning rule is defined by the file creator; searching in the first junk file set corresponding to the file creator defining the custom scanning rule first junk file; deletes the first junk file corresponding to the creator of the file defining the custom scan rule. The present invention performs a deletion operation after scanning the first garbage file set in all files according to the self-defined scanning rules defined by the file creator; it solves the existing problem of insufficient identification of junk files in the cleaning process of junk files; The effect of fully identifying junk files is achieved.

Description

Translated fromChinese
垃圾文件清理方法、装置和系统Junk file cleaning method, device and system

技术领域technical field

本发明涉及计算机信息维护领域,特别涉及一种垃圾文件清理方法、装置和系统。The invention relates to the field of computer information maintenance, in particular to a garbage file cleaning method, device and system.

背景技术Background technique

NAS(Network Attached Storage,网络附属存储)是一种采用直接与网络介质相连的特殊设备实现数据存储的机制。分布式NAS存储通常由若干个服务器组成,每个服务器之间通过网络互连形成分布式NAS存储。分布式NAS存储包含NAS协议服务端和分布式文件系统。NAS (Network Attached Storage, Network Attached Storage) is a mechanism for data storage using special devices directly connected to network media. Distributed NAS storage usually consists of several servers, and each server is interconnected through a network to form distributed NAS storage. Distributed NAS storage includes NAS protocol server and distributed file system.

用户通过NAS协议客户端连接到NAS协议服务端,并发送相应的数据存取请求进行数据存取。NAS协议服务端收到NAS协议客户端发送的数据存取请求后,从分布式文件系统中存取数据,并向NAS协议客户端发送相应的数据存取响应。由于在日常操作和使用过程中,分布式NAS存储中会产生大量的垃圾文件。垃圾文件包括:日常操作过程中因为一些文件读取程序的异常退出,分布式NAS存储中保留的一些临时文件或者垃圾信息文件;在数据存取的过程中,某些程序在分布式NAS存储中产生的大量临时文件;以及一些长期没有被使用的文件。现有的对分布式NAS存储中的垃圾文件的清理方法通常是通过管理员人为地设定固定的扫描规则,譬如将.swp和.tmp格式的文件,以及时间超过12个月没有被使用的文件设定为垃圾文件。扫描出的垃圾文件将被自动从分布式NAS存储中删除,或者经管理员检查确认后,由管理员删除。The user connects to the NAS protocol server through the NAS protocol client, and sends a corresponding data access request for data access. After receiving the data access request sent by the NAS protocol client, the NAS protocol server accesses data from the distributed file system, and sends a corresponding data access response to the NAS protocol client. Due to the daily operation and use, a large number of junk files will be generated in the distributed NAS storage. Junk files include: some temporary files or junk information files retained in distributed NAS storage due to the abnormal exit of some file reading programs during daily operations; A large number of temporary files generated; and some files that have not been used for a long time. Existing methods for cleaning up junk files in distributed NAS storage are usually through administrators artificially setting fixed scanning rules, such as files in .swp and .tmp formats, and files that have not been used for more than 12 months The file is set as junk. The scanned junk files will be automatically deleted from the distributed NAS storage, or deleted by the administrator after being checked and confirmed by the administrator.

在实现本发明的过程中,发明人发现现有技术至少存在以下问题:In the process of realizing the present invention, the inventor finds that there are at least the following problems in the prior art:

第一,通过固定的扫描规则扫描得到垃圾文件,对垃圾文件的识别不充分。扫描得到的垃圾文件中很有可能包含一些有价值的文件或者遗漏了一些其它格式的垃圾文件,而且管理员设定的扫描规则是全局的,无法体现用户的意图。First, junk files are scanned through fixed scanning rules, and the identification of junk files is insufficient. The scanned junk files may contain some valuable files or miss some junk files in other formats, and the scanning rules set by the administrator are global and cannot reflect the user's intention.

第二,在对扫描得到的垃圾文件进行删除时,如果通过自动删除的方式,则很有可能误删一些有价值的文件;如果通过管理员删除的方式,由于扫描得到的垃圾文件很多,管理员无法对每个垃圾文件进行检查确认,这导致误删的概率也很高,而且使得分布式NAS存储的管理维护成本很高。Second, when deleting the scanned junk files, if the automatic deletion method is used, it is very likely that some valuable files will be deleted by mistake; Staff cannot check and confirm each junk file, which leads to a high probability of accidental deletion, and makes the management and maintenance cost of distributed NAS storage very high.

发明内容Contents of the invention

为了解决现有在垃圾文件的清理过程中,对垃圾文件的识别不充分,文件误删率高,管理维护成本高的问题,本发明实施例提供了一种垃圾文件清理方法、装置和系统。所述技术方案如下:In order to solve the existing problems of insufficient identification of junk files, high rate of file deletion by mistake, and high cost of management and maintenance in the process of cleaning junk files, the embodiments of the present invention provide a method, device and system for cleaning junk files. Described technical scheme is as follows:

第一方面,提供了一种垃圾文件清理方法,所述方法包括:In the first aspect, a method for cleaning up junk files is provided, the method comprising:

根据自定义扫描规则在全部文件中扫描第一垃圾文件集,所述自定义扫描规则由文件创建者定义;scanning the first set of junk files in all files according to a custom scanning rule defined by a file creator;

在所述第一垃圾文件集中查找与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件;Searching for a first junk file corresponding to the file creator defining the custom scanning rule in the first junk file set;

删除与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件。The first junk file corresponding to the file creator defining the custom scanning rule is deleted.

在第一方面的第一种可能的实施方式中,所述删除与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件,包括:In a first possible implementation manner of the first aspect, the deleting the first junk file corresponding to the file creator defining the custom scanning rule includes:

将所述第一垃圾文件发送给与定义所述自定义扫描规则的文件创建者相对应的用户终端,以便所述用户终端获取需要删除的第一垃圾文件的选择结果;sending the first junk file to a user terminal corresponding to the file creator defining the custom scanning rule, so that the user terminal obtains a selection result of the first junk file to be deleted;

接收所述用户终端反馈的所述选择结果,所述选择结果用于告知服务器需要删除的第一垃圾文件;receiving the selection result fed back by the user terminal, where the selection result is used to inform the server of the first junk file to be deleted;

根据所述选择结果将所述需要删除的第一垃圾文件进行删除。The first junk file to be deleted is deleted according to the selection result.

结合第一方面,在第二种可能的实施方式中,所述根据自定义扫描规则在全部文件中扫描第一垃圾文件集之前,还包括:With reference to the first aspect, in a second possible implementation manner, before scanning the first junk file set in all files according to the custom scanning rule, the method further includes:

接收并存储至少一个用户终端发送的所述自定义扫描规则以及定义所述自定义扫描规则的文件创建者。The custom scanning rule sent by at least one user terminal and the file creator defining the custom scanning rule are received and stored.

结合第一方面、第一方面的第一种可能的实施方式或者第一方面的第二种可能的实施方式,在第三种可能的实施方式中,所述根据自定义扫描规则在全部文件中扫描得到第一垃圾文件集之前,还包括:In combination with the first aspect, the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, in a third possible implementation manner, the user-defined scan rule in all files Before the scan gets the first set of junk files, it also includes:

根据全局扫描规则在所述全部文件中扫描第二垃圾文件集,所述全局扫描规则是从管理终端获取到的;Scanning the second garbage file set in all files according to a global scanning rule, the global scanning rule is obtained from the management terminal;

将所述第二垃圾文件集进行分类得到与不同的所述文件创建者各自相对应的第二垃圾文件;classifying the second junk file set to obtain second junk files corresponding to different file creators;

对于每个文件创建者,判断是否存在由所述文件创建者定义的自定义扫描规则;For each file creator, determine whether there is a custom scanning rule defined by the file creator;

若不存在由所述文件创建者定义的自定义扫描规则,则删除与所述文件创建者对应的第二垃圾文件;If there is no custom scan rule defined by the file creator, then delete the second junk file corresponding to the file creator;

若存在由所述文件创建者定义的自定义扫描规则,则执行所述根据自定义扫描规则在全部文件中扫描第一垃圾文件集的步骤。If there is a custom scanning rule defined by the file creator, the step of scanning the first junk file set in all files according to the custom scanning rule is executed.

结合第一方面的第三种可能的实施方式,在第四种可能的实施方式中,所述删除与所述文件创建者对应的第二垃圾文件,包括:With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner, the deleting the second junk file corresponding to the file creator includes:

将所述第二垃圾文件发送给与所述文件创建者相对应的用户终端,以便所述用户终端获取需要删除的第二垃圾文件的选择结果;sending the second junk file to a user terminal corresponding to the file creator, so that the user terminal obtains a selection result of the second junk file to be deleted;

接收所述用户终端反馈的所述选择结果,所述选择结果用于告知服务器需要删除的第二垃圾文件;receiving the selection result fed back by the user terminal, where the selection result is used to inform the server of the second junk file to be deleted;

根据所述选择结果将所述需要删除的第二垃圾文件进行删除。The second junk file to be deleted is deleted according to the selection result.

第二方面,提供了一种垃圾文件清理方法,所述方法包括:In a second aspect, a method for cleaning up junk files is provided, the method comprising:

接收服务器发送的第一垃圾文件,所述第一垃圾文件是所述服务器根据自定义扫描规则在全部文件中扫描第一垃圾文件集,并在所述第一垃圾文件集中查找与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件后,发送给与定义所述自定义扫描规则的文件创建者相对应的用户终端的;Receiving the first junk file sent by the server, the first junk file is the first junk file set that the server scans in all files according to custom scanning rules, and searches and defines the self-defined junk file set in the first junk file set. After defining the first junk file corresponding to the file creator of the scanning rule, it is sent to the user terminal corresponding to the file creator defining the custom scanning rule;

获取需要删除的第一垃圾文件的选择结果;Obtain the selection result of the first junk file to be deleted;

将所述选择结果发送给所述服务器,以便所述服务器根据所述选择结果将所述需要删除的第一垃圾文件进行删除。The selection result is sent to the server, so that the server deletes the first junk file to be deleted according to the selection result.

在第二方面的第一种可能的实施方式中,所述接收服务器发送的第一垃圾文件之前,还包括:In the first possible implementation manner of the second aspect, before receiving the first junk file sent by the server, it further includes:

向所述服务器发送所述自定义扫描规则以及定义所述自定义扫描规则的文件创建者。sending the custom scanning rule and a file creator defining the custom scanning rule to the server.

第三方面,提供了一种垃圾文件清理装置,所述装置包括:In a third aspect, a junk file cleaning device is provided, the device comprising:

第一扫描模块,用于根据自定义扫描规则在全部文件中扫描第一垃圾文件集,所述自定义扫描规则由文件创建者定义;The first scanning module is used to scan the first garbage file set in all files according to a custom scanning rule, and the custom scanning rule is defined by the file creator;

文件查找模块,用于在所述第一垃圾文件集中查找与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件;A file search module, configured to search for a first junk file corresponding to the file creator defining the custom scanning rule in the first junk file set;

文件删除模块,用于删除与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件。A file deletion module, configured to delete the first junk file corresponding to the file creator defining the custom scanning rule.

在第三方面的第一种可能的实施方式中,所述文件删除模块,包括:第一发送单元、第一接收单元和第一删除单元;In a first possible implementation manner of the third aspect, the file deletion module includes: a first sending unit, a first receiving unit, and a first deleting unit;

所述第一发送单元,用于将所述第一垃圾文件发送给与定义所述自定义扫描规则的文件创建者相对应的用户终端,以便所述用户终端获取需要删除的第一垃圾文件的选择结果;The first sending unit is configured to send the first junk file to the user terminal corresponding to the file creator defining the custom scanning rule, so that the user terminal can obtain the ID of the first junk file that needs to be deleted. select the result;

所述第一接收单元,用于接收所述用户终端反馈的所述选择结果,所述选择结果用于告知服务器需要删除的第一垃圾文件;The first receiving unit is configured to receive the selection result fed back by the user terminal, and the selection result is used to inform the server of the first junk file to be deleted;

所述第一删除单元,用于根据所述选择结果将所述需要删除的第一垃圾文件进行删除。The first deleting unit is configured to delete the first junk file that needs to be deleted according to the selection result.

结合第三方面,在第二种可能的实施方式中,所述装置,还包括:With reference to the third aspect, in a second possible implementation manner, the device further includes:

规则接收模块,用于接收并存储至少一个用户终端发送的所述自定义扫描规则以及定义所述自定义扫描规则的文件创建者。The rule receiving module is configured to receive and store the custom scanning rule sent by at least one user terminal and the creator of the file defining the custom scanning rule.

结合第三方面、第三方面的第一种可能的实施方式或者第三方面的第二种可能的实施方式,在第三种可能的实施方式中,所述装置,还包括:With reference to the third aspect, the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect, in the third possible implementation manner, the device further includes:

第二扫描模块,用于根据全局扫描规则在所述全部文件中扫描第二垃圾文件集,所述全局扫描规则是从管理终端获取到的;The second scanning module is used to scan the second garbage file set in all files according to the global scanning rule, the global scanning rule is obtained from the management terminal;

文件分类模块,用于将所述第二垃圾文件集进行分类得到与不同的所述文件创建者各自相对应的第二垃圾文件;A file classification module, configured to classify the second junk file set to obtain second junk files corresponding to different file creators;

规则判断模块,用于对于每个文件创建者,判断是否存在由所述文件创建者定义的自定义扫描规则;A rule judging module, for each file creator, judging whether there is a custom scanning rule defined by the file creator;

第一判定模块,用于若不存在由所述文件创建者定义的自定义扫描规则,则删除与所述文件创建者对应的第二垃圾文件;The first judging module is used to delete the second junk file corresponding to the file creator if there is no custom scanning rule defined by the file creator;

第二判定模块,用于若存在由所述文件创建者定义的自定义扫描规则,则执行所述根据自定义扫描规则在全部文件中扫描第一垃圾文件集的步骤。The second judging module is configured to execute the step of scanning the first junk file set in all files according to the custom scanning rule if there is a custom scanning rule defined by the file creator.

结合第三方面的第三种可能的实施方式,在第四种可能的实施方式中,所述第一判定模块,包括:第二发送单元、第二接收单元和第二删除单元;With reference to the third possible implementation manner of the third aspect, in a fourth possible implementation manner, the first determining module includes: a second sending unit, a second receiving unit, and a second deleting unit;

所述第二发送单元,用于将所述第二垃圾文件发送给与所述文件创建者相对应的用户终端,以便所述用户终端获取需要删除的第二垃圾文件的选择结果;The second sending unit is configured to send the second junk file to a user terminal corresponding to the file creator, so that the user terminal obtains a selection result of the second junk file to be deleted;

所述第二接收单元,用于接收所述用户终端反馈的所述选择结果,所述选择结果用于告知服务器需要删除的第二垃圾文件;The second receiving unit is configured to receive the selection result fed back by the user terminal, and the selection result is used to inform the server of the second junk file to be deleted;

所述第二删除单元,用于根据所述选择结果将所述需要删除的第二垃圾文件进行删除。The second deleting unit is configured to delete the second junk file to be deleted according to the selection result.

第四方面,提供了一种垃圾文件清理装置,所述装置包括:In a fourth aspect, a junk file cleaning device is provided, the device comprising:

垃圾接收模块,用于接收服务器发送的第一垃圾文件,所述第一垃圾文件是所述服务器根据自定义扫描规则在全部文件中扫描第一垃圾文件集,并在所述第一垃圾文件集中查找与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件后,发送给与定义所述自定义扫描规则的文件创建者相对应的用户终端的;The garbage receiving module is configured to receive the first garbage file sent by the server, the first garbage file is the first garbage file set scanned by the server in all files according to the custom scanning rules, and the first garbage file set is scanned in the first garbage file set After finding the first junk file corresponding to the file creator defining the custom scanning rules, sending it to the user terminal corresponding to the file creator defining the custom scanning rules;

选择获取模块,用于获取需要删除的第一垃圾文件的选择结果;Select and obtain the module, be used for obtaining the selection result of the first junk file that needs to be deleted;

选择发送模块,用于将所述选择结果发送给所述服务器,以便所述服务器根据所述选择结果将所述需要删除的第一垃圾文件进行删除。A selection sending module, configured to send the selection result to the server, so that the server deletes the first junk file to be deleted according to the selection result.

在第四方面的第一种可能的实施方式中,所述装置,还包括:In a first possible implementation manner of the fourth aspect, the device further includes:

规则发送模块,用于向所述服务器发送所述自定义扫描规则以及定义所述自定义扫描规则的文件创建者。A rule sending module, configured to send the custom scanning rule and the file creator defining the custom scanning rule to the server.

第五方面,提供了一种垃圾文件清理系统,所述系统包括:服务器和用户终端;In a fifth aspect, a junk file cleaning system is provided, the system includes: a server and a user terminal;

所述服务器包括如第三方面或者第三方面的各种可能的实施方式中所述的垃圾文件清理装置;The server includes the junk file cleaning device as described in the third aspect or various possible implementation manners of the third aspect;

所述用户终端包括如第四方面或者第四方面的各种可能的实施方式中所述的垃圾文件清理装置。The user terminal includes the apparatus for cleaning junk files as described in the fourth aspect or various possible implementation manners of the fourth aspect.

第六方面,提供了一种服务器,用于实现为垃圾文件清理系统中的服务器,所述服务器包括:处理器、存储器、发送器和接收器;In a sixth aspect, a server is provided, which is used to implement as a server in a junk file cleaning system, and the server includes: a processor, a memory, a sender, and a receiver;

所述处理器,用于根据自定义扫描规则在所述存储器中的全部文件中扫描第一垃圾文件集,所述自定义扫描规则由文件创建者定义;The processor is configured to scan the first set of junk files in all files in the memory according to a custom scanning rule defined by a file creator;

所述处理器,还用于在所述第一垃圾文件集中查找与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件;The processor is further configured to search in the first junk file set for a first junk file corresponding to the file creator defining the custom scanning rule;

所述处理器,还用于删除与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件。The processor is further configured to delete the first junk file corresponding to the file creator defining the custom scanning rule.

在第六方面的第一种可能的实施方式中,所述处理器,还用于控制所述发送器将所述第一垃圾文件发送给与定义所述自定义扫描规则的文件创建者相对应的用户终端,以便所述用户终端获取需要删除的第一垃圾文件的选择结果;In a first possible implementation manner of the sixth aspect, the processor is further configured to control the sender to send the first junk file to a file creator corresponding to the file creator defining the custom scanning rule the user terminal, so that the user terminal obtains the selection result of the first junk file that needs to be deleted;

所述处理器,还用于控制所述接收器接收所述用户终端反馈的所述选择结果,所述选择结果用于告知服务器需要删除的第一垃圾文件;The processor is further configured to control the receiver to receive the selection result fed back by the user terminal, where the selection result is used to inform the server of the first junk file to be deleted;

所述处理器,还用于根据所述选择结果将所述需要删除的第一垃圾文件进行删除。The processor is further configured to delete the first junk file that needs to be deleted according to the selection result.

结合第六方面,在第二种可能的实施方式中,所述处理器,还用于控制所述接收器接收并控制所述存储器存储至少一个用户终端发送的所述自定义扫描规则以及定义所述自定义扫描规则的文件创建者。With reference to the sixth aspect, in a second possible implementation manner, the processor is further configured to control the receiver to receive and control the memory to store the custom scanning rule sent by at least one user terminal and define the The creator of the file that describes the custom scan rule.

结合第六方面、第六方面的第一种可能的实施方式或者第六方面的第二种可能的实施方式,在第三种可能的实施方式中,所述处理器,还用于根据全局扫描规则在所述存储器的全部文件中扫描第二垃圾文件集,所述全局扫描规则是从管理终端获取到的;With reference to the sixth aspect, the first possible implementation manner of the sixth aspect, or the second possible implementation manner of the sixth aspect, in a third possible implementation manner, the processor is further configured to A rule scans the second garbage file set in all files in the storage, and the global scan rule is obtained from the management terminal;

所述处理器,还用于将所述第二垃圾文件集进行分类得到与不同的所述文件创建者各自相对应的第二垃圾文件;The processor is further configured to classify the second junk file set to obtain second junk files corresponding to different file creators;

所述处理器,还用于对于每个文件创建者,判断是否存在由所述文件创建者定义的自定义扫描规则;The processor is further configured to, for each file creator, determine whether there is a custom scanning rule defined by the file creator;

所述处理器,还用于若不存在由所述文件创建者定义的自定义扫描规则,则删除与所述文件创建者对应的第二垃圾文件;The processor is further configured to delete the second junk file corresponding to the file creator if there is no custom scanning rule defined by the file creator;

所述处理器,还用于若存在由所述文件创建者定义的自定义扫描规则,则执行所述根据自定义扫描规则在全部文件中扫描第一垃圾文件集的步骤。The processor is further configured to execute the step of scanning the first junk file set in all files according to the custom scanning rule if there is a custom scanning rule defined by the file creator.

结合第六方面的第三种可能的实施方式,在第四种可能的实施方式中,所述处理器,还用于控制所述发送器将所述第二垃圾文件发送给与所述文件创建者相对应的用户终端,以便所述用户终端获取需要删除的第二垃圾文件的选择结果;With reference to the third possible implementation manner of the sixth aspect, in a fourth possible implementation manner, the processor is further configured to control the sender to send the second junk file to the or the corresponding user terminal, so that the user terminal obtains the selection result of the second junk file to be deleted;

所述处理器,还用于控制所述接收器接收所述用户终端反馈的所述选择结果,所述选择结果用于告知服务器需要删除的第二垃圾文件;The processor is further configured to control the receiver to receive the selection result fed back by the user terminal, where the selection result is used to inform the server of the second junk file to be deleted;

所述处理器,还用于根据所述选择结果将所述需要删除的第二垃圾文件进行删除。The processor is further configured to delete the second junk file that needs to be deleted according to the selection result.

第七方面,提供了一种用户终端,用于实现为垃圾文件清理系统中的用户终端,所述用户终端包括:接收器、发送器、处理器和存储器;In a seventh aspect, a user terminal is provided, configured to be implemented as a user terminal in a junk file cleaning system, where the user terminal includes: a receiver, a transmitter, a processor, and a memory;

所述处理器,用于控制所述接收器接收服务器发送的第一垃圾文件,所述第一垃圾文件是所述服务器根据自定义扫描规则在全部文件中扫描第一垃圾文件集,并在所述第一垃圾文件集中查找与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件后,发送给与定义所述自定义扫描规则的文件创建者相对应的用户终端的;The processor is configured to control the receiver to receive the first junk file sent by the server, the first junk file is a first junk file set scanned by the server in all files according to a custom scanning rule, and the After the first junk file is searched for the first junk file corresponding to the file creator defining the custom scanning rule, the first junk file is sent to the user terminal corresponding to the file creator defining the custom scanning rule;

所述处理器,还用于控制所述接收器获取需要删除的第一垃圾文件的选择结果;The processor is further configured to control the receiver to obtain a selection result of the first junk file to be deleted;

所述处理器,还用于控制所述发送器将所述选择结果发送给所述服务器,以便所述服务器根据所述选择结果将所述需要删除的第一垃圾文件进行删除。The processor is further configured to control the sender to send the selection result to the server, so that the server deletes the first junk file to be deleted according to the selection result.

在第七方面的第一种可能的实施方式中,所述处理器,还用于控制所述发送器向所述服务器发送所述自定义扫描规则以及定义所述自定义扫描规则的文件创建者。In a first possible implementation manner of the seventh aspect, the processor is further configured to control the sender to send the custom scanning rule and the file creator defining the custom scanning rule to the server .

第八方面,提供了一种垃圾文件清理系统,所述系统包括至少一个服务器和至少一个用户终端;In an eighth aspect, a junk file cleaning system is provided, the system includes at least one server and at least one user terminal;

所述服务器是如第六方面和第六方面的各种可能的实施方式中任一所述的服务器;The server is the server as described in the sixth aspect and any one of the various possible implementation manners of the sixth aspect;

所述用户终端是如第七方面和第七方面的各种可能的实施方式中任一所述的用户终端。The user terminal is the seventh aspect and the user terminal described in any one of the various possible implementation manners of the seventh aspect.

本发明实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solution provided by the embodiments of the present invention are:

通过根据文件创建者定义的自定义扫描规则在全部文件中扫描第一垃圾文件集,在第一垃圾文件集中查找得到与定义该自定义扫描规则的文件创建者相对应的第一垃圾文件之后进行删除;解决了现有在垃圾文件的清理过程中,对垃圾文件的识别不充分的问题;达到了充分识别垃圾文件的效果。By scanning the first junk file set in all files according to the custom scanning rule defined by the file creator, after finding the first junk file corresponding to the file creator who defined the custom scanning rule in the first junk file set, perform Delete; Solve the existing problem of insufficient identification of junk files in the process of cleaning junk files; achieve the effect of fully identifying junk files.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1是本发明实施例提供的垃圾文件清理方法所涉及的一种实施环境的结构示意图;FIG. 1 is a schematic structural diagram of an implementation environment involved in a garbage file cleaning method provided in an embodiment of the present invention;

图2是一种分布式NAS存储的服务器端的结构示意图;Fig. 2 is a schematic structural diagram of a server side of distributed NAS storage;

图3是本发明一个实施例提供的垃圾文件清理方法的方法流程图;Fig. 3 is the method flowchart of the garbage file cleaning method that one embodiment of the present invention provides;

图4是本发明另一实施例提供的垃圾文件清理方法的方法流程图;Fig. 4 is the method flowchart of the garbage file cleaning method that another embodiment of the present invention provides;

图5是本发明再一实施例提供的垃圾文件清理方法的方法流程图;Fig. 5 is a method flowchart of a garbage file cleaning method provided by another embodiment of the present invention;

图6是本发明还一实施例提供的垃圾文件清理方法的方法流程图;Fig. 6 is a method flowchart of a method for cleaning junk files provided by another embodiment of the present invention;

图7是本发明一个实施例提供的垃圾文件清理装置的结构方框图;Fig. 7 is a structural block diagram of a garbage file cleaning device provided by an embodiment of the present invention;

图8是本发明另一实施例提供的垃圾文件清理装置的结构方框图;Fig. 8 is a structural block diagram of a garbage file cleaning device provided by another embodiment of the present invention;

图9是本发明一个实施例提供的垃圾文件清理系统的结构示意图;Fig. 9 is a schematic structural diagram of a garbage file cleaning system provided by an embodiment of the present invention;

图10是本发明另一实施例提供的垃圾文件清理系统的结构示意图;Fig. 10 is a schematic structural diagram of a junk file cleaning system provided by another embodiment of the present invention;

图11是本发明一个实施例提供的服务器的结构示意图;Fig. 11 is a schematic structural diagram of a server provided by an embodiment of the present invention;

图12是本发明一个实施例提供的用户终端的结构示意图;Fig. 12 is a schematic structural diagram of a user terminal provided by an embodiment of the present invention;

图13是本发明一个实施例提供的垃圾文件清理系统的结构方框图。Fig. 13 is a structural block diagram of a junk file cleaning system provided by an embodiment of the present invention.

具体实施方式detailed description

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

请参考图1,其示出了本发明实施例提供的垃圾文件清理方法所涉及的一种实施环境的结构示意图。该实施环境包括用户终端120、管理终端140和至少一个服务器160。Please refer to FIG. 1 , which shows a schematic structural diagram of an implementation environment involved in the method for cleaning junk files provided by an embodiment of the present invention. The implementation environment includes a user terminal 120 , a management terminal 140 and at least one server 160 .

用户终端120可以是运行有NAS协议客户端的电子设备,该电子设备可以是膝上型便携计算机和台式计算机等等。The user terminal 120 may be an electronic device running a NAS protocol client, and the electronic device may be a laptop computer, a desktop computer, and the like.

管理终端140可以是运行有NAS协议客户端的电子设备,该电子设备可以是膝上型便携计算机和台式计算机等等。The management terminal 140 may be an electronic device running a NAS protocol client, and the electronic device may be a laptop computer, a desktop computer, and the like.

用户终端120与服务器160之间可以通过无线网络或者有线网络相连;同样地,管理终端140与服务器160之间可以通过无线网络或者有线网络相连。The user terminal 120 and the server 160 can be connected through a wireless network or a wired network; similarly, the management terminal 140 and the server 160 can be connected through a wireless network or a wired network.

每个服务器160可以是一台服务器,或者由若干台服务器组成的服务器集群,或者是一个云计算服务中心。Each server 160 may be a server, or a server cluster composed of several servers, or a cloud computing service center.

请参考图2,若图1所示的实施环境应用于NAS存储中,则每个服务器160运行有NAS协议服务端,且每个服务器160都带有存储介质。各个服务器160的存储介质通过组合后,形成分布式文件系统。分布式NAS存储包括各个服务器160运行的NAS协议服务端和分布式文件系统。Please refer to FIG. 2 , if the implementation environment shown in FIG. 1 is applied to NAS storage, each server 160 runs a NAS protocol server, and each server 160 has a storage medium. The storage media of each server 160 are combined to form a distributed file system. The distributed NAS storage includes a NAS protocol server and a distributed file system run by each server 160 .

请参考图3,其示出了本发明一个实施例提供的垃圾文件清理方法的方法流程图。本实施例以该垃圾文件清理方法应用于图1所示的实施环境中的服务器角度来举例说明。该垃圾文件清理方法,包括:Please refer to FIG. 3 , which shows a flow chart of a method for cleaning junk files provided by an embodiment of the present invention. This embodiment is illustrated from the perspective of a server in which the method for cleaning junk files is applied in the implementation environment shown in FIG. 1 . The junk file cleaning method includes:

步骤302,根据自定义扫描规则在全部文件中扫描第一垃圾文件集,自定义扫描规则由文件创建者定义;Step 302, scanning the first junk file set in all files according to custom scanning rules defined by the file creator;

步骤304,在第一垃圾文件集中查找与定义该自定义扫描规则的文件创建者相对应的第一垃圾文件;Step 304, searching for the first junk file corresponding to the file creator defining the custom scanning rule in the first junk file set;

步骤306,删除与定义该自定义扫描规则的文件创建者相对应的第一垃圾文件。Step 306, delete the first junk file corresponding to the file creator who defines the custom scanning rule.

综上所述,本实施例提供的垃圾文件清理方法,通过根据文件创建者定义的自定义扫描规则在全部文件中扫描第一垃圾文件集,在第一垃圾文件集中查找得到与定义该自定义扫描规则的文件创建者相对应的第一垃圾文件之后进行删除;解决了现有在垃圾文件的清理过程中,对垃圾文件的识别不充分的问题;达到了充分识别垃圾文件的效果。To sum up, the junk file cleaning method provided in this embodiment scans the first junk file set in all files according to the custom scanning rules defined by the file creator, searches for and defines the custom junk file set in the first junk file set The first junk file corresponding to the file creator of the scanning rule is deleted; the existing problem of insufficient identification of junk files in the cleaning process of junk files is solved; the effect of fully identifying junk files is achieved.

请参考图4,其示出了本发明另一实施例提供的垃圾文件清理方法的方法流程图。本实施例以该垃圾文件清理方法应用于图1所示的实施环境中的用户终端角度来举例说明。该垃圾文件清理方法,包括:Please refer to FIG. 4 , which shows a flowchart of a method for cleaning junk files provided by another embodiment of the present invention. This embodiment is illustrated from the perspective of a user terminal in which the method for cleaning junk files is applied in the implementation environment shown in FIG. 1 . The junk file cleaning method includes:

步骤402,接收服务器发送的第一垃圾文件,第一垃圾文件是服务器根据自定义扫描规则在全部文件中扫描第一垃圾文件集,并在第一垃圾文件集中查找与定义该自定义扫描规则的文件创建者相对应的第一垃圾文件后,发送给与定义该自定义扫描规则的文件创建者相对应的用户终端的;Step 402, receiving the first junk file sent by the server, the first junk file is that the server scans the first junk file set in all files according to the custom scanning rule, and searches and defines the custom scanning rule in the first junk file set After the first junk file corresponding to the file creator is sent to the user terminal corresponding to the file creator who defines the custom scanning rule;

步骤404,获取需要删除的第一垃圾文件的选择结果;Step 404, obtaining the selection result of the first junk file to be deleted;

步骤406,将选择结果发送给服务器,以便服务器根据选择结果将需要删除的第一垃圾文件进行删除。Step 406, sending the selection result to the server, so that the server deletes the first junk file to be deleted according to the selection result.

综上所述,本实施例提供的垃圾文件清理方法,通过根据文件创建者定义的自定义扫描规则在全部文件中扫描第一垃圾文件集,在第一垃圾文件集中查找得到与定义该自定义扫描规则的文件创建者相对应的第一垃圾文件之后进行删除;解决了现有在垃圾文件的清理过程中,对垃圾文件的识别不充分,文件误删率高,管理维护成本高的问题;达到了充分识别垃圾文件,降低文件误删率,减少维护成本的效果。在本实施例中,由用户自己确认需要删除的第一垃圾文件,进一步降低了文件的误删率。To sum up, the junk file cleaning method provided in this embodiment scans the first junk file set in all files according to the custom scanning rules defined by the file creator, searches for and defines the custom junk file set in the first junk file set Delete the first junk file corresponding to the file creator of the scanning rule; solve the existing problems of insufficient identification of junk files, high rate of file deletion by mistake, and high management and maintenance costs during the cleaning process of junk files; It has achieved the effect of fully identifying junk files, reducing the rate of file deletion by mistake, and reducing maintenance costs. In this embodiment, the first junk file to be deleted is confirmed by the user himself, which further reduces the rate of mistaken file deletion.

请参考图5,其示出了本发明再一实施例提供的垃圾文件清理方法的方法流程图。本实施例以该垃圾文件清理方法应用于图1所示的实施环境来举例说明。该垃圾文件清理方法,包括:Please refer to FIG. 5 , which shows a flow chart of a method for cleaning junk files provided in yet another embodiment of the present invention. This embodiment is illustrated by taking the method for cleaning up junk files as being applied to the implementation environment shown in FIG. 1 . The junk file cleaning method includes:

步骤501,服务器根据自定义扫描规则在全部文件中扫描第一垃圾文件集。Step 501, the server scans the first junk file set in all files according to the custom scanning rules.

自定义扫描规则由文件创建者定义,不同的文件创建者可以定义不同的自定义扫描规则。全部文件中有至少一个文件创建者,自定义扫描规则由全部文件中的部分或者全部的文件创建者各自独立定义。Custom scanning rules are defined by the file creator, and different file creators can define different custom scanning rules. There is at least one file creator in all files, and the custom scanning rules are independently defined by some or all file creators in all files.

步骤502,服务器在第一垃圾文件集中查找与定义该自定义扫描规则的文件创建者相对应的第一垃圾文件。Step 502, the server searches the first junk file set for the first junk file corresponding to the file creator defining the custom scanning rule.

由于服务器根据自定义扫描规则在全部文件中进行扫描,所以扫描获取的第一垃圾文件集中包含一部分不是与定义该自定义扫描规则的文件创建者相对应的第一垃圾文件。服务器在第一垃圾文件集中将与定义该自定义扫描规则的文件创建者相对应的第一垃圾文件查找并挑选出来。Since the server scans all files according to the custom scanning rule, the set of first junk files obtained through scanning includes some first junk files that are not corresponding to the file creator who defined the custom scanning rule. The server searches and selects the first junk file corresponding to the file creator defining the custom scanning rule from the first junk file set.

步骤503,服务器将第一垃圾文件发送给与定义该自定义扫描规则的文件创建者相对应的用户终端。Step 503, the server sends the first junk file to the user terminal corresponding to the file creator who defines the custom scanning rule.

服务器可以根据文件创建者的邮件地址,将扫描获取的第一垃圾文件通过邮件,以HTTP(Hypertext Transfer Protocol,超文本传输协议)页面的方式发送给用户终端。在本实施例中,以分布式NAS存储为例,用户在分布式NAS存储上存储文件时,会预留一些用户信息,包括用户名以及邮件地址等信息。管理员会在分布式NAS存储中保存这些用户信息,以便服务器可以根据文件创建者的邮件地址,将扫描获取的第一垃圾文件通过邮件发送给相应的用户终端。The server may send the first junk file obtained through scanning to the user terminal in the form of an HTTP (Hypertext Transfer Protocol, Hypertext Transfer Protocol) page by email according to the email address of the file creator. In this embodiment, taking distributed NAS storage as an example, when a user stores a file on the distributed NAS storage, some user information will be reserved, including information such as user name and email address. The administrator will save the user information in the distributed NAS storage, so that the server can send the first junk file obtained by scanning to the corresponding user terminal by email according to the email address of the file creator.

对应地,用户终端接收服务器发送的第一垃圾文件。Correspondingly, the user terminal receives the first junk file sent by the server.

步骤504,用户终端获取需要删除的第一垃圾文件的选择结果。Step 504, the user terminal obtains the selection result of the first junk file to be deleted.

比如,用户终端在接收到服务器通过邮件,并以HTTP页面的方式发送的第一垃圾文件之后,用户可以在这些第一垃圾文件中选择需要删除的第一垃圾文件。For example, after the user terminal receives the first junk files sent by the server in the form of an HTTP page by email, the user can select the first junk files to be deleted from among the first junk files.

步骤505,用户终端将选择结果发送给服务器。Step 505, the user terminal sends the selection result to the server.

选择结果用于告知服务器需要删除的第一垃圾文件。当用户选定需要删除的第一垃圾文件后,由于HTTP页面有提供超链接的功能,用户终端可以直接通过HTTP页面的超连接功能将选择结果发送给服务器。The selection result is used to inform the server of the first junk file that needs to be deleted. After the user selects the first junk file to be deleted, since the HTTP page has the function of providing a hyperlink, the user terminal can directly send the selection result to the server through the hyperlink function of the HTTP page.

对应地,服务器接收用户终端反馈的选择结果。Correspondingly, the server receives the selection result fed back by the user terminal.

步骤506,服务器根据选择结果将需要删除的第一垃圾文件进行删除。Step 506, the server deletes the first junk file to be deleted according to the selection result.

服务器接收到用户终端反馈的选择结果后,将用户选定的需要删除的第一垃圾文件进行删除。After receiving the selection result fed back by the user terminal, the server deletes the first junk file selected by the user and needs to be deleted.

综上所述,本实施例提供的垃圾文件清理方法,通过根据文件创建者定义的自定义扫描规则在全部文件中扫描第一垃圾文件集,在第一垃圾文件集中查找得到与定义该自定义扫描规则的文件创建者相对应的第一垃圾文件之后进行删除;解决了现有在垃圾文件的清理过程中,对垃圾文件的识别不充分,文件误删率高,管理维护成本高的问题;达到了充分识别垃圾文件,降低文件误删率,减少维护成本的效果。在本实施例中,由用户自己确认需要删除的第一垃圾文件,进一步降低了文件的误删率。To sum up, the junk file cleaning method provided in this embodiment scans the first junk file set in all files according to the custom scanning rules defined by the file creator, searches for and defines the custom junk file set in the first junk file set Delete the first junk file corresponding to the file creator of the scanning rule; solve the existing problems of insufficient identification of junk files, high rate of file deletion by mistake, and high management and maintenance costs during the cleaning process of junk files; It has achieved the effect of fully identifying junk files, reducing the rate of file deletion by mistake, and reducing maintenance costs. In this embodiment, the first junk file to be deleted is confirmed by the user himself, which further reduces the rate of mistaken file deletion.

请参考图6,其示出了本发明还一实施例提供的垃圾文件清理方法的方法流程图。本实施例仍然以该垃圾文件清理方法应用于图1所示的实施环境来举例说明。该垃圾文件清理方法,包括:Please refer to FIG. 6 , which shows a flowchart of a method for cleaning junk files according to another embodiment of the present invention. This embodiment is still illustrated by taking the method for cleaning up junk files as being applied to the implementation environment shown in FIG. 1 . The junk file cleaning method includes:

步骤601,管理终端向服务器发送全局扫描规则。Step 601, the management terminal sends the global scanning rules to the server.

全局扫描规则是管理员设定的,对全部文件进行扫描的一种全局规则。全局扫描规则通常也包括扫描开始时间和垃圾文件识别标准,垃圾文件识别标准包括预定后缀名的文件为垃圾文件和预定时间没有被使用的文件为垃圾文件等内容。The global scan rule is a global rule set by the administrator to scan all files. The global scanning rule usually also includes the scanning start time and the junk file identification standard, and the junk file identification standard includes content such as that files with a predetermined suffix name are junk files and files that have not been used for a predetermined time are junk files.

对应地,服务器接收并存储全局扫描规则。Correspondingly, the server receives and stores the global scanning rules.

步骤602,用户终端向服务器发送自定义扫描规则以及定义自定义扫描规则的文件创建者。Step 602, the user terminal sends the custom scanning rule and the file creator defining the custom scanning rule to the server.

自定义扫描规则包括扫描开始时间和垃圾文件识别标准,垃圾文件识别标准包括预定后缀名的文件为垃圾文件和预定时间没有被使用的文件为垃圾文件等内容。The custom scanning rules include scanning start time and junk file identification criteria, and the junk file identification criteria include files with predetermined suffixes as junk files and files that have not been used for a predetermined time as junk files, etc.

比如,在分布式NAS存储中,用户可以通过用户终端安装的NAS协议客户端与NAS协议服务端建立连接,并在用户自身的共享目录下新建或者打开一个文件格式为.Scan.Rubbish的文件。用户可以在该文件格式为.Scan.Rubbish的文件中设定自己的自定义扫描规则。用户可以通过设定垃圾文件的后缀名,设定一定时间没有被使用的文件作为垃圾文件,设定扫描开始时间等内容设定垃圾文件的自定义扫描规则。不同用户可以根据自己的需求设定不同的自定义扫描规则。For example, in distributed NAS storage, the user can establish a connection with the NAS protocol server through the NAS protocol client installed on the user terminal, and create or open a file with the file format .Scan.Rubbish in the user's own shared directory. Users can set their own custom scanning rules in the file format of .Scan.Rubbish. Users can set custom scanning rules for junk files by setting the suffix of junk files, setting files that have not been used for a certain period of time as junk files, and setting the scanning start time. Different users can set different custom scanning rules according to their own needs.

对应地,服务器接收并存储至少一个用户终端发送的自定义扫描规则以及定义该自定义扫描规则的文件创建者。Correspondingly, the server receives and stores the custom scanning rule sent by at least one user terminal and the file creator who defines the custom scanning rule.

步骤603,服务器根据全局扫描规则在全部文件中扫描第二垃圾文件集,全局扫描规则是从管理终端获取到的。In step 603, the server scans all files for the second garbage file set according to the global scanning rules obtained from the management terminal.

服务器根据全局扫描规则在全部文件中扫描第二垃圾文件集。The server scans the second garbage file set in all files according to the global scanning rule.

步骤604,服务器将第二垃圾文件集进行分类得到与不同的文件创建者各自相对应的第二垃圾文件。In step 604, the server classifies the second junk file set to obtain second junk files corresponding to different file creators.

服务器根据不同的文件创建者,对扫描获取的第二垃圾文件集进行分类。The server classifies the second garbage file set acquired through scanning according to different file creators.

步骤605,服务器对于每个文件创建者,判断是否存在由文件创建者定义的自定义扫描规则。Step 605, for each file creator, the server judges whether there is a custom scanning rule defined by the file creator.

比如,在分布式NAS存储中,服务器可以查找不同文件创建者的共享目录下是否存在一个文件格式为.Scan.Rubbish的文件,判断是否存在由文件创建者定义的自定义扫描规则。For example, in distributed NAS storage, the server can check whether there is a file with the file format .Scan.Rubbish in the shared directory of different file creators, and determine whether there is a custom scanning rule defined by the file creator.

步骤606,若不存在由文件创建者定义的自定义扫描规则,则服务器将第二垃圾文件发送给与文件创建者相对应的用户终端。Step 606, if there is no custom scanning rule defined by the file creator, the server sends the second junk file to the user terminal corresponding to the file creator.

服务器可以根据文件创建者的邮件地址,将扫描获取的第二垃圾文件通过邮件,以HTTP(Hypertext Transfer Protocol,超文本传输协议)页面的方式发送给用户终端。在本实施例中,以分布式NAS存储为例,用户在分布式NAS存储上存储文件时,会预留一些用户信息,包括用户名以及邮件地址等信息。管理员会在分布式NAS存储中保存这些用户信息,以便服务器可以根据文件创建者的邮件地址,将扫描获取的第二垃圾文件通过邮件发送给相应的用户终端。The server may send the second junk file acquired through scanning to the user terminal in the form of an HTTP (Hypertext Transfer Protocol, Hypertext Transfer Protocol) page by email according to the email address of the file creator. In this embodiment, taking distributed NAS storage as an example, when a user stores a file on the distributed NAS storage, some user information will be reserved, including information such as user name and email address. The administrator will save the user information in the distributed NAS storage, so that the server can send the second junk file obtained by scanning to the corresponding user terminal by email according to the email address of the file creator.

对应地,用户终端接收服务器发送的第二垃圾文件。Correspondingly, the user terminal receives the second junk file sent by the server.

需要说明的是,若存在由文件创建者定义的自定义扫描规则,则执行服务器根据自定义扫描规则在全部文件中扫描第一垃圾文件集的步骤。在这种情况下,服务器根据自定义扫描规则在全部文件中扫描第一垃圾文件集;服务器在第一垃圾文件集中查找与定义该自定义扫描规则的文件创建者相对应的第一垃圾文件;服务器将第一垃圾文件发送给与定义该自定义扫描规则的文件创建者相对应的用户终端。对应地,用户终端接收服务器发送的第一垃圾文件;用户终端获取需要删除的第一垃圾文件的选择结果;用户终端将选择结果发送给服务器。服务器接收到用户终端反馈的选择结果后,将用户选定的需要删除的第一垃圾文件进行删除。It should be noted that, if there is a custom scanning rule defined by the file creator, the step of the server scanning the first junk file set in all files according to the custom scanning rule is executed. In this case, the server scans the first junk file set in all files according to the custom scanning rule; the server searches the first junk file set for the first junk file corresponding to the file creator who defines the custom scanning rule; The server sends the first junk file to the user terminal corresponding to the file creator who defines the custom scanning rule. Correspondingly, the user terminal receives the first junk file sent by the server; the user terminal acquires a selection result of the first junk file to be deleted; and the user terminal sends the selection result to the server. After receiving the selection result fed back by the user terminal, the server deletes the first junk file selected by the user and needs to be deleted.

对第一垃圾文件的删除过程在图5所示的实施例中已经详细介绍和说明,在本实施例中,仅以不存在由文件创建者定义的自定义扫描规则这种情况来举例说明,对此不作具体限定。The deletion process of the first junk file has been introduced and illustrated in detail in the embodiment shown in FIG. 5. In this embodiment, it is only illustrated with the case that there is no custom scanning rule defined by the file creator. This is not specifically limited.

步骤607,用户终端获取需要删除的第二垃圾文件的选择结果。Step 607, the user terminal obtains the selection result of the second junk file to be deleted.

比如,用户终端在接收到服务器通过邮件,并以HTTP页面的方式发送的第二垃圾文件之后,用户可以在这些第二垃圾文件中选择需要删除的第二垃圾文件。For example, after the user terminal receives the second junk files sent by the server in the form of an HTTP page by email, the user can select the second junk files to be deleted from among the second junk files.

步骤608,用户终端将选择结果发送给服务器。Step 608, the user terminal sends the selection result to the server.

选择结果用于告知服务器需要删除的第二垃圾文件。当用户选定需要删除的第二垃圾文件后,由于HTTP页面有提供超链接的功能,用户终端可以直接通过HTTP页面的超连接功能将选择结果发送给服务器。The selection result is used to inform the server of the second junk file that needs to be deleted. After the user selects the second junk file to be deleted, since the HTTP page has the function of providing a hyperlink, the user terminal can directly send the selection result to the server through the hyperlink function of the HTTP page.

对应地,服务器接收用户终端反馈的选择结果。Correspondingly, the server receives the selection result fed back by the user terminal.

步骤609,服务器根据选择结果将需要删除的第二垃圾文件进行删除。Step 609, the server deletes the second junk file to be deleted according to the selection result.

服务器接收到用户终端反馈的选择结果后,将用户选定的需要删除的第二垃圾文件进行删除。After receiving the selection result fed back by the user terminal, the server deletes the second junk file selected by the user and needs to be deleted.

还需要说明的是,当不存在由文件创建者定义的自定义扫描规则时,服务器也可以直接删除与文件创建者对应的第二垃圾文件。在本实施例中,仅以服务器将第二垃圾文件发送给与文件创建者相对应的用户终端,服务器根据用户终端反馈的选择结果将需要删除的第二垃圾文件进行删除来举例说明,对此不作具体限定。It should also be noted that, when there is no custom scanning rule defined by the file creator, the server may also directly delete the second junk file corresponding to the file creator. In this embodiment, only the server sends the second junk file to the user terminal corresponding to the file creator, and the server deletes the second junk file that needs to be deleted according to the selection result fed back by the user terminal as an example. Not specifically limited.

综上所述,本实施例提供的垃圾文件清理方法,通过根据文件创建者定义的自定义扫描规则在全部文件中扫描第一垃圾文件集,在第一垃圾文件集中查找得到与定义该自定义扫描规则的文件创建者相对应的第一垃圾文件之后进行删除;解决了现有在垃圾文件的清理过程中,对垃圾文件的识别不充分,文件误删率高,管理维护成本高的问题;达到了充分识别垃圾文件,降低文件误删率,减少维护成本的效果。在本实施例中,服务器对于每个文件创建者,判断是否存在由文件创建者定义的自定义扫描规则。若存在由文件创建者定义的自定义扫描规则,则自定义扫描规则优先,服务器根据自定义扫描规则对全部文件进行扫描。若不存在由文件创建者定义的自定义扫描规则,则服务器将第二垃圾文件发送给与文件创建者相对应的用户终端,由用户自己确认需要删除的第二垃圾文件,进一步降低了文件的误删率。To sum up, the junk file cleaning method provided in this embodiment scans the first junk file set in all files according to the custom scanning rules defined by the file creator, searches for and defines the custom junk file set in the first junk file set Delete the first junk file corresponding to the file creator of the scanning rule; solve the existing problems of insufficient identification of junk files, high rate of file deletion by mistake, and high management and maintenance costs during the cleaning process of junk files; It has achieved the effect of fully identifying junk files, reducing the rate of file deletion by mistake, and reducing maintenance costs. In this embodiment, for each file creator, the server judges whether there is a custom scanning rule defined by the file creator. If there is a custom scanning rule defined by the file creator, the custom scanning rule takes precedence, and the server scans all files according to the custom scanning rule. If there is no custom scanning rule defined by the file creator, the server sends the second junk file to the user terminal corresponding to the file creator, and the user himself confirms the second junk file to be deleted, further reducing the file security. Erroneous deletion rate.

下述为本发明装置实施例,可以用于执行本发明方法实施例。对于本发明装置实施例中未披露的细节,请参照本发明方法实施例。The following are device embodiments of the present invention, which can be used to implement the method embodiments of the present invention. For the details not disclosed in the device embodiment of the present invention, please refer to the method embodiment of the present invention.

请参考图7,其示出了本发明一个实施例提供的垃圾文件清理装置的结构方框图。该垃圾文件清理装置可以通过软件、硬件或者两者的结合实现成为服务器的全部或者一部分,服务器可以是运行有NAS协议服务端的服务器。该垃圾文件清理装置,包括:第一扫描模块710、文件查找模块720和文件删除模块730。Please refer to FIG. 7 , which shows a structural block diagram of an apparatus for cleaning junk files provided by an embodiment of the present invention. The garbage file cleaning device can be implemented as all or part of a server through software, hardware or a combination of the two, and the server can be a server running a NAS protocol server. The junk file cleaning device includes: a first scanning module 710 , a file searching module 720 and a file deleting module 730 .

第一扫描模块710,用于根据自定义扫描规则在全部文件中扫描第一垃圾文件集,所述自定义扫描规则由文件创建者定义。The first scanning module 710 is configured to scan the first junk file set in all files according to a custom scanning rule defined by a file creator.

文件查找模块720,用于在所述第一垃圾文件集中查找与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件。A file search module 720, configured to search for a first junk file corresponding to the file creator defining the custom scanning rule in the first junk file set.

文件删除模块730,用于删除与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件。A file deletion module 730, configured to delete the first junk file corresponding to the file creator who defines the custom scanning rule.

综上所述,本实施例提供的垃圾文件清理装置,通过根据文件创建者定义的自定义扫描规则在全部文件中扫描第一垃圾文件集,在第一垃圾文件集中查找得到与定义该自定义扫描规则的文件创建者相对应的第一垃圾文件之后进行删除;解决了现有在垃圾文件的清理过程中,对垃圾文件的识别不充分的问题;达到了充分识别垃圾文件的效果。To sum up, the garbage file cleaning device provided in this embodiment scans the first garbage file set in all files according to the custom scanning rules defined by the file creator, searches for and defines the custom garbage file set in the first junk file set The first junk file corresponding to the file creator of the scanning rule is deleted; the existing problem of insufficient identification of junk files in the cleaning process of junk files is solved; the effect of fully identifying junk files is achieved.

请参考图8,其示出了本发明另一实施例提供的垃圾文件清理装置的结构方框图。该垃圾文件清理装置可以通过软件、硬件或者两者的结合实现成为用户终端的全部或者一部分,用户终端可以是运行有NAS协议客户端的电子设备。该垃圾文件清理装置,包括:垃圾接收模块810、选择获取模块820和选择发送模块830。Please refer to FIG. 8 , which shows a structural block diagram of an apparatus for cleaning junk files according to another embodiment of the present invention. The junk file cleaning device can be implemented as all or part of the user terminal through software, hardware or a combination of the two, and the user terminal can be an electronic device running a NAS protocol client. The garbage file cleaning device includes: a garbage receiving module 810 , a selection acquiring module 820 and a selection sending module 830 .

垃圾接收模块810,用于接收服务器发送的第一垃圾文件,所述第一垃圾文件是所述服务器根据自定义扫描规则在全部文件中扫描第一垃圾文件集,并在所述第一垃圾文件集中查找与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件后,发送给与定义所述自定义扫描规则的文件创建者相对应的用户终端的。The garbage receiving module 810 is configured to receive the first garbage file sent by the server, the first garbage file is the first garbage file set scanned by the server in all files according to the custom scanning rules, and the first garbage file is scanned in the first garbage file After centrally finding the first junk file corresponding to the file creator defining the custom scanning rule, it is sent to the user terminal corresponding to the file creator defining the custom scanning rule.

选择获取模块820,用于获取需要删除的第一垃圾文件的选择结果。The selection obtaining module 820 is configured to obtain a selection result of the first junk file to be deleted.

选择发送模块830,用于将所述选择结果发送给所述服务器,以便所述服务器根据所述选择结果将所述需要删除的第一垃圾文件进行删除。The selection sending module 830 is configured to send the selection result to the server, so that the server deletes the first junk file to be deleted according to the selection result.

综上所述,本实施例提供的垃圾文件清理装置,通过根据文件创建者定义的自定义扫描规则在全部文件中扫描第一垃圾文件集,在第一垃圾文件集中查找得到与定义该自定义扫描规则的文件创建者相对应的第一垃圾文件之后进行删除;解决了现有在垃圾文件的清理过程中,对垃圾文件的识别不充分,文件误删率高,管理维护成本高的问题;达到了充分识别垃圾文件,降低文件误删率,减少维护成本的效果。在本实施例中,由用户自己确认需要删除的第一垃圾文件,进一步降低了文件的误删率。To sum up, the garbage file cleaning device provided in this embodiment scans the first garbage file set in all files according to the custom scanning rules defined by the file creator, searches for and defines the custom garbage file set in the first junk file set Delete the first junk file corresponding to the file creator of the scanning rule; solve the existing problems of insufficient identification of junk files, high rate of file deletion by mistake, and high management and maintenance costs during the cleaning process of junk files; It has achieved the effect of fully identifying junk files, reducing the rate of file deletion by mistake, and reducing maintenance costs. In this embodiment, the first junk file to be deleted is confirmed by the user himself, which further reduces the rate of mistaken file deletion.

请参考图9,其示出了本发明一个实施例提供的垃圾文件清理系统的结构示意图。该垃圾文件清理系统包括服务器70和用户终端80,用户终端80和服务器70之间通过有线网络或者无线网络相连。Please refer to FIG. 9 , which shows a schematic structural diagram of a junk file cleaning system provided by an embodiment of the present invention. The garbage file cleaning system includes a server 70 and a user terminal 80, and the user terminal 80 and the server 70 are connected through a wired network or a wireless network.

用户终端80可以包括垃圾文件清理装置,该垃圾文件清理装置可以通过软件、硬件或者两者的结合实现。该垃圾文件清理装置,包括:垃圾接收模块810、选择获取模块820和选择发送模块830。The user terminal 80 may include a junk file cleaning device, and the junk file cleaning device may be implemented by software, hardware or a combination of both. The garbage file cleaning device includes: a garbage receiving module 810 , a selection acquiring module 820 and a selection sending module 830 .

垃圾接收模块810,用于接收服务器发送的第一垃圾文件,所述第一垃圾文件是所述服务器根据自定义扫描规则在全部文件中扫描第一垃圾文件集,并在所述第一垃圾文件集中查找与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件后,发送给与定义所述自定义扫描规则的文件创建者相对应的用户终端的。The garbage receiving module 810 is configured to receive the first garbage file sent by the server, the first garbage file is the first garbage file set scanned by the server in all files according to the custom scanning rules, and the first garbage file is scanned in the first garbage file After centrally finding the first junk file corresponding to the file creator defining the custom scanning rule, it is sent to the user terminal corresponding to the file creator defining the custom scanning rule.

选择获取模块820,用于获取需要删除的第一垃圾文件的选择结果。The selection obtaining module 820 is configured to obtain a selection result of the first junk file to be deleted.

选择发送模块830,用于将所述选择结果发送给所述服务器,以便所述服务器根据所述选择结果将所述需要删除的第一垃圾文件进行删除。The selection sending module 830 is configured to send the selection result to the server, so that the server deletes the first junk file to be deleted according to the selection result.

服务器70可以包括垃圾文件清理装置,该垃圾文件清理装置可以通过软件、硬件或者两者的结合实现。该垃圾文件清理装置,包括:第一扫描模块710、文件查找模块720和文件删除模块730。The server 70 may include a junk file cleaning device, and the junk file cleaning device may be implemented by software, hardware or a combination of the two. The junk file cleaning device includes: a first scanning module 710 , a file searching module 720 and a file deleting module 730 .

第一扫描模块710,用于根据自定义扫描规则在全部文件中扫描第一垃圾文件集,所述自定义扫描规则由文件创建者定义。The first scanning module 710 is configured to scan the first junk file set in all files according to a custom scanning rule defined by a file creator.

文件查找模块720,用于在所述第一垃圾文件集中查找与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件。A file search module 720, configured to search for a first junk file corresponding to the file creator defining the custom scanning rule in the first junk file set.

文件删除模块730,用于删除与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件。A file deletion module 730, configured to delete the first junk file corresponding to the file creator who defines the custom scanning rule.

具体来讲,文件删除模块730,包括:第一发送单元730a、第一接收单元730b和第一删除单元730c。Specifically, the file deletion module 730 includes: a first sending unit 730a, a first receiving unit 730b, and a first deleting unit 730c.

所述第一发送单元730a,用于将所述第一垃圾文件发送给与定义所述自定义扫描规则的文件创建者相对应的用户终端,以便所述用户终端获取需要删除的第一垃圾文件的选择结果。The first sending unit 730a is configured to send the first junk file to the user terminal corresponding to the file creator defining the custom scanning rule, so that the user terminal can obtain the first junk file that needs to be deleted selection results.

所述第一接收单元730b,用于接收所述用户终端反馈的所述选择结果,所述选择结果用于告知服务器需要删除的第一垃圾文件。The first receiving unit 730b is configured to receive the selection result fed back by the user terminal, and the selection result is used to inform the server of the first junk file that needs to be deleted.

所述第一删除单元730c,用于根据所述选择结果将所述需要删除的第一垃圾文件进行删除。The first deleting unit 730c is configured to delete the first junk file that needs to be deleted according to the selection result.

综上所述,本实施例提供的垃圾文件清理系统,通过根据文件创建者定义的自定义扫描规则在全部文件中扫描第一垃圾文件集,在第一垃圾文件集中查找得到与定义该自定义扫描规则的文件创建者相对应的第一垃圾文件之后进行删除;解决了现有在垃圾文件的清理过程中,对垃圾文件的识别不充分,文件误删率高,管理维护成本高的问题;达到了充分识别垃圾文件,降低文件误删率,减少维护成本的效果。在本实施例中,由用户自己确认需要删除的第一垃圾文件,进一步降低了文件的误删率。To sum up, the junk file cleaning system provided in this embodiment scans the first junk file set in all files according to the custom scanning rules defined by the file creator, and searches for and defines the custom junk file set in the first junk file set. Delete the first junk file corresponding to the file creator of the scanning rule; solve the existing problems of insufficient identification of junk files, high rate of file deletion by mistake, and high management and maintenance costs during the cleaning process of junk files; It has achieved the effect of fully identifying junk files, reducing the rate of file deletion by mistake, and reducing maintenance costs. In this embodiment, the first junk file to be deleted is confirmed by the user himself, which further reduces the rate of mistaken file deletion.

请参考图10,其示出了本发明另一实施例提供的垃圾文件清理系统的结构示意图。该垃圾文件清理系统包括服务器70和用户终端80,用户终端80和服务器70之间通过有线网络或者无线网络相连。Please refer to FIG. 10 , which shows a schematic structural diagram of a junk file cleaning system provided by another embodiment of the present invention. The garbage file cleaning system includes a server 70 and a user terminal 80, and the user terminal 80 and the server 70 are connected through a wired network or a wireless network.

用户终端80可以包括垃圾文件清理装置,该垃圾文件清理装置可以通过软件、硬件或者两者的结合实现。该垃圾文件清理装置,包括:规则发送模块801、垃圾接收模块810、选择获取模块820和选择发送模块830。The user terminal 80 may include a junk file cleaning device, and the junk file cleaning device may be implemented by software, hardware or a combination of both. The garbage file cleaning device includes: a rule sending module 801 , a garbage receiving module 810 , a selection acquiring module 820 and a selection sending module 830 .

规则发送模块801,用于向所述服务器发送所述自定义扫描规则以及定义所述自定义扫描规则的文件创建者。A rule sending module 801, configured to send the custom scanning rule and a file creator defining the custom scanning rule to the server.

垃圾接收模块810,用于接收服务器发送的第一垃圾文件,所述第一垃圾文件是所述服务器根据自定义扫描规则在全部文件中扫描第一垃圾文件集,并在所述第一垃圾文件集中查找与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件后,发送给与定义所述自定义扫描规则的文件创建者相对应的用户终端的。The garbage receiving module 810 is configured to receive the first garbage file sent by the server, the first garbage file is the first garbage file set scanned by the server in all files according to the custom scanning rules, and the first garbage file is scanned in the first garbage file After centrally finding the first junk file corresponding to the file creator defining the custom scanning rule, it is sent to the user terminal corresponding to the file creator defining the custom scanning rule.

选择获取模块820,用于获取需要删除的第一垃圾文件的选择结果。The selection obtaining module 820 is configured to obtain a selection result of the first junk file to be deleted.

选择发送模块830,用于将所述选择结果发送给所述服务器,以便所述服务器根据所述选择结果将所述需要删除的第一垃圾文件进行删除。The selection sending module 830 is configured to send the selection result to the server, so that the server deletes the first junk file to be deleted according to the selection result.

服务器70可以包括垃圾文件清理装置,该垃圾文件清理装置可以通过软件、硬件或者两者的结合实现。该垃圾文件清理装置,包括:规则接收模块701、第二扫描模块702、文件分类模块703、规则判断模块704、第一判定模块705、第二判定模块706、第一扫描模块710、文件查找模块720和文件删除模块730。The server 70 may include a junk file cleaning device, and the junk file cleaning device may be implemented by software, hardware or a combination of the two. The garbage file cleaning device includes: a rule receiving module 701, a second scanning module 702, a file classification module 703, a rule judging module 704, a first judging module 705, a second judging module 706, a first scanning module 710, and a file search module 720 and file deletion module 730.

规则接收模块701,用于接收并存储至少一个用户终端发送的所述自定义扫描规则以及定义所述自定义扫描规则的文件创建者。The rule receiving module 701 is configured to receive and store the custom scanning rule sent by at least one user terminal and the file creator defining the custom scanning rule.

第二扫描模块702,用于根据全局扫描规则在所述全部文件中扫描第二垃圾文件集,所述全局扫描规则是从管理终端获取到的。The second scanning module 702 is configured to scan the second garbage file set in all files according to a global scanning rule obtained from the management terminal.

文件分类模块703,用于将所述第二垃圾文件集进行分类得到与不同的所述文件创建者各自相对应的第二垃圾文件。A file classification module 703, configured to classify the second junk file set to obtain second junk files corresponding to different file creators.

规则判断模块704,用于对于每个文件创建者,判断是否存在由所述文件创建者定义的自定义扫描规则。The rule judging module 704 is configured to, for each file creator, judge whether there is a custom scanning rule defined by the file creator.

第一判定模块705,用于若不存在由所述文件创建者定义的自定义扫描规则,则删除与所述文件创建者对应的第二垃圾文件。The first judging module 705 is configured to delete the second junk file corresponding to the file creator if there is no custom scanning rule defined by the file creator.

具体来讲,第一判定模块705,包括:第二发送单元705a、第二接收单元705b和第二删除单元705c。Specifically, the first determining module 705 includes: a second sending unit 705a, a second receiving unit 705b, and a second deleting unit 705c.

所述第二发送单元705a,用于将所述第二垃圾文件发送给与所述文件创建者相对应的用户终端,以便所述用户终端获取需要删除的第二垃圾文件的选择结果。The second sending unit 705a is configured to send the second junk file to a user terminal corresponding to the file creator, so that the user terminal obtains a selection result of the second junk file to be deleted.

所述第二接收单元705b,用于接收所述用户终端反馈的所述选择结果,所述选择结果用于告知服务器需要删除的第二垃圾文件。The second receiving unit 705b is configured to receive the selection result fed back by the user terminal, and the selection result is used to inform the server of the second junk file that needs to be deleted.

所述第二删除单元705c,用于根据所述选择结果将所述需要删除的第二垃圾文件进行删除。The second deleting unit 705c is configured to delete the second junk file to be deleted according to the selection result.

第二判定模块706,用于若存在由所述文件创建者定义的自定义扫描规则,则执行所述根据自定义扫描规则在全部文件中扫描第一垃圾文件集的步骤。The second determining module 706 is configured to execute the step of scanning the first junk file set in all files according to the custom scanning rule if there is a custom scanning rule defined by the file creator.

第一扫描模块710,用于根据自定义扫描规则在全部文件中扫描第一垃圾文件集,所述自定义扫描规则由文件创建者定义。The first scanning module 710 is configured to scan the first junk file set in all files according to a custom scanning rule defined by a file creator.

文件查找模块720,用于在所述第一垃圾文件集中查找与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件。A file search module 720, configured to search for a first junk file corresponding to the file creator defining the custom scanning rule in the first junk file set.

文件删除模块730,用于删除与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件。A file deletion module 730, configured to delete the first junk file corresponding to the file creator who defines the custom scanning rule.

具体来讲,文件删除模块730,包括:第一发送单元730a、第一接收单元730b和第一删除单元730c。Specifically, the file deletion module 730 includes: a first sending unit 730a, a first receiving unit 730b, and a first deleting unit 730c.

所述第一发送单元730a,用于将所述第一垃圾文件发送给与定义所述自定义扫描规则的文件创建者相对应的用户终端,以便所述用户终端获取需要删除的第一垃圾文件的选择结果。The first sending unit 730a is configured to send the first junk file to the user terminal corresponding to the file creator defining the custom scanning rule, so that the user terminal can obtain the first junk file that needs to be deleted selection results.

所述第一接收单元730b,用于接收所述用户终端反馈的所述选择结果,所述选择结果用于告知服务器需要删除的第一垃圾文件。The first receiving unit 730b is configured to receive the selection result fed back by the user terminal, and the selection result is used to inform the server of the first junk file that needs to be deleted.

所述第一删除单元730c,用于根据所述选择结果将所述需要删除的第一垃圾文件进行删除。The first deleting unit 730c is configured to delete the first junk file that needs to be deleted according to the selection result.

综上所述,本实施例提供的垃圾文件清理系统,通过根据文件创建者定义的自定义扫描规则在全部文件中扫描第一垃圾文件集,在第一垃圾文件集中查找得到与定义该自定义扫描规则的文件创建者相对应的第一垃圾文件之后进行删除;解决了现有在垃圾文件的清理过程中,对垃圾文件的识别不充分,文件误删率高,管理维护成本高的问题;达到了充分识别垃圾文件,降低文件误删率,减少维护成本的效果。在本实施例中,服务器对于每个文件创建者,判断是否存在由文件创建者定义的自定义扫描规则。若存在由文件创建者定义的自定义扫描规则,则自定义扫描规则优先,服务器根据自定义扫描规则对全部文件进行扫描。若不存在由文件创建者定义的自定义扫描规则,则服务器将第二垃圾文件发送给与文件创建者相对应的用户终端,由用户自己确认需要删除的第二垃圾文件,进一步降低了文件的误删率。To sum up, the junk file cleaning system provided in this embodiment scans the first junk file set in all files according to the custom scanning rules defined by the file creator, and searches for and defines the custom junk file set in the first junk file set. Delete the first junk file corresponding to the file creator of the scanning rule; solve the existing problems of insufficient identification of junk files, high rate of file deletion by mistake, and high management and maintenance costs during the cleaning process of junk files; It has achieved the effect of fully identifying junk files, reducing the rate of file deletion by mistake, and reducing maintenance costs. In this embodiment, for each file creator, the server judges whether there is a custom scanning rule defined by the file creator. If there is a custom scanning rule defined by the file creator, the custom scanning rule takes precedence, and the server scans all files according to the custom scanning rule. If there is no custom scanning rule defined by the file creator, the server sends the second junk file to the user terminal corresponding to the file creator, and the user himself confirms the second junk file to be deleted, further reducing the file security. Erroneous deletion rate.

请参考图11,其示出了本发明一个实施例提供的服务器的结构示意图,该服务器用于实现为垃圾文件清理系统中的服务器,所述服务器包括:处理器1120、存储器1140、发送器1160和接收器1180;Please refer to FIG. 11 , which shows a schematic structural diagram of a server provided by an embodiment of the present invention, the server is used to implement a server in a junk file cleaning system, and the server includes: a processor 1120, a memory 1140, and a transmitter 1160 and receiver 1180;

所述处理器1120,用于根据自定义扫描规则在所述存储器1140中的全部文件中扫描第一垃圾文件集,所述自定义扫描规则由文件创建者定义;The processor 1120 is configured to scan the first set of junk files in all files in the storage 1140 according to a custom scanning rule defined by a file creator;

所述处理器1120,还用于在所述第一垃圾文件集中查找与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件;The processor 1120 is further configured to search in the first junk file set for a first junk file corresponding to the file creator defining the custom scanning rule;

所述处理器1120,还用于删除与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件。The processor 1120 is further configured to delete the first junk file corresponding to the file creator defining the custom scanning rule.

在更为优选的实施例中,所述处理器1120,还用于控制所述发送器1160将所述第一垃圾文件发送给与定义所述自定义扫描规则的文件创建者相对应的用户终端,以便所述用户终端获取需要删除的第一垃圾文件的选择结果;In a more preferred embodiment, the processor 1120 is further configured to control the sender 1160 to send the first junk file to the user terminal corresponding to the file creator defining the custom scanning rule , so that the user terminal obtains the selection result of the first junk file to be deleted;

所述处理器1120,还用于控制所述接收器1180接收所述用户终端反馈的所述选择结果,所述选择结果用于告知服务器需要删除的第一垃圾文件;The processor 1120 is further configured to control the receiver 1180 to receive the selection result fed back by the user terminal, where the selection result is used to inform the server of the first junk file that needs to be deleted;

所述处理器1120,还用于根据所述选择结果将所述需要删除的第一垃圾文件进行删除。The processor 1120 is further configured to delete the first junk file that needs to be deleted according to the selection result.

在更为优选的实施例中,所述处理器1120,还用于控制所述接收器1180接收并控制所述存储器1140存储至少一个用户终端发送的所述自定义扫描规则以及定义所述自定义扫描规则的文件创建者。In a more preferred embodiment, the processor 1120 is further configured to control the receiver 1180 to receive and control the memory 1140 to store the custom scan rule sent by at least one user terminal and define the custom scan rule. The file creator of the scan rule.

在更为优选的实施例中,所述处理器1120,还用于根据全局扫描规则在所述存储器1140的全部文件中扫描第二垃圾文件集,所述全局扫描规则是从管理终端获取到的;In a more preferred embodiment, the processor 1120 is further configured to scan the second garbage file set in all files in the storage 1140 according to a global scanning rule obtained from the management terminal ;

所述处理器1120,还用于将所述第二垃圾文件集进行分类得到与不同的所述文件创建者各自相对应的第二垃圾文件;The processor 1120 is further configured to classify the second junk file set to obtain second junk files corresponding to different file creators;

所述处理器1120,还用于对于每个文件创建者,判断是否存在由所述文件创建者定义的自定义扫描规则;The processor 1120 is further configured to, for each file creator, determine whether there is a custom scanning rule defined by the file creator;

所述处理器1120,还用于若不存在由所述文件创建者定义的自定义扫描规则,则删除与所述文件创建者对应的第二垃圾文件;The processor 1120 is further configured to delete the second junk file corresponding to the file creator if there is no custom scanning rule defined by the file creator;

所述处理器1120,还用于若存在由所述文件创建者定义的自定义扫描规则,则执行所述根据自定义扫描规则在全部文件中扫描第一垃圾文件集的步骤。The processor 1120 is further configured to execute the step of scanning the first junk file set in all files according to the custom scanning rule if there is a custom scanning rule defined by the file creator.

在更为优选的实施例中,所述处理器1120,还用于控制所述发送器1160将所述第二垃圾文件发送给与所述文件创建者相对应的用户终端,以便所述用户终端获取需要删除的第二垃圾文件的选择结果;In a more preferred embodiment, the processor 1120 is further configured to control the sender 1160 to send the second junk file to the user terminal corresponding to the file creator, so that the user terminal Obtain the selection result of the second junk file to be deleted;

所述处理器1120,还用于控制所述接收器1180接收所述用户终端反馈的所述选择结果,所述选择结果用于告知服务器需要删除的第二垃圾文件;The processor 1120 is further configured to control the receiver 1180 to receive the selection result fed back by the user terminal, where the selection result is used to inform the server of the second junk file that needs to be deleted;

所述处理器1120,还用于根据所述选择结果将所述需要删除的第二垃圾文件进行删除。The processor 1120 is further configured to delete the second junk file that needs to be deleted according to the selection result.

综上所述,本实施例提供的服务器,通过根据文件创建者定义的自定义扫描规则在全部文件中扫描第一垃圾文件集,在第一垃圾文件集中查找得到与定义该自定义扫描规则的文件创建者相对应的第一垃圾文件之后进行删除;解决了现有在垃圾文件的清理过程中,对垃圾文件的识别不充分,文件误删率高,管理维护成本高的问题;达到了充分识别垃圾文件,降低文件误删率,减少维护成本的效果。在本实施例中,服务器对于每个文件创建者,判断是否存在由文件创建者定义的自定义扫描规则。若存在由文件创建者定义的自定义扫描规则,则自定义扫描规则优先,服务器根据自定义扫描规则对全部文件进行扫描。若不存在由文件创建者定义的自定义扫描规则,则服务器将第二垃圾文件发送给与文件创建者相对应的用户终端,由用户自己确认需要删除的第二垃圾文件,进一步降低了文件的误删率。To sum up, the server provided in this embodiment scans the first junk file set in all files according to the custom scanning rule defined by the file creator, and searches the first junk file set to obtain the information corresponding to the definition of the custom scanning rule. Delete the first junk file corresponding to the file creator; solve the existing problems of insufficient identification of junk files, high rate of file deletion by mistake, and high management and maintenance costs in the process of cleaning up junk files; fully achieved Identify junk files, reduce the rate of file deletion by mistake, and reduce maintenance costs. In this embodiment, for each file creator, the server judges whether there is a custom scanning rule defined by the file creator. If there is a custom scanning rule defined by the file creator, the custom scanning rule takes precedence, and the server scans all files according to the custom scanning rule. If there is no custom scanning rule defined by the file creator, the server sends the second junk file to the user terminal corresponding to the file creator, and the user himself confirms the second junk file to be deleted, further reducing the file security. Erroneous deletion rate.

请参考图12,其示出了本发明一个实施例提供的用户终端的结构示意图,该用户终端用于实现为垃圾文件清理系统中的用户终端,所述用户终端包括:接收器1220、发送器1240、处理器1260和存储器1280;Please refer to FIG. 12, which shows a schematic structural diagram of a user terminal provided by an embodiment of the present invention. The user terminal is used to implement a user terminal in a junk file cleaning system, and the user terminal includes: a receiver 1220, a transmitter 1240, processor 1260, and memory 1280;

所述处理器1260,用于控制所述接收器1220接收服务器发送的第一垃圾文件,所述第一垃圾文件是所述服务器根据自定义扫描规则在全部文件中扫描第一垃圾文件集,并在所述第一垃圾文件集中查找与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件后,发送给与定义所述自定义扫描规则的文件创建者相对应的用户终端的;The processor 1260 is configured to control the receiver 1220 to receive the first junk file sent by the server, the first junk file is a first junk file set scanned by the server in all files according to a custom scanning rule, and After searching for the first junk file corresponding to the file creator defining the custom scanning rule in the first junk file set, sending to the user terminal corresponding to the file creator defining the custom scanning rule ;

所述处理器1260,还用于控制所述接收器1220获取需要删除的第一垃圾文件的选择结果;The processor 1260 is further configured to control the receiver 1220 to obtain a selection result of the first junk file to be deleted;

所述处理器1260,还用于控制所述发送器1240将所述选择结果发送给所述服务器,以便所述服务器根据所述选择结果将所述需要删除的第一垃圾文件进行删除。The processor 1260 is further configured to control the sender 1240 to send the selection result to the server, so that the server deletes the first junk file to be deleted according to the selection result.

在更为优选的实施例中,所述处理器1260,还用于控制所述发送器1240向所述服务器发送所述自定义扫描规则以及定义所述自定义扫描规则的文件创建者。In a more preferred embodiment, the processor 1260 is further configured to control the sender 1240 to send the custom scanning rule and the file creator defining the custom scanning rule to the server.

综上所述,本实施例提供的用户终端,通过根据文件创建者定义的自定义扫描规则在全部文件中扫描第一垃圾文件集,在第一垃圾文件集中查找得到与定义该自定义扫描规则的文件创建者相对应的第一垃圾文件之后进行删除;解决了现有在垃圾文件的清理过程中,对垃圾文件的识别不充分,文件误删率高,管理维护成本高的问题;达到了充分识别垃圾文件,降低文件误删率,减少维护成本的效果。在本实施例中,服务器对于每个文件创建者,判断是否存在由文件创建者定义的自定义扫描规则。若存在由文件创建者定义的自定义扫描规则,则自定义扫描规则优先,服务器根据自定义扫描规则对全部文件进行扫描。若不存在由文件创建者定义的自定义扫描规则,则服务器将第二垃圾文件发送给与文件创建者相对应的用户终端,由用户自己确认需要删除的第二垃圾文件,进一步降低了文件的误删率。To sum up, the user terminal provided by this embodiment scans the first junk file set in all files according to the custom scanning rule defined by the file creator, searches for and defines the custom scanning rule in the first junk file set Delete the first junk file corresponding to the file creator; solve the existing problem of insufficient identification of junk files, high rate of file deletion by mistake, and high management and maintenance costs in the process of cleaning up junk files; achieve Fully identify junk files, reduce the rate of file deletion by mistake, and reduce maintenance costs. In this embodiment, for each file creator, the server judges whether there is a custom scanning rule defined by the file creator. If there is a custom scanning rule defined by the file creator, the custom scanning rule takes precedence, and the server scans all files according to the custom scanning rule. If there is no custom scanning rule defined by the file creator, the server sends the second junk file to the user terminal corresponding to the file creator, and the user himself confirms the second junk file to be deleted, further reducing the file security. Erroneous deletion rate.

请参考图13,其示出了本发明一个实施例提供的垃圾文件清理系统的结构方框图。该垃圾文件清理系统包括至少一个服务器1320和至少一个用户终端1340;Please refer to FIG. 13 , which shows a structural block diagram of a junk file cleaning system provided by an embodiment of the present invention. The junk file cleaning system includes at least one server 1320 and at least one user terminal 1340;

所述服务器1320是如图11所示实施例及图11所示实施例的更为优选的实施例中所述的服务器;The server 1320 is the server described in the embodiment shown in FIG. 11 and the more preferred embodiment of the embodiment shown in FIG. 11 ;

所述用户终端1340是如图12所示实施例及图12所示实施例的更为优选的实施例中所述的用户终端。The user terminal 1340 is the user terminal described in the embodiment shown in FIG. 12 and the more preferred embodiment of the embodiment shown in FIG. 12 .

通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可以用硬件实现,或固件实现,或它们的组合方式来实现。当使用软件实现时,可以将上述功能存储在计算机可读介质中或作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。此外。任何连接可以适当的成为计算机可读介质。例如,如果软件是使用同轴电缆、光纤光缆、双绞线、数字用户线(DSL)或者诸如红外线、无线电和微波之类的无线技术从网站、服务器或者其他远程源传输的,那么同轴电缆、光纤光缆、双绞线、DSL或者诸如红外线、无线和微波之类的无线技术包括在所属介质的定影中。如本发明所使用的,盘(Disk)和碟(disc)包括压缩光碟(CD)、激光碟、光碟、数字通用光碟(DVD)、软盘和蓝光光碟,其中盘通常磁性的复制数据,而碟则用激光来光学的复制数据。上面的组合也应当包括在计算机可读介质的保护范围之内。Through the above description of the implementation manners, those skilled in the art can clearly understand that the present invention can be implemented by hardware, firmware, or a combination thereof. When implemented in software, the functions described above may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a computer. By way of example but not limitation: computer-readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or may be used to carry or store information in the form of instructions or data structures desired program code and any other medium that can be accessed by a computer. also. Any connection can suitably be a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable , fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, wireless, and microwave are included in the fixation of the respective media. As used herein, disk and disc include compact disc (CD), laser disc, compact disc, digital versatile disc (DVD), floppy disc, and Blu-ray disc, where a disc usually reproduces data magnetically, and a disc Lasers are used to optically reproduce the data. Combinations of the above should also be included within the scope of computer-readable media.

需要说明的是:上述实施例提供的垃圾文件清理装置在进行垃圾文件清理时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将垃圾文件清理装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的垃圾文件清理装置与垃圾文件清理方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the junk file cleaning device provided in the above-mentioned embodiment is cleaning junk files, the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be assigned to different functional modules according to needs. Completion means that the internal structure of the garbage file cleaning device is divided into different functional modules to complete all or part of the functions described above. In addition, the device for cleaning junk files provided by the above-mentioned embodiments belongs to the same idea as the embodiment of the method for cleaning junk files, and its specific implementation process is detailed in the method embodiment, and will not be repeated here.

应当理解的是,在本文中使用的,除非上下文清楚地支持例外情况,单数形式“一个”(“a”、“an”、“the”)旨在也包括复数形式。还应当理解的是,在本文中使用的“和/或”是指包括一个或者一个以上相关联地列出的项目的任意和所有可能组合。It should be understood that, as used herein, the singular form "a", "an", "the" is intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.

Claims (13)

Translated fromChinese
1.一种垃圾文件清理方法,其特征在于,所述方法包括:1. A garbage file cleaning method, characterized in that the method comprises:根据全局扫描规则在全部文件中扫描第二垃圾文件集,所述全局扫描规则是从管理终端获取到的;Scanning the second garbage file set in all files according to the global scanning rule, the global scanning rule is obtained from the management terminal;将所述第二垃圾文件集进行分类得到与不同的文件创建者各自相对应的第二垃圾文件;Classifying the second junk file set to obtain second junk files corresponding to different file creators;对于每个文件创建者,判断是否存在由所述文件创建者定义的自定义扫描规则;For each file creator, determine whether there is a custom scanning rule defined by the file creator;若不存在由所述文件创建者定义的自定义扫描规则,则删除与所述文件创建者对应的第二垃圾文件;If there is no custom scan rule defined by the file creator, then delete the second junk file corresponding to the file creator;若存在由所述文件创建者定义的自定义扫描规则,则根据所述自定义扫描规则在所述全部文件中扫描第一垃圾文件集;If there is a custom scanning rule defined by the file creator, scanning the first garbage file set in all files according to the custom scanning rule;在所述第一垃圾文件集中查找与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件;Searching for a first junk file corresponding to the file creator defining the custom scanning rule in the first junk file set;删除与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件。The first junk file corresponding to the file creator defining the custom scanning rule is deleted.2.根据权利要求1所述的方法,其特征在于,所述删除与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件,包括:2. The method according to claim 1, wherein the deleting the first junk file corresponding to the file creator defining the custom scanning rule comprises:将所述第一垃圾文件发送给与定义所述自定义扫描规则的文件创建者相对应的用户终端,以便所述用户终端获取需要删除的第一垃圾文件的选择结果;sending the first junk file to a user terminal corresponding to the file creator defining the custom scanning rule, so that the user terminal obtains a selection result of the first junk file to be deleted;接收所述用户终端反馈的所述选择结果,所述选择结果用于告知服务器需要删除的第一垃圾文件;receiving the selection result fed back by the user terminal, where the selection result is used to inform the server of the first junk file to be deleted;根据所述选择结果将所述需要删除的第一垃圾文件进行删除。The first junk file to be deleted is deleted according to the selection result.3.根据权利要求1所述的方法,其特征在于,所述根据自定义扫描规则在全部文件中扫描第一垃圾文件集之前,还包括:3. The method according to claim 1, wherein, before scanning the first junk file set in all files according to the custom scanning rule, further comprising:接收并存储至少一个用户终端发送的所述自定义扫描规则以及定义所述自定义扫描规则的文件创建者。The custom scanning rule sent by at least one user terminal and the file creator defining the custom scanning rule are received and stored.4.根据权利要求1所述的方法,其特征在于,所述删除与所述文件创建者对应的第二垃圾文件,包括:4. The method according to claim 1, wherein the deleting the second junk file corresponding to the file creator comprises:将所述第二垃圾文件发送给与所述文件创建者相对应的用户终端,以便所述用户终端获取需要删除的第二垃圾文件的选择结果;sending the second junk file to a user terminal corresponding to the file creator, so that the user terminal obtains a selection result of the second junk file to be deleted;接收所述用户终端反馈的所述选择结果,所述选择结果用于告知服务器需要删除的第二垃圾文件;receiving the selection result fed back by the user terminal, where the selection result is used to inform the server of the second junk file to be deleted;根据所述选择结果将所述需要删除的第二垃圾文件进行删除。The second junk file to be deleted is deleted according to the selection result.5.一种垃圾文件清理方法,其特征在于,所述方法包括:5. A garbage file cleaning method, characterized in that the method comprises:接收服务器发送的第一垃圾文件或第二垃圾文件,所述第一垃圾文件是在存在由文件创建者定义的自定义扫描规则时,所述服务器根据所述自定义扫描规则在全部文件中扫描第一垃圾文件集,并在所述第一垃圾文件集中查找与定义所述自定义扫描规则的所述文件创建者相对应的第一垃圾文件后,发送给与定义所述自定义扫描规则的所述文件创建者相对应的用户终端的;所述第二垃圾文件是在不存在由所述文件创建者定义的所述自定义扫描规则时,所述服务器根据全局扫描规则在所述全部文件中扫描第二垃圾文件集,并将所述第二垃圾文件集进行分类得到与不同的文件创建者各自相对应的第二垃圾文件后,发送给定义所述自定义扫描规则的所述文件创建者相对应的用户终端的,所述全局扫描规则是所述服务器从管理终端获取到的;receiving the first junk file or the second junk file sent by the server, where the first junk file is scanned in all files according to the custom scanning rule defined by the file creator when the first junk file exists The first garbage file set, and after searching for the first junk file corresponding to the file creator who defines the custom scanning rule in the first junk file set, send it to the person who defines the custom scanning rule The user terminal corresponding to the file creator; the second garbage file is when the custom scanning rule defined by the file creator does not exist, the server scans all files according to the global scanning rule Scan the second garbage file set in the middle, and classify the second garbage file set to obtain the second garbage files corresponding to different file creators, and then send it to the file creator who defines the custom scanning rules or the corresponding user terminal, the global scan rule is obtained by the server from the management terminal;获取需要删除的第一垃圾文件或第二垃圾文件的选择结果;Obtain the selection result of the first junk file or the second junk file to be deleted;将所述选择结果发送给所述服务器,以便所述服务器根据所述选择结果将所述需要删除的第一垃圾文件或第二垃圾文件进行删除。The selection result is sent to the server, so that the server deletes the first junk file or the second junk file that needs to be deleted according to the selection result.6.根据权利要求5所述的方法,其特征在于,所述接收服务器发送的第一垃圾文件之前,还包括:6. The method according to claim 5, wherein, before the first junk file sent by the receiving server, further comprising:向所述服务器发送所述自定义扫描规则以及定义所述自定义扫描规则的文件创建者。sending the custom scanning rule and a file creator defining the custom scanning rule to the server.7.一种垃圾文件清理装置,其特征在于,所述装置包括:7. A junk file cleaning device, characterized in that the device comprises:第一扫描模块,用于根据自定义扫描规则在全部文件中扫描第一垃圾文件 集,所述自定义扫描规则由文件创建者定义;The first scanning module is used to scan the first garbage file set in all files according to custom scanning rules, and the custom scanning rules are defined by the file creator;文件查找模块,用于在所述第一垃圾文件集中查找与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件;A file search module, configured to search for a first junk file corresponding to the file creator defining the custom scanning rule in the first junk file set;文件删除模块,用于删除与定义所述自定义扫描规则的文件创建者相对应的第一垃圾文件;A file deletion module, configured to delete the first junk file corresponding to the file creator defining the custom scanning rules;所述装置还包括:The device also includes:第二扫描模块,用于根据全局扫描规则在所述全部文件中扫描第二垃圾文件集,所述全局扫描规则是从管理终端获取到的;The second scanning module is used to scan the second garbage file set in all files according to the global scanning rule, the global scanning rule is obtained from the management terminal;文件分类模块,用于将所述第二垃圾文件集进行分类得到与不同的所述文件创建者各自相对应的第二垃圾文件;A file classification module, configured to classify the second junk file set to obtain second junk files corresponding to different file creators;规则判断模块,用于对于每个文件创建者,判断是否存在由所述文件创建者定义的自定义扫描规则;A rule judging module, for each file creator, judging whether there is a custom scanning rule defined by the file creator;第一判定模块,用于若不存在由所述文件创建者定义的自定义扫描规则,则删除与所述文件创建者对应的第二垃圾文件;The first judging module is used to delete the second junk file corresponding to the file creator if there is no custom scanning rule defined by the file creator;第二判定模块,用于若存在由所述文件创建者定义的自定义扫描规则,则执行所述根据自定义扫描规则在全部文件中扫描第一垃圾文件集的步骤。The second judging module is configured to execute the step of scanning the first junk file set in all files according to the custom scanning rule if there is a custom scanning rule defined by the file creator.8.根据权利要求7所述的装置,其特征在于,所述文件删除模块,包括:第一发送单元、第一接收单元和第一删除单元;8. The device according to claim 7, wherein the file deletion module comprises: a first sending unit, a first receiving unit and a first deleting unit;所述第一发送单元,用于将所述第一垃圾文件发送给与定义所述自定义扫描规则的文件创建者相对应的用户终端,以便所述用户终端获取需要删除的第一垃圾文件的选择结果;The first sending unit is configured to send the first junk file to the user terminal corresponding to the file creator defining the custom scanning rule, so that the user terminal can obtain the ID of the first junk file that needs to be deleted. select the result;所述第一接收单元,用于接收所述用户终端反馈的所述选择结果,所述选择结果用于告知服务器需要删除的第一垃圾文件;The first receiving unit is configured to receive the selection result fed back by the user terminal, and the selection result is used to inform the server of the first junk file to be deleted;所述第一删除单元,用于根据所述选择结果将所述需要删除的第一垃圾文件进行删除。The first deleting unit is configured to delete the first junk file that needs to be deleted according to the selection result.9.根据权利要求7所述的装置,其特征在于,所述装置,还包括:9. The device according to claim 7, wherein the device further comprises:规则接收模块,用于接收并存储至少一个用户终端发送的所述自定义扫描规则以及定义所述自定义扫描规则的文件创建者。The rule receiving module is configured to receive and store the custom scanning rule sent by at least one user terminal and the creator of the file defining the custom scanning rule.10.根据权利要求7所述的装置,其特征在于,所述第一判定模块,包括:第二发送单元、第二接收单元和第二删除单元;10. The device according to claim 7, wherein the first determination module comprises: a second sending unit, a second receiving unit, and a second deleting unit;所述第二发送单元,用于将所述第二垃圾文件发送给与所述文件创建者相对应的用户终端,以便所述用户终端获取需要删除的第二垃圾文件的选择结果;The second sending unit is configured to send the second junk file to a user terminal corresponding to the file creator, so that the user terminal obtains a selection result of the second junk file to be deleted;所述第二接收单元,用于接收所述用户终端反馈的所述选择结果,所述选择结果用于告知服务器需要删除的第二垃圾文件;The second receiving unit is configured to receive the selection result fed back by the user terminal, and the selection result is used to inform the server of the second junk file to be deleted;所述第二删除单元,用于根据所述选择结果将所述需要删除的第二垃圾文件进行删除。The second deleting unit is configured to delete the second junk file to be deleted according to the selection result.11.一种垃圾文件清理装置,其特征在于,所述装置包括:11. A garbage file cleaning device, characterized in that the device comprises:垃圾接收模块,用于接收服务器发送的第一垃圾文件或第二垃圾文件,所述第一垃圾文件是在存在由文件创建者定义的自定义扫描规则时,所述服务器根据所述自定义扫描规则在全部文件中扫描第一垃圾文件集,并在所述第一垃圾文件集中查找与定义所述自定义扫描规则的所述文件创建者相对应的第一垃圾文件后,发送给与定义所述自定义扫描规则的所述文件创建者相对应的用户终端的;所述第二垃圾文件是在不存在由所述文件创建者定义的所述自定义扫描规则时,所述服务器根据全局扫描规则在所述全部文件中扫描第二垃圾文件集,并将所述第二垃圾文件集进行分类得到与不同的文件创建者各自相对应的第二垃圾文件后,发送给定义所述自定义扫描规则的所述文件创建者相对应的用户终端的,所述全局扫描规则是所述服务器从管理终端获取到的;The garbage receiving module is configured to receive the first garbage file or the second garbage file sent by the server, the first garbage file is when there is a custom scanning rule defined by the file creator, the server scans according to the custom The rule scans the first junk file set in all files, and after finding the first junk file corresponding to the file creator who defines the custom scanning rule in the first junk file set, sends it to the The user terminal corresponding to the file creator of the above-mentioned custom scanning rule; the second junk file is when the custom scanning rule defined by the file creator does not exist, the server scans according to the global The rule scans the second junk file set in all the files, classifies the second junk file set to obtain second junk files corresponding to different file creators, and then sends it to define the custom scan For the user terminal corresponding to the file creator of the rule, the global scan rule is obtained by the server from the management terminal;选择获取模块,用于获取需要删除的第一垃圾文件或第二垃圾文件的选择结果;Select and obtain the module, be used for obtaining the selection result of the first junk file or the second junk file that needs to be deleted;选择发送模块,用于将所述选择结果发送给所述服务器,以便所述服务器根据所述选择结果将所述需要删除的第一垃圾文件或第二垃圾文件进行删除。A selection sending module, configured to send the selection result to the server, so that the server deletes the first junk file or the second junk file that needs to be deleted according to the selection result.12.根据权利要求11所述的装置,其特征在于,所述装置,还包括:12. The device according to claim 11, further comprising:规则发送模块,用于向所述服务器发送所述自定义扫描规则以及定义所述自定义扫描规则的文件创建者。A rule sending module, configured to send the custom scanning rule and the file creator defining the custom scanning rule to the server.13.一种垃圾文件清理系统,其特征在于,所述系统包括:服务器和用户终端;13. A garbage file cleaning system, characterized in that the system comprises: a server and a user terminal;所述服务器包括如权利要求7至10任一所述的垃圾文件清理装置;Said server comprises the garbage file cleaning device according to any one of claims 7 to 10;所述用户终端包括如权利要求11至12任一所述的垃圾文件清理装置。The user terminal includes the garbage file cleaning device according to any one of claims 11 to 12.
CN201310429456.5A2013-09-182013-09-18Method, device and system for cleaning useless filesActiveCN103501241B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201310429456.5ACN103501241B (en)2013-09-182013-09-18Method, device and system for cleaning useless files

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201310429456.5ACN103501241B (en)2013-09-182013-09-18Method, device and system for cleaning useless files

Publications (2)

Publication NumberPublication Date
CN103501241A CN103501241A (en)2014-01-08
CN103501241Btrue CN103501241B (en)2017-02-01

Family

ID=49866416

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201310429456.5AActiveCN103501241B (en)2013-09-182013-09-18Method, device and system for cleaning useless files

Country Status (1)

CountryLink
CN (1)CN103501241B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106294488A (en)*2015-06-052017-01-04腾讯科技(深圳)有限公司Garbage files scan method and device
CN105117411A (en)*2015-07-292015-12-02上海斐讯数据通信技术有限公司Server log file management system and method
CN105045928A (en)*2015-08-272015-11-11北京金山安全软件有限公司To-be-cleaned data display method and device and electronic equipment
CN106686035B (en)*2015-11-102020-11-24北京京东尚科信息技术有限公司Method and device for realizing customized FTP server based on Apache FtpServer
CN105718815A (en)*2016-01-212016-06-29上海斐讯数据通信技术有限公司Method and device for automatically cleaning up system files
CN106897423A (en)*2017-02-242017-06-27郑州云海信息技术有限公司A kind of cloud platform junk data processing method and system
CN108255930B (en)*2017-11-302020-06-05维沃移动通信有限公司 Data cleaning method for mobile terminal and mobile terminal
CN111614730B (en)*2020-04-282022-07-19北京金山云网络技术有限公司File processing method and device of cloud storage system and electronic equipment
CN112000626B (en)*2020-08-142022-11-29苏州浪潮智能科技有限公司 File server file processing method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1971600A (en)*2005-11-242007-05-30符萍Management system of personal information based on network storage
CN101706817A (en)*2009-12-012010-05-12中兴通讯股份有限公司Distributed file system and garbage data cleaning method thereof
CN101980504A (en)*2010-10-222011-02-23中兴通讯股份有限公司 Data sharing method, mobile terminal and server
CN102129452A (en)*2011-03-042011-07-20李丽平System and method for obtaining future information
CN102393849A (en)*2011-07-182012-03-28电子科技大学Web log data preprocessing method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP4378131B2 (en)*2003-08-122009-12-02インターナショナル・ビジネス・マシーンズ・コーポレーション Information processing apparatus, information processing system, database search method, and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1971600A (en)*2005-11-242007-05-30符萍Management system of personal information based on network storage
CN101706817A (en)*2009-12-012010-05-12中兴通讯股份有限公司Distributed file system and garbage data cleaning method thereof
CN101980504A (en)*2010-10-222011-02-23中兴通讯股份有限公司 Data sharing method, mobile terminal and server
CN102129452A (en)*2011-03-042011-07-20李丽平System and method for obtaining future information
CN102393849A (en)*2011-07-182012-03-28电子科技大学Web log data preprocessing method

Also Published As

Publication numberPublication date
CN103501241A (en)2014-01-08

Similar Documents

PublicationPublication DateTitle
CN103501241B (en)Method, device and system for cleaning useless files
US9311326B2 (en)Virtual file system for automated data replication and review
US8447801B1 (en)Content sharing with limited cloud storage
US8726359B2 (en)Method and system for content distribution management
CN103024053B (en)Cloud storage means, resource scheduling system, cloud memory node and system
CN113811866B (en)Sensitive data management
US20140365451A1 (en)Method and system for cleaning up files on a device
RU2600545C2 (en)Information processing device and information processing method
CN106528432A (en)Construction method and apparatus for test scene data, and buried point test method
CN106850794A (en)Method and apparatus, server and terminal for operating group
CN111935227A (en)Method for uploading file through browser, browser and electronic equipment
CN102968430B (en)Method and apparatus for automatically generating and managing groups in address book
CN102238106A (en) News Feed Technology
CN101047665B (en)Address information managing system, management apparatus, processing apparatus and address book updating method
CN106302445A (en)For the method and apparatus processing request
US20190394160A1 (en)Routing a message based upon user-selected topic in a message editor
KR20180074774A (en) How to identify malicious websites, devices and computer storage media
JP2017097881A (en)Data management method and device therefor
US20120265831A1 (en)System and Method for Transmitting and Filtering Instant Messaging Information
US20100114996A1 (en)Apparatus and Method for Transmitting File and Apparatus and Method for Receiving File
CN107733716A (en)Distributed file system log analysis method, system, equipment and storage medium
US9722956B2 (en)Managing electronic mail for an end-user that is unavailable
WO2019242279A1 (en)Message processing method and device
US20170180511A1 (en)Method, system and apparatus for dynamic detection and propagation of data clusters
US10257139B2 (en)Facilitating access to resource(s) identified by reference(s) in electronic communications

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp