CN102929980A - Folder cleaning method and device - Google Patents

Folder cleaning method and device Download PDF

Info

Publication number
CN102929980A
CN102929980A CN201210396383XA CN201210396383A CN102929980A CN 102929980 A CN102929980 A CN 102929980A CN 201210396383X A CN201210396383X A CN 201210396383XA CN 201210396383 A CN201210396383 A CN 201210396383A CN 102929980 A CN102929980 A CN 102929980A
Authority
CN
China
Prior art keywords
file
folder
user
default
deleted
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
CN201210396383XA
Other languages
Chinese (zh)
Other versions
CN102929980B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201210396383.XA priority Critical patent/CN102929980B/en
Publication of CN102929980A publication Critical patent/CN102929980A/en
Application granted granted Critical
Publication of CN102929980B publication Critical patent/CN102929980B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention is applicable to the technical field of a mobile terminal and provides a folder cleaning method and device. The folder cleaning method comprises the following steps of: obtaining folder information of the mobile terminal, wherein the folder information comprises an establishing path of a folder; judging whether the folder meets a pre-set cleaning condition or not; if so, deleting the folder according to the establishing path; and otherwise, keeping. According to the embodiment of the invention, the folder which is not needed can be deleted by judging whether the folder is needed or not, so that the user operation efficiency and the accuracy of detecting the folder without need can be improved.

Description

A kind of file method for cleaning and device
Technical field
The invention belongs to technical field of mobile terminals, relate in particular to a kind of file method for cleaning and device.
Background technology
Along with the portable terminal arrival in intelligent epoch, the configuration of portable terminal from strength to strength, function is more and more complete, the application program that is applicable to portable terminal also is multifarious, increasing, the user can download the application program of oneself liking by network and install, and experiences with the intellectuality of enjoying portable terminal.
Yet, because can there be a large amount of files in increasing of application program in portable terminal internal memory and the extension storage card, and the partial document folder is that the user is unwanted, unwanted file had both been wasted internal memory, had affected again the efficient of the required file of searching of user.If the user deletes unwanted file, then need the mode by traverse folder, to judge whether certain file needs, but in documentor, title that only can the display file folder, date created etc., the user can't judge accurately whether certain file needs by these information, causes user's operating efficiency low and can't accurately delete unwanted file.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of file method for cleaning, be intended to solve existing user and can't judge accurately whether certain file needs by these information, cause the problem that user's operating efficiency is low and can't accurately delete unwanted file.
The embodiment of the invention is achieved in that a kind of file method for cleaning, comprising:
Obtain the folder information of portable terminal, described folder information comprises Making Path of described file; Judge that whether described file satisfies default cleaning condition, is then according to described Making Path described file to be deleted, otherwise keeps.
Another purpose of the embodiment of the invention is to provide a kind of file cleaning plant, comprising:
Acquiring unit, for the folder information of obtaining portable terminal, described folder information comprises Making Path of described file;
The cleaning unit is used for judging whether described file satisfies default cleaning condition, is then according to described Making Path described file to be deleted, otherwise keeps.
In embodiments of the present invention, by judging whether file satisfies default cleaning condition, file is cleared up, so that the user need not to carry out the deletion action of repetition, avoided simultaneously accurately deleting the situation of unwanted file, thereby improved the accuracy rate of user's operating efficiency and Delete Folder.
Description of drawings
Fig. 1 is the realization flow figure of the file method for cleaning that provides of the embodiment of the invention;
Fig. 2 is the file method for cleaning step S102 specific implementation process flow diagram that the embodiment of the invention provides;
Fig. 3 is the structured flowchart of the file cleaning plant that provides of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
In embodiments of the present invention, by judging whether file satisfies default cleaning condition, file is cleared up, so that the user need not to carry out the deletion action of repetition, avoided simultaneously accurately deleting the situation of unwanted file, thereby improved the accuracy rate of user's operating efficiency and Delete Folder.
Fig. 1 shows the realization flow of a kind of file method for cleaning that the embodiment of the invention provides, and details are as follows:
In step S101, obtain the folder information of portable terminal, this document folder information comprises Making Path of this document folder.
In the present embodiment, can be by Making Path that monitoring file is pressed from both sides, record Makes Path.Specifically can be by two audiomonitors be set on the backstage, this audiomonitor starts along with the start of mobile phone, respectively the operation of in mobile phone internal memory and the extension storage card file being carried out is monitored by these two audiomonitors, obtain the data recording that Makes Path of file, to Make Path as Database field building database.
As another embodiment of the present invention, if when the authority of system folder information is open, then directly obtain the data recording that Makes Path of file.As in Android system, can from the content provider, directly obtain the data recording that Makes Path of file, building database.
In step S102, judge whether this document folder satisfies default cleaning condition, be then according to Making Path this document folder to be deleted, otherwise keep.
Judge whether this document folder satisfies default cleaning condition, specifically describes in subsequent embodiment, does not repeat them here.In the present embodiment, when this document folder is deleted, distinguish sub-directory and file according to Making Path, delete first sub-directory and file, Delete Folder again, concrete deletion mode is not used in restriction the present invention at this.
As a preferred embodiment of the present invention, folder information also comprises the establishment user of this document folder, and default cleaning condition comprises that the establishment user of file is deleted.Listen to the founder of file deleted after, delete the file that this founder creates.Owing to comprised system, application program among the founder, for anti-user misoperation, preferably, when the founder be system, not delete, the file for the treatment of other is deleted when complete, passes through the control reminding user again, avoids user's misoperation.
As another preferred embodiment of the present invention, application program can be pressed from both sides by spanned file in installation or use procedure usually, to carry out the preservation of data, is convenient to follow-up data referencing.After application program was unloaded, in the file of the establishment corresponding with it, if the inside does not comprise the file of some user's needs, such as video, audio frequency, Edit Document etc., this document folder was unnecessary so.
Therefore in the present embodiment, required file comprises the file of default file type, and this document type comprises audio frequency, video, Edit Document or picture.Specifically can judge the type of file by the suffix name of file, if the type of this document does not belong to the default file type, then this document is not required file, when not comprising a required file a file the inside, this document folder is deleted.
As an alternative embodiment of the invention, the user selects file File type, and described file type is the type of All Files in the portable terminal.Include but not limited to audio frequency, video, Edit Document, picture, executable file.According to user's select File type, whether judging this document as required file, thereby judge whether this document folder is deleted.
As an alternative embodiment of the invention, can be in conjunction with the establishment user of this document folder deleted and this document underedge do not comprise required file type, whether judging this document as required file, thereby file is deleted.
As an alternative embodiment of the invention, owing in the file that application program creates, can have the file of a large amount of skies, empty folder must not comprise required file.Specifically can successively obtain by the mode of recurrence the size of file, if this document folder is then deleted for empty folder.Thereby accelerated the speed of deletion, reduced the calculated amount of system to file.
When the user to file be shifted, when merging, the store path of file also can correspondingly be changed, therefore need to upgrade operation to the data in the database, can be when system initialization, if newly-increased file then increases the record that this document folder Makes Path, when if the partial document folder does not exist, then delete non-existent file record, by above step, integrality and the correctness of the database that Makes Path of holding the record.
Pass through above-mentioned steps, if file satisfies default cleaning condition, file is cleared up, so that the user need not to carry out the deletion action of repetition, avoided simultaneously accurately deleting the situation of unwanted file, thereby improved the accuracy rate of user's operating efficiency and Delete Folder.
As one embodiment of the present of invention, display file folder tabulation on the display interface of portable terminal, file to user's appointment in the tabulation of this document folder is deleted, and Fig. 2 shows the file method for cleaning step S102 specific implementation process flow diagram that the embodiment of the invention provides;
In step S201, the tabulation of display file folder comprises the file that satisfies default cleaning condition in the described Folder List;
In the present embodiment, interface at portable terminal shows the file that satisfies default cleaning condition, because file is many, can be by draw a chart at the interface, with the classification sign of cleaning condition as the file that satisfies condition, can check the All Files folder that satisfies this cleaning condition according to sorting out sign, so that the operation that the user chooses.
In step S202, detect the file of user's appointment in the tabulation of this document folder;
In the present embodiment, the file of user's appointment in the tabulation of this document folder, the mode of appointment includes but not limited to touch or button, by the operation detection of choosing to the user, receives user's the result that chooses.
In step S203, according to the file of the deletion user appointment in the tabulation of this document folder that Makes Path.
In the present embodiment, receive the user choose the result after, according to Making Path, the file of appointment in the tabulation of this document folder is deleted, concrete deletion mode is not used in restriction the present invention at this.
By above-mentioned steps, display file folder tabulation on the display interface of portable terminal, the user deletes file according to individual demand, has avoided deletion that the user is also had the file that has meaning, thereby has further improved the accuracy rate of deletion.
As an alternative embodiment of the invention, when file satisfied default cleaning condition, the tabulation of not display file folder was directly cleared up file on the display interface of portable terminal.
As an alternative embodiment of the invention, the file of appointment can be expressed as the file that needs reservation, and this document folder is not listed the scope of cleaning file in.
Fig. 3 shows the structured flowchart of the file method for cleaning device that the embodiment of the invention provides, this device can run on the diverse network communication terminal, include but not limited to mobile phone, pocket computing machine (Pocket Personal Computer, PPC), palm PC, computing machine, notebook computer, personal digital assistant (Personal Digital Assistant, PDA) etc.For convenience of explanation, only show the part relevant with present embodiment.
With reference to Fig. 2, this device comprises:
Acquiring unit 21 obtains the folder information of portable terminal, and folder information comprises Making Path of this document folder;
Cleaning unit 22 judges whether this document folder satisfies default cleaning condition, is then according to Making Path this document folder to be deleted.
Further, in this device, folder information also comprises the establishment user of this document folder, and default cleaning condition comprises that the establishment user of file is deleted.
Further, in this device, this default cleaning condition comprises and does not comprise required file in the file.
Further, in this device, this required file comprises: the file of default file type, this document type comprises audio frequency, video, Edit Document or picture.
Particularly, cleaning unit 22 comprises:
Display unit 221, the tabulation of display file folder comprises the file that satisfies default cleaning condition in the tabulation of this document folder;
Detecting unit 222, the file of detection user appointment in Folder List;
Delete cells 223 is according to the file of the deletion user appointment in the tabulation of this document folder that Makes Path.
In embodiments of the present invention, by judging whether file satisfies default cleaning condition, file is cleared up, so that the user need not to carry out the deletion action of repetition, avoided simultaneously accurately deleting the situation of unwanted file, thereby improved the accuracy rate of user's operating efficiency and Delete Folder.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a file method for cleaning is characterized in that, comprising:
Obtain the folder information of portable terminal, described folder information comprises Making Path of described file;
Judge that whether described file satisfies default cleaning condition, is then according to described Making Path described file to be deleted, otherwise keeps.
2. the method for claim 1 is characterized in that, described folder information also comprises the establishment user of described file, and the establishment user that described default cleaning condition comprises described file is deleted.
3. the method for claim 1 is characterized in that, described default cleaning condition comprises and do not comprise required file in the described file.
4. method as claimed in claim 3 is characterized in that, described required file comprises:
The file of default file type, described default file type comprises audio frequency, video, Edit Document or picture.
5. the method for claim 1 is characterized in that, described according to described Make Path described file deleted comprise:
The tabulation of display file folder comprises the described file that satisfies described default cleaning condition in the described Folder List;
Detect the file of user's appointment in described Folder List;
File according to the described described user of the deletion appointment in described Folder List that Makes Path.
6. a file cleaning plant is characterized in that, comprising:
Acquiring unit, for the folder information of obtaining portable terminal, described folder information comprises Making Path of described file;
The cleaning unit is used for judging whether described file satisfies default cleaning condition, is then according to described Making Path described file to be deleted, otherwise keeps.
7. device as claimed in claim 6 is characterized in that, described folder information also comprises the establishment user of described file, and the establishment user that described default cleaning condition comprises described file is deleted.
8. device as claimed in claim 6 is characterized in that, described default cleaning condition comprises and do not comprise required file in the described file.
9. device as claimed in claim 8 is characterized in that, described required file comprises:
The file of default file type, described default file type comprises audio frequency, video, Edit Document or picture.
10. device as claimed in claim 6 is characterized in that, described cleaning unit comprises:
Show subelement, be used for the tabulation of display file folder, comprise the described file that satisfies described default cleaning condition in the described Folder List;
Detection sub-unit is for detection of the file of user's appointment in described Folder List;
The deletion subelement is used for according to the described file of the described user of deletion in described Folder List appointment that Make Path.
CN201210396383.XA 2012-10-17 2012-10-17 Folder cleaning method and device Active CN102929980B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210396383.XA CN102929980B (en) 2012-10-17 2012-10-17 Folder cleaning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210396383.XA CN102929980B (en) 2012-10-17 2012-10-17 Folder cleaning method and device

