CN104133641A - External storage equipment file deleting method and device - Google Patents

External storage equipment file deleting method and device Download PDF

Info

Publication number
CN104133641A
CN104133641A CN201410357159.9A CN201410357159A CN104133641A CN 104133641 A CN104133641 A CN 104133641A CN 201410357159 A CN201410357159 A CN 201410357159A CN 104133641 A CN104133641 A CN 104133641A
Authority
CN
China
Prior art keywords
file
application program
access path
external memory
mark
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
CN201410357159.9A
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.)
Shenzhen Coship Electronics Co Ltd
Original Assignee
Shenzhen Coship Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Coship Electronics Co Ltd filed Critical Shenzhen Coship Electronics Co Ltd
Priority to CN201410357159.9A priority Critical patent/CN104133641A/en
Publication of CN104133641A publication Critical patent/CN104133641A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an external storage equipment file deleting method and device. The method comprises the following steps: when a file on an external memory needs to subjected to a creation or access operation, obtaining a logo of a process for carrying out the creation or access operation to the file; according to the logo of the process, obtaining the log of a program which is operated in the process, and judging whether the logo of the program is the log of an application program; if the logo of the program is the logo of the application program, updating a record of relevant information for the application program to carry out the creation or access operation to the rile through an access path in a database; if the application program is unloaded, reading the relevant information for the unloaded application program to carry out the creation or access operation to the file of the external memory through the access path from the database, and judging whether the file of the external memory corresponding to the access path is deleted or not; and if a judgment result is that the file of the external memory corresponding to the access path is deleted, deleting the file of the external memory.

Description

A kind of External memory equipment file sweep-out method and device
Technical field
The present invention relates to operating system, relate in particular to a kind of External memory equipment file sweep-out method and device.
Background technology
Along with the high speed development of Android system, use the subscriber equipment of Android system also more and more.User can install many application programs in Android system, comprises game, chat software or antivirus software etc.In the process of establishment application program and use application program, application program can create a large amount of files.Because user has different demands at different times, can unload many application programs.But in the time of unloading, not all file can be deleted, do not have deleted file to be still kept in file system, forms garbage files.A large amount of useless garbage files are mixed and among useful file, are taken the storage space of subscriber equipment, and in the course of time, subscriber equipment travelling speed can slow down, and has influence on the normal use of useful file.So, in Android system, be provided with some file clean-up methods, for example, in application program, in the time moving, application program directly calling system interface is deleted the file that self-operating produces.In application program unloading, system can be deleted the file that application program creates in system.But the file creating on External memory equipment for application program, because system cannot be known the path of its storage, so in the time that application program unloads, this part file just remains among External memory equipment.
Prior art provides a kind of External memory equipment file clean-up method, stores in advance the path of the file of each application program possibility storage file in server.In the time that application program unloads, to the path that obtains the file that this application program may storage file in server, then, then file is left out.In this manner, need in server, store the path of each application program possibility storage file.But, in reality, the quantity of application program far more than thousands upon thousands, and, there is every day new application program being born, so, in server, store the path that application program in each may storage file and cannot realize.Therefore in the time that the path of the possible storage file of the application program unloading is not stored in server, the file in the External memory equipment of the application program unloading just cannot be deleted, becomes garbage files and be deposited in External memory equipment.
Summary of the invention
Embodiment of the present invention technical matters to be solved is, a kind of External memory equipment file sweep-out method and device are provided, and has realized the file of intactly the unloaded application program in external memory storage being left over and has cleared up.
First aspect, the embodiment of the present invention provides a kind of External memory equipment file sweep-out method, comprise: when creating or when accessing operation the file on external memory storage, obtain described file is created or the mark of the process of accessing operation, wherein, described external memory storage is to be served at least one file carry of user data area is formed by sdcard; Obtain the mark of the program of moving according to the mark of described process in described process, and judge whether the mark of described program is the mark of application program; If the mark that is designated application program of described program, upgrade that described application program creates described file by access path or the record of the relevant information of accessing operation in database, wherein, described access path is that the process of the described application program of operation creates described file or path when accessing operation; If described application program is unloaded, from described database, read that unloaded application program creates the file of described external memory storage by described access path or the relevant information of accessing operation; The file of described external memory storage is created by described access path according to unloaded application program or the relevant information of accessing operation judges whether the file of the corresponding described external memory storage of described access path to delete; If judged result is that the file of the corresponding described external memory storage of described access path is deleted, delete the file of described external memory storage.
Alternatively, upgrade that described application program creates described file by access path or the step of the record of the relevant information of accessing operation in database comprises: judge described application program whether by described access path to the operation that conducts interviews of described file; If described application program by described access path to the operation that conducts interviews of described file, upgrade described application program by described access path to the conduct interviews number of times of operation of described file; If described application program not by described access path to the operation that conducts interviews of described file or file, in described database newly-built described application program by described access path to the conduct interviews record of operation of described file.
Alternatively, obtain described file created or the step of the mark of the process of accessing operation comprises: judge that described process creates described file or the path of accessing operation whether on n level catalogue, wherein, n is natural number; If described process creates described file or the path of accessing operation on n level catalogue, obtain and create or the mark of the described process of accessing operation.
Alternatively, from described database, read that unloaded application program creates the file of described external memory storage by described access path or the step of the relevant information of accessing operation before also comprise: the mark that reads the application program in described database; Whether unloaded information of the corresponding application program of mark of obtaining described application program according to the mark of described application program.
Alternatively, the file of described external memory storage is created by described access path according to unloaded application program or the relevant information of accessing operation judges whether that the step that the file of the corresponding described external memory storage of described access path is deleted is specially: whether the number of times by described access path, the file of described external memory storage being conducted interviews according to unloaded application program or described file are that judging whether of creating of unloaded application program deleted the file of the corresponding described external memory storage of described access path.
Second aspect, the embodiment of the present invention provides a kind of External memory equipment file scavenge unit, comprise: acquisition module, the first judge module, update module, read module, the second judge module and removing module, described acquisition module is for when creating or when accessing operation the file on external memory storage, obtain described file is created or the mark of the process of accessing operation, wherein, described external memory storage is to be served at least one file carry of user data area is formed by sdcard; Described the first judge module is used for obtaining the mark of the program of moving in described process according to the mark of described process, and judges whether the mark of described program is the mark of application program; Described update module is in the time of the mark that is designated application program of described program, upgrade that described application program creates described file by access path or the record of the relevant information of accessing operation in database, wherein, described access path is that the process of the described application program of operation creates described file or path when accessing operation; Described read module is in the time that application program is unloaded, reads that unloaded application program creates the file of described external memory storage by described access path or the relevant information of accessing operation from described database; Described the second judge module is used for the file of described external memory storage being created by access path according to unloaded application program or the relevant information of accessing operation judges whether the file of the corresponding described external memory storage of described access path to delete; Described removing module, for being when the file of the corresponding described external memory storage of described access path is deleted in judged result, is deleted the file of described external memory storage.
Alternatively, described update module also for judge described application program whether by described access path to the operation that conducts interviews of described file; And by described access path, described file is conducted interviews when operation in described application program, upgrade described application program by described access path to the conduct interviews number of times of operation of described file; In the time that described application program does not conduct interviews operation by described access path to described file or file, in described database newly-built described application program by described access path to the conduct interviews record of operation of described file.
Alternatively, described acquisition module also for judge that described process creates described file or the path of accessing operation whether on n level catalogue, wherein, n is natural number; And in described process, described file is created or the path of accessing operation on n level catalogue time, obtain and create or the mark of the described process of accessing operation.
Alternatively, described device also comprises: unloading application program acquisition module, described unloading application program acquisition module is for reading the mark of application program of described database, and whether unloaded information of the corresponding application program of mark of obtaining described application program according to the mark of described application program.
Alternatively, whether described the second judge module is that judging whether of creating of unloaded application program deleted the file of the corresponding described external memory storage of described access path specifically for the number of times that by described access path, the file of described external memory storage conducted interviews according to unloaded application program or described file.
In such scheme, in database records application program by access path to file conduct interviews operation relevant information, with in the time that application program is unloaded or after application program unloading, by database obtain application program by access path to file conduct interviews operation relevant information, and according to application program by access path to file conduct interviews operation relevant information judge whether deleted file.Because application program all can go on record to the accessing operation of file at every turn, so there are all application programs in equipment in database to the conduct interviews relevant information of operation of file, so, the file that can intactly unloaded application program be created is all complete leaves out, and becomes garbage files and is deposited in External memory equipment thereby do not have to leave over.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the process flow diagram of External memory equipment file sweep-out method of the present invention one embodiment;
Fig. 2 is the process flow diagram of another embodiment of External memory equipment file sweep-out method of the present invention;
Fig. 3 is the structural drawing of External memory equipment file scavenge unit of the present invention one embodiment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
It should be noted that, the term using is in embodiments of the present invention only for describing the object of specific embodiment, but not is intended to limit the present invention." one ", " described " and " being somebody's turn to do " of the singulative using in the embodiment of the present invention and appended claims are also intended to comprise most forms, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more projects of listing that are associated any or all may combine.
Referring to Fig. 1, Fig. 1 is the process flow diagram of External memory equipment file sweep-out method of the present invention one embodiment.The method comprises:
Step S110: when creating or when accessing operation the file on external memory storage, obtain the conduct interviews mark of process of operation of file.
Particularly, most equipment all supports at least one file of user data area to mark and be used as external memory storage use at present.Equipment will when dividing external memory storage out use from user data area, all must be served by sdcard.So, when creating or when accessing operation the file on external memory storage, can by sdcard serve first judge that process creates described file or the path of accessing operation whether on n level catalogue, wherein, n is natural number.In the present embodiment, n is 3.If process creates described file or the path of accessing operation has exceeded 3 grades of catalogues, do not carry out step below, to avoid the quantity of file too many, make execution efficiency too low.If process creates described file or the path of accessing operation on n level catalogue, obtaining the mark of described process of the operation that conducts interviews.In other embodiment, n can be also 4,5 etc., and concrete setting can create or the degree of depth and the execution efficiency in the path of access file arrange according to application program is general, do not do concrete restriction herein.
Be appreciated that in literary composition, said file can be word file, excel file etc., also can refer to file.
Step S120: obtain the mark of the program of moving according to the mark of process, and whether the mark of determining program is the mark of application program in process.
Particularly, because process can be called by operating system or application program etc., so, the mark of the program of moving in process acquiring according to the mark of process may be the mark of application program, also may be mark of running program etc., therefore also must judge whether the mark of program is the mark of application program according to judgment rule.
Step S130: if the mark that is designated application program of program, upgrade application program by access path to the conduct interviews record of relevant information in database of operation of file, wherein, access path is the process that runs application path when file is conducted interviews to operation.
Particularly, if the mark that is designated application program of program shows it is that an application program is creating or access file External memory equipment by access path now.If application program is creating file by access path to External memory equipment, log file is that this application program creates; If application program by access path to the External memory equipment file that conducts interviews, whether equipment judges before this application program by identical access path the file operation that conducts interviews.If before application program by identical access path to the file operation that conducts interviews, upgrade described application program by access path to the file number of times operating that conducts interviews; If when application program had not conducted interviews operation by access path to file or file, in database newly-built application program by access path to the file record of operation that conducts interviews, thereby obtain the data in database.
Step S140: if application program is unloaded, read from database that unloaded application program creates the file of external memory storage by access path or the relevant information of accessing operation.
Particularly, in the time that user unloads application program, if user wishes application programs, the file in external memory storage is deleted, and must know that application program creates the situation of file in file and application program access external memory in external memory storage.So, when having adopted step S110 to obtain after database to step S130, just can from database, read that unloaded application program creates the file of external memory storage by access path or the relevant information of accessing operation, thereby obtain application program and create the situation of file in file and application program access external memory in external memory storage.
Or, when user wishes to remove the Stub File of multiple unloaded application programs by a key, can scan the mark of the application program in database, to obtain whether unloaded information of the corresponding application program of application program identification in database.Similarly, if user wishes that the file in external memory storage is deleted to unloaded application program, the application program that must know unloaded creates the number of times of file in file and application program access external memory in external memory storage.So, can from database, read equally that unloaded application program creates the file of external memory storage by access path or the relevant information of accessing operation, thereby obtain application program and create the situation of file in file and application program access external memory in external memory storage.
Step S150: the file of external memory storage is created by access path according to unloaded application program or the relevant information of accessing operation judges whether the file of the corresponding external memory storage of access path to delete.
Step S160: if judged result is that the file of the corresponding external memory storage of access path is deleted, delete the file of external memory storage.
In such scheme, in database records application program by access path to file conduct interviews operation relevant information, with in the time that application program is unloaded or after application program unloading, by database obtain application program by access path to file conduct interviews operation relevant information, and according to application program by access path to file conduct interviews operation relevant information judge whether deleted file.Because application program all can go on record to the accessing operation of file at every turn, so there are all application programs in equipment in database to the conduct interviews relevant information of operation of file, so, the file that can intactly unloaded application program be created is all complete leaves out, and becomes garbage files and is deposited in External memory equipment thereby do not have to leave over.
Referring to Fig. 2, Fig. 2 is the process flow diagram of another embodiment of External memory equipment file sweep-out method of the present invention.The method comprises:
Step S210: when creating or when accessing operation the file on external memory storage, obtain the conduct interviews mark of process of operation of file.
Particularly, most equipment all supports at least one file of user data area to mark and be used as external memory storage use at present.Equipment will when dividing external memory storage out use from user data area, all must be served by sdcard.So, when creating or when accessing operation the file on external memory storage, can by sdcard serve first judge that process creates described file or the path of accessing operation whether on n level catalogue, wherein, n is natural number.In the present embodiment, n is 3.If process creates described file or the path of accessing operation has exceeded 3 grades of catalogues, do not carry out step below, to avoid the quantity of file too many, make execution efficiency too low.If process creates described file or the path of accessing operation on n level catalogue, obtaining the mark of described process of the operation that conducts interviews.In other embodiment, n can be also 4,5 etc., and concrete setting can create or the degree of depth and the execution efficiency in the path of access file arrange according to application program is general, do not do concrete restriction herein.
Be appreciated that in literary composition, said file can be word file, excel file etc., also can refer to file.
Step S220: obtain the mark of the program of moving according to the mark of process, and whether the mark of determining program is the mark of application program in process.
Particularly, because process can be called by operating system or application program etc., so, the mark of the program of moving in process acquiring according to the mark of process may be the mark of application program, also may be mark of running program etc., therefore also must judge whether the mark of program is the mark of application program according to judgment rule.
Step S230: if the mark that is designated application program of program, upgrade application program by access path to the conduct interviews record of relevant information in database of operation of file, wherein, access path is the process that runs application path when file is conducted interviews to operation.
Particularly, if the mark that is designated application program of program shows it is that an application program is creating or access file External memory equipment by access path now.If application program is creating file by access path to External memory equipment, log file is that this application program creates; If application program by access path to the External memory equipment file that conducts interviews, whether equipment judges before this application program by identical access path the file operation that conducts interviews.If before application program by identical access path to the file operation that conducts interviews, upgrade described application program by access path to the file number of times operating that conducts interviews; If when application program had not conducted interviews operation by access path to file or file, in database newly-built application program by access path to the file record of operation that conducts interviews, thereby obtain the data in database.For example, table 1 is an embodiment of database, particularly,
Table 1 database one embodiment
Wherein, for application program 1, application program 1 has created file bb by access path/mnt/sdcard/aaa/bb, and the number of times of the file bb that application program 1 access path is /mnt/sdcard/aaa/bb is 562 times; The file that access path is /mnt/sdcard/aaa is not that application program 1 creates, and still, the number of times of the file bb that application program 1 access path is /mnt/sdcard/aaa is 123 times.For application program 2, application program 1 has created file dd by access path/mnt/sdcard/ccc/dd, and the number of times of the file dd that application program 2 access paths are /mnt/sdcard/ccc/dd is 324 times; The file that access path is /mnt/sdcard/ccc is not that application program 2 creates, and still, the number of times of the file cc that application program 2 access paths are /mnt/sdcard/ccc is 132 times.
Step S240: if application program is unloaded, read from database that unloaded application program creates the file of external memory storage by access path or the relevant information of accessing operation.
Particularly, in the time that user unloads application program, if user wishes application programs, the file in external memory storage is deleted, and must know that application program creates the situation of file in file and application program access external memory in external memory storage.So, when having adopted step S210 to obtain after database to step S230, just can from database, read that unloaded application program creates the file of external memory storage by access path or the relevant information of accessing operation, thereby obtain application program and create the situation of file in file and application program access external memory in external memory storage.
Or, when user wishes to remove the Stub File of multiple unloaded application programs by a key, can scan the mark of the application program in database, to obtain whether unloaded information of the corresponding application program of application program identification in database.Similarly, if user wishes that the file in external memory storage is deleted to unloaded application program, the application program that must know unloaded creates the number of times of file in file and application program access external memory in external memory storage.So, can from database, read equally that unloaded application program creates the file of external memory storage by access path or the relevant information of accessing operation, thereby obtain application program and create the situation of file in file and application program access external memory in external memory storage.
Step S250: whether the number of times by access path, the file of external memory storage being conducted interviews according to unloaded application program or file are that judging whether of creating of unloaded application program deleted the file of the corresponding external memory storage of access path.
Particularly, taking the form shown in table 1 as example, if what delete is unloaded application program 1 at file that external memory storage created or accessed, the access times of the file aaa that to obtain access path be /mnt/sdcard/aaa and whether be employed the relevant informations such as program 1 is created, and determine whether Delete Folder aaa according to these information; Meanwhile, also obtain the access times of the file bb that access path is /mnt/sdcard/aaa/bb and whether be employed the relevant informations such as program 1 is created.And determine whether Delete Folder bb according to these information.For example, can according to unloaded application program by access path to the file of external memory storage conduct interviews operation number of times whether exceed threshold value, or whether file is that unloaded application program creates and judges whether the file of the corresponding external memory storage of access path to delete.If unloaded application program by access path to the file of external memory storage conduct interviews operation number of times exceed threshold value, or, file is that unloaded application program creates, and judges the file of the corresponding external memory storage of access path is deleted.Otherwise, if unloaded application program by access path to the file of external memory storage conduct interviews operation number of times do not exceed threshold value, or file is not that unloaded application program creates, judgement is not deleted the file of the corresponding external memory storage of access path.In addition, except automatically determining file to delete by equipment, whether access times that also can application program 1 access file and file are to be employed the relevant information that program 1 creates to be shown to user, then, determine whether file to delete according to user's selection.
Step S260: if judged result is that the file of the corresponding external memory storage of access path is deleted, delete the file of external memory storage.
In such scheme, in database records application program by access path to file conduct interviews operation relevant information, with in the time that application program is unloaded or after application program unloading, by database obtain application program by access path to file conduct interviews operation relevant information, and according to application program by access path to file conduct interviews operation relevant information judge whether deleted file.Because application program all can go on record to the accessing operation of file at every turn, so there are all application programs in equipment in database to the conduct interviews relevant information of operation of file, so, the file that can intactly unloaded application program be created is all complete leaves out, and becomes garbage files and is deposited in External memory equipment thereby do not have to leave over.
The above-mentioned method that elaborates the embodiment of the present invention, below for the ease of implementing better the such scheme of the embodiment of the present invention, correspondingly, is also provided for coordinating the relevant device of implementing such scheme below.
Consult Fig. 3, Fig. 3 is the structural drawing of External memory equipment file scavenge unit of the present invention one embodiment.Described device comprises: acquisition module 310, the first judge module 320, update module 330, application program acquisition module 340, read module 350, the second judge module 360 and removing module 370.
Described acquisition module 310 is for when creating or when accessing operation the file on external memory storage, obtain described file is created or the mark of the process of accessing operation, wherein, described external memory storage is to be served at least one file carry of user data area is formed by sdcard.
Described the first judge module 320 is for obtain the mark of the program of moving in described process according to the mark of described process, and judges whether the mark of described program is the mark of application program.
Described update module 330 is for when the mark that is designated application program of described program, upgrade that described application program creates described file by access path or the record of the relevant information of accessing operation in database, wherein, described access path is that the process of the described application program of operation creates described file or path when accessing operation.
Described read module 350 is in the time that application program is unloaded, reads that unloaded application program creates the file of described external memory storage by described access path or the relevant information of accessing operation from described database.
Described the second judge module 360 is for creating the file of described external memory storage by access path according to unloaded application program or the relevant information of accessing operation judges whether the file of the corresponding described external memory storage of described access path to delete.
Described removing module 370, for being when the file of the corresponding described external memory storage of described access path is deleted in judged result, is deleted the file of described external memory storage.
Alternatively, described update module 330 also for judge described application program whether by described access path to the operation that conducts interviews of described file; And by described access path, described file is conducted interviews when operation in described application program, upgrade described application program by described access path to the conduct interviews number of times of operation of described file; In the time that described application program does not conduct interviews operation by described access path to described file or file, in described database newly-built described application program by described access path to the conduct interviews record of operation of described file.
Alternatively, described acquisition module 310 also for judge that described process creates described file or the path of accessing operation whether on n level catalogue, wherein, n is natural number; And in described process, described file is created or the path of accessing operation on n level catalogue time, obtain and create or the mark of the described process of accessing operation.
Alternatively, described unloading application program acquisition module 340 is for reading the mark of application program of described database, and whether unloaded information of the corresponding application program of mark of obtaining described application program according to the mark of described application program.
Alternatively, whether described the second judge module 360 is that judging whether of creating of unloaded application program deleted the file of the corresponding described external memory storage of described access path specifically for the number of times that by described access path, the file of described external memory storage conducted interviews according to unloaded application program or described file.
The institute that device shown in Fig. 3 can corresponding be implemented the embodiment shown in Fig. 1 and Fig. 2 in steps, specifically refers to Fig. 1, Fig. 2 and associated description, does not repeat herein.
In such scheme, in database records application program by access path to file conduct interviews operation relevant information, with in the time that application program is unloaded or after application program unloading, by database obtain application program by access path to file conduct interviews operation relevant information, and according to application program by access path to file conduct interviews operation relevant information judge whether deleted file.Because application program all can go on record to the accessing operation of file at every turn, so there are all application programs in equipment in database to the conduct interviews relevant information of operation of file, so, the file that can intactly unloaded application program be created is all complete leaves out, and becomes garbage files and is deposited in External memory equipment thereby do not have to leave over.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, can carry out the hardware that instruction is relevant by computer program to complete, described program can be stored in a computer read/write memory medium, this program, in the time carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only a kind of preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, one of ordinary skill in the art will appreciate that all or part of flow process that realizes above-described embodiment, and the equivalent variations of doing according to the claims in the present invention, still belong to the scope that invention is contained.

