CN107766005A - E-file processing method, device and electric terminal - Google Patents

E-file processing method, device and electric terminal Download PDF

Info

Publication number
CN107766005A
CN107766005A CN201711066057.1A CN201711066057A CN107766005A CN 107766005 A CN107766005 A CN 107766005A CN 201711066057 A CN201711066057 A CN 201711066057A CN 107766005 A CN107766005 A CN 107766005A
Authority
CN
China
Prior art keywords
file
recovery zone
grade
deletion
threshold value
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
Application number
CN201711066057.1A
Other languages
Chinese (zh)
Other versions
CN107766005B (en
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.)
Pudao Shanghai Information Technology Co Ltd
Original Assignee
Shenzhen Tinno Mobile Technology Co Ltd
Shenzhen Tinno Wireless Technology 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 Tinno Mobile Technology Co Ltd, Shenzhen Tinno Wireless Technology Co Ltd filed Critical Shenzhen Tinno Mobile Technology Co Ltd
Priority to CN201711066057.1A priority Critical patent/CN107766005B/en
Publication of CN107766005A publication Critical patent/CN107766005A/en
Application granted granted Critical
Publication of CN107766005B publication Critical patent/CN107766005B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

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 invention provides a kind of e-file processing method, device and electric terminal, solve when an insufficient storage space exists, it is existing directly e-file is deleted or caused by moving on other external equipments the problem of can not recovering or be troublesome in poeration.E-file processing method provided by the invention includes:Deleted according to file and instruct the recovery zone that file to be deleted is moved to electric terminal, turn into deletion file;According to default rating conditions to the deletion file divided rank in recovery zone;Handled according to grade deleting file.

Description

E-file processing method, device and electric terminal
Technical field
The present invention relates to electric terminal technical field, and in particular to a kind of e-file processing method, device and electronics are whole End.
Background technology
With the development of electric terminal technology, the function of the electric terminal such as smart mobile phone, tablet personal computer is also more and more, its It is usually sharp exchange essential in people's life, amusement, the common tool read or even handled official business, such as people have been increasingly becoming Taken pictures with above-mentioned terminal, imaged, download the files such as all kinds of audio frequency and video, this usually requires to take substantial amounts of memory space.So And the memory space of these terminals is very limited, when storage file is more, the available insufficient space of memory, generally require by Some files are transferred on other External memory equipments such as computer, USB flash disk or directly deleted, and are deposited with increasing the available of electric terminal Store up space.So not only can be pretty troublesome, and the file deleted can not recover.
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.
Brief description of the drawings
Fig. 1 show a kind of flow chart of e-file processing method of one embodiment of the invention offer.
Fig. 2 show a kind of flow chart of e-file processing method of another embodiment of the present invention offer.
Fig. 3 show a kind of flow chart of e-file processing method of another embodiment of the present invention offer.
Fig. 4 show a kind of structural representation of e-file processing unit of one embodiment of the invention offer.
Fig. 5 show a kind of structural representation of e-file processing unit of another embodiment of the present invention offer.
Fig. 6 show a kind of structural representation of e-file processing unit of another embodiment of the present invention offer.
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.

Claims (10)

  1. A kind of 1. e-file processing method, it is characterised in that including:
    Deleted according to file and instruct the recovery zone that file to be deleted is moved to electric terminal, turn into deletion file;
    According to default rating conditions to the deletion file divided rank in the recovery zone;
    The deletion file is handled according to the grade.
  2. 2. e-file processing method according to claim 1, it is characterised in that the recovery zone includes the first recovery Region and the second recovery zone, first recovery zone are located at the internal storage space of the electric terminal, described second time Receive region and be located at the external memory space of the electric terminal, the grade according to the default class requirement be divided into rank by Five grade 1, grade 2, grade 3, class 4 and the class 5 grades gradually reduced,
    It is described instruction is deleted according to the file file to be deleted is moved into recovery zone to include:
    Instruction is deleted according to the file file to be deleted is moved into first recovery zone;
    It is described that the deletion file is carried out by processing included according to the grade:
    Depth-compression is carried out using the deletion file that the first compression ratio In Grade is 1;
    The deletion file for the use of the second compression ratio In Grade more than first compression ratio being 2 carries out either shallow compression;
    The deletion file that grade is 3 is transferred to second recovery zone from first recovery zone;
    The deletion file that In Grade is 4 and 5 does not process.
  3. 3. e-file processing method according to claim 2, it is characterised in that the rating conditions include the deletion The value requirement of the attribute of file, it is described that the deletion file in the recovery zone is divided according to default rating conditions Grade includes:
    Obtain the property value of the deletion file;
    Corresponding to according to the requirement of the attribute value of default each grade, the deletion file is divided in grade.
  4. 4. e-file processing method according to claim 3, it is characterised in that the attribute bag for deleting file The deletion duration and file size of the deletion file are included,
    The rating conditions of the grade 1 are more than the 3rd duration threshold value for the deletion duration of the deletion file;
    The rating conditions of the grade 2 are in the second duration threshold value and the 3rd duration for the deletion duration of the deletion file Between threshold value and its file threshold value is more than the 3rd file threshold value;
    The rating conditions of the grade 3 are in the first duration threshold value and second duration for the deletion duration of the deletion file Between threshold value and its file threshold value is more than the second file threshold value;
    The rating conditions of the class 4 are less than the first duration threshold value and its file threshold for the deletion duration of the deletion file Value is more than the first file threshold value;
    The deletion file that the rating conditions of the grade 1, grade 2, grade 3 and class 4 are all unsatisfactory in the recovery zone is Class 5 deletes file;
    Wherein, the 3rd duration threshold value>The second duration threshold value>The first duration threshold value, the first file threshold value> The second file threshold value>The 3rd file threshold value.
  5. 5. e-file processing method according to claim 2, it is characterised in that further comprise:
    Detect whether the free space value in first recovery zone is less than default first capacity-threshold, and described second Whether the free space value in recovery zone is less than default second space threshold value;
    When detecting that the free space value in first recovery zone is less than first capacity-threshold, according to rank by height To low order, corresponding deletion file in first recovery zone is moved to second recovery zone, until described Free space value in first recovery zone is more than first capacity-threshold, the free space in second recovery zone When value is less than the second space threshold value, according to the order of rank from high to low, deleted corresponding in second recovery zone Except file is deleted from second recovery zone, until the free space value in second recovery zone is more than described second Capacity-threshold.
  6. A kind of 6. e-file processing unit, it is characterised in that including:
    Mobile module, the recovery zone that file to be deleted is moved to electric terminal is instructed for being deleted according to file, makes described treat Deleting file turns into deletion file;
    Grade classification module, for according to default rating conditions in the recovery zone the deletion file divide etc. Level;
    Grade processing module, for being handled according to the grade the deletion file.
  7. 7. e-file processing unit according to claim 6, it is characterised in that the recovery zone includes the first recovery Region and the second recovery zone, first recovery zone are located at the internal storage space of the electric terminal, described second time Receive region and be located at the external memory space of the electric terminal, the grade according to the default class requirement be divided into rank by Five grade 1, grade 2, grade 3, class 4 and the class 5 grades gradually reduced,
    The mobile module deletes instruction according to the file and file to be deleted is moved into recovery zone including according to the file Delete instruction and the file to be deleted is moved into first recovery zone;
    The grade processing module carries out processing according to the grade to the deletion file to be included:
    Depth-compression is carried out using the deletion file that the first compression ratio In Grade is 1;
    The deletion file for the use of the second compression ratio In Grade more than first compression ratio being 2 carries out either shallow compression;
    The deletion file that grade is 3 is transferred to second recovery zone from first recovery zone;
    The deletion file that In Grade is 4 and 5 does not process.
  8. 8. the e-file processing unit according to right wants 7, it is characterised in that further comprise:
    Detection module, for detecting whether the free space value in first recovery zone is less than default first spatial threshold It is worth, and whether the free space value in second recovery zone is less than default second space threshold value;
    Spatial processing module, for detecting that the free space value in first recovery zone is less than institute when the detection module When stating the first capacity-threshold, according to the order of rank from high to low, corresponding deletion file in first recovery zone is moved Move to second recovery zone, until the free space value in first recovery zone is more than first capacity-threshold, When the free space value in second recovery zone is less than the second space threshold value, according to rank from high to low suitable Sequence, corresponding deletion file in second recovery zone is deleted from second recovery zone, until described second time The free space value received in region is more than the second space threshold value.
  9. 9. a kind of electric terminal, it is characterised in that including processor, memory and be stored on the memory by the processing The computer program that device performs, realized described in the computing device during computer program such as any one of claim 1 to 5 institute The step of stating method.
  10. 10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program Realized when being executed by processor as any one of claim 1 to 5 the step of method.