Publications (2)

Publication Number Publication Date
CN102929980A true CN102929980A (en) 2013-02-13
CN102929980B CN102929980B (en) 2017-02-01

Family

ID=47644778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210396383.XA Active CN102929980B (en) 2012-10-17 2012-10-17 Folder cleaning method and device

Country Status (1)

Country Link
CN (1) CN102929980B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176828A (en) * 2013-03-29 2013-06-26 北京奇虎科技有限公司 Method and device of deleting application program residual files
CN103227818A (en) * 2013-03-27 2013-07-31 福建伊时代信息科技股份有限公司 Terminal, server, file transferring method, file storage management system and file storage management method
CN105138604A (en) * 2015-08-07 2015-12-09 广东欧珀移动通信有限公司 Terminal data processing method and apparatus
CN105786805A (en) * 2014-12-15 2016-07-20 乐视移动智能信息技术(北京)有限公司 Intelligent mobile terminal, document manager and file display method of same
CN105824968A (en) * 2016-03-31 2016-08-03 广东欧珀移动通信有限公司 Method and device for clearing folders and mobile terminal
CN105893152A (en) * 2016-03-31 2016-08-24 广东欧珀移动通信有限公司 Memory management method and device and mobile terminal
CN106031127A (en) * 2013-11-08 2016-10-12 瑞典爱立信有限公司 Method and device for the management of applications
WO2017032312A1 (en) * 2015-08-27 2017-03-02 北京金山安全软件有限公司 Method and apparatus for presenting to-be-cleaned data, and electronic device
WO2017032313A1 (en) * 2015-08-27 2017-03-02 北京金山安全软件有限公司 Method and apparatus for identifying to-be-cleaned data, and electronic device
CN106557500A (en) * 2015-09-28 2017-04-05 北京金山安全软件有限公司 Method and device for cleaning uninstalled residual file and terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377786A (en) * 2007-08-30 2009-03-04 三星电子株式会社 Image forming apparatus, image forming system and file managing method thereof
CN101651864A (en) * 2008-08-14 2010-02-17 比亚迪股份有限公司 Method for managing file in mobile terminal and mobile terminal
CN101795320A (en) * 2010-01-28 2010-08-04 惠州Tcl移动通信有限公司 Method for cleaning up files in mobile communication terminal
CN102622442A (en) * 2012-03-12 2012-08-01 福建星网视易信息系统有限公司 Linux system-based display method and device for directories and files
CN102654872A (en) * 2011-03-03 2012-09-05 腾讯科技(深圳)有限公司 Method and device for cleaning junk files generated by application programs

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377786A (en) * 2007-08-30 2009-03-04 三星电子株式会社 Image forming apparatus, image forming system and file managing method thereof
CN101651864A (en) * 2008-08-14 2010-02-17 比亚迪股份有限公司 Method for managing file in mobile terminal and mobile terminal
CN101795320A (en) * 2010-01-28 2010-08-04 惠州Tcl移动通信有限公司 Method for cleaning up files in mobile communication terminal
CN102654872A (en) * 2011-03-03 2012-09-05 腾讯科技(深圳)有限公司 Method and device for cleaning junk files generated by application programs
CN102622442A (en) * 2012-03-12 2012-08-01 福建星网视易信息系统有限公司 Linux system-based display method and device for directories and files

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103227818A (en) * 2013-03-27 2013-07-31 福建伊时代信息科技股份有限公司 Terminal, server, file transferring method, file storage management system and file storage management method
CN103176828A (en) * 2013-03-29 2013-06-26 北京奇虎科技有限公司 Method and device of deleting application program residual files
CN103176828B (en) * 2013-03-29 2017-06-09 北京奇虎科技有限公司 Delete the method and device of application program Stub File
CN106031127A (en) * 2013-11-08 2016-10-12 瑞典爱立信有限公司 Method and device for the management of applications
CN106031127B (en) * 2013-11-08 2020-11-03 瑞典爱立信有限公司 Method and apparatus for management of applications
CN105786805A (en) * 2014-12-15 2016-07-20 乐视移动智能信息技术(北京)有限公司 Intelligent mobile terminal, document manager and file display method of same
CN105138604A (en) * 2015-08-07 2015-12-09 广东欧珀移动通信有限公司 Terminal data processing method and apparatus
WO2017032312A1 (en) * 2015-08-27 2017-03-02 北京金山安全软件有限公司 Method and apparatus for presenting to-be-cleaned data, and electronic device
WO2017032313A1 (en) * 2015-08-27 2017-03-02 北京金山安全软件有限公司 Method and apparatus for identifying to-be-cleaned data, and electronic device
US10664443B2 (en) 2015-08-27 2020-05-26 Beijing Kingsoft Internet Security Software Co., Ltd. Method and apparatus for presenting to-be-cleaned data, and electronic device
CN106557500A (en) * 2015-09-28 2017-04-05 北京金山安全软件有限公司 Method and device for cleaning uninstalled residual file and terminal
CN105893152A (en) * 2016-03-31 2016-08-24 广东欧珀移动通信有限公司 Memory management method and device and mobile terminal
CN105824968A (en) * 2016-03-31 2016-08-03 广东欧珀移动通信有限公司 Method and device for clearing folders and mobile terminal
CN105824968B (en) * 2016-03-31 2019-04-05 Oppo广东移动通信有限公司 A kind of method, device and mobile terminal for clearing up file

