The content of the invention
In view of this, the embodiments of the invention provide a kind of e-file processing method, device and electric terminal, it is intended to solves
Certainly when an insufficient storage space exists, it is existing directly e-file is deleted or caused by moving on other external equipments can not be extensive
The problem of multiple or troublesome in poeration.
One aspect of the present invention provides a kind of e-file processing method, including:Deleting instruction according to file will be to be deleted
File moves to the recovery zone of electric terminal, turns into deletion file;According to default rating conditions to the deletion in recovery zone
File divided rank;Handled according to grade deleting file.
In one embodiment, recovery zone includes the first recovery zone and the second recovery zone, is deleted and referred to according to file
File to be deleted is moved to recovery zone by order to be included deleting to instruct according to file file to be deleted is moved into the first recovery zone, its
In, the first recovery zone is located at the internal storage space of electric terminal, and the second recovery zone is located at the external storage of electric terminal
Space.
In one embodiment, grade according to default class requirement be divided into grade 1, grade 2 that rank gradually reduces, etc.
Five level 3, class 4 and class 5 grades, carrying out processing to deletion file according to grade includes:Use the first compression ratio In Grade
Depth-compression is carried out for 1 deletion file;The deletion file for the use of the second compression ratio In Grade more than the first compression ratio being 2 enters
Row either shallow is compressed;The deletion file that grade is 3 is transferred to the second recovery zone from the first recovery zone;In Grade is 4 and 5
File is deleted not process.
In one embodiment, rating conditions include deleting the value requirement of the attribute of file, according to default grade bar
Part includes to the deletion file divided rank in recovery zone:Obtain the property value for deleting file;According to default each grade
The requirement of attribute value will delete file and be divided in corresponding grade.
In one embodiment, deletion duration and file size that the attribute of file includes deleting file are deleted, grade 1
Rating conditions are more than the 3rd duration threshold value to delete the deletion duration of file;The rating conditions of grade 2 are the deletion for deleting file
Duration is between the second duration threshold value and the 3rd duration threshold value and its file threshold value is more than the 3rd file threshold value;Grade 3 etc.
To delete, the deletion duration of file is between the first duration threshold value and the second duration threshold value level condition and its file threshold value is more than
Second file threshold value;The rating conditions of class 4 are less than the first duration threshold value and its file threshold value to delete the deletion duration of file
More than the first file threshold value;The deletion text of the rating conditions of grade 1, grade 2, grade 3 and class 4 is all unsatisfactory in recovery zone
Part is that class 5 deletes file;Wherein, the 3rd duration threshold value>Second duration threshold value>First duration threshold value, the first file threshold value>The
Two file threshold values>3rd file threshold value.
In one embodiment, e-file processing method further comprises:Detect the available sky in the first recovery zone
Between be worth whether be less than default first capacity-threshold, and whether the free space value in the second recovery zone is less than default the
Two capacity-thresholds;When detecting that the free space value in the first recovery zone is less than the first capacity-threshold, according to rank by height
To low order, corresponding deletion file in the first recovery zone is moved to the second recovery zone, until the first recovery zone
In free space value be more than the first capacity-threshold, when the free space value in the second recovery zone is less than second space threshold value
When, according to the order of rank from high to low, corresponding deletion file in the second recovery zone is deleted from the second recovery zone,
Until the free space value in the second recovery zone is more than second space threshold value.
Another aspect of the present invention provides a kind of e-file processing unit, including:Mobile module, for being deleted according to file
Except instruction moves to file to be deleted the recovery zone of electric terminal, turn into file to be deleted and delete file;Grade classification mould
Block, for according to default rating conditions to the deletion file divided rank in recovery zone;Grade processing module, for basis
Grade is handled deleting file.
In one embodiment, recovery zone includes the first recovery zone and the second recovery zone, and mobile module is according to text
Part deletes instruction and file to be deleted is moved into recovery zone including moving to file to be deleted first time according to file deletion instruction
Region is received, wherein, the first recovery zone is located at the internal storage space of electric terminal, and the second recovery zone is located at electric terminal
External memory space.
In one embodiment, grade according to default class requirement be divided into grade 1, grade 2 that rank gradually reduces, etc.
Five level 3, class 4 and class 5 grades, grade processing module carries out processing according to grade to deletion file to be included:Use first
The deletion file that compression ratio In Grade is 1 carries out depth-compression;The use of the second compression ratio In Grade more than the first compression ratio is 2
Deletion file carry out either shallow compression;The deletion file that grade is 3 is transferred to the second recovery zone from the first recovery zone;It is right
The deletion file that grade is 4 and 5 does not process.
In one embodiment, rating conditions include deleting the value requirement of the attribute of file, and grade classification module includes:
Acquiring unit, the property value of file is deleted for obtaining;Division unit, for being required according to the attribute value of default each grade
File will be deleted to be divided in corresponding grade.
In one embodiment, e-file processing unit further comprises:Detection module, for detecting the first recovery area
Whether the free space value in domain is less than default first capacity-threshold, and the free space value in the second recovery zone whether
Less than default second space threshold value;Spatial processing module, for detecting can use in the first recovery zone when detection module
When spatial value is less than the first capacity-threshold, according to the order of rank from high to low, text is deleted by corresponding in the first recovery zone
Part is moved to the second recovery zone, until the free space value in the first recovery zone is more than the first capacity-threshold, when second time
When free space value in receipts region is less than second space threshold value, according to the order of rank from high to low, by the second recovery zone
In corresponding deletion file deleted from the second recovery zone, until to be more than second empty for the free space value in the second recovery zone
Between threshold value.
The embodiment of the present invention additionally provides a kind of electric terminal, including processor, memory and storage on a memory by
The computer program of computing device, the as above step described by either method is realized during computing device computer program.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, is stored thereon with computer program, calculates
The as above step described by either method is realized when machine program is executed by processor.
E-file processing method provided in an embodiment of the present invention is by by a part of region of electric terminal memory space
Recovery zone is preset as, deletes instruction in response to the file of user, the file to be deleted that file is deleted to instruction sensing moves to this
Recovery zone is stored, and can prevent that file is lost caused by delete by mistake, is facilitated user to carry out file and is given operation for change.And
Deletion file divided rank of this method also to recovery zone, different processing methods is imposed for different brackets, achievable pair
The fine-grained management of file is deleted, improves the utilization rate of memory space, is avoided because being turned some files using insufficient space
Move to caused trouble on External memory equipment.
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 carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Based on this
Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example is applied, belongs to the scope of protection of the invention.
Fig. 1 show a kind of flow chart of e-file processing method of one embodiment of the invention offer.The e-file
Processing method is applicable to such as smart mobile phone, tablet personal computer, Intelligent worn device mobile terminal, is equally applicable to desktop
The immobile terminals such as brain, all-in-one.As shown in figure 1, this method comprises the following steps:
Step 101:Instruction is deleted according to file file to be deleted is moved into recovery zone, turn into deletion file.
A part of region of the memory space of electric terminal is preset as recovery zone, for being stored in institute under user instruction
The file of deletion, these files to be deleted are moved to recovery zone and become deletion file.It should be understood that when electric terminal is
During a kind of mobile terminal such as smart mobile phone, the memory space may include the memory space that fuselage carries and the storage card of insertion
Memory space.
Instruction is deleted in response to the file of user's triggering, file to be deleted is moved into the recovery zone from former storage location
When, the size of this document, type can be recorded simultaneously and are moved to the file attribute informations such as the time of recovery zone.
Step 102:According to default rating conditions to the deletion file divided rank in recovery zone.
Step 103:Handled accordingly according to grade deleting file.
When handling the deletion file in recovery zone, for different grades of file, different processing sides is imposed
Processing is deleted or compressed to the higher file of method, such as In Grade, and the relatively low file of In Grade keeps constant etc..
The default rating conditions can be the attribute specification for deleting file, and the attribute concretely deletes the big of file
Small, type or distance are moved to the information such as the time interval (deleting duration) of recovery zone.For example, on the basis of deleting duration
The division of grade is carried out to deleting file, the longer file of the time interval that recovery zone is moved to apart from file is divided into
Higher grade.Certainly it may also be combined with fileinfo of both deletion duration and file size and drawn to deleting file progress grade
Point, then for different grades of file, different processing methods is carried out, this method taken into account can be to deleting in recovery zone
Except file realizes the management more to become more meticulous.
In addition, because the file that user deletes can be short message, message registration, Office documents, picture, audio, regard
The all kinds such as frequency or APP (Application, application program), and various types of files may to the significance level of user
It is different, it is possible to carry out the division of grade to deleting file according to significance level, then carried out for different grades
Different processing.
E-file processing method provided in an embodiment of the present invention is by by a part of region of electric terminal memory space
Recovery zone is preset as, deletes instruction in response to the file of user, the file to be deleted that file is deleted to instruction sensing moves to this
Recovery zone is stored, and can prevent that file is lost caused by delete by mistake, is facilitated user to carry out file and is given operation for change.And
Deletion file divided rank of this method also to recovery zone, different processing methods is imposed for different brackets, achievable pair
The fine-grained management of file is deleted, improves the utilization rate of memory space, is avoided because being turned some files using insufficient space
Move to caused trouble on External memory equipment.
Fig. 2 show a kind of flow chart of e-file processing method of another embodiment of the present invention offer.Such as Fig. 2 institutes
Show, this method comprises the following steps:
Step 201:Instruction is deleted according to file file to be deleted is moved into the first recovery zone, turn into deletion file.
In the present embodiment, recovery zone includes the first recovery zone and the second recovery zone, wherein, the first recovery zone
In the internal storage of electric terminal, the second recovery zone is then in the external memory storage of electric terminal.When receiving
When the file of user's triggering deletes instruction, file to be deleted is moved to the first recovery zone by the present embodiment from former storage location.
Step 202:According to the value requirement for the attribute for deleting file to the deletion file divided rank in recovery zone, and
Grade is divided into grade 1, grade 2, grade 3, class 4 and the class 5 five that rank gradually reduces according to the requirement of default attribute value
Individual grade.
Step 203:The deletion file that In Grade is 1 carries out depth-compression, and its compression ratio is W1;In Grade is 2 deletion
File carries out either shallow compression, and its compression ratio is W2;The deletion file that grade is 3 is transferred to the second recovery from the first recovery zone
Region;The deletion file that In Grade is 4 and 5 does not process;Wherein, W2>W1.
I.e. in the present embodiment, rating conditions require to delete the value of the attribute of file, wherein, attribute is included as deleted
The information such as deletion duration, file size or the file type of file.In one embodiment, step 202 specifically includes:Acquisition is deleted
Except the property value of file;According to the requirement of the attribute value of default each grade will delete file be divided to corresponding in grade.
In a specific embodiment, deletion duration and file size that the attribute of file includes deleting file are deleted.
According to the processing of deletion duration and file size to deleting the rule of file 5 grade classifications of progress and being done for each grade
Respectively:
The rating conditions of grade 1 are more than the 3rd duration threshold value, the deletion text that In Grade is 1 to delete the deletion duration of file
Part carries out depth-compression, and its compression ratio is W1;
The rating conditions of grade 2 are between the second duration threshold value and the 3rd duration threshold value to delete the deletion duration of file
And its file threshold value is more than the 3rd file threshold value, the deletion file that In Grade is 2 carries out either shallow compression, and its compression ratio is W2;
The rating conditions of grade 3 are between the first duration threshold value and the second duration threshold value to delete the deletion duration of file
And its file threshold value is more than the second file threshold value, the deletion file that grade is 3 is transferred to the second recovery from the first recovery zone
Region;
The rating conditions of class 4 are less than the first duration threshold value and its file threshold value to delete the deletion duration of file and are more than the
One file threshold value, be all unsatisfactory in recovery zone grade 1, grade 2, grade 3 and class 4 rating conditions deletion file for etc.
Level 5 deletes file, and the deletion file that In Grade is 4 and 5 does not process.
Wherein, the 3rd duration threshold value>Second duration threshold value>First duration threshold value, file threshold value are the threshold of file size
Value, the first file threshold value>Second file threshold value>3rd file threshold value, and W2>W1.
For the first duration threshold value, the second duration threshold value and the 3rd duration threshold value and the first file threshold value, the second file
The concrete numerical value of threshold value and the 3rd file threshold value, those skilled in the art can be according to specific needs or with reference to default recovery areas
The parameters such as the storage capacity value in domain are set, and the present invention is not limited this.
The grade classification rule for the method that the present embodiment provides will be illustrated with numerical example below and according to this rule
What is performed is directed to different grades of different disposal method.
In this example, the first duration threshold value, the second duration threshold value and the 3rd duration threshold value take respectively 72HR, 720HR and
2160HR, the first file threshold value, the second file threshold value and the 3rd file threshold value take 500MB, 250MB and 50MB respectively.
As above, when receiving file and deleting instruction, the first recovery zone that file to be deleted will be moved in recovery zone,
As deletion file.If this file size for being just moved to recovery zone (delete duration and be less than 72HR) is more than 500MB, by
It is divided into class 4 and deletes file, if its file size is less than 500MB (including equal to 500MB), is divided to grade 1-4
Outside class 5 in.So the file size for no matter being just moved to recovery zone is how many, all it can not be processed, and after
Continuation of insurance is stayed in the first recovery zone.
(the time stored in the first recovery zone when deleting the deletion duration of file more than 72HR and being less than 720HR
During more than 72HR), the deletion file more than 250MB is then divided into grade 3 and deletes file, i.e., former class 4 deletes file and big
The larger deletion file of file these file sizes, the time stored in the first recovery zone are deleted in 250MB former class 5
Grade 3 can be upgraded to during more than 72HR and delete file.The processing mode that file is deleted for grade 3 is, by it from first time
Zone-transfer is received into the second recovery zone.That is, storage of first recovery zone for deleting the file short time, second
Recovery zone is then used to delete file (the especially larger deletion file of file) storage for a long time.So, large volume is deleted
File is stored in external memory storage, saves internal storage space so that other application uses.Due to terminal-pair storage inside
The access speed of device is higher than to the access speed of external memory storage, so in terms of some, improves the property of machine system
Energy.
When deleting the deletion duration of file more than 720HR and being less than 2160HR, the deletion file more than 50MB is then divided
File is deleted for grade 2, i.e., former grade 3 deletes file (the deletion file having been transferred in the second recovery zone) and more than 50MB
Former class 5 delete file (the deletion file being still stored in the first recovery zone) as long as the time stored in recovery zone
Grade 2 can be upgraded to during more than 720HR and delete file, the processing mode that file is deleted for grade 2 is then compressed for either shallow, its
Compression ratio is W2.That is, no matter deleting whether file is transferred in the second recovery zone, exceed as long as it deletes duration
720HR and its size is more than 50MB, carries out either shallow compression to it.It should be understood that compression ratio refer to it is big after compressing file
The ratio between small size with before compression, compression ratio is usually the smaller the better, but presses smaller, and decompression time is also longer.So
The deletion file that In Grade is 2 takes either shallow squeeze operation, not only can effectively save memory space, can also need to recover text
Shorten the file access pattern time during part.
It is either much or be stored in deleting for which recovery zone when deleting the deletion duration of file more than 2160HR
File is deleted except file is all divided into grade 1, depth-compression is carried out to it, its compression ratio is W1.That is, this etc.
In the rule of level division, while take into account and delete duration and file size both of these documents attribute information, however, being finally to delete
Duration determines to delete the highest level of file.As long as more than certain duration threshold value, depth will be performed by deleting file
Compression, because the deleted time is longer, the demand that user needs to give for change may be also lower, so compression ratio selection is less than W2
W1, while disclosure satisfy that user's request, also greatly save memory space.For W1 and W2 concrete numerical value, this area
Technical staff can do different choice according to actual conditions, the present invention is not limited this.
E-file processing method provided in an embodiment of the present invention is internally set up in memory and external memory storage respectively
First recovery zone and the second recovery zone, wherein the first recovery zone is used for the storage for deleting the file short time, the second recovery
Region is then used to delete file (the especially larger deletion file of file) storage for a long time.So, large volume deletes file
It is stored in external memory storage, saves internal storage space so that other application uses, improve the performance of machine system.Separately
Outside, method provided in an embodiment of the present invention carries out grade classification according to file attribute to the deletion file in recovery zone, for
Different grades operates corresponding to performing, and improves memory space utilization rate, and for different grades according to different pressures
Shrinkage is compressed, and while effectively saving memory space, has also taken into full account that user's gives demand for change, for deleting duration
Relatively small deletion file carries out either shallow compression, then when needing to recover file, can lift file decompression speed, shorten file
Recovery time.
Fig. 3 show a kind of flow chart of e-file processing method of another embodiment of the present invention offer.In this implementation
In example, the step 201-203 in step 301-303 and embodiment illustrated in fig. 2 is essentially identical, is not repeated to describe.Such as Fig. 3 institutes
Show, the present embodiment further comprises following step 304 and 305 on the basis of embodiment illustrated in fig. 2.
Step 304:Detect whether the free space value B1 in the first recovery zone is less than default first capacity-threshold T1,
And whether the second free space value B2 in recovery zone is less than default second space threshold value T2.
Step 305:When detecting that the free space value B1 in the first recovery zone is less than the first capacity-threshold T1, according to
The order of rank from high to low, corresponding deletion file in the first recovery zone is moved to the second recovery zone, until first
Free space value B1 in recovery zone is more than the first capacity-threshold T1, when the free space value B2 in the second recovery zone is less than
During second space threshold value T2, according to the order of rank from high to low, by corresponding file of deleting in the second recovery zone from second
Deleted in recovery zone, until the free space value B2 in the second recovery zone is more than second space threshold value T2.
Above-mentioned first capacity-threshold T1 and second space threshold value T2 is respectively default first recovery zone and the second recovery
The threshold value of spatial margin in region, it can be done and different set according to real needs, and T1 and T2 value can may not be used with identical yet
Together, such as T1 and T2 can be respectively 40%, the 50% of the first recovery zone and the second recovery zone total capacity, the present invention to this not
Limit.
Because the memory space of the first recovery zone and the second recovery zone is limited after all, even if being carried out to it finely
The management of change, memory space is set to have obtained effective utilization, but after a period of time, the first recovery zone and the second recovery area
Deletion file in domain can also form accumulation, and after reaching to a certain degree, recovery zone can not then accommodate more files again.So
The deletion file in the first recovery zone can be made gradually to be transferred to the second recovery zone by above-mentioned steps 304 and 305, so as to
System is set to keep the operation of high access speed, the deletion file in the second recovery zone reaches after certain threshold value again through scale removal process
To discharge more spaces.It is and above-mentioned to be transferred to the second recovery zone and from the second recovery zone from the first recovery zone
The process of deletion, carried out according to the order of grade from high to low, i.e. the file deleted time is longer, its original size
Bigger, the priority for being transferred or being cleaned from recovery zone is higher.Again because the time that file is put in recovery zone gets over
Long, user may need its probability smaller, and delete the file that duration is longer and/or original document is bigger, easier to be drawn
Divide to higher rank, thus the present embodiment is to consider to delete probability and memory space that file is needed again by user
Saving amplitude handled, embody the design of hommization significantly, improve Consumer's Experience.
The embodiment of the present invention additionally provides a kind of e-file processing unit, as shown in figure 4, the device includes:Mobile mould
Block 10a, file to be deleted is moved into recovery zone for deleting instruction according to this document, turns into file to be deleted and deletes text
Part;Grade classification module 20a, for according to default rating conditions to the deletion file divided rank in recovery zone;Grade
Processing module 30a, for being handled accordingly according to grade deleting file.
The e-file processing unit is applicable to such as smart mobile phone, tablet personal computer, Intelligent worn device mobile terminal,
It is equally applicable to the immobile terminals such as desktop computer, all-in-one.A part of region of the memory space of electric terminal is preset as
Recovery zone, for being stored in the file deleted under user instruction, these files to be deleted move to recovery by mobile module 10a
Region becomes deletion file.
The default rating conditions can be the attribute specification for deleting file, and the attribute concretely deletes the big of file
Small, type or distance are moved to the information such as the time interval (deleting duration) of recovery zone.For example, on the basis of deleting duration
The division of grade is carried out to deleting file, then grade classification module 20a will be moved to the time interval of recovery zone apart from file
Longer file, it is divided into higher grade.Certain grade classification module 20a, which may also be combined with, deletes duration and the side of file size two
The fileinfo in face carries out grade classification to deleting file, and then grade processing module 30a is directed to different brackets file, carries out not
Processing is deleted or compressed to same processing method, the higher file of such as In Grade, and the relatively low file of In Grade keeps constant
Deng the management that this method taken into account can more become more meticulous to the file realization in recovery zone.
E-file processing unit provided in an embodiment of the present invention is by by a part of region of electric terminal memory space
Recovery zone is preset as, instruction is deleted in response to the file of user by mobile module 10a, file is deleted and instructs that points to wait to delete
Stored except file moves to the recovery zone, can prevent that file is lost caused by delete by mistake, facilitates user to carry out file
Give operation for change.And the present apparatus is also by deletion file divided ranks of the grade classification module 20a to recovery zone, then by grade
Processing module 30a imposes different processing methods for different brackets, and the fine-grained management to deleting file can be achieved, and raising is deposited
Store up space utilization rate, avoid because using insufficient space and by some files be transferred on External memory equipment caused by fiber crops
It is tired.
In an alternative embodiment of the invention, recovery zone includes the first recovery zone and the second recovery zone, wherein, first
Recovery zone is located in the internal storage of electric terminal, and the second recovery zone is then in the external memory storage of electric terminal.
When the file for receiving user's triggering deletes instruction, mobile module 10b moves to file to be deleted to the from former storage location
One recovery zone.
In the present embodiment, rating conditions require to delete the value of the attribute of file, wherein, attribute is included as deleted text
The information such as deletion duration, file size or the file type of part.Grade classification module 20b according to delete file attribute value
It is required that to the deletion file divided rank in recovery zone, as shown in figure 5, grade division module 20b is specifically included:Obtain single
Member 21, the property value of file is deleted for obtaining;With division unit 22, for according to the attribute value of default each grade require
File will be deleted to be divided in corresponding grade.
In a specific embodiment, grade is divided into the grade that rank gradually reduces according to the requirement of default attribute value
1st, five grade 2, grade 3, class 4 and class 5 grades, deletion duration and file that the attribute of file includes deleting file are deleted
Size.
It is then right to the regular and each grade institute for deleting file 5 grade classifications of progress according to duration and file size is deleted
The processing answered is respectively:
The rating conditions of grade 1 are more than the 3rd duration threshold value to delete the deletion duration of file, then are divided unit 22 and draw
It is divided into the deletion file of grade 1, depth-compression is carried out by grade processing module 30b, its compression ratio is W1.
The rating conditions of grade 2 are between the second duration threshold value and the 3rd duration threshold value to delete the deletion duration of file
And its file threshold value is more than the 3rd file threshold value, then the deletion file that unit 22 is divided into grade 2 is divided, mould is handled by grade
Block 30b carries out either shallow compression, and its compression ratio is W2.
The rating conditions of grade 3 are between the first duration threshold value and the second duration threshold value to delete the deletion duration of file
And its file threshold value is more than the second file threshold value, then is divided the deletion file that unit 22 is divided into grade 3, mould is handled by grade
Block 30b is transferred to the second recovery zone from the first recovery zone.
The rating conditions of class 4 are less than the first duration threshold value and its file threshold value to delete the deletion duration of file and are more than the
One file threshold value, be all unsatisfactory in recovery zone grade 1, grade 2, grade 3 and class 4 rating conditions deletion file for etc.
Level 5 deletes file, then is divided unit 22 and is divided into class 4 and 5 deletion file, grade processing module 30b is not done to it to be located
Reason.
Wherein, the 3rd duration threshold value>Second duration threshold value>First duration threshold value, file threshold value are the threshold of file size
Value, the first file threshold value>Second file threshold value>3rd file threshold value, and W2>W1.For the first duration threshold value, the second duration threshold
The concrete numerical value of value and the 3rd duration threshold value and the first file threshold value, the second file threshold value and the 3rd file threshold value, this area
Technical staff can be set according to specific needs or with reference to the parameter such as storage capacity value of default recovery zone, the present invention
This is not limited.
Internal storage and external memory storage of the e-file processing unit provided in an embodiment of the present invention in electric terminal
It is middle to set up the first recovery zone and the second recovery zone respectively, wherein the first recovery zone is used to delete depositing for file short time
Put, the second recovery zone is then used to delete file (the especially larger deletion file of file) storage for a long time.So, substantially
Product is deleted file and is stored in external memory storage, saves internal storage space so that other application uses, improves complete machine system
The performance of system.In addition, device provided in an embodiment of the present invention is carried out etc. according to file attribute to the deletion file in recovery zone
Level division, operated by grade processing module 30b for different grade execution is corresponding, improve memory space utilization rate, and
And be compressed for different grades according to different compression ratios, while effectively saving memory space, also take into full account
User's gives demand for change, carries out either shallow compression for deleting the relatively small deletion file of duration, is then needing to recover file
When, file decompression speed can be lifted, shortens the file access pattern time.
Fig. 6 show a kind of structural representation of e-file processing unit of another embodiment of the present invention offer.The electricity
Subfile processing unit further comprises on the basis of embodiment illustrated in fig. 5:Detection module 40, for detecting the first recovery
Whether the free space value B1 in region is less than default first capacity-threshold T1, and the free space in the second recovery zone
Whether value B2 is less than default second space threshold value T2;Spatial processing module 50, for being detected first time when detection module 40
When free space value B1 in receipts region is less than the first capacity-threshold T1, according to the order of rank from high to low, by the first recovery
Corresponding deletion file is moved to the second recovery zone in region, until the free space value B1 in the first recovery zone is more than the
One capacity-threshold T1, when the free space value B2 in the second recovery zone is less than second space threshold value T2, according to rank by height
To low order, corresponding deletion file in the second recovery zone is deleted from the second recovery zone, until the second recovery area
Free space value B2 in domain is more than second space threshold value T2.
Above-mentioned first capacity-threshold T1 and second space threshold value T2 is respectively default first recovery zone and the second recovery
The threshold value of spatial margin in region, it can be done and different set according to real needs, and T1 and T2 value can may not be used with identical yet
Together, such as T1 and T2 can be respectively 40%, the 50% of the first recovery zone and the second recovery zone total capacity, the present invention to this not
Limit.
Because the memory space of the first recovery zone and the second recovery zone is limited after all, even if being carried out to it finely
The management of change, memory space is set to have obtained effective utilization, but after a period of time, the first recovery zone and the second recovery area
Deletion file in domain can also form accumulation, and after reaching to a certain degree, recovery zone can not then accommodate more files again.So
The deletion file in the first recovery zone can be made gradually to be transferred to by above-mentioned detection module 40 and spatial processing module 50
Two recovery zones, so that system keeps the operation of high access speed, the deletion file in the second recovery zone reaches certain threshold
Again through scale removal process to discharge more spaces after value.And above-mentioned spatial processing module 50 will delete file from the first recovery
The operation that zone-transfer is deleted to the second recovery zone and from the second recovery zone, is all order according to grade from high to low
Carry out, i.e. the file deleted time is longer, and its original size is bigger, is transferred or is cleaned from recovery zone preferential
Level is higher.The e-file processing unit of the present embodiment design considered delete the probability that is needed again by user of file and
What the saving amplitude of memory space was handled, the design of hommization is embodied significantly, improves Consumer's Experience.
The embodiment of the present invention additionally provides a kind of electric terminal, including processor, memory and storage on a memory by
The computer program of computing device, the step as described by above-mentioned either method is realized during the computing device computer program
Suddenly.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, is stored thereon with computer program, calculates
The step as described by above-mentioned either method is realized when machine program is executed by processor.
Those of ordinary skill in the art are it is to be appreciated that the mould of each example described with reference to the embodiments described herein
Block/unit and step, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are studied carefully
Unexpectedly performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional technique people
Member can realize described function using distinct methods to each specific application, but this realization is it is not considered that super
Go out the scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description,
The specific work process of module and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it can be passed through
Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of module/unit,
Only a kind of division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can be with
With reference to or be desirably integrated into another system, or some features can be ignored, or not perform.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.
If function is realized in the form of SFU software functional unit and as independent production marketing or in use, can stored
In a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words to existing
The part for having part that technology contributes or the technical scheme can be embodied in the form of software product, the computer
Software product is stored in a storage medium, including some instructions are make it that a computer equipment (can be personal meter
Calculation machine, server, or network equipment etc.) perform all or part of step of each embodiment method of the present invention.It is and foregoing
Storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory
(RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of storage program check code.
More than, it is only embodiment of the invention, but protection scope of the present invention is not limited thereto, and it is any to be familiar with
Those skilled in the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be covered
Within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.