CN105260438A - File management method and electronic device - Google Patents

File management method and electronic device Download PDF

Info

Publication number
CN105260438A
CN105260438A CN201510643042.1A CN201510643042A CN105260438A CN 105260438 A CN105260438 A CN 105260438A CN 201510643042 A CN201510643042 A CN 201510643042A CN 105260438 A CN105260438 A CN 105260438A
Authority
CN
China
Prior art keywords
file
files
junk
change information
changed
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.)
Pending
Application number
CN201510643042.1A
Other languages
Chinese (zh)
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510643042.1A priority Critical patent/CN105260438A/en
Publication of CN105260438A publication Critical patent/CN105260438A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a file management method and an electronic device. The method comprises: after acquiring first state information of a file system at a current time point and second state information of the file system at a previous time point, comparing the first state information with the second state information to obtain at least one piece of file change information; and determining at least one changed file based on the file change information so as to obtain a junk file and clean the junk file. Namely, according to the method provided by the present invention, the files changed at the current time point relative to the previous time point can be automatically determined according to the file change information, and the junk file can be identified from the changed files, so that the electronic device can automatically analyze and identify the files in the system running process, and thus, the electronic device does not need to use third-party software to carry out full scanning on a storage space, thereby increasing the cleanup speed. Moreover, according to the technical scheme provided by the present invention, no help from third-party software is needed, and no manual intervention of an operator is needed, thereby intelligentizing the electronic device.

Description

File management method and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a file management method and an electronic device.
Background
At present, the number of applications installed on electronic equipment is gradually increased, but due to the fact that application development is not standardized, a large number of files can be stored in a storage space of the electronic equipment after the applications are operated for a period of time, and the storage space of the electronic equipment can be reduced due to the fact that the files cannot be cleaned in time after the files are used. Therefore, third-party software, namely a cleaning tool, is installed in the electronic equipment, and the garbage files or temporary files in the storage space are cleaned through the file cleaning function of the cleaning tool so as to reduce the number of files in the storage space. The process of cleaning the storage space through the file cleaning function of the cleaning tool is as follows:
after the electronic equipment receives a request for triggering a file cleaning function, the electronic equipment firstly scans the storage space completely for one time, compares the file information obtained by scanning with the file information in the existing cleaning file library to obtain the file information needing to be cleaned, and displays the file information needing to be cleaned on an interactive interface of the electronic equipment so as to confirm whether to clean or not by an operation body.
Therefore, in the prior art, the electronic device can complete file cleaning only by depending on third-party software, and the third-party software needs to perform full-disk scanning on the storage space, but the time consumption of the full-disk scanning is long, so that the cleaning rate is reduced.
Disclosure of Invention
In view of this, the present invention provides a file management method and an electronic device, so as to reduce the dependency of the electronic device on third-party software and improve the cleaning speed. The technical scheme is as follows:
in a first aspect, the present invention provides a file management method, including:
acquiring first state information of a file system at a current time point and second state information of a previous time point;
comparing the first state information with the second state information to obtain at least one piece of file change information, wherein the file change information is used for indicating the change condition of the file system at the current time point relative to the last time point;
determining at least one changed file based on the at least one piece of file change information;
identifying the at least one changed file to obtain at least one junk file;
and cleaning the at least one junk file.
Preferably, the determining at least one changed file based on the at least one piece of file change information includes:
determining files corresponding to each piece of file change information one by one;
determining files with different file names from files corresponding to each piece of file change information one by one, wherein the files with different file names are changed files.
Preferably, when files with the same file name exist in the files corresponding to each piece of file change information one-to-one, the file size of each file with the same file name is obtained;
and when the file sizes of the files with the same file name are inconsistent, determining the files with the inconsistent file sizes and the files with the same file name as the changed files.
Preferably, the identifying the at least one changed file to obtain at least one junk file includes:
and determining the file with the file suffix name belonging to the preset suffix name set as a junk file from the file suffix name corresponding to the at least one changed file.
Preferably, when the file suffix name does not belong to a predetermined suffix name set, displaying a file whose file suffix name does not belong to the predetermined suffix name set in a display unit of the electronic device;
receiving a selection operation of an operation body for a file in the display unit;
and determining the file selected by the selection operation as a junk file.
Preferably, the clearing the at least one junk file comprises: after determining the junk files, directly and automatically deleting the junk files;
or,
the cleaning the at least one junk file comprises: and deleting the junk files after the running condition of the electronic equipment meets the cleaning condition.
Preferably, the determining at least one changed file based on the at least one piece of file change information includes:
determining files corresponding to the file change information one by one;
determining N storage paths from the storage paths of the files corresponding to each piece of file change information one by one; wherein N is an integer greater than or equal to 1, and each of the N storage paths is different from each other;
and respectively taking the N folders corresponding to the N storage paths as changed files.
Preferably, the identifying the at least one changed file to obtain at least one junk file includes:
determining a folder whose folder name belongs to a first predetermined folder name set from folder names corresponding to the at least one changed folder;
folders whose folder names belong to a first predetermined folder name set are regarded as junk files.
Preferably, the clearing the at least one junk file comprises:
deleting a part of folders which are junk files, and displaying the rest of folders on a display unit of the electronic equipment; wherein the folder names of the remaining folders belong to a second set of predetermined folder names;
receiving a deleting operation of an operation body for the residual folders;
and deleting the residual folders according to the deleting operation.
In a second aspect, the present invention also provides an electronic device, including: the file system comprises a shell, a display unit and a processor, wherein the processor is used for acquiring first state information of the file system at the current time point and second state information of the file system at the last time point, comparing the first state information with the second state information to obtain at least one piece of file change information, determining at least one changed file based on the at least one piece of file change information, identifying the at least one changed file to obtain at least one junk file, and cleaning the at least one junk file, and the file change information is used for indicating the change condition of the file system at the current time point relative to the last time point.
Preferably, the processor is configured to:
determining files corresponding to each piece of file change information one by one, and determining files with different file names from the files corresponding to each piece of file change information one by one, wherein the files with different file names are changed files.
Preferably, the processor is configured to, when a file with the same file name exists in the files corresponding to each piece of file change information one-to-one, obtain a file size of each file with the same file name, and when the file sizes of the files with the same file name are not consistent, determine that the file sizes are not consistent and the files with the same file name are changed.
Preferably, the processor is configured to: and determining the file with the file suffix name belonging to the preset suffix name set as a junk file from the file suffix name corresponding to the at least one changed file.
Preferably, the processor is configured to, when the file suffix name does not belong to a predetermined suffix name set, display a file of which the file suffix name does not belong to the predetermined suffix name set in a display unit of the electronic device, receive a selection operation of an operation body on the file in the display unit, and determine the file selected by the selection operation as a junk file.
Preferably, the processor is configured to: after determining the junk files, directly and automatically deleting the junk files; or deleting the junk files after the running condition of the electronic equipment meets the cleaning condition.
Preferably, the processor is configured to:
determining files corresponding to each piece of file change information one by one, determining N storage paths from the storage paths of the files corresponding to each piece of file change information one by one, and respectively taking N folders corresponding to the N storage paths as changed files, wherein N is an integer greater than or equal to 1, and each storage path in the N storage paths is different from each other.
Preferably, the processor is configured to:
determining folders whose folder names belong to a first preset folder name set from folder names corresponding to the at least one changed folder, and taking the folders whose folder names belong to the first preset folder name set as junk files.
Preferably, the processor is configured to: deleting a part of folders which are junk files, displaying the rest folders on a display unit of the electronic equipment, receiving deletion operation of an operation body on the rest folders, and deleting the rest folders according to the deletion operation, wherein folder names of the rest folders belong to a second preset folder name set.
In a third aspect, the present invention also provides an electronic device, including:
the acquisition module is used for acquiring first state information of the file system at the current time point and second state information of the file system at the previous time point;
the comparison module is used for comparing the first state information with the second state information to obtain at least one piece of file change information, and the file change information is used for indicating the change condition of the file system at the current time point relative to the previous time point;
the determining module is used for determining at least one changed file based on the at least one piece of file change information;
the identification module is used for identifying the at least one changed file to obtain at least one junk file;
and the cleaning module is used for cleaning the at least one junk file.
Compared with the prior art, the technical scheme provided by the invention has the following advantages:
according to the technical scheme provided by the invention, after the first state information of the file system at the current time point and the second state information of the file system at the last time point are obtained, the first state information and the second state information are compared to obtain at least one piece of file change information. Because the file change information can indicate the change condition of the file system at the current time point relative to the last time point, at least one changed file can be determined based on the file change information, and then the at least one changed file is identified to obtain a junk file and the junk file is cleaned.
That is to say, according to the technical scheme provided by the invention, the file with the current time point changed relative to the last time point can be automatically determined according to the file change information, and the junk file can be identified from the changed file, so that the electronic equipment can automatically analyze and identify the file in the system operation process, and thus, the electronic equipment does not need to adopt third-party software to carry out full-disk scanning on the storage space, and the cleaning speed is improved. When the technical scheme provided by the invention is adopted, the electronic equipment does not need the assistance of third-party software and the manual intervention of an operation body, so that the dependence degree of the electronic equipment on the third-party software and the operation body is reduced, and the intellectualization of the electronic equipment is provided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a flowchart of a file management method according to an embodiment of the present invention;
FIG. 2 is another flowchart of a file management method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a file management method according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 5 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The technical solution provided in the embodiment of the present invention can be applied to a plurality of electronic devices, where the electronic devices may be different electronic devices such as a mobile phone, a tablet computer (PAD), a notebook computer, a personal computer (personal computer), and the like, and the specific devices of the electronic devices are not limited in the present invention.
Referring to fig. 1, a flowchart of a file management method according to an embodiment of the present invention includes the following steps:
101: first state information of the file system at the current time point and second state information of the file system at the last time point are obtained. The first status information and the second status information are used for indicating the processed condition of each file at different time points, and the first status information and the second status information can be synchronously recorded by the electronic equipment during the operation of the system.
In this embodiment of the present invention, a plurality of file parameters may be recorded in the first status information and the second status information, where the plurality of file parameters collectively indicate a processed condition of a corresponding file, and as shown in the format of the first status information and the format of the second status information shown in table 1, both the first status information and the second status information include: path name, file type, file name, application display information, related resources, operation type and operation time.
Table 1 information format table of first status information and second status information
File parameters Description of the invention
Storage path Indicating the storage location of documents
File type Identifying source of document
Filename Marking the relationship of the file and the application
Application display information Information to be displayed to a user when performing subsequent processing
Related resources For fast display of data
Type of operation What operation is performed
Time of operation Time for performing operation corresponding to the operation type
The relevant resources may include image resources, video resources, audio resources, and the like, and the corresponding operation types may include: the method comprises the steps of creating a file, creating a folder, deleting the file, deleting the folder, moving the file, moving the folder and other operation types, wherein after the file is operated according to any one of the operation types in the operation process of the system, the electronic equipment records first state information of the processed file by using a file system, namely the parameters of each file.
The points to be explained here are: the current time point and the last time point may be preset time points, that is, the electronic device may preset an information obtaining period to periodically obtain the state information of each file, where the first state information of the current time point is the first state information obtained in the period closest to the current time point, and the second state information of the last time point is the second state information obtained in the previous period of the recent period, where if the first state information of the current time point is the first state information obtained in the ith period, the second state information of the last time point is the second state information obtained in the i-1 th period, where the i-1 th period is the previous period of the ith period, and i is an integer greater than or equal to 2.
If the first state information of the current time point is the first state information of the 1 st period, the second state information of the previous time point is the second state information of each file obtained after the electronic equipment is automatically scanned in a full disk mode after being started, namely the electronic equipment can automatically execute full disk scanning to obtain the second state information after being started, and then the state information of other time points can be periodically obtained, so that the electronic equipment can obtain the file change information of each period based on the first state information and the second state information without performing full disk scanning in each period.
Of course, the current time point and the previous time point may also be set by the electronic device according to the running condition of the electronic device, for example, when the electronic device detects that the file stored in the electronic device is too much, the electronic device may trigger to acquire the first state information, and the corresponding second state information of the previous time point is acquired when the electronic device detects that the file stored in the electronic device is too much at other time.
102: comparing the first state information with the second state information to obtain at least one piece of file change information, where the file change information is used to indicate a change condition of the file system at a current time point relative to a previous time point, for example, the file change information may indicate that a new file is created at the current time point relative to the previous time point.
In the embodiment of the present invention, the electronic device may compare each file parameter in each piece of first state information with each file parameter in each piece of second state information to obtain at least one piece of file change information. Taking the first status information and the second status information shown in table 1 as an example, the process of obtaining the file change information is as follows:
comparing the storage path in each piece of first state information with the storage path in each piece of second state information, and if the storage path in the first state information is different from the storage path in each piece of second state information, obtaining file change information indicating that the storage paths are different;
comparing the file name in each piece of first state information with the file name in each piece of second state information, and if the file name in the first state information is different from the file name in each piece of second state information, obtaining file change information indicating that the file names are different;
if the file name in the first status information is the same as the file name in the second status information, the file sizes of the same file name (the file sizes are recorded in the application display information) may be further compared, and if the file names of the same file name are different, file change information indicating that the file names are the same but the file sizes are different is obtained.
Of course, in addition to the above manner, the embodiment of the present invention may also obtain the file change information based on other information in the first status information and the second status information, such as the operation type. In the case that the first status information and the second status information include other file parameters except the file parameter shown in table 1, the embodiment of the present invention may further obtain the file change information based on comparison of the other file parameters, and the embodiment of the present invention is not further described one by one.
Through the comparison, one or more pieces of file change information can be obtained in the embodiment of the invention. And multiple pieces of state information of the same file can be acquired at different time points, so that the file change information mentioned in the embodiment of the present invention may be one piece of change information for the same file, multiple pieces of change information for the same file, or change information for different files.
For example, three pieces of file change information are obtained, where the three pieces of file change information are file change information 1, file change information 2, and file change information 3, respectively, then the file change information 1 to 3 may all be file change information for the file 1, that is, the obtained file change information is multiple pieces of change information for the same file, and the corresponding multiple pieces of change information for the same file may indicate an operation on the same file, for example, the file change information 1 may indicate that the file 1 is created, the file change information 2 may indicate that the file 1 is modified, and the file change information 3 may indicate that the file 1 is moved. Of course, the three pieces of file change information may also be: the file change information 1-2 is change information for the file 1, and the file change information 3 is change information for the file 2, and at this time, the obtained pieces of file change information are change information for a plurality of files. And operations on files may also be indicated in these file change information.
When the obtained file change information is one, the fact that once one piece of file change information is obtained indicates that the file corresponding to the piece of file change information can be monitored and processed in real time is shown, and timeliness is high.
When the number of the file change information is more than one, it is indicated that the electronic device needs to perform subsequent steps based on the file change information after obtaining the file change information, so that timeliness is reduced. And the electronic equipment can periodically process the obtained multiple pieces of file change information, so that the processing times can be reduced as much as possible, the access frequency to the system can be reduced as much as possible by a batch processing mode, and the occupation of system resources is reduced.
103: and determining at least one changed file based on the at least one piece of file change information. In the embodiment of the present invention, the file change information may indicate a change condition of each file at the current time point relative to each file at the previous time point, so that the changed file corresponding to the file change information may be determined based on each piece of file change information.
For example, when the file change information indicates that the storage paths of the files at the current time point and the last time point are different, the file with the different storage paths may be used as the changed file.
When the obtained file change information is information generated according to the change of the same file, only one file which is changed can be determined based on the plurality of pieces of file change information; when each piece of the obtained file change information is information generated according to the change of different files, the changed files with the same number as the file change information are obtained; if part of the obtained file change information is directed to the same file, and each of the remaining file change information is directed to other different files, the number of the obtained changed files is smaller than the number of the file change information.
In the embodiment of the present invention, the changed file may be a changed file itself, or may be a folder for storing a changed file, because when a file stored in a folder is changed, it is naturally also considered that the folder is changed.
104: and identifying at least one changed file to obtain at least one junk file. The junk files are files that need to be cleaned, for example, the junk files may be files that are not used much or are completely useless for the electronic device, such as cache files, log files, temporary files, and uninstall residual files of application programs, and the junk files are generated during the operation of the electronic device, and if the junk files are not cleaned in time, a large amount of storage space of the electronic device is occupied, so that the operation speed of the electronic device is slowed, and the use of the electronic device by an operator is affected.
That is to say, the step 104 is mainly used for screening out the junk files from the changed files to ensure that the electronic device can process the junk files in time, so as to reduce the weight of the system, and further improve the utilization rate of the storage space of the electronic device, improve the running speed and the fluency of the electronic device, and enhance the use experience of the operation body.
In an embodiment of the present invention, one way to identify junk files from at least one changed file is: the identification information of the changed file can be compared with each identification information in the preset garbage base, and when the identification information of the changed file is consistent with each identification information in the preset garbage base, the changed file is determined to be a garbage file, wherein the identification information can be the file name of the changed file.
When the identification information of the changed file is inconsistent with each identification information in the preset garbage library, the file with inconsistent identification information can be displayed in a display unit of the electronic equipment, and whether the file is used as a garbage file or not is determined by an operation body. If the electronic equipment receives the selected operation of the operation body in the display unit, the operation body is explained to select the file corresponding to the selected operation as the junk file.
105: and clearing the junk files. In the embodiment of the invention, the main mode for cleaning the junk files is as follows: and directly deleting the junk files. When the junk files are cleaned, the junk files can be directly deleted after being identified.
Or deleting the junk file after the operation condition of the electronic device meets the cleaning condition, for example, deleting the junk file when the operation time of the electronic device is a preset time, where the preset time is a time obtained according to an operation habit of the operation body on the electronic device, and the operation frequency of the operation body on the electronic device is less or the electronic device is not operated in the preset time, for example, 1 point in the morning. Therefore, the junk files are deleted after the operation condition of the electronic equipment meets the cleaning condition, and the influence of the operation of deleting the junk files on other applications in the electronic equipment can be reduced.
As can be seen from the foregoing technical solutions, in the file management method provided in the embodiments of the present invention, after the first state information of the file system at the current time point and the second state information of the file system at the previous time point are obtained, the first state information is compared with the second state information, so as to obtain at least one piece of file change information. Because the file change information can indicate the change condition of the file system at the current time point relative to the last time point, at least one changed file can be determined based on the file change information, and then the at least one changed file is identified to obtain a junk file and the junk file is cleaned.
That is to say, according to the technical scheme provided by the invention, the file with the current time point changed relative to the last time point can be automatically determined according to the file change information, and the junk file can be identified from the changed file, so that the electronic equipment can automatically analyze and identify the file in the system operation process, and thus, the electronic equipment does not need to adopt third-party software to carry out full-disk scanning on the storage space, and the cleaning speed is improved. When the technical scheme provided by the invention is adopted, the electronic equipment does not need the assistance of third-party software and the manual intervention of an operation body, so that the dependence degree of the electronic equipment on the third-party software and the operation body is reduced, and the intellectualization of the electronic equipment is provided.
The following will describe the process of determining a changed file and identifying the file based on file change information by taking a file name and a storage path as examples, but the file management method provided by the embodiment of the present invention is not limited to two modes, namely, the file name and the storage path.
Referring to fig. 2, another flowchart of a file management method according to an embodiment of the present invention is shown, where the method includes:
201: first state information of the file system at the current time point and second state information of the file system at the last time point are obtained.
202: and comparing the first state information with the second state information to obtain at least one piece of file change information, wherein the file change information is used for indicating the change condition of the file system at the current time point relative to the last time point.
In the embodiment of the present invention, the process from step 201 to step 202: the embodiment of the present invention is not described again, as in the above steps 101 to 102.
203: and determining files corresponding to each piece of file change information one by one. In the embodiment of the present invention, the changed file refers to the file itself, and different files can be distinguished and identified by file names. Since the obtained file change information may be for one file or a plurality of files, the number of files that are finally determined to have changed is equal to or less than the number of pieces of file change information.
204: files with different file names are determined from the files corresponding to each piece of file change information one-to-one, and step 207 is executed if the files with different file names are changed files.
205: and when the files with the same file names exist in the files corresponding to each piece of file change information one by one, acquiring the file sizes of the files with the same file names.
206: when the file sizes of the files with the same file name are inconsistent, the file sizes are inconsistent, and the files with the same file name are determined as changed files. Since the file size inconsistency indicates that the same file is subjected to corresponding operations at different time points, and the file itself changes, the file is determined to be a changed file when the file names are the same and the file sizes are different.
207: and determining the file with the file suffix name belonging to the preset suffix name set as a junk file from the file suffix name corresponding to at least one changed file.
That is, when the changed file is the file itself, the file whose file name belongs to the predetermined suffix name set can be screened out as a junk file by identifying the suffix name of the file.
As is well known to those skilled in the art, a junk file may have a specific file suffix name, such as a file suffix name of log belonging to a log file, a file suffix name of tmp belonging to a temporary file, and a file suffix name of chk belonging to a disk check file, which are all considered junk files, and the file suffix name of the junk file, which has been determined by those skilled in the art, may be stored in a predetermined set of suffix names.
In the identification, the file suffix of the changed file may be directly detected as being matched with each file suffix in the predetermined suffix set, and the file whose file suffix belongs to the predetermined suffix set may be determined as a junk file.
208: and clearing the junk files. In the embodiment of the invention, the main mode for cleaning the junk files is as follows: and directly deleting the junk files. When the junk files are cleaned, the junk files can be directly deleted after being identified.
Or deleting the junk file after the operation condition of the electronic device meets the cleaning condition, for example, deleting the junk file when the operation time of the electronic device is a preset time, where the preset time is a time obtained according to an operation habit of the operation body on the electronic device, and the operation frequency of the operation body on the electronic device is less or the electronic device is not operated in the preset time, for example, 1 point in the morning. Therefore, the junk files are deleted after the operation condition of the electronic equipment meets the cleaning condition, and the influence of the operation of deleting the junk files on other applications in the electronic equipment can be reduced.
According to the technical scheme, the file management method provided by the embodiment of the invention can determine the changed file based on the file name and size in the file change information, and further determine the junk file based on the file name suffix, so that the electronic equipment can automatically analyze and identify the file in the system operation process, and the electronic equipment does not need to adopt third-party software to perform full-disk scanning on the storage space, thereby improving the cleaning speed.
When the suffix name of the file does not belong to the predetermined suffix name set, the file management method provided by the embodiment of the invention can also display the file of which the suffix name does not belong to the predetermined suffix name set in the display unit of the electronic device, receive the selection operation of the operation body on the file in the display unit, and determine the file selected by the selection operation as a junk file, so that the electronic device can delete more junk files at one time and improve the cleaning speed.
Referring to fig. 3, a flowchart of a file management method according to another embodiment of the present invention is shown, where the method includes the following steps:
301: and acquiring first state information of the current time point and second state information of the previous time point.
302: and comparing the first state information with the second state information to obtain at least one piece of file change information, wherein the file change information is used for indicating the change condition of the file system at the current time point relative to the last time point.
In the embodiment of the present invention, the process from step 301 to step 302: the embodiment of the present invention is not described again, as in the above steps 101 to 102.
303: and determining files corresponding to each piece of file change information one by one.
304: and determining N storage paths from the storage paths of the files corresponding to each piece of file change information one by one. Wherein, N is an integer greater than or equal to 1, and each of the N storage paths is different from each other.
305: and respectively taking the N folders corresponding to the N storage paths as changed files.
When the file change information indicates that the storage paths are the same, the determination may be further performed based on the sizes of the folders indicated in the file change information, and if the file change information indicates that the sizes of the folders stored in the same storage path are changed, the folders having the same storage paths but different sizes may also be determined as changed files.
306: from the folder names corresponding to the at least one changed folder, a folder whose folder name belongs to a first predetermined folder name set is determined.
That is, when a file of the N files is a folder including a file that has changed, a folder whose folder name belongs to the first predetermined folder name set can be screened out by identifying the folder name of the folder.
For an application program in an electronic device, a fixed folder is generally used for storing various corresponding operating files, for example, taking application a as an example, the application program includes an "application a monitoring log" folder, an "application a temporary cache" folder, an "application a login log" folder, an "application a application center picture cache" folder, an "application a picture cache" folder, and the like. The electronic device may then store these folder names in a first set of predetermined folder names, i.e. folder names belonging to junk files in the first set of predetermined folder names.
When the changed folders are identified, the folder names of the N folders and each folder name in the first preset folder name set can be directly matched and detected, and then the folder of which the folder name belongs to the first preset folder name set can be identified from the N folders.
307: folders whose folder names belong to a first predetermined folder name set are regarded as junk files.
308: a part of folders that are junk files is deleted and the remaining folders are displayed on a display unit of the electronic device. The folder names of the remaining folders belong to a second preset folder name set, and the folder names in the second preset folder name set can be the folder names which are preset by the operation body or are already set before the electronic equipment leaves the factory and used for indicating files possibly being the operation body, so that the deleting accuracy can be improved, and the loss of useful files caused by mistaken deletion can be avoided as much as possible.
The folder directly deleted in the embodiment of the present invention may be a folder determined as a junk file without any doubt, and the folder that may be useful for the operator is displayed on the display unit and then manually deleted by the operator.
Files included in folders such as DCIM (photo) folders, PIC (picture) folders, DOC (document) folders and VIDEO folders are generally files useful for the operator, so when the folders are included in junk files, the junk folders can be displayed to the operator, and after the operator checks such folders, the operator can select whether to delete according to actual needs.
309: and receiving the deletion operation of the operation body on the residual folders.
310: and deleting the rest folders according to the deleting operation.
According to the technical scheme, the file management method provided by the embodiment of the invention can determine the changed files based on the storage path in the file change information and even in combination with the file size, and further determine the junk files based on the file name suffix, so that the electronic equipment can automatically analyze and identify the files in the system operation process, and the electronic equipment does not need to adopt third-party software to carry out full-disk scanning on the storage space, thereby improving the cleaning speed. When the files are deleted, the files which are determined to be the garbage files can be automatically deleted, the files which cannot be unambiguously determined to be the garbage files are displayed in a display unit of the electronic equipment, and whether the files are deleted or not is determined by an operation body, so that the probability of mistaken deletion of the files is reduced.
For simplicity of explanation, the foregoing method embodiments are described as a series of acts or combinations, but those skilled in the art will appreciate that the present application is not limited by the order of acts, as some steps may occur in other orders or concurrently with other steps based on the disclosure herein. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Corresponding to the above method embodiment, an embodiment of the present invention further provides an electronic device, a schematic structural diagram of which is shown in fig. 4, and the electronic device may include: a housing 11, a display unit 12 and a processor (not shown in the figure), wherein the display unit 12 and the processor are arranged in the housing 11.
The processor is configured to obtain first state information of the file system at a current time point and second state information of the file system at a previous time point, compare the first state information with the second state information to obtain at least one piece of file change information, determine at least one changed file based on the at least one piece of file change information, identify the at least one changed file to obtain at least one junk file, and clear the at least one junk file, where the file change information is used to indicate a change situation of the file system at the current time point relative to the previous time point.
The processor may be a general-purpose Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits for controlling program execution.
Further, the electronic device may further include a memory, and the number of the memories may be one or more. The memory may include a Read Only Memory (ROM), a Random Access Memory (RAM), or a disk memory, and the memory is configured to store first state information of each file at a current time point and second state information of each file at a previous time point.
Optionally, the processor may compare the file parameters in each piece of first state information with the file parameters in each piece of second state information to obtain at least one piece of file change information. Taking the first status information and the second status information shown in table 1 as an example, the process of obtaining the file change information is as follows:
comparing the storage path in each piece of first state information with the storage path in each piece of second state information, and if the storage path in the first state information is different from the storage path in each piece of second state information, obtaining file change information indicating that the storage paths are different;
comparing the file name in each piece of first state information with the file name in each piece of second state information, and if the file name in the first state information is different from the file name in each piece of second state information, obtaining file change information indicating that the file names are different;
if the file name in the first status information is the same as the file name in the second status information, the file sizes of the same file name (the file sizes are recorded in the application display information) may be further compared, and if the file names of the same file name are different, file change information indicating that the file names are the same but the file sizes are different is obtained.
Of course, in addition to the above manner, the embodiment of the present invention may also obtain the file change information based on other information in the first status information and the second status information, such as the operation type. In the case that the first status information and the second status information include other file parameters except the file parameter shown in table 1, the embodiment of the present invention may further obtain the file change information based on comparison of the other file parameters, and the embodiment of the present invention is not further described one by one.
The way in which the processor determines the changed file based on the file change information and identifies the junk file includes, but is not limited to, the following two ways:
one way is that: and the processor is used for determining the files corresponding to each piece of file change information one by one, and determining the files with different file names from the files corresponding to each piece of file change information one by one, wherein the files with different file names are changed files.
Further, when files with the same file name exist in the files corresponding to each piece of file change information one by one, the file size of each file with the same file name is obtained, and when the file sizes of the files with the same file name are inconsistent, the file sizes are inconsistent, and each file with the same file name is determined as a changed file.
The changed file can be identified as the file itself based on the file name and the size, in which case the processor can identify the junk file by means of a file suffix, specifically, the processor determines the file with the file suffix belonging to a predetermined suffix set as the junk file from the file suffix corresponding to at least one changed file.
If the suffix name of the file does not belong to the preset suffix name set, the processor can display the file of which the suffix name does not belong to the preset suffix name set in a display unit of the electronic equipment, receive the selection operation of the operation body on the file in the display unit, and determine the file selected by the selection operation as a junk file, so that the electronic equipment can delete more junk files at one time, and the cleaning speed is improved.
After identifying the junk file, the processor may directly and automatically delete the junk file, or delete the junk file after the operation status of the electronic device meets the cleaning condition, for example, delete the junk file when the operation time of the electronic device is a preset time, where the preset time is a time obtained according to an operation habit of the operation body on the electronic device, and the operation frequency of the operation body on the electronic device is low or the electronic device is not operated in the preset time, such as 1 point in the morning. Therefore, the junk files are deleted after the operation condition of the electronic equipment meets the cleaning condition, and the influence of the operation of deleting the junk files on other applications in the electronic equipment can be reduced.
The other mode is as follows: the processor is configured to: determining files corresponding to each piece of file change information one by one, determining N storage paths from the storage paths of the files corresponding to each piece of file change information one by one, and respectively taking N folders corresponding to the N storage paths as changed files, wherein N is an integer greater than or equal to 1, and each storage path in the N storage paths is different from each other.
When the file change information indicates that the storage paths are the same, the processor may further perform a determination based on the folder size indicated in the file change information, and if the file change information indicates that the sizes of the folders stored in the same storage path are changed, the folders having the same storage path but different sizes may also be determined as changed files.
The changed files may be identified as folders based on the storage path and size, in which case the processor may determine folders whose folder names belong to a first predetermined folder name set from among the folder names corresponding to at least one changed folder, and may treat the folders whose folder names belong to the first predetermined folder name set as junk files.
The further processor may delete a part of the folders which are junk files, display the remaining folders on a display unit of the electronic device, receive a deletion operation of the operating body with respect to the remaining folders, and delete the remaining folders according to the deletion operation, wherein folder names of the remaining folders belong to a second predetermined folder name set. The display unit may be a Light Emitting Diode (LED) display screen, an Organic Light Emitting Diode (OLED) display screen, an Active Matrix Organic Light Emitting Diode (AMOLED) display screen, an IPS (In-plane switching) display screen, or the like. The display unit may have a plurality of sides, and the plurality of sides may constitute a rectangular-like shape.
Based on the same inventive concept, an embodiment of the present invention further provides another schematic structural diagram of an electronic device, as shown in fig. 5, which may include: an acquisition module 21, a comparison module 22, a determination module 23, an identification module 24 and a cleaning module 25.
The obtaining module 21 is configured to obtain first state information of the file system at a current time point and second state information of the file system at a previous time point.
The comparison module 22 is configured to compare the first state information with the second state information to obtain at least one piece of file change information, where the file change information is used to indicate a change condition of the file system at a current time point relative to a previous time point.
A determining module 23, configured to determine at least one changed file based on at least one piece of file change information. The manner in which the determination module 23 determines the changed file includes, but is not limited to, the following two manners: the file name determining module is used for determining files corresponding to each piece of file change information one by one, and determining files with different file names from the files corresponding to each piece of file change information one by one, wherein the files with different file names are changed files.
Further, when files with the same file name exist in the files corresponding to each piece of file change information one by one, the file size of each file with the same file name is obtained, and when the file sizes of the files with the same file name are inconsistent, the file sizes are inconsistent, and each file with the same file name is determined as a changed file.
The other mode is as follows: the determination module 23 is configured to: determining files corresponding to each piece of file change information one by one, determining N storage paths from the storage paths of the files corresponding to each piece of file change information one by one, and respectively taking N folders corresponding to the N storage paths as changed files, wherein N is an integer greater than or equal to 1, and each storage path in the N storage paths is different from each other.
When the file change information indicates that the storage paths are the same, the determining module 23 may further perform determination based on the sizes of the folders indicated in the file change information, and if the file change information indicates that the sizes of the folders stored in the same storage path are changed, the folders having the same storage path but different sizes may also be determined as changed files.
And the identifying module 24 is configured to identify at least one changed file to obtain at least one junk file.
And the cleaning module 25 is used for cleaning at least one junk file.
In the case where the changed file is identified as the file itself based on the file name and size, the identifying module 24 may identify the junk file by means of a file suffix, and the specific identifying module 24 determines the file having a file suffix belonging to the predetermined suffix set as the junk file from among the file suffix corresponding to at least one changed file.
If the suffix name of the file does not belong to the predetermined suffix name set, the identification module 24 may display the file whose suffix name does not belong to the predetermined suffix name set in a display unit of the electronic device, receive a selection operation of the operation body for the file in the display unit, and determine the file selected by the selection operation as a junk file, so that the electronic device may delete more junk files at one time, and improve the cleaning speed.
After identifying the junk file, the cleaning module 25 may directly and automatically delete the junk file, or delete the junk file after the operation status of the electronic device meets the cleaning condition, for example, delete the junk file when the operation time of the electronic device is a preset time, where the preset time is a time obtained according to an operation habit of the operation body on the electronic device, and the operation frequency of the operation body on the electronic device is less or no operation is performed on the electronic device in the preset time, such as 1 am. Therefore, the junk files are deleted after the operation condition of the electronic equipment meets the cleaning condition, and the influence of the operation of deleting the junk files on other applications in the electronic equipment can be reduced.
In the case where the changed file can be identified as a folder based on the storage path and the size, the identification module 24 may determine a folder whose folder name belongs to the first predetermined folder name set from among folder names corresponding to at least one changed folder, and may take the folder whose folder name belongs to the first predetermined folder name set as a junk file.
The cleaning module 25 may delete a part of folders as junk files, display the remaining folders on the display unit of the electronic device, receive a deletion operation performed by the operator for the remaining folders, and delete the remaining folders according to the deletion operation, where folder names of the remaining folders belong to a second predetermined folder name set. The display unit may be a light emitting diode display, an organic light emitting diode display, an active matrix organic light emitting diode display, an IPS display, or the like. The display unit may have a plurality of sides, and the plurality of sides may constitute a rectangular-like shape.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a ROM (Read-only memory), a RAM (random access memory), a magnetic disk, and an optical disk.
Specifically, the computer program instructions corresponding to an information processing method in the embodiment of the present invention may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, or the like, and when the computer program instructions corresponding to an information processing method in the storage medium are read or executed by an electronic device, the method includes the steps of:
acquiring first state information of a file system at a current time point and second state information of a previous time point;
comparing the first state information with the second state information to obtain at least one piece of file change information, wherein the file change information is used for indicating the change condition of the file system at the current time point relative to the last time point;
determining at least one changed file based on the at least one piece of file change information;
identifying the at least one changed file to obtain at least one junk file;
and cleaning the at least one junk file.
Preferably, the determining at least one changed file based on the at least one piece of file change information includes:
determining files corresponding to each piece of file change information one by one;
determining files with different file names from files corresponding to each piece of file change information one by one, wherein the files with different file names are changed files.
Preferably, when files with the same file name exist in the files corresponding to each piece of file change information one-to-one, the file size of each file with the same file name is obtained;
and when the file sizes of the files with the same file name are inconsistent, determining the files with the inconsistent file sizes and the files with the same file name as the changed files.
Preferably, the identifying the at least one changed file to obtain at least one junk file includes:
and determining the file with the file suffix name belonging to the preset suffix name set as a junk file from the file suffix name corresponding to the at least one changed file.
Preferably, when the file suffix name does not belong to a predetermined suffix name set, displaying a file whose file suffix name does not belong to the predetermined suffix name set in a display unit of the electronic device;
receiving a selection operation of an operation body for a file in the display unit;
and determining the file selected by the selection operation as a junk file.
Preferably, the clearing the at least one junk file comprises: after determining the junk files, directly and automatically deleting the junk files;
or,
the cleaning the at least one junk file comprises: and deleting the junk files after the running condition of the electronic equipment meets the cleaning condition.
Preferably, the determining at least one changed file based on the at least one piece of file change information includes:
determining files corresponding to the file change information one by one;
determining N storage paths from the storage paths of the files corresponding to each piece of file change information one by one; wherein N is an integer greater than or equal to 1, and each of the N storage paths is different from each other.
And respectively taking the N folders corresponding to the N storage paths as changed files.
Preferably, the identifying the at least one changed file to obtain at least one junk file includes:
determining a folder whose folder name belongs to a first predetermined folder name set from folder names corresponding to the at least one changed folder;
folders whose folder names belong to a first predetermined folder name set are regarded as junk files.
Preferably, the clearing the at least one junk file comprises:
deleting a part of folders which are junk files, and displaying the rest of folders on a display unit of the electronic equipment; wherein the folder names of the remaining folders belong to a second set of predetermined folder names;
receiving a deleting operation of an operation body for the residual folders;
and deleting the residual folders according to the deleting operation.
The foregoing describes in detail a file management method and an electronic device provided by the present invention, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the foregoing embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (19)

1. A method of file management, the method comprising:
acquiring first state information of a file system at a current time point and second state information of a previous time point;
comparing the first state information with the second state information to obtain at least one piece of file change information, wherein the file change information is used for indicating the change condition of the file system at the current time point relative to the last time point;
determining at least one changed file based on the at least one piece of file change information;
identifying the at least one changed file to obtain at least one junk file;
and cleaning the at least one junk file.
2. The method according to claim 1, wherein the determining at least one changed file based on the at least one piece of file change information comprises:
determining files corresponding to each piece of file change information one by one;
determining files with different file names from files corresponding to each piece of file change information one by one, wherein the files with different file names are changed files.
3. The method according to claim 2, characterized in that when files having the same file name exist in the files one-to-one corresponding to each piece of file change information, the file sizes of the respective files having the same file name are obtained;
and when the file sizes of the files with the same file name are inconsistent, determining the files with the inconsistent file sizes and the files with the same file name as the changed files.
4. The method of claim 3, wherein identifying the at least one changed file to obtain at least one junk file comprises:
and determining the file with the file suffix name belonging to the preset suffix name set as a junk file from the file suffix name corresponding to the at least one changed file.
5. The method according to claim 4, characterized in that when the file suffix name does not belong to a predetermined suffix name set, a file whose file suffix name does not belong to the predetermined suffix name set is displayed in a display unit of an electronic device;
receiving a selection operation of an operation body for a file in the display unit;
and determining the file selected by the selection operation as a junk file.
6. The method of claim 5, wherein the cleaning the at least one junk file comprises: after determining the junk files, directly and automatically deleting the junk files;
or,
the cleaning the at least one junk file comprises: and deleting the junk files after the running condition of the electronic equipment meets the cleaning condition.
7. The method according to claim 1, wherein said determining at least one changed file based on said at least one piece of file change information comprises:
determining files corresponding to the file change information one by one;
determining N storage paths from the storage paths of the files corresponding to each piece of file change information one by one; wherein N is an integer greater than or equal to 1, and each of the N storage paths is different from each other;
and respectively taking the N folders corresponding to the N storage paths as changed files.
8. The method of claim 7, wherein the identifying the at least one changed file to obtain at least one junk file comprises:
determining a folder whose folder name belongs to a first predetermined folder name set from folder names corresponding to the at least one changed folder;
folders whose folder names belong to a first predetermined folder name set are regarded as junk files.
9. The method of claim 8, wherein the cleaning the at least one junk file comprises:
deleting a part of folders which are junk files, and displaying the rest of folders on a display unit of the electronic equipment; wherein the folder names of the remaining folders belong to a second set of predetermined folder names;
receiving a deleting operation of an operation body for the residual folders;
and deleting the residual folders according to the deleting operation.
10. An electronic device, characterized in that the electronic device comprises:
a housing;
a display unit;
a processor to: the method comprises the steps of obtaining first state information of a file system at a current time point and second state information of a previous time point, comparing the first state information with the second state information to obtain at least one piece of file change information, determining at least one changed file based on the at least one piece of file change information, identifying the at least one changed file to obtain at least one junk file, and cleaning the at least one junk file, wherein the file change information is used for indicating the change condition of the file system at the current time point relative to the previous time point.
11. The electronic device of claim 10, wherein the processor is configured to:
determining files corresponding to each piece of file change information one by one, and determining files with different file names from the files corresponding to each piece of file change information one by one, wherein the files with different file names are changed files.
12. The electronic device according to claim 11, wherein the processor is configured to, when a file with the same file name exists in the files corresponding to each piece of file change information one-to-one, obtain a file size of each file with the same file name, and when the file sizes of the files with the same file name are not consistent, determine that the file sizes are not consistent and each file with the same file name is a changed file.
13. The electronic device of claim 10, wherein the processor is configured to: and determining the file with the file suffix name belonging to the preset suffix name set as a junk file from the file suffix name corresponding to the at least one changed file.
14. The electronic device according to claim 13, wherein the processor is configured to, when the file suffix name does not belong to a predetermined suffix name set, display a file of which the file suffix name does not belong to the predetermined suffix name set in a display unit of the electronic device, receive a selection operation of an operator for a file in the display unit, and determine the file selected by the selection operation as a junk file.
15. The electronic device of claim 14, wherein the processor is configured to: after determining the junk files, directly and automatically deleting the junk files; or deleting the junk files after the running condition of the electronic equipment meets the cleaning condition.
16. The electronic device of claim 10, wherein the processor is configured to:
determining files corresponding to each piece of file change information one by one, determining N storage paths from the storage paths of the files corresponding to each piece of file change information one by one, and respectively taking N folders corresponding to the N storage paths as changed files, wherein N is an integer greater than or equal to 1, and each storage path in the N storage paths is different from each other.
17. The electronic device of claim 16, wherein the processor is configured to:
determining folders whose folder names belong to a first preset folder name set from folder names corresponding to the at least one changed folder, and taking the folders whose folder names belong to the first preset folder name set as junk files.
18. The electronic device of claim 17, wherein the processor is configured to: deleting a part of folders which are junk files, displaying the rest folders on a display unit of the electronic equipment, receiving deletion operation of an operation body on the rest folders, and deleting the rest folders according to the deletion operation, wherein folder names of the rest folders belong to a second preset folder name set.
19. An electronic device, characterized in that the electronic device comprises:
the acquisition module is used for acquiring first state information of the file system at the current time point and second state information of the file system at the previous time point;
the comparison module is used for comparing the first state information with the second state information to obtain at least one piece of file change information, and the file change information is used for indicating the change condition of the file system at the current time point relative to the previous time point;
the determining module is used for determining at least one changed file based on the at least one piece of file change information;
the identification module is used for identifying the at least one changed file to obtain at least one junk file;
and the cleaning module is used for cleaning the at least one junk file.
CN201510643042.1A 2015-09-30 2015-09-30 File management method and electronic device Pending CN105260438A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510643042.1A CN105260438A (en) 2015-09-30 2015-09-30 File management method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510643042.1A CN105260438A (en) 2015-09-30 2015-09-30 File management method and electronic device

Publications (1)

Publication Number Publication Date
CN105260438A true CN105260438A (en) 2016-01-20

Family

ID=55100129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510643042.1A Pending CN105260438A (en) 2015-09-30 2015-09-30 File management method and electronic device

Country Status (1)

Country Link
CN (1) CN105260438A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106855887A (en) * 2016-12-26 2017-06-16 努比亚技术有限公司 A kind of method of file management, device and terminal
CN107025269A (en) * 2017-03-07 2017-08-08 广东欧珀移动通信有限公司 A kind of document handling method, device and intelligent terminal
CN107273433A (en) * 2017-05-22 2017-10-20 努比亚技术有限公司 A kind of file scanning method, equipment and computer-readable recording medium
WO2017186029A1 (en) * 2016-04-27 2017-11-02 北京金山安全软件有限公司 Storage-space management method, apparatus, and electronic device
CN107679161A (en) * 2017-09-28 2018-02-09 上海传英信息技术有限公司 The document handling method and electric terminal of electric terminal
CN107885887A (en) * 2017-12-08 2018-04-06 维沃移动通信有限公司 A kind of file memory method and mobile terminal
CN110502486A (en) * 2019-08-21 2019-11-26 中国工商银行股份有限公司 Log processing method, device, electronic equipment and computer readable storage medium
CN112732660A (en) * 2021-01-05 2021-04-30 中国工商银行股份有限公司 Intervention type file transmission method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102654872A (en) * 2011-03-03 2012-09-05 腾讯科技(深圳)有限公司 Method and device for cleaning junk files generated by application programs
CN103838601A (en) * 2013-11-29 2014-06-04 北京奇虎科技有限公司 Junk data cleaning method and device
US20150134913A1 (en) * 2013-11-14 2015-05-14 Cheetah Mobile Inc. Method and apparatus for cleaning files in a mobile terminal and associated mobile terminal
CN104699513A (en) * 2015-03-31 2015-06-10 联想(北京)有限公司 File processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102654872A (en) * 2011-03-03 2012-09-05 腾讯科技(深圳)有限公司 Method and device for cleaning junk files generated by application programs
US20150134913A1 (en) * 2013-11-14 2015-05-14 Cheetah Mobile Inc. Method and apparatus for cleaning files in a mobile terminal and associated mobile terminal
CN103838601A (en) * 2013-11-29 2014-06-04 北京奇虎科技有限公司 Junk data cleaning method and device
CN104699513A (en) * 2015-03-31 2015-06-10 联想(北京)有限公司 File processing method and device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180341427A1 (en) * 2016-04-27 2018-11-29 Beijing Kingsoft Internet Security Software Co., Ltd. Method and apparatus for managing storage space, and electronic device
WO2017186029A1 (en) * 2016-04-27 2017-11-02 北京金山安全软件有限公司 Storage-space management method, apparatus, and electronic device
CN106855887A (en) * 2016-12-26 2017-06-16 努比亚技术有限公司 A kind of method of file management, device and terminal
CN107025269A (en) * 2017-03-07 2017-08-08 广东欧珀移动通信有限公司 A kind of document handling method, device and intelligent terminal
CN107273433A (en) * 2017-05-22 2017-10-20 努比亚技术有限公司 A kind of file scanning method, equipment and computer-readable recording medium
CN107679161A (en) * 2017-09-28 2018-02-09 上海传英信息技术有限公司 The document handling method and electric terminal of electric terminal
CN107679161B (en) * 2017-09-28 2020-01-31 上海传英信息技术有限公司 File processing method of electronic terminal and electronic terminal
CN107885887A (en) * 2017-12-08 2018-04-06 维沃移动通信有限公司 A kind of file memory method and mobile terminal
CN107885887B (en) * 2017-12-08 2020-01-31 维沃移动通信有限公司 file storage method and mobile terminal
CN110502486A (en) * 2019-08-21 2019-11-26 中国工商银行股份有限公司 Log processing method, device, electronic equipment and computer readable storage medium
CN110502486B (en) * 2019-08-21 2022-01-11 中国工商银行股份有限公司 Log processing method and device, electronic equipment and computer readable storage medium
CN112732660A (en) * 2021-01-05 2021-04-30 中国工商银行股份有限公司 Intervention type file transmission method, device and system
CN112732660B (en) * 2021-01-05 2024-02-27 中国工商银行股份有限公司 Intervening file transmission method, device and system