Also Published As

Publication number Publication date
CN102929980B (en) 2017-02-01

Similar Documents

Publication Publication Date Title
CN102929980A (en) Folder cleaning method and device
CN106557330B (en) Method and device for processing notification information of notification bar of mobile terminal system and mobile terminal
KR102208362B1 (en) Method and apparatus for managing message of electronic device
US9251506B2 (en) User interfaces for content categorization and retrieval
US11337042B2 (en) Short message processing method and apparatus, and electronic device
CN103809905A (en) Method and apparatus for managing message in electronic device
CN105141496A (en) Instant communication message playback method and device
CN104426944B (en) Information feedback method, device and terminal
US20150143299A1 (en) Mobile terminal and controlling method thereof
CN103345696A (en) Display method, device and mobile terminal of pushing information
CN105607749A (en) Shortcut operation method, shortcut operation device and terminal
CN106227744A (en) Terminal document managing device, terminal and terminal document management method
CN106776908B (en) Data cleaning method and device and terminal
CN105068726A (en) Information processing method and terminal
CN103634032B (en) Data transfering method, system and mobile terminal
US20140220943A1 (en) Mobile terminal and controlling method thereof
KR101520896B1 (en) Apparatus and method for managing data in portable terminal
CN105745988A (en) Short message processing method for mobile terminal, and mobile terminal
CN104394280A (en) Menu option display method and device for communication information
CN110286775A (en) A kind of dictionary management method and device
US20120054285A1 (en) Method, apparatus, and system for composing an electronic message
CN108874591A (en) Document handling method and Related product
CN104933085A (en) Electronic book update method, terminal and server
CN106469178B (en) Information processing method, terminal and electronic equipment
CN101924826A (en) A kind of method of short message classified deletion and portable terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

CP03 Change of name, title or address