CN103473240A - Storage-equipment-based file scanning method and device - Google Patents

Storage-equipment-based file scanning method and device Download PDF

Info

Publication number
CN103473240A
CN103473240A CN2012101885906A CN201210188590A CN103473240A CN 103473240 A CN103473240 A CN 103473240A CN 2012101885906 A CN2012101885906 A CN 2012101885906A CN 201210188590 A CN201210188590 A CN 201210188590A CN 103473240 A CN103473240 A CN 103473240A
Authority
CN
China
Prior art keywords
database
media
scanning
file
information
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
CN2012101885906A
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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN2012101885906A priority Critical patent/CN103473240A/en
Publication of CN103473240A publication Critical patent/CN103473240A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention discloses a storage-equipment-based file scanning method and a storage-equipment-based file scanning device. The method comprises the following steps of pre-establishing two databases, wherein one database is called an internal database for scanning recording and application query, and the other database is a media database for recording media information and assisting the internal database in accelerated scanning; during the first mounting scanning of storage equipment, simultaneously storing scanned media file information into the internal database and the media database; if media file information to be scanned in the media database is found when the storage equipment is plugged and unplugged again for rescanning, directly acquiring the media file information to be scanned from the media database, and interpolating the media file information to be scanned into the internal database for scanning. According to the method and the device, repeated scanning can be avoided; more importantly, the scanning time is greatly saved, the scanning efficiency is improved, and the waiting time of a user is greatly saved.

Description

A kind of file scanning method and device based on memory device
Technical field
The present invention relates to electronic storage device scanning technique field, in particular a kind of file scanning method and device based on memory device.
Background technology
Development along with technology, present smart machine is more and more, from the PC started, panel computer, intelligent system commonly used and Android system, apply more and more diversified till now, also just wish that system can provide more fully fileinfo, Here it is needs the file scan function, obtains the stream(data stream in media file) and the format(form) in abundant information, the frame that can also decode wherein can be given user's visual impression (thumbnail).
But, along with memory device is tending towards variation, particularly Android system applies after TV, for the high definition video of counting easily GB, memory device is especially from traditional SDcard, USB device, till now large capacity movable hard disk commonly used.After supporting large capacity movable hard disk, sweep velocity always is annoying problem.Particularly a memory device plug is at a plurality of equipment rooms, and the scanning that at every turn all requires a great deal of time, waste time and energy, and causes inconvenience to the user.
Existing Android system, the scanning process of media file as shown in Figure 1:
Step S10, beginning, the carry memory device.
After step S11, memory device carry, the Kernel(kernel) can broadcast and pass scanning pattern by a Mounted, the notice scanner starts scanning, enters step S12.
Step S12, startup scanning.
Step S13, with recursive fashion, enter scanning directory, and enter step S14.
Step S14, judge whether to need the media file of scanning? obtain file from scanning pattern, if file is arranged and be the media file of requirement scanning, carry out step S15; Otherwise the end of scan is to step S17.
Step S15, the described media file of scanning document, proceed to step S16.
After the scanning of step S16, file, by its scanning information data inserting storehouse, new database more, when the media file information of scanning exists in described media database, update time, and return to step S14.
Step S17, scanning aftertreatment, delete non-existent data base entries, and enter step S18.
Step S18, the end of scan.
Can be found out by top step, during carry equipment, deposit scanning information and deletion in and do not exist entry to make database keep dynamically updating.
Analyzing the scanning process of prior art can find, scans in jumbo memory device process, because the described number of media files of scanning document, has spent a large amount of time.But real cost plenty of time and resource is this process of carrying out Single document scanning in scanning process, is namely opening file, obtain fileinfo and decoding thumbnail.
When plugging equipment, the meeting scanning information also adds it in database to, and, when pulling out, can fall the data dump of respective disc.So, if repeatedly plug memory device, next time, scanning also can repeat this process, will expend the ample resources multiple scanning, and sweep velocity was very slow.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is, above-mentioned defect for prior art, a kind of file scanning method and device based on memory device is provided, a kind of fast scanning method of information sharing is provided, can avoid repeatability scanning, also can not make a large amount of wastings of resources in multiple scanning, the most important thing is to save a large amount of sweep times, improve scan efficiency, greatly saved user's stand-by period.
The technical scheme that technical solution problem of the present invention adopts is as follows:
A kind of file scanning method based on memory device wherein, comprises step:
A, set up two databases in advance, one of them database is for the internal database for sweep record and application query; Another database is for record medium information, and the auxiliary internal database is realized the media database of accelerated scan;
B, scanning step: while scanning memory device for the first time, the media file information scanned is stored in to described internal database and described media database simultaneously;
When rescaning next time, if inquire in described media database the media file information that the scanning of needing is arranged, directly from described media database, obtain the media file information that needs scanning, be inserted in described internal database, complete scanning.
The described file scanning method based on memory device, wherein, described step B specifically comprises:
B1, when scanning memory device for the first time, judge whether to need the media file of scanning, enter step B2 when being, enter step B6 when no;
B2, search in described media database whether the file identical with the described media file that needs scanning is arranged; Enter step B3 when no, enter step B4 when being;
B3, scan described media file, and the media file information updating of scanning is stored in described internal database; And the media information of scanning synchronously is inserted in media database, then turn back to step B1; simultaneously
B4, the file identical with the described media file that needs scanning arranged in searching media database,, in described media database, find out media information and the thumbnail address of this same file, and enter step B5;
B5, the media information inquired is inserted in described internal database external.db, and the thumbnail address is inserted in external.db, and return to step B1;
B6, end of scan aftertreatment, delete non-existent data base entries in described internal database.
The described file scanning method based on memory device, wherein, the identical file in described step B2 is: filename is identical identical with file size.
The described file scanning method based on memory device, wherein, described steps A specifically comprises:
A1, set up two databases in advance, one of them database is called internal database, and for for sweep record and application query, another database is media database, and for record medium information, the auxiliary internal database is realized accelerated scan;
A2, described internal database is arranged on to client, described media database is arranged on to server end.
The described file scanning method based on memory device, wherein, described step B specifically comprises:
BS1, when the described memory device of client carry starts to scan; System kernel is sent out and is broadcasted and upload scanning pattern, with recursive fashion, enters scanning pattern, and enters scanning directory;
BS2, client judge whether to need the media file of scanning, enter step BS3 when being, enter step BS6 when no;
BS3, client send instructions searches in the media database of server whether the file identical with the media file of needs scanning is arranged; Enter step BS4 when no, enter step BS5 when being;
BS4, the described media file of client scan, and the media file information of scanning is stored in described internal database, to upgrade synchronous described internal database, and return to step BS1;
BS5, client, in the media database of server, find out media information and the thumbnail address of this same file; And be synchronized to described internal database inquiring the media information identical with the described media file that needs scanning, and described thumbnail address synchronization in described internal database, return to step BS1;
BS6, scanning aftertreatment, client is deleted non-existent data base entries in described internal database, and enters step BS7;
After BS7, client scan finish, client also is synchronized to the newly-increased scanning information in local internal database in the media database on server.
The described file scanning method based on memory device, wherein, described step BS3 also comprises: when identical the think same file identical with file size of judgement filename.
The described file scanning method based on memory device, wherein, described step BS7 also comprises: when the internal database of client different from the media database type of server end, client is converted to the database identical with the media database type of server end by the interior data storehouse, after the database conversion, the more newly-increased scanning information in the internal database of client terminal local also is synchronized to the media database on server.
The described file scanning method based on memory device, wherein, described media file comprises: one or more in audio-video document, picture file, word file and EXCEL file.
A kind of device that adopts the described file scanning method based on memory device of above-mentioned any one wherein, comprising:
Data are set up module, and for setting up in advance two databases, one of them database is for the internal database for sweep record and application query; Another database is for record medium information, and the auxiliary internal database is realized the media database of accelerated scan;
The scanning update module when scanning memory device for the first time, is stored in described internal database and described media database by the media file information scanned simultaneously;
When rescaning next time, if inquire in described media database the media file information that the scanning of needing is arranged, directly from described media database, obtain the media file information that needs scanning, be inserted in described internal database, complete scanning.
The device of described file scanning method, wherein, described scanning update module comprises:
The first scanning element, for when scanning memory device for the first time, judge whether to need the media file of scanning;
Search unit, for searching described media database, whether the file identical with the described media file that need to scan is arranged;
The second scanning element, for when searching media database, the file identical with the described media file that need to scan being arranged, in described media database, find out media information and the thumbnail address of this same file, the media information inquired is inserted in described internal database, and the thumbnail address is inserted in described internal database;
Synchronous updating block, for being not identical with the described media file that need to scan file when described media database, scan described media file, and the media file information updating of scanning stored in described internal database; And the media information of scanning synchronously is inserted in media database simultaneously.
A kind of file scanning method and device based on memory device provided by the present invention, can avoid repeatability scanning, also can not make a large amount of wastings of resources in multiple scanning, the most important thing is to save a large amount of sweep times, improve scan efficiency, greatly saved user's stand-by period.And avoided the generation of labile factor, and after equipment, greatly reduced sweep time on carry for the second time, saved the ample resources that a large amount of scanning will expend, improved scan efficiency, guaranteed the stability of scanning.
The accompanying drawing explanation
Fig. 1 is the scanning process process flow diagram of the media file of prior art.
Fig. 2 is the process flow diagram of the first preferred embodiment that the present invention is based on the file scanning method of memory device.
Fig. 3 is the network connection architecture schematic diagram of the second preferred embodiment that the present invention is based on the file scanning method of memory device.
Fig. 4 is the process flow diagram of the second preferred embodiment that the present invention is based on the file scanning method of memory device.
Fig. 5 is the embodiment theory diagram of device that the present invention is based on the file scanning method of memory device.
Fig. 6 is the scanning update module theory diagram of embodiment of device that the present invention is based on the file scanning method of memory device.
 
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, clear and definite, referring to accompanying drawing, developing simultaneously, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
For present jumbo memory device, the problem that sweep velocity is slow appears, the invention provides a kind of file scanning method based on memory device, need to set up in advance two databases, it is original that a database is arranged, for sweep record and app(application) inquiry, be called internal database external.db; Another database is special record medium information, and rapid scanning is realized in auxiliary legacy data storehouse, is called media database media.db.
For example, when a memory device of scanning, it is to be to like .mp3 entirely that there is a music the inside, in the present invention, adopts in scanning for the first time, except it being placed in original internal database external.db, also is placed in described media database media.db.And when at this equipment of plug, while being rescaned, if inquire in media database media.db, this file is arranged, just do not need to reopen file, obtained the information of file, directly the information in shared medium database media.db, be inserted in internal database external.db, just can complete scanning, this with open file, look for information in stream, format, decoding obtains thumbnail and compares, and has saved time and resource.
Media database media.db in the embodiment of the present invention be take file as key message foundation, as long as this file has been placed in media database media.db; If also will scan same file on another memory device, or to scan same file under this upper other address of dish, can directly information extraction in media.db, do not need to have rescaned.Think in the present invention that the condition of same file is that filename is identical and file size is identical.
Below will to the file scanning method that the present invention is based on memory device, be described further by concrete Application Example:
Refer to Fig. 2, Fig. 2 is the process flow diagram of preferred embodiment that the present invention is based on the file scanning method of memory device.As shown in Figure 2, the embodiment that the present invention is based on the file scanning method of memory device comprises the following steps:
Step S100, set up two databases in advance.It is original that a database is wherein arranged, for sweep record and app(application) inquiry, be called internal database external.db; Another database is special record medium information, and rapid scanning is realized in auxiliary legacy data storehouse, is called media database media.db
Step S101, beginning, the carry movable storage device.
After step S102, memory device are mounted on the Android system, the kernel of Android system (Kernel) is sent out mounted and is broadcasted and upload scanning pattern, and the notice scanner starts scanning.
Step S103, startup scanning.
Step S104, recursive fashion enter scanning pattern, enter scanning directory.
Step S105, judge whether to need the media file of scanning? enter step S110 when being, entering step S120 when no.Obtain file from scanning pattern, if file is arranged and be the media file that needs scanning, perform step S110; Otherwise to step S120.
Step S110, search in media database media.db the file identical with the described media file that needs scanning arranged? enter step S111 when no, enter step S112 when being.
For the media file of needs scanning, in media database media.db, searched, and if the identical file identical with file size of scanning discovery filename would think with above-mentioned need to scan the identical file of media file.If need the media file of scanning there is no same file in described media database media.db, perform step S111; Carry out step S113 when sometimes.
Step S111, the described media file of scanning document, after file scanning, store the media file information of scanning in described internal database external.db into, is the renewal internal database, and enters step S112.
Step S112, while synchronously are updated to the media information of scanning in media database media.db, then turn back to step S105.
Step S113, the media information that finds out this same file and thumbnail address, and enter step S114.
Step S114, the media information inquired is inserted in described internal database external.db, and the thumbnail address is inserted in described internal database external.db, and return to step S105.
Step S120, end of scan aftertreatment, delete non-existent data base entries in internal database external.db, and enter step S121.
Step S121, process ends.
Come as seen from the above, the methodological function of the embodiment of the present invention is, as long as scanned file, information has been placed in media database media.db, next time while scanning on same equipment, just do not need to carry out concrete operation, directly the data in shared medium database media.db are just passable, namely are equivalent to set up a media center.Like this, can avoid repeatability scanning, also can not make a large amount of wastings of resources in multiple scanning, the most important thing is to save a large amount of sweep times, improve scan efficiency, greatly save user's stand-by period.
And if in network, all equipment can be shared the data in described media database media.db, do not need each equipment to rescan separately, for example: jumbo device A dish is inserted on equipment 1, pull up and directly be inserted on equipment 2, can use soon, sweep time that need not be a large amount of, improve scan efficiency.
Further, the present invention also provides the file scanning method based on memory device of the second embodiment, and the embodiment of described the second embodiment is; Two databases are set up in main employing in advance, and one of them database is called internal database, and for supplying sweep record and application query, another database is media database, and for record medium information, the auxiliary internal database is realized accelerated scan; And described internal database is arranged on to client, described media database is arranged on to server end, this second embodiment has been placed on media database media.db in the equipment of a similar service device, can avoid like this in same equipment repeatedly scanning the waste resource, save sweep time.
If media database media.db is placed on the server of network, only need slightly to change on the basis of above-described embodiment one, just can improve the sweep velocity of the server all devices that can access in network.As shown in Figure 3, in the file scanning method of the memory device based on being connected with server of the present embodiment two, described memory device client comprises PC 60, smart mobile phone 50, panel computer 40, intelligent television 30 etc., and the client of the present embodiment can be by the media database media.db in network access server 20.Each equipment is when the carry memory device like this, can save the sweep time of the file that scanning medium database media.db comprises, simultaneously, also constantly expanding media database media.db, all can greatly shorten the sweep time of all like this equipment.
Difference due to the equipment in network system, so the structure of the database in each equipment is difference to some extent, therefore, only need add the database modular converter when each access service device equipment in the method for second embodiment of the invention, system equipment that just can compatible disparate databases.
As shown in Figure 4, the file scanning method based on memory device of described the second embodiment comprises the following steps:
Step S200, set up two databases in advance, one of them database is called internal database, and for for sweep record and application query, another database is media database, and for record medium information, the auxiliary internal database is realized accelerated scan; And described internal database is arranged on to client, described media database is arranged on to server end.
Step S201, beginning, client carry movable storage device.
After step S202, memory device are mounted on the Android system, the kernel of Android system (Kernel) is sent out mounted and is broadcasted and upload scanning pattern, and the notice scanner starts scanning.
Step S203, startup scanning.
Step S204, recursive fashion enter scanning pattern, enter scanning directory.
Do step S205, client judge whether to need the media file of scanning? enter step S206 when being, entering step S210 when no.Obtain file from scanning pattern, if file is arranged and be the media file that needs scanning, perform step S206; Otherwise the end of scan is to step S210.
Step S206, search in the media database media.db of server the file identical with the media file of needs scanning arranged? enter step S207 when no, enter step S208 when being.
The media file of needs scanning, be converted to current system at server and searched in can identifying media database media.db, see if there is filename identical, if filename is identical identical with file size think same file.If need the media file of scanning there is no same file in media.db, perform step S207; When there being same file to perform step S208.
Described internal database external.db is upgraded in step S207, scanning.Scan described media file (media file that needs scanning), after file scanning, the media information of the media file of scanning is upgraded and stores in described internal database external.db, and return to step 204.
Step S208, client send instructions in the media information that finds out this same file in media database media.db and the thumbnail address of server, and enter step S209.
Step S209, the media information inquired is inserted in described internal database external.db, and the thumbnail address is inserted in described internal database external.db, and return to step S204.
Step S210, scanning aftertreatment, client is deleted non-existent data base entries in described internal database external.db, and enters step S211.
Step S211, with the media database media.db on the data synchronization server of described internal data external.db.After being the end of scan, client is also synchronous and be updated in the media database media.db on server the newly-increased scanning information in local internal database external.db.The present embodiment two is due to media database media.db is arranged on server, employing is after the end of scan, client is synchronized to the newly-increased scanning information in local internal database external.db in the media database media.db on server, and scans one synchronous one unlike the local data base of embodiment mono-.The present embodiment two adopts synchronous at the end of scan, can effectively improve scan efficiency.
In the present embodiment, when the internal database of client different from the media database type of server end, client is converted to the database identical with the media database type of server end by the interior data storehouse, after the database conversion, the more newly-increased scanning information in the internal database of client terminal local also is synchronized to the media database on server.If i.e. database difference, need carry out after the database conversion the newly-increased scanning information in the internal database external.db of client terminal local also synchronous and be updated in the media database media.db on server again.
Step S212, process ends.
Based on above-described embodiment, the embodiment of the present invention also provides a kind of device that adopts the file scanning method based on memory device described above, and as shown in Figure 5, the device of the present embodiment comprises:
Data are set up module 510, and for setting up in advance two databases, one of them database is for the internal database for sweep record and application query; Another database is for record medium information, and the auxiliary internal database is realized the media database of accelerated scan; Specifically as mentioned above.
Scan module 520 when scanning memory device for the first time, is stored in described internal database and described media database by the media file information scanned simultaneously;
When rescaning next time, if inquire in described media database the media file information that the scanning of needing is arranged, directly from described media database, obtain the media file information that needs scanning, be inserted in described internal database, complete scanning.Specifically as mentioned above.
Wherein, as shown in Figure 6, described scanning update module comprises:
The first scanning element 521, for when scanning memory device for the first time, judge whether to need the media file of scanning; Specifically as mentioned above.
Search unit 522, for searching described media database, whether the file identical with the described media file that need to scan is arranged; Enter step B3 when no, enter step B4 when being; Specifically as mentioned above.
The second scanning element 523,, for when searching media database, the file identical with the described media file that need to scan being arranged, in described media database, find out media information and the thumbnail address of this same file, the media information inquired is inserted in described internal database, and the thumbnail address is inserted in described internal database; Specifically as mentioned above.
Synchronous updating block 524, for when described media database being not identical with the described media file that need to scan file, the described media file of scanning document, and the media file information updating of scanning is stored in described internal database; And the media information of scanning synchronously is inserted in media database, specifically as mentioned above. simultaneously
In sum, the file scanning method based on memory device of the embodiment of the present invention is the too slow problem of sweep velocity while for memory device capacious, repeatedly plugging scanning, and it is long repeatedly to scan spended time, the resource problems of too consumed, the present invention has changed scan method: adopt and set up two databases, it is original that a database is arranged, and for sweep record and app inquiry, is called internal database external.db; Another database is special record medium information, and rapid scanning is realized in auxiliary legacy data storehouse, is called media database media.db, thereby has saved the sweep time of same file, and saved the ample resources that scanning will expend.After expanding in network application, more can save in whole network the sweep time of all devices to same file, greatly improve scan efficiency.
Should be understood that, application of the present invention is not limited to above-mentioned giving an example, and for those of ordinary skills, can be improved according to the above description or convert, and all these improvement and conversion all should belong to the protection domain of claims of the present invention.

Claims (10)

1. the file scanning method based on memory device, is characterized in that, comprises step:
A, set up two databases in advance, one of them database is for the internal database for sweep record and application query; Another database is for record medium information, and the auxiliary internal database is realized the media database of accelerated scan;
B, scanning step: while scanning memory device for the first time, the media file information scanned is stored in to described internal database and described media database simultaneously;
When rescaning next time, if inquire in described media database the media file information that the scanning of needing is arranged, directly from described media database, obtain the media file information that needs scanning, be inserted in described internal database, complete scanning.
2. the file scanning method based on memory device according to claim 1, is characterized in that, described step B specifically comprises:
B1, when scanning memory device for the first time, judge whether to need the media file of scanning, enter step B2 when being, enter step B6 when no;
B2, search in described media database whether the file identical with the described media file that needs scanning is arranged; Enter step B3 when no, enter step B4 when being;
B3, scan described media file, and the media file information updating of scanning is stored in described internal database; And the media information of scanning synchronously is inserted in media database, then turn back to step B1; simultaneously
B4, the file identical with the described media file that needs scanning arranged in searching media database,, in described media database, find out media information and the thumbnail address of this same file, and enter step B5;
B5, the media information inquired is inserted in described internal database external.db, and the thumbnail address is inserted in external.db, and return to step B1;
B6, end of scan aftertreatment, delete non-existent data base entries in described internal database.
3. the file scanning method based on memory device according to claim 2, is characterized in that, the identical file in described step B2 is: filename is identical identical with file size.
4. the file scanning method based on memory device according to claim 1, is characterized in that, described steps A specifically comprises:
A1, set up two databases in advance, one of them database is called internal database, and for for sweep record and application query, another database is media database, and for record medium information, the auxiliary internal database is realized accelerated scan;
A2, described internal database is arranged on to client, described media database is arranged on to server end.
5. the file scanning method based on memory device according to claim 4, is characterized in that, described step B specifically comprises:
BS1, when the described memory device of client carry starts to scan; System kernel is sent out and is broadcasted and upload scanning pattern, with recursive fashion, enters scanning pattern, and enters scanning directory;
BS2, client judge whether to need the media file of scanning, enter step BS3 when being, enter step BS6 when no;
BS3, client send instructions searches in the media database of server whether the file identical with the media file of needs scanning is arranged; Enter step BS4 when no, enter step BS5 when being;
BS4, the described media file of client scan, and the media file information of scanning is stored in described internal database, to upgrade synchronous described internal database, and return to step BS1;
BS5, client, in the media database of server, find out media information and the thumbnail address of this same file; And be synchronized to described internal database inquiring the media information identical with the described media file that needs scanning, and described thumbnail address synchronization in described internal database, return to step BS1;
BS6, scanning aftertreatment, client is deleted non-existent data base entries in described internal database, and enters step BS7;
After BS7, client scan finish, client also is synchronized to the newly-increased scanning information in local internal database in the media database on server.
6. the file scanning method based on memory device according to claim 5, is characterized in that, described step BS3 also comprises: when identical the think same file identical with file size of judgement filename.
7. the file scanning method based on memory device according to claim 5, it is characterized in that, described step BS7 also comprises: when the internal database of client different from the media database type of server end, client is converted to the database identical with the media database type of server end by the interior data storehouse, after the database conversion, the more newly-increased scanning information in the internal database of client terminal local also is synchronized to the media database on server.
8. the file scanning method based on memory device according to claim 1, is characterized in that, described media file comprises: one or more in audio-video document, picture file, word file and EXCEL file.
9. a device that adopts the described file scanning method based on memory device of the claims 1-8 any one, is characterized in that, comprising:
Data are set up module, and for setting up in advance two databases, one of them database is for the internal database for sweep record and application query; Another database is for record medium information, and the auxiliary internal database is realized the media database of accelerated scan;
The scanning update module when scanning memory device for the first time, is stored in described internal database and described media database by the media file information scanned simultaneously;
When rescaning next time, if inquire in described media database the media file information that the scanning of needing is arranged, directly from described media database, obtain the media file information that needs scanning, be inserted in described internal database, complete scanning.
10. the device of file scanning method according to claim 9, is characterized in that, described scanning update module comprises:
The first scanning element, for when scanning memory device for the first time, judge whether to need the media file of scanning;
Search unit, for searching described media database, whether the file identical with the described media file that need to scan is arranged;
The second scanning element, for when searching media database, the file identical with the described media file that need to scan being arranged, in described media database, find out media information and the thumbnail address of this same file, the media information inquired is inserted in described internal database, and the thumbnail address is inserted in described internal database;
Synchronous updating block, for being not identical with the described media file that need to scan file when described media database, scan described media file, and the media file information updating of scanning stored in described internal database; And the media information of scanning synchronously is inserted in media database simultaneously.
CN2012101885906A 2012-06-08 2012-06-08 Storage-equipment-based file scanning method and device Pending CN103473240A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101885906A CN103473240A (en) 2012-06-08 2012-06-08 Storage-equipment-based file scanning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101885906A CN103473240A (en) 2012-06-08 2012-06-08 Storage-equipment-based file scanning method and device

Publications (1)

Publication Number Publication Date
CN103473240A true CN103473240A (en) 2013-12-25

Family

ID=49798096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101885906A Pending CN103473240A (en) 2012-06-08 2012-06-08 Storage-equipment-based file scanning method and device

Country Status (1)

Country Link
CN (1) CN103473240A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104182519A (en) * 2014-08-25 2014-12-03 百度在线网络技术(北京)有限公司 File scanning method and device
CN104615742A (en) * 2015-02-10 2015-05-13 广东欧珀移动通信有限公司 Multi-media database scanning method and multi-media database scanning device
CN104778222A (en) * 2015-03-23 2015-07-15 四川长虹电器股份有限公司 Media library establishing and updating method on basis of USB (Universal Serial Bus) storage equipment
CN106227852A (en) * 2016-07-28 2016-12-14 中国石油天然气集团公司 The recognition methods of seismic prospecting performance data file and device
CN110019859A (en) * 2017-08-29 2019-07-16 安波福电子(苏州)有限公司 A kind of multimedia file management method and device
CN110188211A (en) * 2019-04-25 2019-08-30 深圳市布谷鸟科技有限公司 A method of applied to the quick loading multimedia list of application of Android onboard system
CN110532402A (en) * 2018-05-25 2019-12-03 合肥杰发科技有限公司 Multimedia scan method, intelligent terminal and the device with store function

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102142010A (en) * 2010-12-17 2011-08-03 华为终端有限公司 Method and equipment for inputting data to multimedia service database on embedded equipment
CN102289484A (en) * 2011-08-03 2011-12-21 Tcl集团股份有限公司 Method for scanning multimedia files of storage equipment based on android system
CN102411628A (en) * 2011-12-19 2012-04-11 Tcl集团股份有限公司 Android system-based file scanning method and device
CN102411629A (en) * 2011-12-21 2012-04-11 Tcl集团股份有限公司 File scanning method and device based on android system
US20120117024A1 (en) * 2010-11-08 2012-05-10 Samsung Electronics Co. Ltd. Method for updating media database in portable terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120117024A1 (en) * 2010-11-08 2012-05-10 Samsung Electronics Co. Ltd. Method for updating media database in portable terminal
CN102142010A (en) * 2010-12-17 2011-08-03 华为终端有限公司 Method and equipment for inputting data to multimedia service database on embedded equipment
CN102289484A (en) * 2011-08-03 2011-12-21 Tcl集团股份有限公司 Method for scanning multimedia files of storage equipment based on android system
CN102411628A (en) * 2011-12-19 2012-04-11 Tcl集团股份有限公司 Android system-based file scanning method and device
CN102411629A (en) * 2011-12-21 2012-04-11 Tcl集团股份有限公司 File scanning method and device based on android system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10049113B2 (en) 2014-08-25 2018-08-14 Baidu Online Network Technology (Beijing) Co., Ltd. File scanning method and apparatus
WO2016029441A1 (en) * 2014-08-25 2016-03-03 百度在线网络技术(北京)有限公司 File scanning method and apparatus
KR101738078B1 (en) 2014-08-25 2017-05-19 바이두 온라인 네트웍 테크놀러지 (베이징) 캄파니 리미티드 File scanning method and apparatus
CN104182519B (en) * 2014-08-25 2018-03-02 百度在线网络技术(北京)有限公司 A kind of file scanning method and device
CN104182519A (en) * 2014-08-25 2014-12-03 百度在线网络技术(北京)有限公司 File scanning method and device
CN104615742A (en) * 2015-02-10 2015-05-13 广东欧珀移动通信有限公司 Multi-media database scanning method and multi-media database scanning device
CN104615742B (en) * 2015-02-10 2017-11-21 广东欧珀移动通信有限公司 Multimedia database scan method and device
CN104778222A (en) * 2015-03-23 2015-07-15 四川长虹电器股份有限公司 Media library establishing and updating method on basis of USB (Universal Serial Bus) storage equipment
CN104778222B (en) * 2015-03-23 2017-12-05 四川长虹电器股份有限公司 Media library based on USB storage device is established and update method
CN106227852A (en) * 2016-07-28 2016-12-14 中国石油天然气集团公司 The recognition methods of seismic prospecting performance data file and device
CN110019859A (en) * 2017-08-29 2019-07-16 安波福电子(苏州)有限公司 A kind of multimedia file management method and device
CN110532402A (en) * 2018-05-25 2019-12-03 合肥杰发科技有限公司 Multimedia scan method, intelligent terminal and the device with store function
CN110188211A (en) * 2019-04-25 2019-08-30 深圳市布谷鸟科技有限公司 A method of applied to the quick loading multimedia list of application of Android onboard system

Similar Documents

Publication Publication Date Title
CN103473240A (en) Storage-equipment-based file scanning method and device
CN102411628B (en) Android system-based file scanning method and device
CN102289484B (en) Method for scanning multimedia files of storage equipment based on android system
WO2016070534A1 (en) Method and system for scanning local media file
CN102411629A (en) File scanning method and device based on android system
EP3125501A1 (en) File synchronization method, server, and terminal
CN104158886A (en) Flow-type performing method for applications
CN102906747A (en) Method and apparatus for portable index on removable storage medium
CN104050276A (en) Cache processing method and system of distributed database
CN102222112B (en) Resource management device and resource management method
CN103885990A (en) Search method and system
CN111324660A (en) Data synchronization method and device, electronic equipment and machine-readable storage medium
CN114139040A (en) Data storage and query method, device, equipment and readable storage medium
CN105187562A (en) System and method for operating remote file
CN104750500A (en) Method and system for starting application program
CN101483668A (en) Network storage and access method, device and system for hot spot data
CN103092988A (en) Realizing method of directly managing mobile phone media resources on desktop
CN104052823A (en) File sharing method and device based on DLNA
CN103970836A (en) Method for accelerating multimedia scanning process in Android
CN110569456B (en) WEB end data offline caching method and device and electronic equipment
CN114969114A (en) Water conservancy information rapid retrieval method, system and computer readable medium
CN111291017B (en) Mirror image storage and extraction method and device of mirror image warehouse
RU2617593C2 (en) Method and device for home network content processing
CN105528226A (en) Method and apparatus for starting intelligent terminal
CN103237007A (en) Method and device for updating media files

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

Application publication date: 20131225

RJ01 Rejection of invention patent application after publication