Similar Documents

Publication Publication Date Title
CN105260438A (en) File management method and electronic device
US10275355B2 (en) Method and apparatus for cleaning files in a mobile terminal and associated mobile terminal
US9864736B2 (en) Information processing apparatus, control method, and recording medium
CN108021590B (en) Target object attribute determining method, attribute updating method and device
JP7190834B2 (en) Apparatus and computer program
JP6870466B2 (en) Control programs, control methods, controls, and database servers
CN110888837B (en) Object storage small file merging method and device
US20200110733A1 (en) Criterion-based retention of data object versions
US10540325B2 (en) Method and device for identifying junk picture files
CN110781372B (en) Method and device for optimizing website, computer equipment and storage medium
CH716436B1 (en) System and method of checking archive portions for malware.
CN109472540B (en) Service processing method and device
CN110825694A (en) Data processing method, device, equipment and storage medium
CN109299205B (en) Method and device for warehousing spatial data used by planning industry
CN104331376A (en) Method and device for clearing installation package stored in mobile terminal
US20210318834A1 (en) Distributed Storage Orphan Scan
CN111459660B (en) Dynamic allocation method of cloud host on host, electronic device and storage medium
US10402370B2 (en) Information processing method and electronic apparatus
CN104090924B (en) The method for cleaning and device of a kind of private data
JP5912949B2 (en) Business document processing system and program
CN112433888A (en) Data processing method and device, storage medium and electronic equipment
CN111488117B (en) Method, electronic device, and computer-readable medium for managing metadata
JP2015185027A (en) Job discrimination program, device and method
US10528536B1 (en) Managing data object versions in a storage service
CN104572943B (en) Exempt from installation procedure method for cleaning and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160120