CN201711066057.1A 2017-11-02 2017-11-02 Electronic file processing method and device and electronic terminal Active CN107766005B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711066057.1A CN107766005B (en) 2017-11-02 2017-11-02 Electronic file processing method and device and electronic terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711066057.1A CN107766005B (en) 2017-11-02 2017-11-02 Electronic file processing method and device and electronic terminal

Publications (2)

Publication Number Publication Date
CN107766005A true CN107766005A (en) 2018-03-06
CN107766005B CN107766005B (en) 2020-07-17

Family

ID=61272459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711066057.1A Active CN107766005B (en) 2017-11-02 2017-11-02 Electronic file processing method and device and electronic terminal

Country Status (1)

Country Link
CN (1) CN107766005B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918340A (en) * 2019-03-18 2019-06-21 维沃移动通信有限公司 A kind of document handling method and terminal device
CN110187893A (en) * 2019-05-21 2019-08-30 维沃移动通信有限公司 A kind of method, mobile terminal and computer readable storage medium for deleting application
CN110569146A (en) * 2019-08-27 2019-12-13 深圳震有科技股份有限公司 Data backup and configuration method, equipment, storage medium and system
CN114281250A (en) * 2021-12-01 2022-04-05 上海闪马智能科技有限公司 Method and device for cleaning storage file, storage medium and electronic device
CN114489897A (en) * 2022-01-21 2022-05-13 北京字跳网络技术有限公司 Object processing method, device, terminal equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006252409A (en) * 2005-03-14 2006-09-21 Canon Inc Document managing device, document managing method, and storage medium
CN104991949A (en) * 2015-07-16 2015-10-21 北京京东尚科信息技术有限公司 Mobile terminal and file management system and method thereof
CN105653582A (en) * 2015-12-21 2016-06-08 联想(北京)有限公司 File management method of electronic equipment and electronic equipment
WO2016117740A1 (en) * 2015-01-23 2016-07-28 ㈜리얼타임테크 Circular queue-based in-memory database system and data processing method of same
CN105930436A (en) * 2016-04-19 2016-09-07 乐视控股(北京)有限公司 File recovery method and device for mobile terminal equipment
CN106802957A (en) * 2017-01-19 2017-06-06 广东欧珀移动通信有限公司 File management method, device and terminal device
CN107122135A (en) * 2017-04-25 2017-09-01 北京小米移动软件有限公司 Data processing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006252409A (en) * 2005-03-14 2006-09-21 Canon Inc Document managing device, document managing method, and storage medium
WO2016117740A1 (en) * 2015-01-23 2016-07-28 ㈜리얼타임테크 Circular queue-based in-memory database system and data processing method of same
CN104991949A (en) * 2015-07-16 2015-10-21 北京京东尚科信息技术有限公司 Mobile terminal and file management system and method thereof
CN105653582A (en) * 2015-12-21 2016-06-08 联想(北京)有限公司 File management method of electronic equipment and electronic equipment
CN105930436A (en) * 2016-04-19 2016-09-07 乐视控股(北京)有限公司 File recovery method and device for mobile terminal equipment
CN106802957A (en) * 2017-01-19 2017-06-06 广东欧珀移动通信有限公司 File management method, device and terminal device
CN107122135A (en) * 2017-04-25 2017-09-01 北京小米移动软件有限公司 Data processing method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918340A (en) * 2019-03-18 2019-06-21 维沃移动通信有限公司 A kind of document handling method and terminal device
CN109918340B (en) * 2019-03-18 2021-07-02 维沃移动通信有限公司 File processing method and terminal equipment
CN110187893A (en) * 2019-05-21 2019-08-30 维沃移动通信有限公司 A kind of method, mobile terminal and computer readable storage medium for deleting application
CN110187893B (en) * 2019-05-21 2023-12-08 维沃移动通信有限公司 Method for deleting application, mobile terminal and computer readable storage medium
CN110569146A (en) * 2019-08-27 2019-12-13 深圳震有科技股份有限公司 Data backup and configuration method, equipment, storage medium and system
CN110569146B (en) * 2019-08-27 2023-12-01 深圳震有科技股份有限公司 Data backup and configuration method, device, storage medium and system
CN114281250A (en) * 2021-12-01 2022-04-05 上海闪马智能科技有限公司 Method and device for cleaning storage file, storage medium and electronic device
CN114489897A (en) * 2022-01-21 2022-05-13 北京字跳网络技术有限公司 Object processing method, device, terminal equipment and medium
CN114489897B (en) * 2022-01-21 2023-08-08 北京字跳网络技术有限公司 Object processing method, device, terminal equipment and medium

