CN104991940A - Method and apparatus for filtering files in file system of terminal - Google Patents

Method and apparatus for filtering files in file system of terminal Download PDF

Info

Publication number
CN104991940A
CN104991940A CN201510398275.XA CN201510398275A CN104991940A CN 104991940 A CN104991940 A CN 104991940A CN 201510398275 A CN201510398275 A CN 201510398275A CN 104991940 A CN104991940 A CN 104991940A
Authority
CN
China
Prior art keywords
file
documents
lists
filtered
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510398275.XA
Other languages
Chinese (zh)
Inventor
邓志成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201510398275.XA priority Critical patent/CN104991940A/en
Publication of CN104991940A publication Critical patent/CN104991940A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing

Abstract

The invention discloses a method and an apparatus for filtering files in a file system of a terminal. The method comprises the steps of: obtaining a preset file list in a server; analyzing the file list according to a preset data format to obtain to-be-filtered file data; and when the data of the files in the file system of the terminal is matched with the to-be-filtered file data, determining whether the files in the file system of the terminal is to-be-filtered files, and modifying the attributes of the to-be-filtered files to enable the to-be-filtered files not to be displayed in the terminal. The method and the apparatus realize the purpose of filtering junk files in the file system and achieve the effect of decreased number of files displayed in a display screen of the terminal when a user checks the files by using the file system.

Description

A kind of method and device filtering terminal document system file
Technical field
The embodiment of the present invention relates to file system technology, particularly relates to a kind of method and the device that filter terminal document system file.
Background technology
Along with the widespread use of terminal operating system, increasing user profile and data are had to be stored on the storer of terminal, the data such as such as address list, note, picture, p.m.entry or installation procedure.Meanwhile, user also can produce some useless garbage files when using terminal.Such as, when utilizing terminal watch video or browse news, the garbage files of some zero bytes can be produced.
At present, in terminal, in the file system of particularly smart mobile phone, there is a large amount of files, having some or even when running some program, the file automatically generated.Depositing of these files does not have concrete rule, when user enters file system viewing files, shows on described smart mobile phone because heap file is irregular, searches certain file produce obstruction greatly to user.
Summary of the invention
The invention provides a kind of method and the device that filter terminal document system file, to realize the garbage files in kill file system, when user uses file system viewing files, reduce the quantity of the file of the display screen display in terminal.
First aspect, embodiments provides a kind of method of filtering terminal document system file, comprising:
Obtain the lists of documents pre-set in server;
Described lists of documents are resolved, to obtain file data to be filtered according to the data layout of making an appointment;
When the data of the file in the file system of terminal are mated with described file data to be filtered, determine that the file in described file system is file to be filtered, the attribute revising described file to be filtered makes described file to be filtered not show in terminal.
Second aspect, the embodiment of the present invention additionally provides a kind of device filtering terminal document system file, and this device comprises:
Lists of documents acquiring unit, for obtaining the lists of documents pre-set in server;
Lists of documents resolution unit, for resolving described lists of documents according to the data layout of making an appointment, to obtain file data to be filtered;
File matching unit, when data for the file in the file system of terminal are mated with described file data to be filtered, determine that the file in described file system is file to be filtered, the attribute revising described file to be filtered makes described file to be filtered not show in terminal.
The present invention is by obtaining the lists of documents pre-set in server, resolve described lists of documents, to obtain file data to be filtered, when the data of the file in the file system of terminal are mated with described file data to be filtered, determine that the file in described file system is file to be filtered, the attribute revising described file to be filtered makes described file to be filtered not show in terminal, the problem that the file amount that solution user shows when using file system is large, achieve the object of the garbage files in kill file system, reach when user uses file system viewing files, the effect of the quantity minimizing of the file of the display screen display of terminal.
Accompanying drawing explanation
Fig. 1 is a kind of process flow diagram filtering the method for terminal document system file in the embodiment of the present invention one;
Fig. 2 is a kind of process flow diagram filtering the method for terminal document system file in the embodiment of the present invention two;
Fig. 3 is a kind of structural representation filtering the device of terminal document system file in the embodiment of the present invention three.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.Be understandable that, specific embodiment described herein is only for explaining the present invention, but not limitation of the invention.It also should be noted that, for convenience of description, illustrate only part related to the present invention in accompanying drawing but not entire infrastructure.
Embodiment one
A kind of process flow diagram filtering the method for terminal document system file that Fig. 1 provides for the embodiment of the present invention one, the present embodiment is applicable to the situation of kill file from file system, the method can be performed by the device filtering terminal document system file, this device is configured in terminal device, can be realized by the mode of hardware and/or software.The method of described filtration terminal document system file specifically comprises the steps:
The lists of documents pre-set in step 110, acquisition server;
Wherein, server is for Terminal for service and ensures the equipment of this service, such as, can be the communication server for providing communication service of communication common carrier.
Described lists of documents are stored in described server according to the data layout that described server and terminal are made an appointment, for recording file to be filtered.Store path and/or the filename of file to be filtered is have recorded in lists of documents.File to be filtered can be take the file that storage space is zero byte in file system, and acquisition user setting does not need the file of display, and the configuration file of application program, and the file being labeled as garbage files by multiple user etc. is similarly concerning file useless user.Such as, according to the garbage files of the user feedback of use same application domain, for using the user of this application program to configure initial lists of documents for the first time, the filename of garbage files to be filtered can be recorded in these lists of documents, and is stored in server.Wherein, described data layout is the formatting that data are kept in file or record, such as, can be XML (Extensible Markup Language, extend markup language) form or text formatting or other forms of arranging through server and terminal.
Lists of documents, along with the use of user, need to upgrade accordingly.The file system of end of scan can be taked to obtain does not need the mode of the file shown to upgrade described lists of documents to the useless file of user with according to user's setting.
The implementation of this step can be that terminal receives described server according to the cycle of presetting, and periodically pushes the address information of the lists of documents corresponding with terminal user to terminal, downloads described lists of documents according to this address information.In addition, also can be that terminal receives described server according to the cycle of presetting, the described lists of documents corresponding with terminal user periodically pushed.Can also be terminal according to the cycle of presetting, periodically send the request obtaining lists of documents to described server, the lists of documents corresponding with this terminal user, when receiving described request, be sent to described terminal by described server.The mode obtaining in server the lists of documents pre-set has multiple, the above-mentioned mode enumerated only for illustrating optional several mode, instead of for limiting the mode obtaining lists of documents from server.
Step 120, resolve described lists of documents according to the data layout of making an appointment, to obtain file data to be filtered.
Wherein, file data is the identification information of the file to be filtered recorded in lists of documents, can be the store path of file to be filtered, can also be the filename of file to be filtered or other can determine the data of file to be filtered.
Terminal, after acquisition lists of documents, resolves described lists of documents according to the data layout of making an appointment, to obtain in described lists of documents the file data of the file to be filtered recorded.
When the data of step 130, file in the file system of terminal are mated with described file data to be filtered, determine that the file in described file system is file to be filtered, the attribute revising described file to be filtered makes described file to be filtered not show in terminal.
Terminal after resolving the lists of documents that obtain and obtaining the file data of file to be filtered, the data that order obtains the file in file system with resolve the file data to be filtered obtained and mate.If the match is successful, then illustrating that current file is file to be filtered, is concealed format by the mode of attribute of revising current file by the setup of attribute of current file.Therefore, user, when using file system, would not see current file on the display screen of terminal.If mate unsuccessful, then illustrate that current file is not file to be filtered, does not carry out the process of kill file.Therefore, user, when using file system, the display screen of terminal can see current file.Such as, a file in order acquisition file system, as current file, when the store path of current file is identical with the store path of the file to be filtered parsed, is then revised the attribute information of current file, current file is set to hidden file.When user uses file system, current file does not show.
The technical scheme of the present embodiment, by obtaining the lists of documents pre-set in server, resolve described lists of documents, to obtain file data to be filtered, when the data of the file in the file system of terminal are mated with described file data to be filtered, determine that the file in described file system is file to be filtered, the attribute revising described file to be filtered makes described file to be filtered not show in terminal, the problem that the file amount that solution user shows when using file system is large, achieve the object of the garbage files in kill file system, reach when user uses file system viewing files, the effect of the quantity minimizing of the file of the display screen display of terminal, the application improving user is experienced.
On the basis of technique scheme, after pre-setting lists of documents in the server, add following technical characteristic:
Terminal is according to the cycle of presetting, scan the file system of described terminal, store path and/or the file name that file size is the file of zero byte is obtained according to scanning result, and obtain the store path of file and/or file name that user's setting do not need to show, the lists of documents in the described server of renewal of the file cycle shown are not needed according to the file of described zero byte and user's setting.The benefit of such setting is that the lists of documents that store in server can regular update, better meets user's user demand, improves the application of user and experience.
Embodiment two
Fig. 2 is a kind of process flow diagram filtering the method for terminal document system file in the embodiment of the present invention two.Shown in Figure 2, described method specifically comprises the steps:
The lists of documents that step 210, server repository are to be filtered.
Lists of documents are pushed to the file system of terminal by step 220, server.
According to the cycle of presetting, the memory address of lists of documents is periodically pushed to terminal by server.Terminal, after the memory address obtaining described lists of documents, by described memory address, is accessed described server and is obtained lists of documents, and be stored in file system by described lists of documents.
File data to be filtered is obtained after step 230, terminal parses.
After the file system acquisition lists of documents of terminal, according to the data layout of making an appointment, described lists of documents are resolved, to obtain file data to be filtered.
Step 240, judge whether file data mates, if so, then perform step 250, if not, then perform step 260.
Judge whether the data of the file in the file system of terminal mate with described file data to be filtered, wherein, file data in the file system of described terminal mates with described file data to be filtered, comprise: the store path of the file in the file system of described terminal mates with the store path of the file to be filtered recorded in described lists of documents, or the filename of file in the file system of described terminal mates with the filename of the file to be filtered recorded in described lists of documents.If coupling, then perform step 250, if do not mate, then perform step 260.
Step 250, file system filter file.
When the data of the file in the file system of terminal are mated with described file data to be filtered, the attribute information of this file in the file system of amendment terminal, is set to hidden file by file, to realize the object of filtering this file.
Step 260, normal display file.
When the data of the file in the file system of terminal are not mated with described file data to be filtered, this file in the file system of terminal is not carried out to the process of kill file, user, when using file system, the display screen of terminal can see this file.
Step 270, regular update lists of documents.
Because user may constantly produce file useless user in the process using terminal.Such as, when downloading new application program, can increase installation procedure file accordingly, this class file is used for the normal operation of support application program, but does not have realistic meaning concerning user, belongs to the file that can hide.The file of this kind of file useless to user or zero byte can use terminal along with user and increase, if the lists of documents in server do not upgrade, is the request for utilization that cannot meet user.In addition, user also may be different at the file not needing to show that different times sets, so need according to the cycle preset, the file not needing to show of periodic acquisition user setting, and, zero byte file and this kind of file user not being had to realistic meaning of installation file in the scanning own files system of terminal periodic, and do not have the store path of the file of realistic meaning and/or filename to be sent to server to user, with the lists of documents stored in update server by described.
Embodiment three
Fig. 3 is a kind of structural representation filtering the device of terminal document system file in the embodiment of the present invention three.Shown in Figure 3, the device of described filtration terminal document system file, comprising:
Lists of documents acquiring unit 310, for obtaining the lists of documents pre-set in server;
Lists of documents resolution unit 320, for resolving described lists of documents according to the data layout of making an appointment, to obtain file data to be filtered;
File matching unit 330, when data for the file in the file system of terminal are mated with described file data to be filtered, determine that the file in described file system is file to be filtered, the attribute revising described file to be filtered makes described file to be filtered not show in terminal.
The technical scheme of the present embodiment, the lists of documents pre-set in server are obtained by lists of documents acquiring unit 310, described lists of documents are resolved by lists of documents resolution unit 320, to obtain file data to be filtered, judge whether the data of the file in the file system of terminal mate with described file data to be filtered by file matching unit 330, and determine that the file in described file system is file to be filtered when mating, the attribute revising described file to be filtered makes described file to be filtered not show in terminal, the problem that the quantity of documents that solution user shows when using file system is huge, achieve the object of the garbage files in kill file system, reach when user uses file system viewing files, the effect of the quantity minimizing of the file of the display screen display of terminal.
Further, described lists of documents are stored in described server according to the data layout that described server and terminal are made an appointment, for recording file to be filtered.
Further, described device also comprises:
Lists of documents updating block, after pre-setting lists of documents in the server, according to the cycle of presetting, scan the file system of described terminal, store path and/or the file name that file size is the file of zero byte is obtained according to scanning result, and obtain the store path of file and/or file name that user's setting do not need to show, the lists of documents in the described server of renewal of the file cycle shown are not needed according to the file of described zero byte and user's setting.
Further, described lists of documents acquiring unit 310 specifically for:
Receive described server according to the cycle of presetting, the address information of the described lists of documents periodically pushed, downloads described lists of documents according to this address information.
Further, file data in the file system of described terminal mates with described file data to be filtered, comprise: the store path of the file in the file system of described terminal mates with the store path of the file to be filtered recorded in described lists of documents, or the filename of file in the file system of described terminal mates with the filename of the file to be filtered recorded in described lists of documents.
The device of above-mentioned filtration terminal document system file can perform the method for the filtration terminal document system file that any embodiment of the present invention provides, and possesses the corresponding functional module of manner of execution and beneficial effect.
Note, above are only preferred embodiment of the present invention and institute's application technology principle.Skilled person in the art will appreciate that and the invention is not restricted to specific embodiment described here, various obvious change can be carried out for a person skilled in the art, readjust and substitute and can not protection scope of the present invention be departed from.Therefore, although be described in further detail invention has been by above embodiment, the present invention is not limited only to above embodiment, when not departing from the present invention's design, can also comprise other Equivalent embodiments more, and scope of the present invention is determined by appended right.

Claims (10)

1. filter a method for terminal document system file, it is characterized in that, comprising:
Obtain the lists of documents pre-set in server;
Described lists of documents are resolved, to obtain file data to be filtered according to the data layout of making an appointment;
When the data of the file in the file system of terminal are mated with described file data to be filtered, determine that the file in described file system is file to be filtered, the attribute revising described file to be filtered makes described file to be filtered not show in terminal.
2. method according to claim 1, is characterized in that, described lists of documents are stored in described server according to the data layout that described server and terminal are made an appointment, for recording file to be filtered.
3. method according to claim 1, is characterized in that, after pre-setting lists of documents in the server, also comprises:
According to the cycle of presetting, scan the file system of described terminal, store path and/or the file name that file size is the file of zero byte is obtained according to scanning result, and obtain the store path of file and/or file name that user's setting do not need to show, the lists of documents in the described server of renewal of the file cycle shown are not needed according to the file of described zero byte and user's setting.
4. method according to claim 1, is characterized in that, the lists of documents pre-set in described acquisition server, comprising:
Receive described server according to the cycle of presetting, the address information of the described lists of documents periodically pushed, downloads described lists of documents according to this address information.
5. method according to claim 1, it is characterized in that, file data in the file system of described terminal mates with described file data to be filtered, comprise: the store path of the file in the file system of described terminal mates with the store path of the file to be filtered recorded in described lists of documents, or the filename of file in the file system of described terminal mates with the filename of the file to be filtered recorded in described lists of documents.
6. filter a device for terminal document system file, it is characterized in that, comprising:
Lists of documents acquiring unit, for obtaining the lists of documents pre-set in server;
Lists of documents resolution unit, for resolving described lists of documents according to the data layout of making an appointment, to obtain file data to be filtered;
File matching unit, when data for the file in the file system of terminal are mated with described file data to be filtered, determine that the file in described file system is file to be filtered, the attribute revising described file to be filtered makes described file to be filtered not show in terminal.
7. device according to claim 6, is characterized in that, described lists of documents are stored in described server according to the data layout that described server and terminal are made an appointment, for recording file to be filtered.
8. device according to claim 6, is characterized in that, described device also comprises:
Lists of documents updating block, after pre-setting lists of documents in the server, according to the cycle of presetting, scan the file system of described terminal, store path and/or the file name that file size is the file of zero byte is obtained according to scanning result, and obtain the store path of file and/or file name that user's setting do not need to show, the lists of documents in the described server of renewal of the file cycle shown are not needed according to the file of described zero byte and user's setting.
9. device according to claim 6, is characterized in that, described lists of documents acquiring unit specifically for:
Receive described server according to the cycle of presetting, the address information of the described lists of documents periodically pushed, downloads described lists of documents according to this address information.
10. device according to claim 6, it is characterized in that, file data in the file system of described terminal mates with described file data to be filtered, comprise: the store path of the file in the file system of described terminal mates with the store path of the file to be filtered recorded in described lists of documents, or the filename of file in the file system of described terminal mates with the filename of the file to be filtered recorded in described lists of documents.
CN201510398275.XA 2015-07-07 2015-07-07 Method and apparatus for filtering files in file system of terminal Pending CN104991940A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510398275.XA CN104991940A (en) 2015-07-07 2015-07-07 Method and apparatus for filtering files in file system of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510398275.XA CN104991940A (en) 2015-07-07 2015-07-07 Method and apparatus for filtering files in file system of terminal

Publications (1)

Publication Number Publication Date
CN104991940A true CN104991940A (en) 2015-10-21

Family

ID=54303756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510398275.XA Pending CN104991940A (en) 2015-07-07 2015-07-07 Method and apparatus for filtering files in file system of terminal

Country Status (1)

Country Link
CN (1) CN104991940A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868311A (en) * 2016-03-25 2016-08-17 浪潮通信信息系统有限公司 Data analyzing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6356915B1 (en) * 1999-02-22 2002-03-12 Starbase Corp. Installable file system having virtual file system drive, virtual device driver, and virtual disks
CN102103601A (en) * 2009-12-16 2011-06-22 北大方正集团有限公司 Method and device for selecting file
CN102880714A (en) * 2012-09-29 2013-01-16 北京奇虎科技有限公司 File deleting method and file deleting device
CN103106369A (en) * 2013-01-22 2013-05-15 西安Tcl软件开发有限公司 File sharing method and device based on media server
CN104699794A (en) * 2015-03-18 2015-06-10 四川秘无痕信息安全技术有限责任公司 Method for completely removing deleted jpg format in FAT 32 document system
CN104731684A (en) * 2015-04-09 2015-06-24 武汉大学 Dynamic document monitoring and protecting system based on drive filtering technology

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6356915B1 (en) * 1999-02-22 2002-03-12 Starbase Corp. Installable file system having virtual file system drive, virtual device driver, and virtual disks
CN102103601A (en) * 2009-12-16 2011-06-22 北大方正集团有限公司 Method and device for selecting file
CN102880714A (en) * 2012-09-29 2013-01-16 北京奇虎科技有限公司 File deleting method and file deleting device
CN103106369A (en) * 2013-01-22 2013-05-15 西安Tcl软件开发有限公司 File sharing method and device based on media server
CN104699794A (en) * 2015-03-18 2015-06-10 四川秘无痕信息安全技术有限责任公司 Method for completely removing deleted jpg format in FAT 32 document system
CN104731684A (en) * 2015-04-09 2015-06-24 武汉大学 Dynamic document monitoring and protecting system based on drive filtering technology

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868311A (en) * 2016-03-25 2016-08-17 浪潮通信信息系统有限公司 Data analyzing method and device

Similar Documents

Publication Publication Date Title
CN101695157B (en) Self-adapting method of display of mobile terminal screen in network application and system thereof
CN102761623B (en) Resource self-adaptive joins method for down loading, system, data storage server and communication system
WO2015117426A1 (en) File management method and device
CN103428525A (en) Online inquiry and play control method and system for network videos and television programs
CN101496000A (en) Two-way and multi-master synchronization over web syndications
JP2009512934A (en) RSS-based content extraction server, content extraction method, server management device, and standby screen providing system for mobile communication terminal device using the same
CN105472045A (en) Database migration method and database migration device
CN103391479A (en) Method, device, terminal and system for customizing updated series
CN103442026A (en) Application program processing method, device and system
CN102480520B (en) Media data synchronism method based on differential metadata description structure
CN105635758B (en) A kind of smart television desktop back-stage management method and server
CN102510389B (en) Methods and systems for transmitting, installing and presenting application
CN104426967A (en) Cross-platform and cross-equipment mobile application construction method
CN104216957A (en) Query system and query method for video metadata
US20090319540A1 (en) Synchronization adapter for synchronizing data to applications that do not directly support synchronization
CN102917061A (en) Resource synchronization method and system
CN103428205B (en) A kind of information broadcasting system and method based on Android platform
CN103297803A (en) Data updating system and method based on set top box
CN107844488B (en) Data query method and device
CN103051652A (en) Mobile terminal cloud commuting delivery platform
CN105138579A (en) Method and device for obtaining keywords and recommending information based on keywords
JP2005530258A (en) System and method for resynchronization while refreshing a client device from a server
CN101771930A (en) User terminal, software hosting business management system and management method
CN101924791B (en) Method, device and system for displaying multimedia information
CN103577554A (en) Method and device for triggering multimedia database scanning of Android equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151021