CN107766505A - A kind of file management method and terminal - Google Patents
A kind of file management method and terminal Download PDFInfo
- Publication number
- CN107766505A CN107766505A CN201710984837.8A CN201710984837A CN107766505A CN 107766505 A CN107766505 A CN 107766505A CN 201710984837 A CN201710984837 A CN 201710984837A CN 107766505 A CN107766505 A CN 107766505A
- Authority
- CN
- China
- Prior art keywords
- file
- record information
- terminal
- application program
- management application
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/122—File system administration, e.g. details of archiving or snapshots using management policies
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/164—File meta data generation
Abstract
The present invention, which provides a kind of file management method and terminal, this method, to be included:Scan the file of the terminal storage;The extension name and File header information of the file are extracted, the file that extension name in the file and File header information match is defined as user file;The user file first record information corresponding in system database is parsed, according to first record information, updates the user file second record information corresponding in document management application program database;According to second record information, the user file is shown in the main interface of document management application program.So, when terminal carries out file management by document management application program, extract the extension name and File header information of the file of terminal storage, the file that extension name in the file and File header information match is defined as user file, the degree of accuracy to document classification can be improved, and discarded record is accurately filtered out, so as to improve the efficiency of user management file.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of file management method and terminal.
Background technology
With the continuous development of terminal technology, intelligent terminal is more and more inseparable with the life of people, and people can utilize
The various things of terminal processes, such as take pictures, handle official business, sending out mail, chatting or browsing webpage etc.;It is adjoint to land, terminal
On can store more and more because of the various operations of people and caused by fileinfo, so as to being also increasingly inconvenient to handle,
Therefore people are generally managed using document management application program to the file of terminal storage;However, current file management
Application program generally carries out Classification Management according to the extension name of file, it is difficult to effectively filters illegal file, such as a picture
File is maliciously tampered into audio file, can mislead user, so as to reduce the efficiency of management of user.Thus, current terminal
When being managed by document management application program, the degree of accuracy to document classification is relatively low, so as to cause user management file
It is less efficient.
The content of the invention
The embodiment of the present invention provides a kind of file management method and terminal, should by file management to solve current terminal
When being managed with program, the degree of accuracy to document classification is relatively low, so as to cause user management file it is less efficient the problem of.
In order to solve the above technical problems, what the present invention was realized in:Scan the file of the terminal storage;Described in extraction
The extension name and File header information of file, the file that extension name in the file and File header information match is defined as user
File;The user file first record information corresponding in system database is parsed, according to first record information, more
The new user file second record information corresponding in document management application program database;Believed according to the described second record
Breath, the user file is shown in the main interface of document management application program.
In a first aspect, the embodiments of the invention provide a kind of file management method, including:
Scan the file of the terminal storage;
The extension name and File header information of the file are extracted, extension name in the file is matched with File header information
File be defined as user file;
The user file first record information corresponding in system database is parsed, is believed according to the described first record
Breath, update the user file second record information corresponding in document management application program database;
According to second record information, the user file is shown in the main interface of document management application program.
Second aspect, the embodiment of the present invention also provide a kind of terminal, including:
Scan module, for scanning the file of the terminal storage;
Name is defined as user file with the file that File header information matches;
Update module, for parsing the user file corresponding first record information in system database, according to institute
The first record information is stated, updates the user file second record information corresponding in document management application program database;
Display module, described according to second record information, being shown in the main interface of document management application program
User file.
The third aspect, the embodiment of the present invention also provide a kind of terminal, including processor, memory and are stored in the storage
On device and the computer program that can run on the processor, the computer program are realized during the computing device
The step of stating file management method.
Fourth aspect, the embodiment of the present invention also provide a kind of computer-readable recording medium, the computer-readable storage
Computer program is stored with medium, the computer program realizes the step of above-mentioned file management method when being executed by processor
Suddenly.
So, in embodiments of the present invention, when terminal carries out file management by document management application program, terminal is extracted
The extension name and File header information of the file of storage, the file that extension name in the file and File header information are matched determine
For user file, it is possible to increase the degree of accuracy to document classification, and discarded record is accurately filtered out, so as to improve user management
The efficiency of file.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed for being described below to the embodiment of the present invention
The accompanying drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention,
For those of ordinary skill in the art, without having to pay creative labor, can also be obtained according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is a kind of flow chart of file management method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another file management method provided in an embodiment of the present invention;
Fig. 3 is a kind of structure chart of terminal provided in an embodiment of the present invention;
Fig. 4 is the structure chart of another terminal provided in an embodiment of the present invention;
Fig. 5 is the structure chart of another terminal provided in an embodiment of the present invention;
Fig. 6 is the structure chart of another terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of file management method provided in an embodiment of the present invention, as shown in figure 1, bag
Include following steps:
The file of step 101, the scanning terminal storage.
It should be noted that the file of the terminal storage includes and the storage card of terminal association, hard disk, USB flash disk, floppy disk and
File on the external memorys such as CD.Wherein, storage card can be SD card, T-FLASH cards, mmc card and memory stick etc..
The extension name and File header information of step 102, the extraction file, extension name in the file and file header are believed
The file of manner of breathing matching is defined as user file.
Wherein, the extension name, it can be understood as the file extension of the file for the terminal storage being scanned
(Filename Extension), file extension are typically a kind of mechanism for being used for classifying to file, it is however generally that, one
Individual extension name is followed behind root name, by a separators;For example, " read my .txt " filename at one
In, " reading me " is root name, and " .txt " is extension name, then this file is considered as a text-only file.
But if only classified by extension name to file, it will produce the defects of very big.Such as file management should
If only being classified with program by extension name to file, as someone, by file, entitled " extension name of photo .jpg " file is entered
Row malice is distorted, and the file after distorting is entitled, and " during photo .txt ", i.e., a file for being classified as picture/mb-type is rewritten into
One file for being categorized as plain text type, now the file being maliciously tampered still can be in the master of document management application program
Interface is shown;If user clicks on this document in main interface and is managed, it has been found that this document can not be run all the time, so as to volume
The outer time for wasting user.
The File header information, it can be understood as the one section of data for undertaking certain task started positioned at file, typically all
In the part of beginning, main some important attributes for describing file.And the situation of extension name is distorted if there is above-mentioned malice, i.e.,
Making will " photo .jpg " be changed to that " photo .txt ", File header information do not change, then are extracting the file of this document
After header, the actual types of this document can be judged according to this document header.
The extension name matches with File header information, it can be understood as classification representated by the extension name of a file and
The File header information of this file is consistent.Example, " photo .jpg " is a picture file, and file is changed to " photo .txt "
Afterwards, become for a text-only file, but after extracting the File header information of this document, for example extract field and be
The File header information of " minetype=image ", even if suffix name becomes in order to which .txt, the classification of this document are also changed into plain text,
But according to " minetype=image " File header information of extraction, this file of actual upper surface is still a picture file,
Therefore the extension name of this document and File header information are inconsistent.
In addition, the user file, it can be understood as the file being managed is usually required in the file of terminal storage;By
In the file of terminal storage, it is system file to have many files, is generally used only for the normal operation of guarantee system, and these are literary
Part user need not use usually, therefore the user file can be to be classified as picture, audio, video or text
Etc. the file that may need to be used, while these files must also be sentenced by the way that whether extension name is consistent with File header information
It is fixed.
Step 103, the parsing user file first record information corresponding in system database, according to described first
Record information, update the user file second record information corresponding in document management application program database.
Wherein, first record information, it is generally understood that have recorded some weights of file in system database
Want parameter, the information of attribute;Such as store path, the classification parameter such as TAG and modification time or attribute.The second record letter
Breath, it can be understood as preserve the first record information parsed to the record information after document management application program data.
Step 104, according to second record information, show user's text in the main interface of document management application program
Part.
Wherein, it is described according to second record information, it is possible to understand that to be according to preservation to document management application program number
Record information after;The main interface of the document management application program, it is generally understood that showing the behaviour of listed files
Make interface;The display user file, it can be understood as it is shown that the information being associated with user file, these information
Including the second record information.For example, the operation interface in document management application program shows and is classified as the text of user file
Part list, meanwhile, the record informations such as file name, type, modification time are also shown in these lists, consequently facilitating with
Family is checked and managed to file.
Further, since the file that only extension name and File header information match just is confirmed as user file, therefore
The file needed by this double verification is shown in the main interface of document management application program, so as to prevent those extensions
Name is still shown in the situation of the main interface of document management application program after being maliciously tampered, can so make user no longer to quilt
The file that malice distorts extension name clicks on management, so as to save the time of user, improves the efficiency of management.
It should also be noted that by the second record information in real-time update document management application program database, can
Be advantageous to the state-of-the-art record information in the main interface real-time display user file of document management application program, so as to ensure record letter
The uniformity and integrality of breath, so as to improve Consumer's Experience, the user that is more convenient for carries out file management.
In the embodiment of the present invention, above-mentioned terminal can be mobile phone, computer, tablet personal computer (Tablet Personal
Computer), laptop computer (Laptop Computer), personal digital assistant (personal digital
Assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or wearable device
(Wearable Device) etc..
So, the embodiment of the present invention, when terminal carries out file management by document management application program, terminal storage is extracted
File extension name and File header information, extension name in the file is defined as using with the file that File header information matches
Family file, it is possible to increase the degree of accuracy to document classification, and discarded record is accurately filtered out, so as to improve user management file
Efficiency.
Referring to Fig. 2, Fig. 2 is the flow chart of another file management method provided in an embodiment of the present invention.The present embodiment with
The main distinction of last embodiment is that the present embodiment only meets that the condition of scanning just performs the file for scanning the terminal storage.
As shown in Fig. 2 comprise the following steps:
Step 201, judge whether to meet the condition of scanning, wherein, the condition of scanning includes at least one of following:
Start the document management application program;
Show the main interface of the document management application program;
Storage card is inserted into or is removed;
The document management application program receives the listening broadcast that the file of the terminal storage is sent.
Wherein, the main interface of the display document management application program, can be to perform to be used to enter, be back to text
After the operation of the main interface of part management application program, terminal screen shows the situation of the main interface of document management application program.
Further, since the storage card be inserted into or be removed after, generally all along with by other equipment in storage card
The operations such as the new file of upper copy enters, deleted, file on modification storage card, for this situation, the information of file is usual
Change more frequent, it is therefore desirable to be scanned, to update the data storehouse in time.It should be noted that except storage card quilt
Insertion is removed outer, can also be that USB flash disk, CD or hard disk etc. can store and transmit the equipment of data and be inserted into or moved
Remove.
The listening broadcast that the file of the terminal storage is sent, system is sent when can be and change the file of terminal storage
Broadcast message;After the broadcast is registered to document management application program, document management application program can just receive such broadcast,
So, when each user modifies to the file of terminal storage, document management application program can all receive broadcast, receive broadcast
The file of mobile terminal storage will be scanned afterwards.So, when the record information of file changes, the scanning of terminal-pair file
Can be much sooner.
If it should be noted that being unsatisfactory for the condition of scanning, it can continue to judge, can also terminate flow, the present invention is implemented
Fig. 2 in example is illustrated with terminating flow.
If step 202, meeting the condition of scanning, the file of the terminal storage is scanned.
Wherein, pass through above-mentioned four conditions of scanning, it can be ensured that the file of terminal storage when being changed by third-party application,
The file that document management application program can be made to change these is scanned in time, so as to terminal real-time update file management
Record information in application database, and in the main interface real-time display file of document management application program.
Certainly, four conditions of scanning of the above are some preferable situations, in addition to this several situations, as long as can be favourable
Scanned in time in document management application program and update the data the situation in storehouse, can driver sweep.
The extension name and File header information of step 203, the extraction file, extension name in the file and file header are believed
The file of manner of breathing matching is defined as user file.
Wherein, the related description of step 203 elaborates in upper one embodiment, to avoid repeating, herein no longer
Repeat.
Step 204, the parsing user file first record information corresponding in system database, according to described first
Record information, update the user file second record information corresponding in document management application program database.
Wherein, the related description of step 204 elaborates in upper one embodiment, to avoid repeating, herein no longer
Repeat.
Optionally, it is described according to first record information, the user file is updated in document management application program number
According to corresponding in storehouse the step of the second record information, including:
If file is scanned in the file of the terminal storage and arrived corresponding to second record information, described is contrasted
Whether the first record information of file corresponding to two record informations and the second record information are consistent;If second record information with
Corresponding first record information is inconsistent, then second record information is replaced with into corresponding first record information.
Wherein, the embodiment generally includes following several situations, for example, entering edlin to file, makes the first of file
Modification time in record information changes, but the store path in the first record information does not change with file title,
Such a situation, then corresponding second record information in storehouse is updated the data, be only updated to the modification time of this second record information
Modification time in first record information, other information remain unchanged.
Another situation, such as user file are renamed into alternative document name, scan user file and still suffer from, but the
Store path in one record information changes, and can not match with having been recorded in document management application program database, i.e., with
Store path in second record information of this document is inconsistent.Then by the title and document management application program of the user file
Title in database in all second record informations is matched, and can be found a title identical record, now be updated
Document management application program database, the store path information that record is matched in the second record information is changed to the user file
The store path information in the first record information, other second record informations of the user file keep constant.
In addition, also a kind of situation, such as after deleting some user file A, copy into a new user file B, and order
Entitled user file A filename;Now user file B store path information matches with user file A, then can enter
One step comparison document size information, generally, new user file B size in document management application program database with remembering
The size of record is unequal, then using this user file B thin information of record as new record information, is inserted into file management application journey
In sequence database.If the record of identical store path information in database be present, first this record deletion.It should be noted that pair
In extreme case, new user file B store path and duration information and original record in document management application program database
When matching, by the modification time that the modification time for directly updating the data storehouse respective record is current file.
So, when the first record information of user file changes, can be believed according to the first record to change
Cease, the second record information in real-time update document management application program database, it can be ensured that in document management application program
The uniformity and integrality of the information for the user file that main interface is shown, are entered so as to lift user by document management application program
The efficiency of row file management.
Optionally, second record information includes:Store path, classification, modification time, state of activation and file are big
It is small.
Wherein, in addition to several parameters described above or attribute, can also include reproduction time, date created or whether by
Hide wait other attributes, and this several store path, classification, modification time, state of activation and file size parameters to user and
Speech is important parameter, therefore these parameters are updated, shows and can make the significantly more efficient management file of user.
Step 205, according to second record information, show user's text in the main interface of document management application program
Part.
Wherein, the related description of step 205 elaborates in upper one embodiment, to avoid repeating, herein no longer
Repeat.
Optionally, described according to second record information, shown in the main interface of document management application program described in
Before the step of user file, methods described also includes:
According to the scanning mode of file corresponding to second record information, line activating shape is entered to second record information
State marks, wherein, if file corresponding to second record information does not scan in the file of the terminal storage, by institute
State the second record information and be labeled as unactivated state;If text of the file in the terminal storage corresponding to second record information
Scanning is arrived in part, then second record information is labeled as into state of activation.
It is described according to second record information, show the user file in the main interface of document management application program
Step, including:
In the main interface of document management application program, the file that second record information is state of activation is shown, is not shown
Show the file that second record information is unactivated state.
It should be noted that because user file is after being changed, such as after being deleted, the record information of the user file
Still it is stored in document management application program database, but the scanned presence less than the user file, and it is existing
Document management application program can then delete the record information that the user file is stored in document management application program database, i.e.,
Second record information, if the deleted user file is scanned again, need to parse the record of the user file again
Information, continue to preserve the record information to document management application program database, so as to cause efficiency low, it is possible to occur
Delay phenomenon.
But present embodiment can't delete the user file and be stored in file pipe after scanning is less than user file
The record information of application database is managed, but the record information for being stored in document management application program database is labeled as
Unactivated state, if the user file is arrived in scanning again in the future, the record information of the user file need not be parsed again, and
It is that the record information of unactivated state is directly labeled as state of activation, so as to improve efficiency.
For example, after picture file A is arrived by document management application program scanning, the record information of this document is parsed
Coming, and preserve to document management application program database, picture file A is deleted afterwards, now scans the presence less than A,
The record information that then A is preserved to document management application program database is labeled as unactivated state, and not in file management
The main interface of application database is shown, when A is copied into terminal again, then A, is now labeled by the presence of scanning to A
For the record information of unactivated state, update mark is state of activation, and in the main interface of document management application program database
A is shown labeled as the record information of state of activation.
So, the main interface in document management application program database that terminal can be much sooner shows user file,
So as to further increase the efficiency of user management file.
In the embodiment of the present invention, above-mentioned terminal can be mobile phone, computer, tablet personal computer (Tablet Personal
Computer), laptop computer (Laptop Computer), personal digital assistant (personal digital
Assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device, MID) or wearable device
(Wearable Device) etc..
So, the embodiment of the present invention, when terminal carries out file management by document management application program, terminal storage is extracted
File extension name and File header information, extension name in the file is defined as using with the file that File header information matches
Family file, it is possible to increase the degree of accuracy to document classification, and discarded record is accurately filtered out, additionally record can be believed in time
Cease the file to change to be scanned and upgrade in time, so as to further increase the efficiency of user management file.
Referring to Fig. 3, Fig. 3 is the structure chart for the terminal that one embodiment of the invention provides, as shown in figure 3, terminal 300 includes sweeping
Retouch module 301, extraction module 302, update module 303 and display module 304;Wherein:
Scan module 301, for scanning the file of the terminal storage;
Extraction module 302, for extracting the extension name and File header information of the file, by extension name in the file with
The file that File header information matches is defined as user file;
Update module 303, for parsing the user file corresponding first record information in system database, according to
First record information, update the user file second record letter corresponding in document management application program database
Breath;
Display module 304, for according to second record information, institute to be shown in the main interface of document management application program
State user file.
Optionally, as shown in figure 4, the terminal 300 also includes:
Judge module 305, for judging whether to meet the condition of scanning, if meeting the condition of scanning, swept described in execution
The step of retouching the file of the terminal storage;
Wherein, the condition of scanning includes at least one of following:
Start the document management application program;
Show the main interface of the document management application program;
Storage card is inserted into or is removed;
The document management application program receives the listening broadcast that the file of the terminal storage is sent.
Optionally, as shown in figure 5, the terminal 300 also includes:
Mark module 306, for the scanning mode of the file according to corresponding to second record information, remember to described second
Record information and carry out state of activation mark, wherein, if file of the file in the terminal storage corresponding to second record information
In do not scan, then second record information is labeled as unactivated state;If file corresponding to second record information
Scan and arrive in the file of the terminal storage, then second record information is labeled as state of activation;
The display module 304, for the main interface in document management application program, show that second record information is
The file of state of activation, the file that second record information is unactivated state is not shown.
Optionally, the update module 303, if for file corresponding to second record information in the terminal storage
File in scan and arrive, then contrast the first record information of file corresponding to second record information is with the second record information
It is no consistent;If second record information and corresponding first record information are inconsistent, second record information is replaced
For corresponding first record information.
Terminal 300 can realize each process that terminal is realized in 1 to Fig. 2 embodiment of the method, to avoid repeating, here
Repeat no more.
The terminal 300 of the embodiment of the present invention, when carrying out file management by document management application program, extract terminal storage
File extension name and File header information, extension name in the file is defined as using with the file that File header information matches
Family file, it is possible to increase the degree of accuracy to document classification, and discarded record is accurately filtered out, so as to improve user management file
Efficiency.
Fig. 6 is a kind of hardware architecture diagram for the terminal for realizing each embodiment of the present invention,
The terminal 600 includes but is not limited to:Radio frequency unit 601, mixed-media network modules mixed-media 602, audio output unit 603, input are single
Member 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, processor 610,
And the grade part of power supply 611.It will be understood by those skilled in the art that the terminal structure shown in Fig. 6 not structure paired terminal
Limit, terminal can be included than illustrating more or less parts, either combine some parts or different parts arrangement.
In embodiments of the present invention, terminal include but is not limited to mobile phone, tablet personal computer, notebook computer, palm PC, car-mounted terminal,
Wearable device and pedometer etc..
Wherein, processor 610, for scanning the file of the terminal storage;Extract the extension name and file of the file
Header, the file that extension name in the file and File header information match is defined as user file;Parse the user
File first record information corresponding in system database, according to first record information, updates the user file and exists
Second record information corresponding in document management application program database;, should in file management according to second record information
The user file is shown with the main interface of program.
Optionally, the processor 610 is additionally operable to judge whether to meet the condition of scanning, if meeting the condition of scanning,
The step of performing the file of the scanning terminal storage.Wherein, the condition of scanning includes at least one of following:
Start the document management application program;
Show the main interface of the document management application program;
Storage card is inserted into or is removed;
The document management application program receives the listening broadcast that the file of the terminal storage is sent.
Optionally, the processor 610 is additionally operable to the scanning mode of the file according to corresponding to second record information, right
Second record information carries out state of activation mark, wherein, if file is in the terminal corresponding to second record information
Do not scanned in the file of storage, then second record information is labeled as unactivated state;If second record information
Corresponding file is scanned in the file of the terminal storage and arrived, then second record information is labeled as into state of activation;
The main interface in document management application program that the processor 610 performs shows the user file, including:
In the main interface of document management application program, the file that second record information is state of activation is shown, is not shown
Show the file that second record information is unactivated state.
Optionally, what the processor 610 performed is described according to first record information, updates the user file and exists
Second record information corresponding in document management application program database, including:
If file is scanned in the file of the terminal storage and arrived corresponding to second record information, described is contrasted
Whether the first record information of file corresponding to two record informations and the second record information are consistent;If second record information with
Corresponding first record information is inconsistent, then second record information is replaced with into corresponding first record information.
Optionally, second record information includes:Store path, classification, modification time, state of activation and file are big
It is small.
Terminal 600 can realize each process that terminal is realized in previous embodiment, no longer superfluous here to avoid repeating
State.
So, the terminal 600 of the embodiment of the present invention, when carrying out file management by document management application program, extraction is eventually
The extension name and File header information of the file of storage are held, extension name in the file and the file that File header information matches is true
It is set to user file, it is possible to increase the degree of accuracy to document classification, and discarded record is accurately filtered out, so as to improve user's pipe
Manage the efficiency of file.
It should be understood that in the embodiment of the present invention, radio frequency unit 601 can be used for receiving and sending messages or communication process in, signal
Reception and transmission, specifically, by from base station downlink data receive after, handled to processor 610;In addition, will be up
Data are sent to base station.Generally, radio frequency unit 601 includes but is not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 601 can also by wireless communication system and network and other set
Standby communication.
Terminal has provided the user wireless broadband internet by mixed-media network modules mixed-media 602 and accessed, and such as helps user to receive and dispatch electricity
Sub- mail, browse webpage and access streaming video etc..
Audio output unit 603 can be receiving by radio frequency unit 601 or mixed-media network modules mixed-media 602 or in memory 609
It is sound that the voice data of storage, which is converted into audio signal and exported,.Moreover, audio output unit 603 can also provide and end
The audio output (for example, call signal receives sound, message sink sound etc.) for the specific function correlation that end 600 performs.Sound
Frequency output unit 603 includes loudspeaker, buzzer and receiver etc..
Input block 604 is used to receive audio or video signal.Input block 604 can include graphics processor
(Graphics Processing Unit, GPU) 6041 and microphone 6042, graphics processor 6041 is in video acquisition mode
Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out
Reason.Picture frame after processing may be displayed on display unit 606.Picture frame after the processing of graphics processor 6041 can be deposited
Storage is transmitted in memory 609 (or other storage mediums) or via radio frequency unit 601 or mixed-media network modules mixed-media 602.Mike
Wind 6042 can receive sound, and can be voice data by such acoustic processing.Voice data after processing can be
The form output of mobile communication base station can be sent to via radio frequency unit 601 by being converted in the case of telephone calling model.
Terminal 600 also includes at least one sensor 605, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light
Light and shade adjusts the brightness of display panel 6061, and proximity transducer can close display panel when terminal 600 is moved in one's ear
6061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generally three axles) and add
The size of speed, size and the direction of gravity are can detect that when static, available for identification terminal posture (such as horizontal/vertical screen switching,
Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Sensor 605 can be with
Including fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, hygrometer, thermometer,
Infrared ray sensor etc., will not be repeated here.
Display unit 606 is used for the information for showing the information inputted by user or being supplied to user.Display unit 606 can wrap
Display panel 6061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 6061.
User input unit 607 can be used for the numeral or character information for receiving input, and produces and set with the user of terminal
Put and the input of key signals that function control is relevant.Specifically, user input unit 607 include contact panel 6061 and other
Input equipment 6072.Contact panel 6061, also referred to as touch-screen, collect user on or near it touch operation (such as
User is using any suitable objects or annex such as finger, stylus on contact panel 6061 or near contact panel 6061
Operation).Contact panel 6061 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined
The touch orientation of user is surveyed, and detects the signal that touch operation is brought, transmits a signal to touch controller;Touch controller from
Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 610, reception processing device 610
The order sent simultaneously is performed.Furthermore, it is possible to using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves
Realize contact panel 6061.Except contact panel 6061, user input unit 607 can also include other input equipments 6072.
Specifically, other input equipments 6072 can include but is not limited to physical keyboard, function key (such as volume control button, switch
Button etc.), trace ball, mouse, action bars, will not be repeated here.
Further, contact panel 6061 can be covered on display panel 6061, when contact panel 6061 is detected at it
On or near touch operation after, send processor 610 to determine the type of touch event, be followed by subsequent processing device 610 according to touch
The type for touching event provides corresponding visual output on display panel 6061.Although in figure 6, contact panel 6061 and display
Panel 6061 is the part independent as two to realize the input of terminal and output function, but in certain embodiments, can
Input and the output function of terminal are realized so that contact panel 6061 and display panel 6061 is integrated, is not limited herein specifically
It is fixed.
Interface unit 608 is the interface that external device (ED) is connected with terminal 600.For example, external device (ED) can include it is wired or
Wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port,
For the port of device of the connection with identification module, audio input/output (I/O) port, video i/o port, ear port
Etc..Interface unit 608 can be used for input (for example, data message, electric power etc.) of the reception from external device (ED) and will
One or more elements that the input received is transferred in terminal 600 or can be used for terminal 600 and external device (ED) it
Between transmit data.
Memory 609 can be used for storage software program and various data.Memory 609 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Voice data, phone directory etc.) etc..In addition, memory 609 can include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 610 is the control centre of terminal, using various interfaces and the various pieces of the whole terminal of connection, is led to
Cross operation or perform the software program and/or module being stored in memory 609, and call and be stored in memory 609
Data, the various functions and processing data of terminal are performed, so as to carry out integral monitoring to terminal.Processor 610 may include one
Or multiple processing units;Preferably, processor 610 can integrate application processor and modem processor, wherein, using processing
Device mainly handles operating system, user interface and application program etc., and modem processor mainly handles radio communication.It can manage
Solution, above-mentioned modem processor can not also be integrated into processor 610.
Terminal 600 can also include the power supply 611 (such as battery) to all parts power supply, it is preferred that power supply 611 can be with
It is logically contiguous by power-supply management system and processor 610, so as to by power-supply management system realize management charging, electric discharge, with
And the function such as power managed.
In addition, terminal 600 includes some unshowned functional modules, will not be repeated here.
Preferably, the embodiment of the present invention also provides a kind of terminal, including processor 610, memory 609, is stored in storage
It is real when the computer program is performed by processor 610 on device 609 and the computer program that can be run on the processor 610
Each process of existing above-mentioned video display control method embodiment, and identical technique effect can be reached, to avoid repeating, here
Repeat no more.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording medium
Calculation machine program, the computer program realize each process of above-mentioned video display control method embodiment when being executed by processor,
And identical technique effect can be reached, to avoid repeating, repeat no more here.Wherein, described computer-readable recording medium,
Such as read-only storage (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, letter
Claim RAM), magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, belong within the protection of the present invention.
Claims (12)
- A kind of 1. file management method, applied to terminal, it is characterised in that including:Scan the file of the terminal storage;The extension name and File header information of the file are extracted, the text that extension name in the file and File header information are matched Part is defined as user file;The user file first record information corresponding in system database is parsed, according to first record information, more The new user file second record information corresponding in document management application program database;According to second record information, the user file is shown in the main interface of document management application program.
- 2. according to the method for claim 1, it is characterised in that the file of the scanning terminal storage the step of it Before, methods described includes:Judge whether to meet the condition of scanning, if meeting the condition of scanning, perform the file of the scanning terminal storage The step of;Wherein, the condition of scanning includes at least one of following:Start the document management application program;Show the main interface of the document management application program;Storage card is inserted into or is removed;The document management application program receives the listening broadcast that the file of the terminal storage is sent.
- 3. according to the method for claim 2, it is characterised in that described according to second record information, in file pipe Before the step of main interface of reason application program shows the user file, methods described also includes:According to the scanning mode of file corresponding to second record information, state of activation mark is carried out to second record information Note, wherein, if file corresponding to second record information does not scan in the file of the terminal storage, by described the Two record informations are labeled as unactivated state;If file is in the file of the terminal storage corresponding to second record information Scan, then second record information is labeled as state of activation;It is described according to second record information, show the step of the user file in the main interface of document management application program Suddenly, including:In the main interface of document management application program, the file that second record information is state of activation is shown, does not show institute State the file that the second record information is unactivated state.
- 4. according to the method for claim 3, it is characterised in that it is described according to first record information, update the use Family file in document management application program database corresponding to the second record information the step of, including:If file is scanned in the file of the terminal storage and arrived corresponding to second record information, second note is contrasted Whether consistent record the first record information of file and the second record information corresponding to information;If second record information with it is corresponding The first record information it is inconsistent, then by second record information replace with corresponding to the first record information.
- 5. according to the method described in claim any one of 1-4, it is characterised in that second record information includes:Store road Footpath, classification, modification time, state of activation and file size.
- A kind of 6. terminal, it is characterised in that including:Scan module, for scanning the file of the terminal storage;Extraction module, for extracting the extension name and File header information of the file, by extension name and file header in the file The file of information match is defined as user file;Update module, for parse the user file in system database corresponding to the first record information, according to described the One record information, update the user file second record information corresponding in document management application program database;Display module, for according to second record information, the user to be shown in the main interface of document management application program File.
- 7. terminal according to claim 6, it is characterised in that the terminal also includes:Judge module, for judging whether to meet the condition of scanning, if meeting the condition of scanning, perform the scanning end The step of holding the file of storage;Wherein, the condition of scanning includes at least one of following:Start the document management application program;Show the main interface of the document management application program;Storage card is inserted into or is removed;The document management application program receives the listening broadcast that the file of the terminal storage is sent.
- 8. terminal according to claim 7, it is characterised in that the terminal also includes:Mark module, for the scanning mode of the file according to corresponding to second record information, to second record information State of activation mark is carried out, wherein, if file corresponding to second record information is not swept in the file of the terminal storage Retouch, then second record information is labeled as unactivated state;If file is described corresponding to second record information Scanning is arrived in the file of terminal storage, then second record information is labeled as into state of activation;The display module, for the main interface in document management application program, show second record information for activation shape The file of state, the file that second record information is unactivated state is not shown.
- 9. terminal according to claim 8, it is characterised in that the update module, if for second record information Corresponding file is scanned in the file of the terminal storage and arrived, then contrasts first of file corresponding to second record information Whether record information is consistent with the second record information;If second record information and corresponding first record information are inconsistent, Second record information is then replaced with into corresponding first record information.
- 10. according to the terminal any one of claim 6-9, it is characterised in that the record information includes:Store road Footpath, classification, modification time, state of activation and file size.
- A kind of 11. terminal, it is characterised in that including:Memory, processor and it is stored on the memory and can be at the place The computer program run on reason device, realized described in the computing device during computer program as any in claim 1-5 Step in the item file management method.
- 12. a kind of computer-readable recording medium, it is characterised in that be stored with computer on the computer-readable recording medium Program, the file management method as any one of claim 1-5 is realized when the computer program is executed by processor In step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710984837.8A CN107766505A (en) | 2017-10-20 | 2017-10-20 | A kind of file management method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710984837.8A CN107766505A (en) | 2017-10-20 | 2017-10-20 | A kind of file management method and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107766505A true CN107766505A (en) | 2018-03-06 |
Family
ID=61269805
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710984837.8A Pending CN107766505A (en) | 2017-10-20 | 2017-10-20 | A kind of file management method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107766505A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110287733A (en) * | 2019-06-05 | 2019-09-27 | 杭州迪普科技股份有限公司 | A kind of file tamper resistant method and device |
CN113672703A (en) * | 2021-08-26 | 2021-11-19 | 国家电网有限公司大数据中心 | User information updating method, device, equipment and storage medium |
CN113779580A (en) * | 2021-09-14 | 2021-12-10 | 展讯通信(天津)有限公司 | File identification method and electronic terminal equipment |
CN115002537A (en) * | 2021-12-23 | 2022-09-02 | 荣耀终端有限公司 | Video sharing method, electronic device, storage medium, and program product |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101211353A (en) * | 2006-12-27 | 2008-07-02 | 北京海尔集成电路设计有限公司 | Method for recognizing multi- format media file |
CN103428195A (en) * | 2012-12-27 | 2013-12-04 | 北京安天电子设备有限公司 | Unknown virus detecting method |
CN106559563A (en) * | 2016-10-31 | 2017-04-05 | 努比亚技术有限公司 | Image processing method and device |
CN106844691A (en) * | 2017-01-23 | 2017-06-13 | 努比亚技术有限公司 | A kind of camera file management method and terminal |
-
2017
- 2017-10-20 CN CN201710984837.8A patent/CN107766505A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101211353A (en) * | 2006-12-27 | 2008-07-02 | 北京海尔集成电路设计有限公司 | Method for recognizing multi- format media file |
CN103428195A (en) * | 2012-12-27 | 2013-12-04 | 北京安天电子设备有限公司 | Unknown virus detecting method |
CN106559563A (en) * | 2016-10-31 | 2017-04-05 | 努比亚技术有限公司 | Image processing method and device |
CN106844691A (en) * | 2017-01-23 | 2017-06-13 | 努比亚技术有限公司 | A kind of camera file management method and terminal |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110287733A (en) * | 2019-06-05 | 2019-09-27 | 杭州迪普科技股份有限公司 | A kind of file tamper resistant method and device |
CN113672703A (en) * | 2021-08-26 | 2021-11-19 | 国家电网有限公司大数据中心 | User information updating method, device, equipment and storage medium |
CN113779580A (en) * | 2021-09-14 | 2021-12-10 | 展讯通信(天津)有限公司 | File identification method and electronic terminal equipment |
CN115002537A (en) * | 2021-12-23 | 2022-09-02 | 荣耀终端有限公司 | Video sharing method, electronic device, storage medium, and program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109445894A (en) | A kind of screenshot method and electronic equipment | |
CN107608514A (en) | Information processing method and mobile terminal | |
CN108920235A (en) | Non- read flag control method, mobile terminal and computer readable storage medium | |
CN107766505A (en) | A kind of file management method and terminal | |
CN107809526A (en) | End application sorting technique, mobile terminal and computer-readable recording medium | |
CN107729815A (en) | Image processing method, device, mobile terminal and computer-readable recording medium | |
CN109508398B (en) | Photo classification method and terminal equipment thereof | |
CN107402964A (en) | A kind of information recommendation method, server and terminal | |
CN110209332A (en) | A kind of information processing method and terminal device | |
CN107908770A (en) | A kind of photo searching method and mobile terminal | |
CN108021470A (en) | A kind of data backup method, mobile terminal and computer-readable recording medium | |
CN108256100A (en) | A kind of information search method, mobile terminal and Cloud Server | |
CN109840125A (en) | A kind of terminal control method, terminal and computer readable storage medium | |
CN107943960A (en) | A kind of method of application grooms, mobile terminal | |
CN108491219A (en) | A kind of update method and mobile terminal of application | |
CN110955788A (en) | Information display method and electronic equipment | |
CN109344125A (en) | A kind of file name update method and terminal device | |
CN109324999A (en) | A kind of method and electronic equipment executing operation based on download instruction | |
CN111290673B (en) | Message processing method and electronic equipment | |
CN109284146A (en) | A kind of light application open method and mobile terminal | |
CN108647063A (en) | A kind of method and terminal of display object | |
CN108197302A (en) | A kind of file folder creation method and mobile terminal | |
CN107844318A (en) | The upgrade method and mobile terminal and server of a kind of operating system | |
CN108121762A (en) | A kind of image processing method, mobile terminal and computer storage media | |
CN107391593A (en) | A kind of document handling method, mobile terminal and computer-readable recording medium |
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: 20180306 |
|
RJ01 | Rejection of invention patent application after publication |