CN107291401A - File scanning method, file cleaning method, related device and electronic equipment - Google Patents
File scanning method, file cleaning method, related device and electronic equipment Download PDFInfo
- Publication number
- CN107291401A CN107291401A CN201710531663.XA CN201710531663A CN107291401A CN 107291401 A CN107291401 A CN 107291401A CN 201710531663 A CN201710531663 A CN 201710531663A CN 107291401 A CN107291401 A CN 107291401A
- Authority
- CN
- China
- Prior art keywords
- file
- storage device
- scanned
- application
- scanning
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0643—Management of files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0652—Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention discloses a file scanning method, a file cleaning method, a related device and electronic equipment, wherein the method is applied to the electronic equipment with a storage device, and comprises the following steps: starting a first application; receiving a file scanning instruction triggered by a user through a first application; judging whether the first file to be scanned is a first type file, if so, scanning the first file, wherein the first type file is as follows: junk files that can be scanned without obtaining access rights to the storage device. When the embodiment of the invention scans the file, the first type of file is scanned after the file scanning instruction triggered by the user is received, and compared with the prior art that the file is scanned after the authorization of the user needs to be obtained, the time point for scanning the first type of file is advanced, so that the technical scheme provided by the embodiment of the invention is beneficial to shortening the time spent on scanning the file and improving the file scanning efficiency.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of file scanning method, method for cleaning, relevant apparatus
And electronic equipment.
Background technology
, it is necessary to first scan before the garbage files in electronic equipments such as mobile phone, tablet personal computers are cleared up, existing skill
In art, when being scanned to file, it is necessary to first obtain the authority conducted interviews to the storage card in electronic equipment, obtaining
After the authority conducted interviews to storage card, just the file in storage card is scanned.This file scanning method is taken
Between it is longer, it is less efficient.
The content of the invention
The embodiments of the invention provide a kind of file scanning method, method for cleaning, relevant apparatus and electronic equipment, it can contract
The short time being scanned to file, improve scan efficiency.
The first aspect of the embodiment of the present invention provides a kind of file scanning method, applied to the electronics with storage device
In equipment, including:
Start first to apply;
User is received to instruct by the file scan of first applications trigger;
Judge whether the first file that will be scanned is the first class file, if it is judged that being yes, then scan described
First file, first class file is:It need not obtain what the authority that the storage device conducts interviews can just be scanned
Garbage files.
With reference in a first aspect, in the first possible embodiment of first aspect, what the judgement will be scanned
Whether the first file is the first class file, if it is judged that being no, then methods described also includes:
Judge whether first application has the authority conducted interviews to the storage device, if it is judged that being
It is, then;
Whether be second class file, if it is judged that being yes, then scan first file if judging first file,
Second class file is:First application needs to obtain the authority for conducting interviews to the storage device of the electronic equipment
The garbage files that can be scanned.
With reference to the first possible embodiment of first aspect, in second of possible embodiment of first aspect
In, it is described to judge whether first application has the authority that is conducted interviews to the storage device, if it is judged that be it is no,
Then;
Prompt the user whether to agree to authorize first application to conduct interviews the storage device;When user agrees to authorize
When first application conducts interviews to the storage device, whether be second class file, if sentenced if judging first file
Disconnected result is yes, then the first file described in first application scanning.
With reference to the first possible embodiment of first aspect, in the third possible embodiment of first aspect
In, after the file scan instruction that the reception user passes through first applications trigger, methods described also includes:
Prompt message on the display reminding window on the interface of the file management application, the prompt window is used to carry
Show the authority whether user authorizes first application to access the storage device;
It is described to judge whether first application has the authority conducted interviews to the storage device, including:
Judge whether first application receives the first instruction on the prompt window, first instruction is user
Confirm the instruction for the authority that unlatching conducts interviews to the storage device.
With reference to the first possible embodiment of first aspect, in the 4th kind of possible embodiment of first aspect
In, second class file includes the one or more in following file:Promotional literature, software unloading after Stub File, face
When file, empty folder, installation kit and journal file.
Second aspect of the embodiment of the present invention provide a kind of file clean-up method, including first aspect of the embodiment of the present invention or
File scanning method described in any possible embodiment of person's first aspect, and delete the first file scanned.
The third aspect of the embodiment of the present invention provides a kind of file scanning device, is set applied to the electronics with storage device
In standby, including:
Start unit, is applied for starting first;
Receiving unit, is instructed for receiving user by the file scan of first applications trigger;
Processing unit, whether the first file for judging to be scanned is the first class file, if it is judged that being
It is then to scan first file, first class file is:The authority conducted interviews to the storage device need not be obtained
The garbage files that can just scan.
With reference to the third aspect, in the first possible embodiment of the third aspect, the processing unit is additionally operable to, when
When the first file that will be scanned not is the first class file, judge whether first application has to enter the storage device
Row access authority, if it is judged that be it is yes, then;Whether be second class file, if it is determined that knot if judging first file
Fruit is yes, then scans first file, second class file is:First application needs to obtain to the electronic equipment
The garbage files that can scan of the authority that conducts interviews of storage device.
With reference to the first possible embodiment of the third aspect, in second of possible embodiment of the third aspect
In, the processing unit is additionally operable to, and when the described first application is without the authority conducted interviews to the storage device, is pointed out
Whether user agrees to authorize first application to conduct interviews the storage device;When user agrees to authorize first application
Whether when being conducted interviews to the storage device, it is the second class file to judge first file, if it is judged that be it is yes, then
First file described in first application scanning.
With reference to the first possible embodiment of the third aspect, in the third possible embodiment of the third aspect
In, the processing unit is additionally operable to, and receive user in the receiving unit is referred to by the file scan of first applications trigger
After order, the display reminding window on the interface of the file management application, the prompt message on the prompt window is used to carry
Show the authority whether user authorizes first application to access the storage device;
It is described judge whether first application has the authority that is conducted interviews to the storage device in terms of, the place
Unit is managed specifically for judging whether first application receives the first instruction on the prompt window, described first refers to
Make and confirm to open the instruction for the authority for conducting interviews to the storage device for user.
With reference to the first possible embodiment of the third aspect, in the 4th kind of possible embodiment of the third aspect
In, second class file includes the one or more in following file:Promotional literature, software unloading after Stub File, face
When file, empty folder, installation kit and journal file.
Fourth aspect of the embodiment of the present invention provide a kind of file clean-up device, including the third aspect of the embodiment of the present invention or
File scanning device described in any possible embodiment of person's third aspect, and for deleting the first file scanned
Deletion unit.
The aspect of the embodiment of the present invention the 5th provides a kind of electronic equipment, including:It is processor, storage device, display, logical
Believe interface and bus;
Wherein, the processor, the storage device, the display and the communication interface are coupled by the bus
Connection;
The storage device is used to store computer executable program code, and the executable program code includes instruction;
When being instructed described in the computing device, the instruction make the electronic equipment perform first aspect of the embodiment of the present invention or
File scanning method described in any possible embodiment of first aspect, or, the instruction holds the electronic equipment
File scanning method described in any possible embodiment of row embodiment of the present invention first aspect or first aspect and
Perform the file clean-up method described in second aspect of the embodiment of the present invention.
The aspect of the embodiment of the present invention the 6th provides a kind of non-transitorycomputer readable storage medium, is stored thereon with meter
Calculation machine program, the program realizes any possible of first aspect of the embodiment of the present invention or first aspect when being executed by processor
File scanning method described in embodiment.
The aspect of the embodiment of the present invention the 7th provides a kind of computer program product, when in the computer program product
When instruction processing unit is performed, a kind of file scanning method is performed, methods described includes:First aspect of the embodiment of the present invention or
File scanning method described in any possible embodiment of one side.
Eighth aspect of the embodiment of the present invention provides a kind of non-transitorycomputer readable storage medium, is stored thereon with meter
Calculation machine program, the program realizes the file clean-up method described in second aspect of the embodiment of the present invention when being executed by processor.
The aspect of the embodiment of the present invention the 9th provides a kind of computer program product, when in the computer program product
When instruction processing unit is performed, a kind of file clean-up method is performed, methods described includes:First aspect of the embodiment of the present invention or
File scanning method described in any possible embodiment of one side;And delete the first file scanned.
As can be seen that technical scheme provided in an embodiment of the present invention, when being scanned to file, is touched receiving user
After the file scan instruction of hair, begin to be scanned the first class file, need to obtain awarding for user relative to prior art
For being just scanned after power, the time point of the first class file of scanning is advanced by, so that technology provided in an embodiment of the present invention
Scheme, which is conducive to shortening, is scanned the spent time to file, improves file scan efficiency.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, being used required in being described below to embodiment
Accompanying drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this
For the those of ordinary skill of field, on the premise of not paying creative work, it can also obtain other according to these accompanying drawings
Accompanying drawing.
Fig. 1 is a kind of schematic flow sheet of file scanning method provided in an embodiment of the present invention;
Fig. 2A is a kind of schematic flow sheet for file scanning method that another embodiment of the present invention is provided;
Fig. 2 B are the first application interface schematic diagrames in one embodiment of the invention;
Fig. 3 is a kind of structural representation of file scanning device provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of file clean-up device provided in an embodiment of the present invention;
Fig. 5 is the structural representation of a kind of electronic equipment provided in an embodiment of the present invention.
Embodiment
The embodiments of the invention provide a kind of file scanning method, method for cleaning, relevant apparatus and electronic equipment, it can contract
The short time being scanned to file, improve scan efficiency.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model that the present invention is protected
Enclose.
It is described in detail individually below.
Term " first ", " second ", " the 3rd " in description and claims of this specification and above-mentioned accompanying drawing and "
Four " etc. be to be used to distinguish different objects, rather than for describing particular order.In addition, term " comprising " and " having " and it
Any deformation, it is intended that covering non-exclusive is included.For example contain the process of series of steps or unit, method, be
The step of system, product or equipment are not limited to list or unit, but the step of alternatively also include not listing or list
Member, or alternatively also include for the intrinsic other steps of these processes, method, product or equipment or unit.
In embodiments of the present invention, electronic equipment can be referred to as user equipment (User Equipment, referred to as " UE "),
Mobile terminal (Mobile Terminal) etc..The behaviour such as Android can be installed in some possible embodiments in electronic equipment
Make the mobile phone of system, electronic equipment is described by taking mobile phone as an example in the examples below.Inventors herein have recognized that, preserve
File in the storage device of electronic equipment can be just scanned after having the authority for accessing storage device the need for having, and be had
File need not have the authority for accessing storage device just to scan.The file in electronic equipment is scanned at present
When, it is just to start scanning after the access rights that electronic equipment is obtained to storage device, the application utilizes different classes of file
Feature, when carrying out file scan operation, when receiving file scan instruction, begins to scanning does not need access rights the
One file, so, the time point for scanning this class file are advanced by, therefore are conducive to shortening when being scanned spent to file
Between, improve scan efficiency.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow sheet of file scanning method provided in an embodiment of the present invention.Shown in Fig. 1
File scanning method, may comprise steps of:
S101, startup first are applied.
Wherein, the first application can be the third-party application (Application, APP) installed in mobile phone, third party APP
Can be the APP with file function in scanning cell phone.Third party APP can also be the APP for clearing up mobile phone Chinese part,
Clear up in mobile phone before garbage files, the APP needs first to be scanned the garbage files in mobile phone.
S102, reception user are instructed by the file scan of first applications trigger.
In the application in some possible embodiments, file scan instruction can be by touch-control third party APP interfaces
Touch controlled key corresponding with scanning garbage files instruction is triggered.
Whether the first file that S103, judgement will be scanned is the first class file, if it is judged that being yes, is then scanned
First file, first class file is:The authority conducted interviews to the storage device, which need not be obtained, can just sweep
The garbage files retouched.
Wherein, storage device can be built-in storage card in built-in storage card in electronic equipment, such as mobile phone etc..
In the application in some possible embodiments, garbage files can be classified in advance, wherein being wrapped in set A
The first class file is included, the first file that will be scanned can be any file in set A, can be one by one when being scanned
Aforesaid operations are performed to the file in set A.
In the application in some possible embodiments, the first class file includes:Thumbnail file is private with the system that is stored in
There is the software cache file under path, wherein, the software cache file being stored under the privately owned path of system includes:It is stored in
" the file in the bag name/cache " files of data/data/ applications.
As can be seen that technical scheme provided in an embodiment of the present invention, when being scanned to file, is touched receiving user
After the file scan instruction of hair, begin to be scanned the first class file, need to obtain awarding for user relative to prior art
For being just scanned after power, the time point of the first class file of scanning is advanced by, so that technology provided in an embodiment of the present invention
Scheme, which is conducive to shortening, is scanned the spent time to file, improves file scan efficiency.
Fig. 2A is referred to, Fig. 2A is a kind of schematic flow sheet of file scanning method provided in an embodiment of the present invention.Fig. 2A
Shown file scanning method, may comprise steps of:
S201, startup first are applied.
Wherein, the first application can be the third party APP installed in mobile phone, and third party APP can be with scanning cell phone
The APP of middle file function.Third party APP can also be the APP for clearing up mobile phone Chinese part, the garbage files in cleaning mobile phone
Before, the APP needs first to be scanned the garbage files in mobile phone.
S202, reception user are instructed by the file scan of first applications trigger.
In the application in some possible embodiments, file scan instruction can be by touch-control third party APP interfaces
Touch controlled key corresponding with scanning garbage files instruction is triggered.
For example, the first application APP interfaces can as shown in Figure 2 B, when clicking on the mark of the garbage-cleaning in Fig. 2 B,
Then triggering file scan instruction.
Whether the first file that S203, judgement will be scanned is the first class file, if it is judged that being yes, is then performed
S204, scans first file.If it is judged that being no, then S205 is performed, judge whether the first application has to storage
The authority that device conducts interviews.First class file is:The authority conducted interviews to the storage device need not be obtained just
The garbage files that can be scanned.
In the application in some possible embodiments, the first class file includes:Thumbnail file is private with the system that is stored in
There is the software cache file under path, wherein, the software cache file being stored under the privately owned path of system includes:It is stored in
" the file in the bag name/cache " files of data/data/ applications.
In the application in some possible embodiments, the first class file can include the file of n1 types, the n1
>=1, for example, the file type that the first class file includes can be left concentratedly in set A, the files classes that set A includes
Type includes:A1、A2、…An1.The file type in set A can be scanned successively.
If S205, the first file are not the first class files, judge whether the first application has and storage device is visited
The authority asked, if it is judged that being yes, then performs S206, and whether judge the first file is the second class file, if the first text
Part is the second class file, then performs S204, scans first file.Second class file is:First application needs
Obtain the garbage files that can be scanned to the authority that the storage device of the electronic equipment conducts interviews.
If S207, the first application prompt the user whether that agreement is awarded without the authority conducted interviews to storage device
First application is weighed to conduct interviews to the storage device.When user agrees to authorize first application to the storage device
When conducting interviews, then S206 is performed, whether be second class file, if the first file is the second class file if judging the first file,
S204 is then performed, first file is scanned.
It should be understood that when user does not agree to authorize the first application to conduct interviews storage device, then the first application
To the first file without scanning.
In the application in some possible embodiments, the second class file can include:After promotional literature, software unloading
Stub File, temporary file, empty folder, installation kit and journal file etc..
As can be seen that technical scheme provided in an embodiment of the present invention, when being scanned to file, is touched receiving user
After the file scan instruction of hair, begin to be scanned the first class file, need to obtain awarding for user relative to prior art
For being just scanned after power, the time point of the first class file of scanning is advanced by, so that technology provided in an embodiment of the present invention
Scheme, which is conducive to shortening, is scanned the spent time to file, improves file scan efficiency.
It should be understood that work as in some possible embodiments of the invention, can if what is performed is the cleaning operation of file
File scan is carried out to garbage files with the technical scheme provided according to previous embodiments, the rubbish text scanned is then deleted
Part.Shorten, garbage files are carried out by garbage files are scanned with the spent time so correspondingly also improving
The efficiency of deletion.
Referring to Fig. 3, Fig. 3 is a kind of structural representation for file scanning device that one embodiment of the present of invention is provided,
As shown in figure 3, a kind of file scanning device 300 that one embodiment of the present of invention is provided can include:Start unit 301, connect
Receive unit 302, processing unit 303.
Wherein, start unit 301, the method for performing S101 in the inventive method embodiment Fig. 1, start unit 301
Embodiment may be referred to description of the inventive method embodiment to S101 in Fig. 1, will not be repeated here.
Receiving unit 302, the method for performing S102 in the inventive method embodiment Fig. 1, the implementation of receiving unit 302
Mode may be referred to description of the inventive method embodiment to S102 in Fig. 1, will not be repeated here.
Processing unit 303, the method for performing S103 in the inventive method embodiment Fig. 1, the implementation of processing unit 303
Mode may be referred to description of the inventive method embodiment to S103 in Fig. 1, will not be repeated here.
Technical scheme provided in an embodiment of the present invention, when file scanning device is scanned to file, is receiving user
After the file scan instruction of triggering, begin to be scanned the first class file, need to obtain user's relative to prior art
For being just scanned after mandate, the time point of the first class file of scanning is advanced by, so that skill provided in an embodiment of the present invention
Art scheme, which is conducive to shortening, is scanned the spent time to file, improves scan efficiency.
Optionally, in some possible embodiments of the invention, the processing unit in file scanning device can be used for
The S203-S207 in the inventive method embodiment is performed, the embodiment of processing unit 303 may be referred to the inventive method implementation
Description of the example to S203-S207 in Fig. 2A, will not be repeated here.
Referring to Fig. 4, Fig. 4 is a kind of structural representation for file clean-up device that one embodiment of the present of invention is provided,
As shown in figure 4, a kind of file clean-up device 400 that one embodiment of the present of invention is provided can include:Start unit 401, connect
Receive unit 402, processing unit 403 and delete unit 404.
Wherein, start unit 401, the method for performing S101 in the inventive method embodiment Fig. 1, start unit 401
Embodiment may be referred to description of the inventive method embodiment to S101 in Fig. 1, will not be repeated here.
Receiving unit 402, the method for performing S102 in the inventive method embodiment Fig. 1, the implementation of receiving unit 402
Mode may be referred to description of the inventive method embodiment to S102 in Fig. 1, will not be repeated here.
Processing unit 403, the method for performing S103 in the inventive method embodiment Fig. 1, the implementation of processing unit 403
Mode may be referred to description of the inventive method embodiment to S103 in Fig. 1, will not be repeated here.
Unit 404 is deleted, for deleting the first file that the processing unit 403 is scanned.
Optionally, in some possible embodiments of the invention, the processing unit 403 in file clean-up device can be used
In performing the S203-S207 in the inventive method embodiment Fig. 2A, the embodiment of processing unit 403 may be referred to present invention side
Description of the method embodiment to S203-S207 in Fig. 2A, will not be repeated here.
Shorten, file is cleared up by being scanned the spent time to file so correspondingly also improving
Efficiency.
Referring to Fig. 5, being a kind of electronic equipment 500 provided in an embodiment of the present invention, specifically, the electronics shown in Fig. 5 is set
Standby 500 can include:Processor 501, storage device 502, display 503, communication interface 504 and bus 505.Wherein, handle
Device 501, storage device 502, display 503 and communication interface 504 are of coupled connections by bus 505.Wherein, the storage device
502 are used to store computer executable program code, and the executable program code includes instruction;When the processor 501 is held
During the row instruction, the method that the instruction performs the inventive method embodiment may be referred to retouch S101 in Fig. 1 to S103
State or the description to S201 in Fig. 2A to S207, can also further delete the file scanned, specifically be referred to
The corresponding description of each step implementation procedure, will not be repeated here in above method embodiment.
Based on same inventive concept, the electronic equipment provided in the embodiment of the present invention solves the principle of problem and side of the present invention
Data clearing method in method embodiment is similar, therefore the implementation of the electronic equipment may refer to the implementation of the above method, is letter
Clean description, is repeated no more herein.
The embodiment of the present invention additionally provides a kind of non-transitorycomputer readable storage medium, is stored thereon with computer journey
Sequence, the program realized when being executed by processor any one file scanning method described in above method embodiment part or
Overall Steps.
The embodiment of the present invention additionally provides a kind of computer program product, at the instruction in the computer program product
When managing device execution, a kind of file scanning method is performed, methods described includes:Any one text described in above method embodiment
The part or all of step of part scan method.
The embodiment of the present invention additionally provides a kind of non-transitorycomputer readable storage medium, is stored thereon with computer journey
Sequence, the program realized when being executed by processor any one file clean-up method described in above method embodiment part or
Overall Steps.
The embodiment of the present invention additionally provides a kind of computer program product, at the instruction in the computer program product
When managing device execution, a kind of file clean-up method is performed, methods described includes:Any one text described in above method embodiment
The part or all of step of part method for cleaning.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because
According to the present invention, some steps be able to may be carried out using other orders or simultaneously.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, involved action and module not necessarily this hair
Necessary to bright.
, can be by another way in several embodiments provided herein, it should be understood that disclosed device
Realize.For example, device embodiment described above is only schematical, the division of such as said units is only one kind
Division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or can
To be integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed each other
Coupling direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit,
Can be electrical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in various embodiments of the present invention can be integrated in a processing unit or
Unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated unit
Both it can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If above-mentioned integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used
When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially
The part contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer
Equipment (can be personal computer, server or network equipment etc., can be specifically the processor in computer equipment) is held
The all or part of step of each embodiment above method of the row present invention.Wherein, foregoing storage medium may include:USB flash disk, shifting
Dynamic hard disk, magnetic disc, CD, read-only storage (ROM, Read-Only Memory) or random access memory (RAM,
Random Access Memory) etc. it is various can be with the medium of store program codes.
Described above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before
Embodiment is stated the present invention is described in detail, it will be understood by those within the art that:It still can be to preceding
State the technical scheme described in each embodiment to modify, or equivalent substitution is carried out to which part technical characteristic;And these
Modification is replaced, and the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (10)
1. a kind of file scanning method, applied in the electronic equipment with storage device, it is characterised in that including:
Start first to apply;
User is received to instruct by the file scan of first applications trigger;
Judge whether the first file that will be scanned is the first class file, if it is judged that being yes, then scans described first
File, first class file is:The rubbish that can be just scanned to the authority that the storage device conducts interviews need not be obtained
File.
2. according to the method described in claim 1, it is characterised in that
Whether the first file that the judgement will be scanned is the first class file, if it is judged that being no, then methods described
Also include:
Judge whether first application has the authority that is conducted interviews to the storage device, if it is judged that be it is yes, then;
Whether be second class file, if it is judged that being yes, then scan first file if judging first file, described
Second class file is:The authority that first application needs acquisition to conduct interviews the storage device of the electronic equipment can
The garbage files of scanning.
3. method according to claim 2, it is characterised in that
It is described to judge whether first application has the authority conducted interviews to the storage device, if it is judged that being
It is no, then;
Prompt the user whether to agree to authorize first application to conduct interviews the storage device;When user agrees to authorize described
Whether when first application conducts interviews to the storage device, it is the second class file to judge first file, if it is determined that knot
Fruit is yes, then the first file described in first application scanning.
4. method according to claim 2, it is characterised in that pass through first applications trigger in the reception user
After file scan instruction, methods described also includes:
Prompt message on the display reminding window on the interface of the file management application, the prompt window is used to point out to use
Whether family authorizes the authority of the first application access storage device;
It is described to judge whether first application has the authority conducted interviews to the storage device, including:
Judge whether first application receives the first instruction on the prompt window, first instruction confirms for user
Open the instruction of the authority conducted interviews to the storage device.
5. method according to claim 2, it is characterised in that
Second class file includes the one or more in following file:Promotional literature, software unloading after Stub File, face
When file, empty folder, installation kit and journal file.
6. a kind of file clean-up method, it is characterised in that including the file scanning method as described in any one of claim 1 to 5,
And delete the first file scanned.
7. a kind of file scanning device, applied in the electronic equipment with storage device, it is characterised in that including:
Start unit, is applied for starting first;
Receiving unit, is instructed for receiving user by the file scan of first applications trigger;
Processing unit, for judging whether the first file that will be scanned is the first class file, if it is judged that be it is yes, then
First file is scanned, first class file is:The authority conducted interviews to the storage device need not be obtained with regard to energy
The garbage files enough scanned.
8. a kind of electronic equipment, it is characterised in that including:Processor, storage device, display, communication interface and bus;
Wherein, the processor, the storage device, the display and the communication interface are coupled by the bus and connected
Connect;
The storage device is used to store computer executable program code, and the executable program code includes instruction;Work as institute
State when being instructed described in computing device, the instruction makes the electronic equipment perform claim require the file described in 1 to 5 any one
Scan method, or, the instruction make the electronic equipment perform claim require file scanning method described in 1 to 5 any one,
And a kind of file clean-up method described in perform claim requirement 6.
9. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, it is characterised in that the program quilt
The file scanning method as described in any in claim 1-5 is realized during computing device.
10. a kind of computer program product, when the instruction processing unit in the computer program product is performed, performs a kind of text
Part scan method, methods described includes:
Start first to apply;
User is received to instruct by the file scan of first applications trigger;
Judge whether the first file that will be scanned is the first class file, if it is judged that being yes, then scans described first
File, first class file is:The rubbish that can be just scanned to the authority that the storage device conducts interviews need not be obtained
File.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710531663.XA CN107291401B (en) | 2017-06-30 | 2017-06-30 | File scanning method, file cleaning method, related device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710531663.XA CN107291401B (en) | 2017-06-30 | 2017-06-30 | File scanning method, file cleaning method, related device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107291401A true CN107291401A (en) | 2017-10-24 |
CN107291401B CN107291401B (en) | 2020-12-11 |
Family
ID=60098457
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710531663.XA Active CN107291401B (en) | 2017-06-30 | 2017-06-30 | File scanning method, file cleaning method, related device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107291401B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113704195A (en) * | 2021-08-26 | 2021-11-26 | 北京琥珀创想科技有限公司 | Android system junk file cleaning method and device |
Citations (10)
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 |
CN102867147A (en) * | 2012-08-24 | 2013-01-09 | 北京奇虎科技有限公司 | File scanning method and device |
CN103246850A (en) * | 2013-05-23 | 2013-08-14 | 福建伊时代信息科技股份有限公司 | Method and device for processing file |
US20140047062A1 (en) * | 2012-08-07 | 2014-02-13 | Dell Products L.P. | System and Method for Maintaining Solvency Within a Cache |
CN104021159A (en) * | 2014-05-26 | 2014-09-03 | 北京金山安全软件有限公司 | Client file cleaning method and device |
CN104317955A (en) * | 2014-11-13 | 2015-01-28 | 北京奇虎科技有限公司 | File scanning method and device for storage space of mobile terminal |
CN105893865A (en) * | 2015-12-31 | 2016-08-24 | 乐视移动智能信息技术(北京)有限公司 | File processing method and device |
CN105893278A (en) * | 2016-03-30 | 2016-08-24 | 北京金山安全软件有限公司 | System cache garbage cleaning method and device and terminal equipment |
CN106339444A (en) * | 2016-08-23 | 2017-01-18 | 深圳市金立通信设备有限公司 | Method for instantly deleting file and terminal |
CN106534101A (en) * | 2016-11-01 | 2017-03-22 | 广东浪潮大数据研究有限公司 | File protection method, safety system client and file protection system |
-
2017
- 2017-06-30 CN CN201710531663.XA patent/CN107291401B/en active Active
Patent Citations (10)
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 |
US20140047062A1 (en) * | 2012-08-07 | 2014-02-13 | Dell Products L.P. | System and Method for Maintaining Solvency Within a Cache |
CN102867147A (en) * | 2012-08-24 | 2013-01-09 | 北京奇虎科技有限公司 | File scanning method and device |
CN103246850A (en) * | 2013-05-23 | 2013-08-14 | 福建伊时代信息科技股份有限公司 | Method and device for processing file |
CN104021159A (en) * | 2014-05-26 | 2014-09-03 | 北京金山安全软件有限公司 | Client file cleaning method and device |
CN104317955A (en) * | 2014-11-13 | 2015-01-28 | 北京奇虎科技有限公司 | File scanning method and device for storage space of mobile terminal |
CN105893865A (en) * | 2015-12-31 | 2016-08-24 | 乐视移动智能信息技术(北京)有限公司 | File processing method and device |
CN105893278A (en) * | 2016-03-30 | 2016-08-24 | 北京金山安全软件有限公司 | System cache garbage cleaning method and device and terminal equipment |
CN106339444A (en) * | 2016-08-23 | 2017-01-18 | 深圳市金立通信设备有限公司 | Method for instantly deleting file and terminal |
CN106534101A (en) * | 2016-11-01 | 2017-03-22 | 广东浪潮大数据研究有限公司 | File protection method, safety system client and file protection system |
Non-Patent Citations (2)
Title |
---|
JIWU SHU等: "《Shield:A stackable secure storage system for file sharing in public storage》", 《JOURNAL OF PARALLEL AND DISTRIBUTED COMPUTING》 * |
曾健平: "《Android系统智能手机木马检测系统设计与实现》", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113704195A (en) * | 2021-08-26 | 2021-11-26 | 北京琥珀创想科技有限公司 | Android system junk file cleaning method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107291401B (en) | 2020-12-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103309998B (en) | A kind of message query method and device, terminal device | |
CN107911487A (en) | Information-pushing method, device, server and readable storage medium storing program for executing | |
CN103777947B (en) | The management method at the main interface of a kind of mobile terminal and device | |
CN104601683B (en) | A kind of file download management method and mobile terminal and communication system | |
CN104731530B (en) | A kind of file management method and mobile terminal applied to mobile terminal | |
CN104536792A (en) | Method and device for eliminating application program residual files | |
CN105893278A (en) | System cache garbage cleaning method and device and terminal equipment | |
CN105187632B (en) | Method and device for determining mobile phone number | |
CN109472656B (en) | Virtual article display method and device and storage medium | |
CN104820683A (en) | Terminal | |
CN105224194A (en) | A kind of data processing method and terminal | |
CN107578659A (en) | Generation method, generating means and the terminal of electronics topic | |
CN105988657A (en) | Message replying method and apparatus | |
CN105991829A (en) | Content recommendation method and terminal | |
CN106060220B (en) | A kind of contact information creation method and mobile terminal | |
CN109242582A (en) | The generation method and Related product of invoice | |
CN106803032A (en) | Realize method, device and client device that website fingerprint is logged in | |
CN104834687A (en) | Picture display method | |
CN106888308B (en) | A kind of method of speech processing and mobile terminal | |
CN106815232A (en) | Catalog management method, apparatus and system | |
CN102937948A (en) | Image-text data editing method for mobile terminal | |
CN107203417A (en) | A kind of data clearing method, relevant apparatus and electronic equipment | |
CN107291401A (en) | File scanning method, file cleaning method, related device and electronic equipment | |
CN107623627A (en) | A kind of information replying method and device, terminal and readable storage medium storing program for executing | |
CN104391844A (en) | Data management system and tool |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |