CN108052575A - File scanning method, equipment and storage medium - Google Patents

File scanning method, equipment and storage medium Download PDF

Info

Publication number
CN108052575A
CN108052575A CN201711292771.2A CN201711292771A CN108052575A CN 108052575 A CN108052575 A CN 108052575A CN 201711292771 A CN201711292771 A CN 201711292771A CN 108052575 A CN108052575 A CN 108052575A
Authority
CN
China
Prior art keywords
file
database
scanned
peripheral hardware
scanning
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
CN201711292771.2A
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.)
Shenzhen Skyworth Software Co Ltd
Original Assignee
Shenzhen Skyworth Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth Software Co Ltd filed Critical Shenzhen Skyworth Software Co Ltd
Priority to CN201711292771.2A priority Critical patent/CN108052575A/en
Publication of CN108052575A publication Critical patent/CN108052575A/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/17Details of further file system functions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of file scanning method, equipment and storage mediums.Wherein, file scanning method is applied to terminal device, and this method includes:The essential information of file to be scanned in scanning storage peripheral hardware, and update to the database in the storage peripheral hardware;According to the essential information, determine in the file to be scanned by modification file;The details by modification file are scanned, and are updated to the database.In the technical solution of the embodiment of the present invention, pass through the strategy scanned stage by stage, terminal device need to only scan the essential information of file to be scanned in storage peripheral hardware, with by the details of modification file, compared to the method for the whole fileinfo of file to be scanned of traverse scanning, the information content for needing to scan is greatly reduced, shortens the file scan time, improves file scan efficiency.

Description

File scanning method, equipment and storage medium
Technical field
The present embodiments relate to electronic storage device scanning technique field more particularly to a kind of file scanning method, set Standby and storage medium.
Background technology
With the popularization of network, the promotion of network speed and the downward of network rate, internet television and OTT set-top box Etc. Androids television equipment be gradually promoted, provide the colourful media resource such as TV play, film to the user.
For the Androids television equipment such as internet television and OTT set-top box, a common usage scenario is exactly from local It stores and file is read in peripheral hardware (such as flash disk, mobile hard disk), then play or browsing multimedia file.Android television equipment passes through Media Survey module in Android system classifies to multimedia file and obtains the essential information of multimedia file.
Primary Media Survey module, is according to this external storage of mobile phone in the Android system of usual Android television equipment Place capacity is limited and the design of usage scenario that will not usually replace, but the appearance that peripheral hardware is locally stored of Android television equipment It measures usually very greatly, and peripheral hardware is locally stored may often to replace, if the scanning strategy using primary Media Survey module That removes scanning Android television equipment is locally stored peripheral hardware, when can cause to obtain excessively slow multimedia file details and scanning Between long CPU (Central Processing Unit, central processing unit) occupation problem brought.
The content of the invention
To solve Related Technical Issues, the embodiment of the present invention provides a kind of file scanning method, equipment and storage medium, with Improve file scan efficiency.
To achieve the above object, the embodiment of the present invention adopts the following technical scheme that:
In a first aspect, an embodiment of the present invention provides a kind of file scanning method, applied to terminal device, including:
The essential information of file to be scanned in scanning storage peripheral hardware, and update to the database in the storage peripheral hardware;
According to the essential information, determine in the file to be scanned by modification file;
The details by modification file are scanned, and are updated to the database.
Second aspect, an embodiment of the present invention provides a kind of equipment, including:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are performed by one or more of processors so that one or more of processing Device realizes the file scanning method provided such as any embodiment of the present invention.
The third aspect, an embodiment of the present invention provides a kind of computer readable storage mediums, are stored thereon with computer journey Sequence realizes the file scanning method provided such as any embodiment of the present invention when the program is executed by processor.
The advantageous effect that technical solution provided in an embodiment of the present invention is brought:
The embodiment of the present invention provides a kind of file scanning method, equipment and storage medium, wherein, file scanning method should For terminal device, terminal device is using the strategy scanned stage by stage, to being mounted in the storage peripheral hardware on the terminal device File is scanned, i.e., terminal device first quickly scans the essential information of file to be scanned, is filtered out based on essential information and waits to sweep Retouch in file by modification file, then scan by the details of modification file;The technical solution of the embodiment of the present invention, by dividing Stage scanning strategy, terminal device need to only scan storage peripheral hardware in file to be scanned essential information and by modification file The method of details, the compared with prior art whole fileinfo of file to be scanned of middle traverse scanning, greatly reduces needs The information content of scanning shortens the file scan time, improves file scan efficiency.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, institute in being described below to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention Example, for those of ordinary skill in the art, without creative efforts, can also implement according to the present invention The content of example and these attached drawings obtain other attached drawings.
Fig. 1 is a kind of flow diagram of file scanning method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another file scanning method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another file scanning method provided in an embodiment of the present invention;
Fig. 4 is a kind of structure diagram of equipment provided in an embodiment of the present invention.
Specific embodiment
For make present invention solves the technical problem that, the technical solution that uses and the technique effect that reaches it is clearer, below The technical solution of the embodiment of the present invention will be described in further detail with reference to attached drawing, it is clear that described embodiment is only It is part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art exist All other embodiments obtained under the premise of creative work are not made, belong to the scope of protection of the invention.
It please refers to Fig.1, a kind of file scanning method provided in this embodiment, terminal device is mounted to suitable for storage peripheral hardware When, terminal device carries out storage peripheral hardware the scene of file scan;This method can be by the file scanning device in terminal device It performs, this document scanning means can specifically be realized by way of software and/or hardware.
As shown in Figure 1, file scanning method provided in this embodiment, applied to terminal device, this method can specifically wrap Include following content:
The essential information of file to be scanned in S110, scanning storage peripheral hardware, and update to the database in storage peripheral hardware.
Illustratively, terminal device can be the Androids television equipments such as internet television and OTT set-top box;Storing peripheral hardware can Think the pluggable storage device such as flash disk, mobile hard disk, storing in peripheral hardware has corresponding database;File to be scanned can be The multimedia files such as audio file, video file;Essential information include but not limited to the title of file to be scanned, file path, The information such as father path, last modification time and file size.
When storage peripheral hardware is mounted on terminal device, the system of terminal device can send carry broadcast, scan static note The radio receiver of volume can receive carry broadcast, open the scan procedure with message loop mechanism and start to scan, that is, start File to be scanned in storage peripheral hardware is scanned stage by stage, includes but not limited to essential information scanning and details scanning.
Optionally, essential information scan operation S110 can specifically include:
By the second scan procedure, the essential information of file to be scanned in traverse scanning storage peripheral hardware.
If the quantity of the essential information scanned has reached the second setting numerical value, by update of basic information to data Storehouse.
In one embodiment, terminal device enables the second scan procedure, and traverse scanning stores each to be scanned in peripheral hardware The essential informations such as title, file path, father path, last modification time and the file size of file.It is scanned in essential information In the process, often add up scanning to the essential information of the second setting numerical value, the essential information scanned is just updated into data together Storehouse, for example, often scan the data of 300 essential informations, then it is this by the data update of this 300 essential informations to database Information updating method, compared to the method that often one essential information of scanning just updates database, operating efficiency higher.
It should be noted that above-mentioned essential information scan operation, only occurs in the java layers of terminal device system, and solve Analysis scanning essential information consumption cpu resource is relatively fewer, and the scan operation in the stage can terminate quickly.
S120, according to essential information, determine in file to be scanned by modification file.
Illustratively, last file and the file content quilt to be scanned for scanning and newly increasing afterwards is included by modification file The file to be scanned changed.
The scanning information that be scanned file of the terminal device in upper once scanning storage peripheral hardware obtains is (including text to be scanned The essential information of part), it is stored in the database of storage peripheral hardware in corresponding file.Terminal device stores last time scanning Essential information in the database, with present scan to essential information be compared, if the file in two parts of essential informations Last modification time information in size information difference and/or two parts of essential informations is different, it is determined that corresponding file to be scanned For by modification file.
Optionally, terminal device is using the last modification time in essential information as the definite foundation by modification file, phase It answers, determines specifically be included by the operation S120 of modification file:
The last modification time of file to be scanned is inquired about from database.
If it does not inquire the last modification time of file to be scanned from database or is inquired from database upper Secondary modification time, the last modification time obtained with present scan differ, it is determined that file to be scanned is by modification file.
Illustratively, the content of file to be scanned is changed, inevitably results in the last modification time hair of the file to be scanned It is raw to change, but the file size of the file to be scanned then not necessarily changes, therefore, terminal device is according to file to be scanned Last modification time, can the accurate judgement file to be scanned whether be to be changed file.Since terminal device is scanning every time When storing the file to be scanned in peripheral hardware, the last modification time information scanned can be updated storage to the data of storage peripheral hardware In storehouse, therefore, the last modification time of the file to be scanned when terminal device can inquire last scanning from this database.
In one embodiment, if terminal device does not inquire the last time of file to be scanned from the database of storage peripheral hardware Sweep time, it is determined that file that the file to be scanned is newly increased afterwards for last scanning namely by modification file.If terminal Equipment has the last modification time for inquiring file to be scanned from the database of storage peripheral hardware, and inquired from database Last modification time, the last modification time obtained with present scan differ, it is determined that the file to be scanned is by modification text Part.
If terminal device has the last modification time that inquires file to be scanned from the database of storage peripheral hardware, and from number It is identical with the last modification time that present scan obtains, it is determined that the text to be scanned according to the last modification time inquired in storehouse Part is not changed.
S130, scanning are updated by the details of modification file to database.
Illustratively, by the details of modification file, the specific metadata for being changed file is referred to.For example, for more Media file, details can include the letters such as composer's name, composition style, album information, song title or movie name Breath.
Optionally, details scan operation S130 can specifically include:
3rd scan procedure is enabled based on default process priority.
By the 3rd scan procedure, traverse scanning is by the details of modification file.
If the quantity of the details scanned has reached the 3rd setting numerical value, by details update to data Storehouse.
Illustratively, details scan operation is happened at the native layers of system, is eventually transferred to the java layers of system, Therefore, terminal device is in details of the parsing scanning by modification file, when can occupy more cpu resource, and scan Between it is partially long, if scan procedure occupies cpu resource for a long time, the system that will influence enables desktop starter process, broadcasting process Etc. other important processes, terminal device is led to problems such as to occur starting blunt, broadcasting multimedia file interim card, even result in user Think that system is stuck.
In one embodiment, terminal device first reduces the 3rd scan procedure before details scan operation is carried out Process priority, the process priority for setting the 3rd scan procedure is other heavy less than desktop starter process, broadcasting process etc. Want the process priority of process.For example, terminal device before the 3rd scan procedure is enabled, can be seized by the CPU of Linux Formula mechanism preferentially concedes cpu resource, and System Priority is allowed to handle other important processes such as desktop starter process, broadcasting process. Terminal device enable the 3rd scan procedure traverse scanning by modification file details when, often add up scanning to the 3rd setting The details scanned are just updated database by the details of numerical value together, for example, often scanning 300 details Data, then by the data update of this 300 details to database, this information updating method, compared to often scanning one The method that details just update database, operating efficiency higher.
Optionally, terminal device is while every time by the essential information of batch or details update to database, also The broadcast that the database can be read is sent to system, can accelerate to store the display speed of the fileinfo of multimedia file in peripheral hardware Degree and renewal speed show the accurate fileinfo of multimedia file for user in time.
In conclusion in the technical solution of the present embodiment, terminal device is using the strategy scanned stage by stage, to being mounted to The file in storage peripheral hardware on the terminal device is scanned, i.e., terminal device first quickly scans the basic letter of file to be scanned Breath, based on essential information filter out in file to be scanned by modification file, then scan by the details of modification file;Pass through The strategy scanned stage by stage, terminal device need to only scan storage peripheral hardware in file to be scanned essential information and by modification file Details, the compared with prior art whole fileinfo of file to be scanned of middle traverse scanning method, greatly reducing needs The information content to be scanned shortens the file scan time, improves file scan efficiency.
It please refers to Fig.2, on the basis of above-described embodiment, optionally, the file to be scanned in the scanning storage peripheral hardware Essential information before, further include:
When storage peripheral hardware is mounted to the terminal device, the empty file of database in storage peripheral hardware is deleted.
It is further alternative, the empty file for deleting database in storage peripheral hardware, including:
By the first scan procedure, the database in storage peripheral hardware is scanned along carry traversal path, is determined in database Empty file;
If it is determined that the quantity of empty file when having reached the first setting numerical value, delete the empty file in database.
Terminal device first deletes ineffective law, rule, etc. invalid in database before the essential information of file to be scanned is scanned as a result, Part avoids showing the file and its fileinfo that have been not present in some storage peripheral hardwares for user.
As shown in Fig. 2, the technical solution of the present embodiment can specifically include following content:
S210, when store peripheral hardware be mounted to terminal device when, delete storage peripheral hardware in database empty file.
Optionally, empty file delete operation S210 can include:
By the first scan procedure, the database in storage peripheral hardware is scanned along carry traversal path, is determined in database Empty file.
If it is determined that the quantity of empty file when having reached the first setting numerical value, delete the empty file in database.
In one embodiment, when storage peripheral hardware is mounted to terminal device, terminal device performs essential information scanning behaviour Before work, the first scan procedure is first enabled, reads the database in storage peripheral hardware, after confirming database not for sky, according to system The carry path that kernel provides, traverse scanning store the catalogue file folder in the database in peripheral hardware, confirm empty file therein, Often add up to determine the first empty file for setting numerical value, just delete the empty file having determined in batches, for example, often determining 50 ineffective law,s rule, etc. Part is then deleted this 50 empty files batch, the method that this batch deletes empty file, compared with prior art in delete one by one it is empty The method of file, operating efficiency higher.
After empty file whole in database is deleted, the broadcast in readable data storehouse occurs again to system for terminal device, Perform the essential information scan operation of following S220.
The essential information of file to be scanned in S220, scanning storage peripheral hardware, and update to the database in storage peripheral hardware.
S230, according to essential information, determine in file to be scanned by modification file.
S240, scanning are updated by the details of modification file to database.
In conclusion in the technical solution of the present embodiment, when storage peripheral hardware is mounted on terminal device, terminal device is first Determine and delete empty file invalid in database, avoid for user show in some storage peripheral hardwares the file that has been not present and Its fileinfo.
It please refers to Fig.3, on the basis of above-described embodiment, optionally, described when storage peripheral hardware is mounted to terminal device When, delete storage peripheral hardware in database empty file before, further include:
When storage peripheral hardware is mounted to terminal device for the first time, database is established in peripheral hardware is stored;
The fileinfo of all files in scanning storage peripheral hardware, and store in the database.
It is further alternative, it is described to establish database in peripheral hardware is stored, it is specifically as follows:In the specified text of storage peripheral hardware Database is established in part folder, and specified folder is arranged to hidden state.
Terminal device establishes external data base in the specified folder of storage peripheral hardware as a result, avoids storage peripheral hardware each When being mounted on terminal device, it is required for storing the problem of all files in peripheral hardware carry out multiple scanning, is located at outside storage When being mounted to for the second time and subsequently on terminal device, sweep time is greatly reduced, improves scan efficiency.
As shown in figure 3, the technical solution of the present embodiment can specifically include following content:
S310, when store peripheral hardware for the first time be mounted to terminal device when, establish database in peripheral hardware is stored.
The fileinfo of all files in S320, scanning storage peripheral hardware, and store in the database.
Optionally, during first time carry, database is being established in peripheral hardware is stored, is being specifically as follows:In storage peripheral hardware Database is established in specified folder, and specified folder is arranged to hidden state.
In one embodiment, when terminal device determines the storage peripheral hardware first time carry according to No. UID of storage peripheral hardware, Database is established in the specified folder of storage peripheral hardware, to avoid bringing puzzlement to user, is given tacit consent to the specified file sandwiched It is set to hidden state.For reduce storage peripheral hardware again carry when sweep time, during first time carry, terminal device need to be scanned and deposited The fileinfo (including essential information and details) of all files in peripheral hardware is stored up, and is stored in the database, works as storage Peripheral hardware again carry when, terminal device determines subsequent scanning strategy stage by stage based on the fileinfo stored in database, lead to Scanning strategy stage by stage is crossed to realize reduction sweep time, improve scan efficiency.
It should be noted that the operation of S310 and S320 is only just performed when storing peripheral hardware first time carry, it is outer in storage If when first time carry and follow-up carry, terminal device is all based on the fileinfo in database to determine what is scanned stage by stage Scanning strategy, it is no longer necessary to perform the operation of S310 and S320.
S330, when store peripheral hardware be mounted to terminal device when, delete storage peripheral hardware in database empty file.
The essential information of file to be scanned in S340, scanning storage peripheral hardware, and update to the database in storage peripheral hardware.
S350, according to essential information, determine in file to be scanned by modification file.
S360, scanning are updated by the details of modification file to database.
In conclusion in the technical solution of the present embodiment, when storage peripheral hardware is mounted to terminal device for the first time, terminal is set It is standby to establish external data base in the specified folder of storage peripheral hardware, when avoiding the storage peripheral hardware from being mounted to every time on terminal device, The problem of all files being required in storage peripheral hardware carry out multiple scanning is located at second outside storage and is subsequently mounted to end When in end equipment, sweep time is greatly reduced, improves scan efficiency.
Fig. 4 is a kind of structure diagram of equipment provided in an embodiment of the present invention.Fig. 4 shows to be used for realizing this hair The block diagram of the example devices 12 of bright embodiment.The equipment 12 that Fig. 4 is shown is only an example, and the present invention should not be implemented The function and use scope of example bring any restrictions.
As shown in figure 4, equipment 12 is showed in the form of common apparatus.The component of equipment 12 can include but is not limited to:One A either multiple processors or processing unit 16, system storage 28, connection different system component is (including system storage 28 With processing unit 16) bus 18.
Bus 18 represents the one or more in a few class bus structures, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using the arbitrary bus structures in a variety of bus structures.It lifts For example, these architectures include but not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Equipment 12 typically comprises various computing systems readable medium.These media can be it is any can be by equipment 12 The usable medium of access, including volatile and non-volatile medium, moveable and immovable medium.
System storage 28 can include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Equipment 12 may further include it is other it is removable/nonremovable, Volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing irremovable , non-volatile magnetic media (Fig. 4 do not show, commonly referred to as " hard disk drive ").Although not shown in Fig. 4, use can be provided In to moving the disc driver of non-volatile magnetic disk (such as " floppy disk ") read-write and to moving anonvolatile optical disk The CD drive of (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver can To be connected by one or more data media interfaces with bus 18.Memory 28 can include at least one program product, The program product has one group of (for example, at least one) program module, these program modules are configured to perform each implementation of the invention The function of example.
Program/utility 40 with one group of (at least one) program module 42 can be stored in such as memory 28 In, such program module 42 include but not limited to operating system, one or more application program, other program modules and Program data may include the realization of network environment in each or certain combination in these examples.Program module 42 is usual Perform the function and/or method in embodiment described in the invention.
Equipment 12 can also communicate with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.), Can also be enabled a user to one or more equipment interacted with the equipment 12 communication and/or with enable the equipment 12 with Any equipment (such as network interface card, modem etc.) communication that one or more of the other computing device communicates.It is this logical Letter can be carried out by input/output (I/O) interface 22.Also, equipment 12 can also by network adapter 20 and one or The multiple networks of person (such as LAN (LAN), wide area network (WAN) and/or public network, such as internet) communication.As shown in the figure, Network adapter 20 is communicated by bus 18 with other modules of equipment 12.It should be understood that it although not shown in the drawings, can combine Equipment 12 uses other hardware and/or software module, includes but not limited to:Microcode, device driver, redundant processing unit, External disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 is stored in program in system storage 28 by operation, so as to perform various functions application and Data processing, such as realize the file scanning method that the embodiment of the present invention is provided.
The embodiment of the present invention additionally provides a kind of storage medium for including computer executable instructions, and the computer can be held Row instruction is used to perform a kind of file scanning method when being performed by computer processor, applied to terminal device, this method bag It includes:
The essential information of file to be scanned in scanning storage peripheral hardware, and update to the database in the storage peripheral hardware;
According to the essential information, determine in the file to be scanned by modification file;
The details by modification file are scanned, and are updated to the database.
The arbitrary of one or more computer-readable media may be employed in the computer storage media of the embodiment of the present invention Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device or arbitrary above combination.The more specific example (non exhaustive list) of computer readable storage medium includes:Tool There are one or the electrical connections of multiple conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or storing program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media can include in a base band or as carrier wave a part propagation data-signal, Wherein carry computer-readable program code.Diversified forms may be employed in the data-signal of this propagation, including but it is unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium beyond storage medium is read, which can send, propagates or transmit and be used for By instruction execution system, device either device use or program in connection.
The program code included on computer-readable medium can be transmitted with any appropriate medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
It can write to perform the computer that operates of the present invention with one or more programming languages or its combination Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully performs, partly perform on the user computer on the user computer, the software package independent as one performs, portion Divide and partly perform or perform on a remote computer or server completely on the remote computer on the user computer. Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including LAN (LAN) or Wide area network (WAN)-be connected to subscriber computer or, it may be connected to outer computer (such as is carried using Internet service Pass through Internet connection for business).
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various apparent variations, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

1. a kind of file scanning method, applied to terminal device, which is characterized in that including:
The essential information of file to be scanned in scanning storage peripheral hardware, and update to the database in the storage peripheral hardware;
According to the essential information, determine in the file to be scanned by modification file;
The details by modification file are scanned, and are updated to the database.
2. the method as described in claim 1, which is characterized in that the basic letter of file to be scanned in the scanning storage peripheral hardware Before breath, further include:
When storage peripheral hardware is mounted to the terminal device, the empty file of database in the storage peripheral hardware is deleted.
3. method as claimed in claim 2, which is characterized in that the empty file for deleting database in the storage peripheral hardware, Including:
By the first scan procedure, the database along in the carry traversal path scanning storage peripheral hardware determines the database In empty file;
If it is determined that the quantity of empty file when having reached the first setting numerical value, delete the ineffective law, rule, etc. in the database Part.
4. the method as described in claim 1, which is characterized in that the basic letter of file to be scanned in the scanning storage peripheral hardware Breath, and update to the database in the storage peripheral hardware, including:
By the second scan procedure, the essential information of file to be scanned in peripheral hardware is stored described in traverse scanning;
If the quantity of the essential information scanned has reached the second setting numerical value, by the update of basic information described in Database.
5. the method as described in claim 1, which is characterized in that the last time that the essential information includes the file to be scanned repaiies Change the time;
Correspondingly, described according to the essential information, determine in the file to be scanned by modification file, including:
The last modification time of the file to be scanned is inquired about from the database;
If it does not inquire the last modification time of the file to be scanned from database or is inquired from database upper Secondary modification time, the last modification time obtained with present scan differ, it is determined that the file to be scanned is by modification text Part.
6. the method as described in claim 1, which is characterized in that the scanning details by modification file, and more The database is newly arrived, including:
3rd scan procedure is enabled based on default process priority;
By the 3rd scan procedure, by the details of modification file described in traverse scanning;
If the quantity of the details scanned has reached the 3rd setting numerical value, the details are updated to described Database.
7. method as claimed in claim 2, which is characterized in that described when storage peripheral hardware is mounted to the terminal device, Delete it is described storage peripheral hardware in database empty file before, further include:
When the storage peripheral hardware is mounted to the terminal device for the first time, the database is established in the storage peripheral hardware;
The fileinfo of all files in the storage peripheral hardware is scanned, and is stored in the database.
8. the method for claim 7, which is characterized in that it is described to establish the database in the storage peripheral hardware, it wraps It includes:
The database is established in the specified folder of the storage peripheral hardware, and the specified folder is arranged to hiding shape State.
9. a kind of equipment, which is characterized in that including:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are performed by one or more of processors so that one or more of processors are real The now file scanning method as described in any in claim 1~8.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The file scanning method as described in any in claim 1~8 is realized during execution.
CN201711292771.2A 2017-12-08 2017-12-08 File scanning method, equipment and storage medium Pending CN108052575A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711292771.2A CN108052575A (en) 2017-12-08 2017-12-08 File scanning method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711292771.2A CN108052575A (en) 2017-12-08 2017-12-08 File scanning method, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN108052575A true CN108052575A (en) 2018-05-18

Family

ID=62123593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711292771.2A Pending CN108052575A (en) 2017-12-08 2017-12-08 File scanning method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108052575A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958664A (en) * 2018-07-24 2018-12-07 深圳Tcl数字技术有限公司 Formatting hard disk method, apparatus and computer readable storage medium
CN111901685A (en) * 2020-07-30 2020-11-06 深圳市康冠科技股份有限公司 File scanning method and related device
CN113704176A (en) * 2021-07-09 2021-11-26 奇安信科技集团股份有限公司 File scanning method, file scanning device, electronic equipment, program product and storage medium
CN113836093A (en) * 2021-09-29 2021-12-24 深圳万兴软件有限公司 Network disk file cleaning method, system, computer equipment and storage medium thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040205459A1 (en) * 2001-10-26 2004-10-14 Green Brett A. Browser-controlled scanning system and method
CN102411629A (en) * 2011-12-21 2012-04-11 Tcl集团股份有限公司 File scanning method and device based on android system
CN102867147A (en) * 2012-08-24 2013-01-09 北京奇虎科技有限公司 File scanning method and device
CN102929981A (en) * 2012-10-17 2013-02-13 Tcl通力电子(惠州)有限公司 Media scanned file indexing method and device
CN103744863A (en) * 2013-12-13 2014-04-23 乐视致新电子科技(天津)有限公司 Multimedia file playing method and electronic device
CN105653719A (en) * 2016-01-06 2016-06-08 上海斐讯数据通信技术有限公司 Method and system for rapidly acquiring files of external storage equipment and router

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040205459A1 (en) * 2001-10-26 2004-10-14 Green Brett A. Browser-controlled scanning system and method
CN102411629A (en) * 2011-12-21 2012-04-11 Tcl集团股份有限公司 File scanning method and device based on android system
CN102867147A (en) * 2012-08-24 2013-01-09 北京奇虎科技有限公司 File scanning method and device
CN102929981A (en) * 2012-10-17 2013-02-13 Tcl通力电子(惠州)有限公司 Media scanned file indexing method and device
CN103744863A (en) * 2013-12-13 2014-04-23 乐视致新电子科技(天津)有限公司 Multimedia file playing method and electronic device
CN105653719A (en) * 2016-01-06 2016-06-08 上海斐讯数据通信技术有限公司 Method and system for rapidly acquiring files of external storage equipment and router

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958664A (en) * 2018-07-24 2018-12-07 深圳Tcl数字技术有限公司 Formatting hard disk method, apparatus and computer readable storage medium
CN111901685A (en) * 2020-07-30 2020-11-06 深圳市康冠科技股份有限公司 File scanning method and related device
CN111901685B (en) * 2020-07-30 2023-09-08 深圳市康冠科技股份有限公司 File scanning method and related device
CN113704176A (en) * 2021-07-09 2021-11-26 奇安信科技集团股份有限公司 File scanning method, file scanning device, electronic equipment, program product and storage medium
CN113836093A (en) * 2021-09-29 2021-12-24 深圳万兴软件有限公司 Network disk file cleaning method, system, computer equipment and storage medium thereof
CN113836093B (en) * 2021-09-29 2024-04-12 深圳万兴软件有限公司 Network disk file cleaning method, system, computer equipment and storage medium thereof

Similar Documents

Publication Publication Date Title
CN109618177B (en) Video processing method and device, electronic equipment and computer readable storage medium
CN108052575A (en) File scanning method, equipment and storage medium
CN113810760B (en) Method for controlling screen projection, electronic device and computer readable storage medium
CN110070592B (en) Generation method and device of special effect package and hardware device
CN105493031A (en) Method and system for automatically sizing windows in response to user actions
CN109600656A (en) A kind of video list display methods, device, terminal device and storage medium
CN110958481A (en) Video page display method and device, electronic equipment and computer readable medium
CN111291244A (en) House resource information display method, device, terminal and storage medium
US20240028189A1 (en) Interaction method and apparatus, electronic device and computer readable medium
CN112565870B (en) Content caching and reading method, client and storage medium
CN110134905B (en) Page update display method, device, equipment and storage medium
CN114201705A (en) Video processing method and device, electronic equipment and storage medium
CN111352957A (en) Remote dictionary service optimization method and related equipment
CN108391170A (en) Switch method, apparatus, television set and the storage medium of EDID files
CN106599323A (en) Method and apparatus for realizing distributed pipeline in distributed file system
WO2024066864A1 (en) Media content sharing method and apparatus, electronic device, and storage medium
CN113676761A (en) Multimedia resource playing method and device and main control equipment
CN112131181A (en) Storage path display method and device and electronic equipment
US20220335568A1 (en) Material display method and apparatus, terminal, and storage medium
CN116155848A (en) Information processing method, device, electronic equipment and computer readable medium
CN116048371A (en) Page component switching method, device, equipment, medium and product in application program
US12010356B2 (en) Method and apparatus for sending information in live broadcast room, and electronic device
CN112291602B (en) Video playing method, electronic equipment and storage medium
CN110475135A (en) Video broadcasting method, device, equipment, medium, system and smart television
CN114969593A (en) Media content presentation method, device, equipment, storage medium and program product

Legal Events

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

Application publication date: 20180518

RJ01 Rejection of invention patent application after publication