Claims (10)

1. an External memory equipment file sweep-out method, is characterized in that, comprising:
When creating or when accessing operation the file on external memory storage, obtain described file is created or the mark of the process of accessing operation, wherein, described external memory storage is to be served at least one file carry of user data area is formed by sdcard;
Obtain the mark of the program of moving according to the mark of described process in described process, and judge whether the mark of described program is the mark of application program;
If the mark that is designated application program of described program, upgrade that described application program creates described file by access path or the record of the relevant information of accessing operation in database, wherein, described access path is that the process of the described application program of operation creates described file or path when accessing operation;
If described application program is unloaded, from described database, read that unloaded application program creates the file of described external memory storage by described access path or the relevant information of accessing operation;
The file of described external memory storage is created by described access path according to unloaded application program or the relevant information of accessing operation judges whether the file of the corresponding described external memory storage of described access path to delete;
If judged result is that the file of the corresponding described external memory storage of described access path is deleted, delete the file of described external memory storage.
2. method according to claim 1, is characterized in that, upgrades that described application program creates described file by access path or the step of the record of the relevant information of accessing operation in database comprises:
Judge described application program whether by described access path to the operation that conducts interviews of described file;
If described application program by described access path to the operation that conducts interviews of described file, upgrade described application program by described access path to the conduct interviews number of times of operation of described file; If described application program not by described access path to the operation that conducts interviews of described file or file, in described database newly-built described application program by described access path to the conduct interviews record of operation of described file.
3. method according to claim 1, is characterized in that, obtains described file is created or the step of the mark of the process of accessing operation comprises:
Judge that described process creates described file or the path of accessing operation whether on n level catalogue, wherein, n is natural number;
If described process creates described file or the path of accessing operation on n level catalogue, obtain and create or the mark of the described process of accessing operation.
4. method according to claim 1, is characterized in that, from described database, read that unloaded application program creates the file of described external memory storage by described access path or the step of the relevant information of accessing operation before also comprise:
Read the mark of the application program in described database;
Whether unloaded information of the corresponding application program of mark of obtaining described application program according to the mark of described application program.
5. method according to claim 1, it is characterized in that, the file of described external memory storage is created by described access path according to unloaded application program or the relevant information of accessing operation judges whether that the step that the file of the corresponding described external memory storage of described access path is deleted is specially:
Whether the number of times by described access path, the file of described external memory storage being conducted interviews according to unloaded application program or described file are that judging whether of creating of unloaded application program deleted the file of the corresponding described external memory storage of described access path.
6. an External memory equipment file scavenge unit, is characterized in that, comprising: acquisition module, the first judge module, update module, read module, the second judge module and removing module,
Described acquisition module is for when creating or when accessing operation the file on external memory storage, obtain described file is created or the mark of the process of accessing operation, wherein, described external memory storage is to be served at least one file carry of user data area is formed by sdcard;
Described the first judge module is used for obtaining the mark of the program of moving in described process according to the mark of described process, and judges whether the mark of described program is the mark of application program;
Described update module is in the time of the mark that is designated application program of described program, upgrade that described application program creates described file by access path or the record of the relevant information of accessing operation in database, wherein, described access path is that the process of the described application program of operation creates described file or path when accessing operation;
Described read module is in the time that application program is unloaded, reads that unloaded application program creates the file of described external memory storage by described access path or the relevant information of accessing operation from described database;
Described the second judge module is used for the file of described external memory storage being created by access path according to unloaded application program or the relevant information of accessing operation judges whether the file of the corresponding described external memory storage of described access path to delete;
Described removing module, for being when the file of the corresponding described external memory storage of described access path is deleted in judged result, is deleted the file of described external memory storage.
7. device according to claim 6, is characterized in that, described update module also for judge described application program whether by described access path to the operation that conducts interviews of described file; And by described access path, described file is conducted interviews when operation in described application program, upgrade described application program by described access path to the conduct interviews number of times of operation of described file; In the time that described application program does not conduct interviews operation by described access path to described file or file, in described database newly-built described application program by described access path to the conduct interviews record of operation of described file.
8. device according to claim 6, is characterized in that, described acquisition module also for judge that described process creates described file or the path of accessing operation whether on n level catalogue, wherein, n is natural number; And in described process, described file is created or the path of accessing operation on n level catalogue time, obtain and create or the mark of the described process of accessing operation.
9. install according to claim 6, it is characterized in that, described device also comprises: unloading application program acquisition module, described unloading application program acquisition module is for reading the mark of application program of described database, and whether unloaded information of the corresponding application program of mark of obtaining described application program according to the mark of described application program.
10. install according to claim 6, it is characterized in that, whether described the second judge module is that judging whether of creating of unloaded application program deleted the file of the corresponding described external memory storage of described access path specifically for the number of times that by described access path, the file of described external memory storage conducted interviews according to unloaded application program or described file.
CN201410357159.9A 2014-07-24 2014-07-24 External storage equipment file deleting method and device Pending CN104133641A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410357159.9A CN104133641A (en) 2014-07-24 2014-07-24 External storage equipment file deleting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410357159.9A CN104133641A (en) 2014-07-24 2014-07-24 External storage equipment file deleting method and device