Also Published As

Publication number Publication date
CN107766005B (en) 2020-07-17

Similar Documents

Publication Publication Date Title
CN107766005A (en) E-file processing method, device and electric terminal
CN105430480B (en) A kind of method and system of video data storage
CN103927713B (en) The acquisition methods and device of picture thumbnail
CN103019814A (en) System and method for managing shear plate
CN105205142B (en) Preserve method, device and the mobile terminal of journal file
CN107766932B (en) Image processing method and device based on neural network
CN103167134A (en) Infinite storage system and method of mobile phone
CN112637598B (en) Video compression and decompression method, device, equipment and readable storage medium
CN103049327A (en) Method and device for mounting many storage devices on android system
EP2549755B1 (en) Data processing device and data processing method
WO2022082891A1 (en) Big data acquisition method and system, and computer device and storage medium thereof
CN106775367A (en) The operating method and device of terminal touch-control
CN101640717A (en) Short message management system and method
CN105308589A (en) Compacting data based on data content
CN105335442B (en) A kind of processing method and processing device of picture internal memory
CN107027069B (en) Processing method, device and system, storage medium and the processor of image data
CN107729419A (en) A kind of intelligence preserves method, mobile terminal and the storage medium of picture and video
CN106933702A (en) A kind of method of intelligent terminal storage space management, device and intelligent terminal
CN108646987A (en) A kind of management method of file volume, device, storage medium and terminal
CN106599113B (en) Database reading and writing method for mass performance data of network management system
CN107451277A (en) Image file processing method and device
CN107220146A (en) A kind of file scan restoration methods and device
CN106325709A (en) Method and device for capturing contents on screen
DE102018108884A1 (en) Alarms for a portable electronic device
CN210836166U (en) Smart card

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
TA01 Transfer of patent application right

Effective date of registration: 20190919

Address after: 355 200 No. 44 Jishi Road, Taimushan Town, Fuding City, Ningde City, Fujian Province

Applicant after: Lin Chen Yi

Address before: 518000 H3, 501B, Dong Cheng Industrial Park, overseas Chinese, Shenzhen, Guangdong, Nanshan District

Applicant before: Shenzhen Tinno Wireless Technology Co., Ltd.

Applicant before: Shenzhen tinno Mobile Technology Co Ltd

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200422

Address after: Room m-297, no.559 yueluo Road, Baoshan District, Shanghai

Applicant after: PuDao (Shanghai) Information Technology Co., Ltd

Address before: 355 200 No. 44 Jishi Road, Taimushan Town, Fuding City, Ningde City, Fujian Province

Applicant before: Lin Chenyi

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant