Automatic cleaning method for disk space

By obtaining disk space usage and evaluating files based on preset evaluation standards, and automatically selecting and cleaning target files, the problem of inefficient disk space management in the existing technology is solved, and intelligent management of disk space is realized.

CN119440417APending Publication Date: 2025-02-14HENAN ZHONGYUAN CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411571598.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-06
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In the prior art, regular cleaning tools cannot be flexibly adjusted according to the actual disk space usage, resulting in inefficient disk space management.

Method used

By obtaining the space usage of the disk to be monitored, multiple files are evaluated based on preset evaluation criteria, and the target files that meet preset evaluation conditions are selected to clean up, so as to realize automated disk space management.

Benefits of technology

Real-time monitoring and flexible cleaning of disk space are realized, the efficiency of disk space management is improved, and the need for manual intervention is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440417A_ABST
    Figure CN119440417A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, in particular to an automatic disk space cleaning method, which comprises the following steps of: acquiring a space use condition of a to-be-monitored disk; based on the space use condition and a preset evaluation standard, determining an evaluation result of a plurality of files in the to-be-monitored disk; selecting a target file of which the evaluation result meets a preset evaluation condition from the plurality of files; and in the to-be-monitored disk, cleaning the target file. According to the method, the target file is automatically cleaned, manual intervention is not needed, the space use condition of the to-be-monitored disk can be monitored in real time, the target file is flexibly and timely cleaned according to the space use condition of the to-be-monitored disk, and the disk space management efficiency is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to an automatic disk space cleaning method in the technical field of data processing. Background Art

[0002] With the continuous development of information technology, the amount of data stored in computer systems is increasing, and the problem of insufficient disk space is becoming increasingly prominent. At present, common disk cleaning methods mainly include manual cleaning and regular cleaning with the help of some disk cleaning tools. However, manual cleaning is time-consuming and labor-intensive, and it is easy to miss something; and regular cleaning tools often cannot be flexibly adjusted according to the actual disk space usage. Summary of the invention

[0003] In order to solve the technical problem that the regular cleaning tool in the prior art cannot be flexibly adjusted according to the actual disk space usage, the purpose of the present invention is to provide a disk space automatic cleaning method, and the technical solution adopted is as follows: In a first aspect, an embodiment of the present invention provides a method for automatically cleaning up disk space, the method comprising: Get the space usage of the disk to be monitored; Based on the space usage and preset evaluation criteria, determining evaluation results of the plurality of files in the disk to be monitored; Among the multiple files, select a target file whose evaluation result meets a preset evaluation condition; In the disk to be monitored, the target file is cleaned up.

[0004] In combination with the first aspect above, in some possible implementations, determining the evaluation results of the multiple files in the to-be-monitored disk based on the space usage and a preset evaluation criterion includes: Determine whether the space usage meets the preset cleaning condition; In the case where the space usage meets the preset cleaning condition, content evaluation is performed on the multiple files in the to-be-monitored disk based on the preset evaluation standard to obtain evaluation results of the multiple files.

[0005] In combination with the first aspect above, in some possible implementations, when the space usage satisfies the preset cleaning condition, performing content evaluation on multiple files in the to-be-monitored disk based on the preset evaluation criteria to obtain evaluation results of the multiple files includes: When the space usage satisfies the preset cleaning condition, classifying the multiple files to obtain multiple classified files; determining content information of the plurality of classified files; The content information is evaluated based on the preset evaluation criteria to obtain evaluation results of the multiple classified files.

[0006] In combination with the first aspect above, in some possible implementations, the method further includes: Obtaining file types corresponding to the plurality of classified files respectively; Based on the file type, a preset evaluation criterion is determined to match the plurality of classified files.

[0007] In combination with the first aspect, in some possible implementations, determining content information of the plurality of classified files includes: Acquire access frequency, spatial information and time information of the plurality of classified files; The access frequency, spatial information and time information are determined as the content information.

[0008] In combination with the first aspect above, in some possible implementations, evaluating the content information based on the preset evaluation criteria to obtain evaluation results of the multiple classified files includes: Comparing the preset evaluation criteria with the content information to obtain a comparison result; The comparison result is determined as the evaluation result of the multiple classified files.

[0009] In combination with the first aspect above, in some possible implementations, after cleaning the target file in the disk to be monitored, the method further includes: Obtaining feedback information on the disk to be monitored that has cleaned the target file; Based on the feedback information, the preset cleaning condition is adjusted.

[0010] In combination with the first aspect above, in some possible implementations, the cleaning of the target file in the disk to be monitored includes: Get the preset whitelist list including file names; If the file name of the target file is not included in the preset whitelist, the target file is cleaned up.

[0011] In combination with the first aspect above, in some possible implementations, the step of cleaning up the target file in the disk to be monitored includes: Based on the target file, generate and output prompt information; wherein the prompt information is used to prompt whether to clean up the target file; When the input confirmation information is received, the target file is cleaned up.

[0012] In a second aspect, a system for automatically cleaning up disk space is provided, the system comprising: An acquisition module is used to obtain the space usage of the disk to be monitored; A determination module, used to determine the evaluation results of the plurality of files in the to-be-monitored disk based on the space usage and a preset evaluation standard; A selection module, used for selecting a target file whose evaluation result meets a preset evaluation condition among the multiple files; The cleaning module is used to clean up the target file in the disk to be monitored.

[0013] In a third aspect, a computer program product is provided, which includes: a computer program code, which, when executed on a computer, enables the computer to execute the automatic disk space cleaning method in any one of the possible implementations described above.

[0014] In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the automatic disk space cleaning method in any possible implementation manner described above.

[0015] The present invention has the following beneficial effects: by obtaining the space usage of the disk to be monitored, the disk space of the disk to be monitored can be accurately monitored in real time. Afterwards, the evaluation results of multiple files in the disk to be monitored are determined by the space usage and preset evaluation criteria, and the space usage of each file in the disk to be monitored can be relatively intelligently evaluated; finally, among the multiple files, a target file whose evaluation result meets the preset evaluation condition is selected; and the target file is cleaned up in the disk to be monitored. In this way, by automatically cleaning up the target file, no manual intervention is required, and the space usage of the disk to be monitored can be monitored in real time, and the target file can be flexibly and timely cleaned up according to the space usage of the disk to be monitored, which greatly improves the efficiency of disk space management. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 This is a schematic diagram of an implementation flow of a method for automatically cleaning up disk space provided by an embodiment of the present invention; Figure 2It is a schematic diagram of an implementation framework of a method for automatically cleaning up disk space provided by an embodiment of the present invention; Figure 3 This is another implementation flow diagram of a method for automatically cleaning up disk space provided by an embodiment of the present invention; Figure 4 This is another implementation flow diagram of a method for automatically cleaning up disk space provided by an embodiment of the present invention; Figure 5 It is a schematic diagram of the structure of a disk space automatic cleaning system provided by an embodiment of the present invention; Figure 6 It is a structural schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0018] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a disk space automatic cleaning method proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments can be combined in any suitable form.

[0019] Among them, in the description of the embodiments of the present invention, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a way to describe the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present invention, "multiple" refers to two or more than two.

[0020] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0021] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0022] The present invention provides a specific solution for a method for automatically cleaning up disk space. Figure 1 , which shows a schematic diagram of an implementation flow of a method for automatically cleaning up disk space provided by an embodiment of the present invention. The method can be implemented by the following steps: 101. Obtain the space usage of the disk to be monitored.

[0023] Here, the disk to be monitored can be any type of disk. The space usage of the disk to be monitored includes: used space, remaining space, space growth trend, etc. In some possible implementations, the space usage of the disk to be monitored can be obtained by regularly scanning the disk directory structure or using the disk space monitoring interface provided by the operating system.

[0024] In some possible implementations, the above step 101 can be performed by Figure 2 The disk space monitoring module 21 shown is implemented by setting a disk space monitoring module in the computer system, and the disk space monitoring module 21 can monitor the usage of the disk in real time, including the used space, the remaining space, the space growth trend, etc. This can be achieved by regularly scanning the disk directory structure or using the disk space monitoring interface provided by the operating system. The disk space monitoring module 21 can accurately monitor the usage of the disk space in real time, including the used space, the remaining space, the space growth trend, etc. This requires efficient monitoring algorithms and technologies to ensure that changes in the disk space are discovered in time without occupying too many system resources. In the disk space monitoring module 21, a threshold value of the disk space usage rate is reasonably set, and the cleaning mechanism can be accurately triggered when the threshold value is reached. The setting of this threshold value needs to take into account the actual needs and performance characteristics of different systems, so as to avoid excessive occupation of disk space leading to a decrease in system performance and to prevent frequent triggering of the cleaning mechanism from wasting system resources.

[0025] 102. Determine evaluation results of the plurality of files in the to-be-monitored disk based on the space usage and a preset evaluation standard.

[0026] Here, the preset evaluation criteria may be set according to a custom setting, or may be set according to the type of each file in the disk to be monitored. The multiple files in the disk to be monitored are each file stored in the disk to be monitored. The evaluation criteria for the multiple files are obtained by evaluating each file according to the preset evaluation criteria. The evaluation results of the multiple files in the disk to be monitored may be obtained by comparing the content information of each file with the preset evaluation criteria.

[0027] In some possible implementations, first, multiple files are classified to obtain multiple classified files; then, the file types corresponding to the multiple classified files are obtained; finally, based on the file types, preset evaluation criteria matching the multiple classified files are determined. Here, the file types corresponding to the classified files include: system files, user files, temporary files, cache files, etc. It is also possible to classify the files according to their extensions, storage paths, creation time, etc. to obtain multiple classified files. Different preset evaluation criteria are set for different types of files. For example, for temporary files and cache files, preset evaluation criteria can be set according to their creation time and last access time, such as the preset evaluation criteria being the target creation time or the target last access time; for user files, the preset evaluation criteria can be file size, access frequency, etc. In this way, by first classifying the files in the monitored disk and setting preset evaluation criteria according to the types of each file, the set evaluation criteria can be made more effective.

[0028] In some possible implementations, the above step 102 can be performed by Figure 2 The file classification and evaluation module 22 shown is implemented, and the files in the disk are classified by the file classification and evaluation module 22, for example, into system files, user files, temporary files, cache files, etc. The files can be classified according to the file extension, storage path, creation time and other features. Different evaluation criteria are set for different types of files. For example, for temporary files and cache files, whether they can be cleaned can be determined based on their creation time and last access time; for user files, they can be evaluated based on factors such as file size and access frequency. One of the keys is that the file classification and evaluation module 22 can accurately classify the files in the disk. By classifying the files by multiple features such as the file extension, storage path, creation time, etc., different cleaning strategies can be better formulated for different types of files. In the file classification and evaluation module 22, reasonable evaluation criteria are set for different types of files to determine which files can be cleaned. The evaluation criteria need to comprehensively consider multiple factors such as the file size, access frequency, creation time, and last access time. In the technical implementation of the evaluation standard of the automatic disk space cleaning method, the file size is divided into intervals and assigned different cleaning priorities. The importance of the file is judged based on the creation time and the last access time. The file extension is used to determine the type and cleaning priority. Then, combined with the comprehensive evaluation algorithm, weights are assigned to each factor to calculate the comprehensive evaluation value, thereby determining the file cleaning priority.

[0029] In some possible implementations, the above step 102 can be performed by Figure 3 The steps shown achieve: 301, determine whether the space usage meets the preset cleaning condition.

[0030] The preset cleaning condition may be a custom setting. For example, the preset cleaning condition is that when the disk space usage reaches a certain threshold (eg, 80%), a cleaning mechanism is triggered.

[0031] 302 , when the space usage satisfies the preset cleaning condition, content evaluation is performed on a plurality of files in the to-be-monitored disk based on the preset evaluation criteria to obtain evaluation results of the plurality of files.

[0032] For example, space usage includes: space usage rate of the disk to be monitored; the preset cleaning condition is a set usage rate threshold. In this way, by judging whether the space usage of the disk to be monitored meets the preset cleaning condition, and then evaluating the content of multiple files according to the preset evaluation criteria, a more accurate evaluation result can be obtained, so as to automatically clean up the disk to be monitored according to the space usage of the disk to be monitored.

[0033] In some possible implementations, the above step 302 may be implemented by the following steps 321 to 323 (not shown): 321 , when the space usage satisfies the preset cleaning condition, classify the multiple files to obtain multiple classified files.

[0034] Here, if the space usage is the space usage rate, the preset cleaning condition is the space usage rate threshold (80%); then when the space usage rate reaches 80%, the multiple files are classified to obtain multiple classified files.

[0035] 322, determine content information of the multiple classified files.

[0036] Here, the content information of the classified files includes: the access frequency, spatial information and time information of the classified files. In some possible implementations, the access frequency, spatial information and time information of multiple classified files are obtained; and the access frequency, spatial information and time information are determined as the content information. Among them, the spatial information includes: file size and file extension, etc.; the time information includes: creation time and last access time. In this way, by obtaining the access frequency, spatial information and time information of the classified files, the content information of the classified files can be accurately obtained, which is convenient for accurate evaluation of the classified files.

[0037] 323 , evaluating the content information based on the preset evaluation criteria to obtain evaluation results of the multiple classified files.

[0038] Here, the comparison result is obtained by comparing the preset evaluation standard with the content information; and the comparison result is determined as the evaluation result of the multiple classified files. For example, if the content information is the access frequency, the access frequency of the classified file is subtracted from the access frequency in the preset evaluation standard, and the difference is used as the comparison result, that is, the evaluation result of the classified file. In this way, by analyzing the content information of the classified file, the preset evaluation standard is compared with the content information, so that the classified file can be accurately evaluated to obtain the evaluation result of the classified file.

[0039] 103 , from the multiple files, select a target file whose evaluation result meets a preset evaluation condition.

[0040] Here, the preset evaluation condition may be a threshold of the evaluation result. For example, if the evaluation result is the difference between the size of the file in the disk to be monitored and the size of the file in the preset evaluation standard, then the preset evaluation adjustment may be a specific value set. The preset evaluation condition may also be obtained by progressively superimposing multiple preset evaluation standards. In some possible implementations, the above step 103 may be performed by Figure 2 The automatic cleaning execution module 23 shown is implemented. When the disk space monitoring module triggers the cleaning mechanism, the automatic cleaning execution module sets the evaluation conditions according to the results of the file classification and evaluation module, according to the file size, creation time and last access time, and file extension, so as to select the files to be cleaned from multiple files for cleaning. For example: focus on evaluating files that exceed a certain size (such as 500 megabytes (MB)). If these large files have not been accessed for a long time or belong to a file type that can be cleaned (such as a temporary video file cache), they are included in the list of candidates that can be cleaned; for files that were created earlier and have not been accessed for a period of time (such as three months), it is considered that they may no longer be important and can be considered for cleaning. In particular, some temporary files or temporary installation packages generated during the installation of software are usually no longer needed after use; the file type is determined according to common file extensions. For example, files with extensions of .tmp and .bak are usually temporary files or backup files, and can be cleaned up first. For some file types that take up a large amount of space but are not commonly used, such as specific image formats (such as .tif files) or audio formats (such as .flac files), if the disk space is tight, evaluation and cleaning can also be performed.

[0041] 104. Clean up the target file in the disk to be monitored.

[0042] In some possible implementations, the cleaning methods may include direct deletion, moving to an external storage device, compressed storage, etc. During the cleaning process, to ensure that important files are not accidentally deleted, this can be ensured by setting a whitelist or providing a confirmation prompt before cleaning.

[0043] In some possible implementations, the above step 104 may be implemented in the following two ways: Method 1: First, obtain a preset whitelist list including file names; then, if the file name of the target file is not included in the preset whitelist list, clean up the target file.

[0044] Here, the preset whitelist includes: the file names of each file that cannot be cleaned up. The preset whitelist can be set autonomously. If the file name of the target file is not included in the preset whitelist, it means that the target file is allowed to be cleaned up, so the target file is cleaned up. If the file name of the target file is included in the preset whitelist, the target file is ignored, that is, the target file is not cleaned up. In this way, by judging whether the file name of the target file is in the preset whitelist, it is possible to avoid mistakenly cleaning up important files, thereby improving the accuracy of cleaning files.

[0045] Method 2: First, based on the target file, generate and output prompt information; then, when receiving the input confirmation information, clean up the target file.

[0046] Here, the prompt information is used to prompt whether to clean up the target file. After outputting the prompt information, the user terminal provides feedback for the prompt information. If confirmation information input by the user terminal is received, it means that the user terminal confirms that the target file can be cleaned up, and then the target file is cleaned up.

[0047] In some possible implementations, this can be accomplished by Figure 2The automatic cleaning execution module 23 in the system cleans up the target file. The automatic cleaning execution module 23 is used to automatically initiate a cleaning mechanism when an alarm is triggered, and automatically clean up according to the cleaning rules. In this way, after determining the target file, by outputting prompt information, the user end can be reminded of the files that need to be cleaned in time, thereby avoiding mistaken cleaning and negative impact. It is very important to select a suitable cleaning method through the automatic cleaning execution module 23. Cleaning methods include direct deletion, moving to an external storage device, compressed storage, etc. It is necessary to intelligently select a cleaning method according to the type and importance of the file, collect historical and real-time data to predict the cleaning method with machine learning, analyze file features to select a suitable cleaning method, provide user preference settings and determine the cleaning method in combination with file features and system status, and adjust according to the cleaning effect evaluation and user feedback to achieve intelligent selection of the cleaning method. In order to minimize the impact on users while freeing up disk space. During the cleaning process, there must be an effective mechanism to prevent mistaken deletion to ensure that important files are not deleted by mistake. This can be guaranteed by setting a whitelist and confirming prompts before cleaning.

[0048] In the embodiment of the present invention, by real-time monitoring of the space of the disk to be monitored, the evaluation results of multiple files in the disk to be monitored are determined according to the space usage and preset evaluation criteria, so that the space usage of each file in the disk to be monitored can be evaluated more intelligently; finally, among the multiple files, the target file whose evaluation result meets the preset evaluation condition is selected; and the target file is cleaned up in the disk to be monitored. In this way, the target file is automatically cleaned up without manual intervention, and the space usage of the disk to be monitored can be monitored in real time, and the target file can be flexibly and timely cleaned up according to the space usage of the disk to be monitored, which greatly improves the efficiency of disk space management.

[0049] In some embodiments, after cleaning the target files in the disk to be monitored, the cleaning strategy can be automatically adjusted according to the feedback information, such as Figure 4 As shown, this can be achieved by following the steps below: 401 , obtaining feedback information of the disk to be monitored that has cleared the target file.

[0050] Here, the feedback information includes: user feedback content and target file content information, wherein the user feedback content includes: whether the file is deleted by mistake, which files need to be deleted, which files cannot be deleted, etc. The target file content information includes: the file name, file size, file type, etc. of the cleaned target file.

[0051] 402. Adjust the preset cleaning condition based on the feedback information.

[0052] In some possible implementations, this can be accomplished by Figure 2 The cleaning strategy adjustment module 24 in the system adjusts the preset cleaning conditions based on the feedback information. The cleaning strategy adjustment module 24 dynamically adjusts the cleaning strategy according to the actual use of the system and user feedback. For example, if the user finds that some files are deleted by mistake, they can be added to the whitelist to avoid being cleaned next time; if it is found that the cleaning effect of a certain type of file is not good, the evaluation criteria and cleaning method can be adjusted. In the cleaning strategy adjustment module, in terms of adjusting the evaluation criteria, by dynamically setting thresholds, the thresholds of file size, creation time, access time, etc. are adjusted according to the disk space usage, historical cleaning data and growth trends, while considering the changes in demand in different time periods; adjusting the file type weight, setting weights for different file types according to importance and cleanability and dynamically adjusting them with system use; finely analyzing the file access frequency, and adjusting the evaluation criteria in combination with time distribution and user behavior patterns. In terms of adjusting the cleaning method, a combination of multiple methods is used for cleaning, such as compressing large temporary files first and then deleting them, and transferring infrequently used files in combination with external storage; optimizing the cleaning time, selecting idle time cleaning according to system load and user habits or providing users with customized cleaning time options; adjusting the strategy based on cleaning effect feedback and user feedback to avoid mistaken cleaning and negative impact. An important advantage of this patent is that the cleaning strategy can be dynamically adjusted according to the actual use of the system and user feedback through the cleaning strategy adjustment module 24. This requires the ability to analyze the disk space usage and cleaning effect in real time, and automatically adjust the evaluation criteria and cleaning methods according to the analysis results. An effective user feedback mechanism is established in the cleaning strategy adjustment module 24, so that users can provide timely feedback when problems are found, so as to adjust the cleaning strategy. In this way, after cleaning the target file, by outputting feedback information, the preset cleaning conditions can be dynamically adjusted, making the preset cleaning conditions more reasonable, thereby improving the accuracy of disk space cleaning.

[0053] In the embodiment of the present invention, the automatic cleaning method of the disk space monitoring module can monitor the disk space usage in real time and clean it up in time without manual intervention, which greatly improves the efficiency of disk space management. Through the file classification and evaluation module, it can more intelligently determine which files can be cleaned up to avoid accidentally deleting important files. Through the cleaning strategy adjustment module, dynamic adjustments can be made according to actual conditions to meet the needs of different users and systems.

[0054] The embodiment of the present invention provides a system for automatically cleaning up disk space. Figure 5 As shown, the system 501 includes: The acquisition module 501 is used to acquire the space usage of the disk to be monitored; A determination module 502, configured to determine evaluation results of the plurality of files in the to-be-monitored disk based on the space usage and a preset evaluation standard; A selection module 503 is used to select a target file from among the multiple files, the evaluation result of which satisfies a preset evaluation condition; The cleaning module 504 is used to clean up the target file in the disk to be monitored.

[0055] In some possible implementations, the determination module 502 is also used to determine whether the space usage meets the preset cleaning conditions; when the space usage meets the preset cleaning conditions, content evaluation is performed on multiple files in the monitored disk based on the preset evaluation criteria to obtain evaluation results of the multiple files.

[0056] In some possible implementations, the determination module 502 is further used to classify the multiple files to obtain multiple classified files when the space usage meets the preset cleaning condition; determine the content information of the multiple classified files; and evaluate the content information based on the preset evaluation criteria to obtain the evaluation results of the multiple classified files.

[0057] In some possible implementations, the determination module 502 is further configured to obtain file types corresponding to the multiple classified files respectively; and determine preset evaluation criteria that match the multiple classified files based on the file types.

[0058] In some possible implementations, the determination module 502 is further configured to obtain access frequencies, spatial information, and time information of the multiple classified files; and determine the access frequencies, spatial information, and time information as the content information.

[0059] In some possible implementations, the determination module 502 is further configured to compare the preset evaluation criteria with the content information to obtain a comparison result; and determine the comparison result as an evaluation result of the multiple classified files.

[0060] In some possible implementations, the cleaning module 504 is further configured to obtain feedback information on the disk to be monitored that has cleaned the target file; and adjust the preset cleaning condition based on the feedback information.

[0061] In some possible implementations, the cleaning module 504 is further configured to obtain a preset whitelist including file names; if the file name of the target file is not included in the preset whitelist, the target file is cleaned.

[0062] In some possible implementations, the cleaning module 504 is further used to generate and output prompt information based on the target file; wherein the prompt information is used to prompt whether to clean the target file; and upon receiving the input confirmation information, the target file is cleaned.

[0063] Optionally, the transmission medium can be a wired link (such as but not limited to coaxial cable, optical fiber and digital subscriber line (DSL), etc.) or a wireless link (such as but not limited to wireless Fidelity (WIFI), Bluetooth and mobile device network, etc.). It should be noted that the system provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the method embodiments provided in the above embodiments belong to the same concept. The specific implementation process is detailed in the method embodiments, which will not be repeated here.

[0064] Figure 6 is a schematic diagram of the structure of a computer device provided by an embodiment of the present invention. Figure 6 As shown, the computer device 600 includes: a memory 601, a processor 602, and a computer program 603 stored in the memory 601 and running on the processor 602, wherein when the processor 602 executes the computer program 603, the computer device can execute any one of the automatic disk space cleaning methods described above.

[0065] In addition, an embodiment of the present invention also protects a system, which may include a memory and a processor, wherein an executable program code is stored in the memory, and the processor is used to call and execute the executable program code to perform an automatic disk space cleaning method provided by an embodiment of the present invention. This embodiment can divide the system into functional modules according to the above method example. For example, it can correspond to each functional module, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic, which is only a logical function division, and there may be other division methods in actual implementation. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.

[0066] It should be understood that the system provided in this embodiment is used to execute the above-mentioned method for automatically cleaning up disk space, so the same effect as the above-mentioned implementation method can be achieved. In the case of an integrated unit, the system may include a processing module and a storage module. Among them, when the system is applied to a device, the processing module can be used to control and manage the actions of the device. The storage module can be used to support the device to execute mutual program codes, etc. Among them, the processing module can be a processor or a controller, which can implement or execute various exemplary logical boxes, modules and circuits described in combination with the contents disclosed in the present invention. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc., and the storage module can be a memory.