Publications (1)

Publication Number Publication Date
CN104133641A true CN104133641A (en) 2014-11-05

Family

ID=51806332

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410357159.9A Pending CN104133641A (en) 2014-07-24 2014-07-24 External storage equipment file deleting method and device

Country Status (1)

Country Link
CN (1) CN104133641A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699529A (en) * 2015-03-26 2015-06-10 联想(北京)有限公司 Information acquisition method and device
CN105243102A (en) * 2015-09-17 2016-01-13 北京金山安全软件有限公司 Processing method and device for unloading residual file and terminal
CN105488217A (en) * 2015-12-17 2016-04-13 广州三星通信技术研究有限公司 Device and method for executing correlated operation in terminal
CN106325942A (en) * 2016-08-25 2017-01-11 维沃移动通信有限公司 Application program data processing method and mobile terminal
CN106484779A (en) * 2016-09-14 2017-03-08 广东欧珀移动通信有限公司 File operation method and device
CN106528658A (en) * 2016-10-19 2017-03-22 广东欧珀移动通信有限公司 Application file finding method and device
CN106557525A (en) * 2015-09-30 2017-04-05 北京金山安全软件有限公司 Method and device for cleaning application program residual file and electronic equipment
CN106557306A (en) * 2015-09-28 2017-04-05 北京金山安全软件有限公司 Method, device and equipment for determining application package matching path
CN107357929A (en) * 2017-07-27 2017-11-17 广东欧珀移动通信有限公司 File reading, mobile terminal and readable storage medium storing program for executing
CN107681838A (en) * 2016-08-02 2018-02-09 发那科株式会社 Encoder and electric motor system
CN108170854A (en) * 2018-01-19 2018-06-15 广东欧珀移动通信有限公司 File clean-up method, apparatus, storage medium and mobile terminal
CN108228770A (en) * 2017-12-27 2018-06-29 青岛海信移动通信技术股份有限公司 A kind of method and device of application file source inquiry
WO2019056237A1 (en) * 2017-09-21 2019-03-28 深圳传音通讯有限公司 Method for clearing residual files, device, and readable storage medium
CN111198735A (en) * 2018-11-20 2020-05-26 深圳市优必选科技有限公司 Layer information acquisition method, layer information acquisition device and terminal equipment
CN111522780A (en) * 2019-02-01 2020-08-11 华为技术有限公司 Method and terminal for recording file creator information
CN112380226A (en) * 2020-11-10 2021-02-19 北京梧桐车联科技有限责任公司 Data loading method and device, electronic equipment and storage medium
CN112597536A (en) * 2020-12-23 2021-04-02 瀚高基础软件股份有限公司 Real-time detection method and device for illegal deletion of database table file

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050091658A1 (en) * 2003-10-24 2005-04-28 Microsoft Corporation Operating system resource protection
CN103176828A (en) * 2013-03-29 2013-06-26 北京奇虎科技有限公司 Method and device of deleting application program residual files
CN103838843A (en) * 2014-03-03 2014-06-04 联想(北京)有限公司 File processing method and electronic equipment
CN103886059A (en) * 2014-03-17 2014-06-25 可牛网络技术(北京)有限公司 Method and device for cleaning up files

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050091658A1 (en) * 2003-10-24 2005-04-28 Microsoft Corporation Operating system resource protection
CN103176828A (en) * 2013-03-29 2013-06-26 北京奇虎科技有限公司 Method and device of deleting application program residual files
CN103838843A (en) * 2014-03-03 2014-06-04 联想(北京)有限公司 File processing method and electronic equipment
CN103886059A (en) * 2014-03-17 2014-06-25 可牛网络技术(北京)有限公司 Method and device for cleaning up files

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699529B (en) * 2015-03-26 2018-10-12 联想(北京)有限公司 A kind of information acquisition method and device
CN104699529A (en) * 2015-03-26 2015-06-10 联想(北京)有限公司 Information acquisition method and device
CN105243102A (en) * 2015-09-17 2016-01-13 北京金山安全软件有限公司 Processing method and device for unloading residual file and terminal
CN105243102B (en) * 2015-09-17 2018-11-23 北京金山安全软件有限公司 Processing method and device for unloading residual file and terminal
CN106557306A (en) * 2015-09-28 2017-04-05 北京金山安全软件有限公司 Method, device and equipment for determining application package matching path
CN106557306B (en) * 2015-09-28 2020-05-05 北京金山安全软件有限公司 Method, device and equipment for determining application package matching path
CN106557525A (en) * 2015-09-30 2017-04-05 北京金山安全软件有限公司 Method and device for cleaning application program residual file and electronic equipment
CN105488217A (en) * 2015-12-17 2016-04-13 广州三星通信技术研究有限公司 Device and method for executing correlated operation in terminal
CN107681838B (en) * 2016-08-02 2021-06-04 发那科株式会社 Encoder and motor system
CN107681838A (en) * 2016-08-02 2018-02-09 发那科株式会社 Encoder and electric motor system
CN106325942A (en) * 2016-08-25 2017-01-11 维沃移动通信有限公司 Application program data processing method and mobile terminal
CN106484779B (en) * 2016-09-14 2020-05-05 Oppo广东移动通信有限公司 File operation method and device
CN106484779A (en) * 2016-09-14 2017-03-08 广东欧珀移动通信有限公司 File operation method and device
WO2018049883A1 (en) * 2016-09-14 2018-03-22 广东欧珀移动通信有限公司 File operation method and device
CN106528658A (en) * 2016-10-19 2017-03-22 广东欧珀移动通信有限公司 Application file finding method and device
CN106528658B (en) * 2016-10-19 2019-06-25 Oppo广东移动通信有限公司 The lookup method and device of application file
CN107357929A (en) * 2017-07-27 2017-11-17 广东欧珀移动通信有限公司 File reading, mobile terminal and readable storage medium storing program for executing
WO2019056237A1 (en) * 2017-09-21 2019-03-28 深圳传音通讯有限公司 Method for clearing residual files, device, and readable storage medium
CN111712806A (en) * 2017-09-21 2020-09-25 深圳传音通讯有限公司 Method and device for clearing residual file and readable storage medium
CN108228770A (en) * 2017-12-27 2018-06-29 青岛海信移动通信技术股份有限公司 A kind of method and device of application file source inquiry
CN108170854A (en) * 2018-01-19 2018-06-15 广东欧珀移动通信有限公司 File clean-up method, apparatus, storage medium and mobile terminal
CN111198735A (en) * 2018-11-20 2020-05-26 深圳市优必选科技有限公司 Layer information acquisition method, layer information acquisition device and terminal equipment
CN111522780A (en) * 2019-02-01 2020-08-11 华为技术有限公司 Method and terminal for recording file creator information
CN111522780B (en) * 2019-02-01 2024-01-30 华为技术有限公司 Method and terminal for recording information of file creator
CN112380226A (en) * 2020-11-10 2021-02-19 北京梧桐车联科技有限责任公司 Data loading method and device, electronic equipment and storage medium
CN112597536A (en) * 2020-12-23 2021-04-02 瀚高基础软件股份有限公司 Real-time detection method and device for illegal deletion of database table file
CN112597536B (en) * 2020-12-23 2023-01-24 瀚高基础软件股份有限公司 Real-time detection method and device for illegal deletion of database table file