[0067] In addition, the system provided by the embodiment of the present invention may be a chip, a component or a module, and the chip may include a connected processor and a memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip may execute a method for automatically cleaning up disk space provided by the above embodiment. This embodiment also provides a computer-readable storage medium, in which a computer program code is stored, and when the computer program code is run on a computer, the computer executes the above-mentioned related method steps to implement a method for automatically cleaning up disk space provided by the above embodiment.

[0068] This embodiment also provides a computer program product. When the computer program product is run on a computer, the computer executes the above-mentioned related steps to implement a method for automatically cleaning up disk space provided in the above embodiment. Among them, the system, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here. Through the description of the above implementation mode, the technicians in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual application, the above-mentioned function allocation can be completed by different functional modules as needed, that is, the internal structure of the system is divided into different functional modules to complete all or part of the functions described above. In the embodiments provided by the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the system embodiment described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, system or unit, which may be electrical, mechanical or other forms.

[0069] It should be noted that the sequence of the above-mentioned embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The process depicted in the accompanying drawings does not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multi-task processing and parallel processing are also possible or may be advantageous. The various embodiments in this specification are described in a progressive manner, and the same and similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments. The above content is only a specific implementation method of the present invention, but the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered within the protection scope of the present invention.

Claims

1. A method for automatically cleaning up disk space, characterized in that: The method comprises: Get the space usage of the disk to be monitored; Based on the space usage and preset evaluation criteria, determining evaluation results of the plurality of files in the disk to be monitored; Among the multiple files, select a target file whose evaluation result meets a preset evaluation condition; In the disk to be monitored, the target file is cleaned up.

2. The method for automatically cleaning up disk space according to claim 1, characterized in that: The step of determining evaluation results of the plurality of files in the to-be-monitored disk based on the space usage and a preset evaluation standard includes: Determine whether the space usage meets the preset cleaning condition; In the case where the space usage meets the preset cleaning condition, content evaluation is performed on the multiple files in the to-be-monitored disk based on the preset evaluation standard to obtain evaluation results of the multiple files.

3. The method for automatically cleaning up disk space according to claim 2, characterized in that: When the space usage satisfies the preset cleaning condition, content evaluation is performed on multiple files in the to-be-monitored disk based on the preset evaluation criteria to obtain evaluation results of the multiple files, including: When the space usage satisfies the preset cleaning condition, classifying the multiple files to obtain multiple classified files; determining content information of the plurality of classified files; The content information is evaluated based on the preset evaluation criteria to obtain evaluation results of the multiple classified files.

4. The method for automatically cleaning up disk space according to claim 3, characterized in that: The method further comprises: Obtaining file types corresponding to the plurality of classified files respectively; Based on the file type, a preset evaluation criterion is determined to match the plurality of classified files.

5. The method for automatically cleaning up disk space according to claim 3, characterized in that: The determining content information of the plurality of classified files comprises: Acquire access frequency, spatial information and time information of the plurality of classified files; The access frequency, spatial information and time information are determined as the content information.

6. The method for automatically cleaning up disk space according to claim 3, characterized in that: The step of evaluating the content information based on the preset evaluation criteria to obtain evaluation results of the plurality of classified files includes: Comparing the preset evaluation criteria with the content information to obtain a comparison result; The comparison result is determined as the evaluation result of the multiple classified files.

7. The method for automatically cleaning up disk space according to claim 1, characterized in that: After the target file is cleaned up in the disk to be monitored, the method further includes: Obtaining feedback information on the disk to be monitored that has cleaned the target file; Based on the feedback information, the preset cleaning condition is adjusted.

8. The method for automatically cleaning up disk space according to claim 1, characterized in that: The step of cleaning up the target file in the disk to be monitored includes: Get the preset whitelist list including file names; If the file name of the target file is not included in the preset whitelist, the target file is cleaned up.

9. The method for automatically cleaning up disk space according to claim 1, characterized in that: The step of cleaning up the target file in the disk to be monitored includes: Based on the target file, generate and output prompt information; wherein the prompt information is used to prompt whether to clean up the target file; When the input confirmation information is received, the target file is cleaned up.

10. A disk space automatic cleaning system, characterized in that: The system comprises: An acquisition module is used to obtain the space usage of the disk to be monitored; A determination module, used to determine the evaluation results of the plurality of files in the to-be-monitored disk based on the space usage and a preset evaluation standard; A selection module, used for selecting a target file whose evaluation result meets a preset evaluation condition among the multiple files; The cleaning module is used to clean up the target file in the disk to be monitored.