Similar Documents

Publication Publication Date Title
CN104133641A (en) External storage equipment file deleting method and device
CN105224237B (en) A kind of date storage method and device
CN109428913B (en) Storage capacity expansion method and device
CN107391774B (en) The rubbish recovering method of log file system based on data de-duplication
CN108647151A (en) It is a kind of to dodge system metadata rule method, apparatus, equipment and storage medium entirely
US10108501B2 (en) Terminal backup and recovery method
CN104536792A (en) Method and device for eliminating application program residual files
US20170139813A1 (en) Method and device for checking influence of deleting cache file, and mobile terminal
CN110888837B (en) Object storage small file merging method and device
CN111324303A (en) SSD garbage recycling method and device, computer equipment and storage medium
CN107402950A (en) Divide the document handling method and device of table based on point storehouse
CN104408201A (en) Junk file cleaning method and device
CN112182010B (en) Dirty page refreshing method and device, storage medium and electronic equipment
CN103092687A (en) Device and method of application program management
CN104317623A (en) Management method of preset application programs of mobile terminal and mobile terminal
CN110517718B (en) Method and system for effectively screening new and bad blocks of particles
CN110504002B (en) Hard disk data consistency test method and device
CN104516929A (en) Method and device for file system
CN105095418B (en) A kind of method and apparatus of processing write requests
CN104765631B (en) A kind of application recovery method and device of mobile terminal
CN106055372A (en) Method and device for uninstalling application
CN111552438B (en) Method, device, server and storage medium for writing object
CN110851434A (en) Data storage method, device and equipment
CN110704573B (en) Catalog storage method, catalog storage device, computer equipment and storage medium
CN109658985B (en) Redundancy removal optimization method and system for gene reference sequence

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141105