Summary of the invention
Embodiment of the present invention technical matters to be solved is, a kind of sorting technique, device and equipment of file is provided.Can solve in prior art the sorting technique complex operation of the batch documents importing and the deficiency of inefficiency.
In order to solve the problems of the technologies described above, the embodiment of the present invention provides a kind of method of document classification, comprising:
Receive external unit and import file to be stored, described file to be stored is the file that carries preset classified information;
Parsing obtains the classified information of carrying in described file to be stored;
According to described classified information, described file to be stored is moved in the destination folder being associated with described classified information.
Wherein, describedly according to described classified information, described same class file is moved to the destination folder being associated with described classified information and comprises:
According to described classified information, judge whether to exist the destination folder associated with described classified information;
If yes, described same class file is moved in the destination folder that already present and described classified information is associated.
Wherein, also comprise:
If NO, according to described classified information, create the destination folder associated with this classified information;
Described same class file is moved in the destination folder associated with described classified information of new establishment.
Wherein, described reception external unit also comprises before importing file to be stored:
Classified information is stored in the filename of file to be stored.
Wherein, described according to described classified information, described file to be stored is moved in the destination folder being associated with described classified information after, also comprise:
Obtain the thumbnail of the described file to be stored in described destination folder, and show described thumbnail.
Wherein, described classified information comprises the positional information of described file to be stored, describedly according to described classified information, described file to be stored is moved to the destination folder being associated with described classified information and comprises:
Described file to be stored is presented to the position of the indication of positional information described in described destination folder.
Correspondingly, the embodiment of the present invention also provides a kind of sorter of file, comprising:
Receiver module, imports file to be stored for receiving external unit, and described file to be stored is the file that carries preset classified information;
Parsing module, obtains for resolving the classified information that described file to be stored carries;
Sort module, for moving to described file to be stored according to described classified information the destination folder being associated with described classified information.
Wherein, described sort module comprises:
Judging unit, for judging whether to exist the destination folder associated with described classified information according to described classified information; If yes, described same class file is moved in the destination folder that already present and described classified information is associated.
Wherein, also comprise:
Creation module, for if NO, creates the destination folder associated with this classified information according to described classified information, and notifies described sort module.
Wherein, also comprise:
Configuration module, for being stored in classified information the filename of file to be stored.
Wherein, also comprise:
Display module, for obtaining the thumbnail of the described file to be stored of described destination folder, and shows described thumbnail.
Wherein, described sort module comprises:
Taxon, for the thumbnail of described file to be stored being presented to the position of the indication of classified information described in described destination folder, wherein said classified information comprises the positional information of described file to be stored.
Accordingly, the present invention also provides a kind of electronic equipment, comprises above-mentioned sorter.
Implement the embodiment of the present invention, there is following beneficial effect:
Classified information in the file to be stored that terminal receives by identification, the identical file of classified information is moved in the destination folder being associated with described classified information, avoided user manually the file to be stored importing to be classified, the deficiency of inefficiency, particularly, when importing a large amount of file to be stored, can save a large amount of time of user.
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 clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Referring to Fig. 1, be the schematic flow sheet of the sorting technique of a kind of file of the present invention, this sorting technique comprises:
The file to be stored that step 101, reception external unit import, described file to be stored is the file that carries preset classified information.
Concrete, external unit imports file to be stored to terminal, for example, file to be stored is for need to copy the audio file into mobile terminal, when mobile terminal connects computer by data line, audio file in computer need to copy in mobile phone, also can make the alternative document in computer copy in mobile terminal.In described file to be stored, carry classified information, this classified information is used for file to be stored, be that audio file in this example deposits in identical file similar audio file according to the indication of classified information, for example, suppose that file to be stored is audio file, classified information is the style of audio file, the file to be stored that external unit imports is { A, B, C, D, E}, the classified information that file A carries is specially Trend of fashion, the classified information that file B carries is specially the style of missing old times or old friends, the classified information that file C carries is specially Trend of fashion, the classified information that file D carries is specially rock and roll style, the classified information of carrying in file E is the style of missing old times or old friends.
Be understandable that, the classified information of file to be stored can be alternative document form, and its classified information of carrying can be also other mode classification, and the present invention is not restricted.
Step 102, parsing obtain the classified information of carrying in described file to be stored.
Step 103, according to described classified information, described file to be stored is moved in the destination folder being associated with described classified information.
Concrete, the file to be stored of step 101 is example, storage file { A, B, C, D, in the equipment of E}, set up and have the destination folder associated with classified information, for example, the destination folder associated with Trend of fashion run after fame and is called the file of " popular ", the destination folder associated with rock and roll style run after fame and is called the file of rock and roll, and the destination folder associated with the style of missing old times or old friends run after fame and be called the file of " missing old times or old friends ".The equipment that receives file to be stored moves to by file A and C the file that name is called " popular ", and file B and E are moved to the file that name is called " rock and roll ", and file C is moved to the file that name is called " missing old times or old friends ".Be understandable that, the title of the file associated with classified information can be according to the custom name being used for, and the present invention is not restricted.
Implement embodiments of the invention, classified information in the file to be stored that terminal receives by identification, the identical file of classified information is moved in the destination folder being associated with described classified information, avoided user manually the file to be stored importing to be classified, the deficiency of inefficiency, particularly, when importing a large amount of file to be stored, can save a large amount of time of user.
Referring to Fig. 2, be another schematic flow sheet of a kind of file classifying method of the present invention, this sorting technique comprises:
Step 201, classified information is stored in the filename in file to be stored.
Concrete, the classified information of file to be stored is stored in filename, for example, the filename of each file to be stored is revised as to " old file name "+" _ "+" specific name ", and wherein, specific name is classified information, the music style of audio file for example, specific name also can be specified by user, and in identical application program, specific name is unique, not reproducible.Be understandable that, classified information also can be kept at other positions of file to be stored, in the attribute information of file.Classified information is saved in the file name of file to be stored, more directly perceived, be easy to user and understand and identify.
The file to be stored that step 202, reception external unit import, described file to be stored is the sort file that carries preset classified information.
Concrete, external unit imports file to be stored to terminal, for example, file to be stored is for need to copy the audio file into mobile terminal, when mobile terminal connects computer by data line, audio file in computer need to copy in mobile phone, also can make the alternative document in computer copy in mobile terminal.In described file to be stored, carry classified information, this classified information is used for file to be stored, be that audio file in this example deposits in identical file similar audio file according to the indication of classified information, for example, suppose that file to be stored is audio file, classified information is the style of audio file, the file to be stored that external unit imports is { A, B, C, D, E}, the classified information that file A carries is specially Trend of fashion, the classified information that file B carries is specially the style of missing old times or old friends, the classified information that file C carries is specially Trend of fashion, the classified information that file D carries is specially rock and roll style, the classified information of carrying in file E is the style of missing old times or old friends.
Step 203, parsing obtain the classified information of carrying in described file to be stored.
Concrete, resolve the classified information of carrying in the filename of file to be stored.
Step 204, according to described classified information, judge whether to be present in the destination folder of described classified information association.
Concrete, according to classified information, whether inquiry is present in the destination folder of described classified information association, if exist, performs step 205, otherwise, execution step 206.
Step 205, described file to be stored is presented to the position of positional information described in described destination folder indication.
Concrete, the classified information of file to be stored comprises the positional information of this document, for example, positional information is the order of this file to be stored, the file to be stored of step 202 is example, storage file { A, B, C, D, sets up and has the destination folder associated with classified information in the equipment of E}, for example, the destination folder associated with Trend of fashion run after fame and is called the file of " popular ", and the destination folder associated with rock and roll style run after fame and be called the file of rock and roll, and the destination folder associated with the style of missing old times or old friends run after fame and be called the file of " missing old times or old friends ".The equipment that receives file to be stored moves to by file A and C the file that name is called " popular ", file B and E are moved to the file that name is called " rock and roll ", file C is moved to the file that name is called " missing old times or old friends ", meanwhile, described file to be stored is presented to the position of the indication of positional information described in described destination folder.
Step 206, according to described classified information, create the destination folder associated with this classified information.
Step 207, obtain the thumbnail of the described file to be stored in described destination folder, and show described thumbnail.
Concrete, according to predetermined algorithm, obtain the thumbnail of the partial content of file to be stored, and the thumbnail of each file to be stored in display-object file so that user can preview to the partial content of file to be stored.
Implement embodiments of the invention, classified information in the file to be stored that terminal receives by identification, the identical file of classified information is moved in the destination folder being associated with described classified information, avoided user manually the file to be stored importing to be classified, the deficiency of inefficiency, particularly, when importing a large amount of file to be stored, can save a large amount of time of user.
Referring to Fig. 3, be the structural representation of the sorter of a kind of file of the present invention, this sorter 1 comprises:
Receiver module 11, imports file to be stored for receiving external unit, and described file to be stored is the file that carries preset classified information.
Concrete, receiver module 11 receives the file to be stored that external unit imports, for example, file to be stored is for need to copy the audio file into mobile terminal, when mobile terminal connects computer by data line, audio file in computer need to copy in mobile phone, also can make the alternative document in computer copy in mobile terminal.In described file to be stored, carry classified information, this classified information is used for file to be stored, be that audio file in this example deposits in identical file similar audio file according to the indication of classified information, for example, suppose that file to be stored is audio file, classified information is the style of audio file, the file to be stored that external unit imports is { A, B, C, D, E}, the classified information that file A carries is specially Trend of fashion, the classified information that file B carries is specially the style of missing old times or old friends, the classified information that file C carries is specially Trend of fashion, the classified information that file D carries is specially rock and roll style, the classified information of carrying in file E is the style of missing old times or old friends.
Be understandable that, the classified information of file to be stored can be alternative document form, and its classified information of carrying can be also other mode classification, and the present invention is not restricted.
Parsing module 12, obtains for resolving the classified information that described file to be stored carries.
Concrete, parsing module 12 is resolved the classified information of carrying in file to be stored, obtains the content of classified information.
Sort module 13, for moving to described file to be stored according to described classified information the destination folder being associated with described classified information.
Concrete, suppose storage file { A, B, C, D, sets up and has the destination folder associated with classified information in the equipment of E}, for example, the destination folder associated with Trend of fashion run after fame and is called the file of " popular ", and the destination folder associated with rock and roll style run after fame and be called the file of rock and roll, and the destination folder associated with the style of missing old times or old friends run after fame and be called the file of " missing old times or old friends ".Sort module 13 moves to by file A and C the file that name is called " popular ", and file B and E are moved to the file that name is called " rock and roll ", and file C is moved to the file that name is called " missing old times or old friends ".Be understandable that, the title of the file associated with classified information can be according to the custom name being used for, and the present invention is not restricted.
Implement embodiments of the invention, classified information in the file to be stored that terminal receives by identification, the identical file of classified information is moved in the destination folder being associated with described classified information, avoided user manually the file to be stored importing to be classified, the deficiency of inefficiency, particularly, when importing a large amount of file to be stored, can save a large amount of time of user.
Further, referring to Fig. 4 and Fig. 5, be another structural representation of a kind of file classifying method of the present invention, this sorter 1, except receiver module 11, parsing module 12 and sort module 13, also comprises:
Configuration module 14, for being stored in classified information the filename of file to be stored.
Concrete, configuration module 14 is stored in the classified information of file to be stored in filename, for example, the filename of each file to be stored is revised as to " old file name "+" _ "+" specific name ", and wherein, specific name is classified information, the music style of audio file for example, specific name also can be specified by user, and in identical application program, specific name is unique, not reproducible.Be understandable that, classified information also can be kept at other positions of file to be stored, in the attribute information of file.Classified information is saved in the file name of file to be stored, more directly perceived, be easy to user and understand and identify.
Creation module 15, for if NO, creates the destination folder associated with this classified information according to described classified information, and notifies described sort module.
Concrete, while there is not the destination folder of described classified information association in the equipment of storage file to be stored, create a destination folder, and notify sort module to carry out the operation of classifying according to classified information.
Display module 16, for obtaining the thumbnail of the described file to be stored of described destination folder, and shows described thumbnail.
Concrete, display module 16, according to predetermined algorithm, obtains the thumbnail of the partial content of file to be stored, and the thumbnail of each file to be stored in display-object file so that user can preview to the partial content of file to be stored.
Wherein, sort module 13 comprises:
Judging unit 131, for judging whether to exist the destination folder associated with described classified information according to described classified information; If yes, described same class file is moved in the destination folder that already present and described classified information is associated.
Taxon 132, for the thumbnail of described file to be stored being presented to the position of the indication of classified information described in described destination folder, wherein said classified information comprises the positional information of described file to be stored.
The present invention also provides a kind of electronic equipment, comprises the sorter 1 of above-described embodiment, and this electronic equipment can make mobile terminal, PC and palm PC lamp apparatus, and the present invention is not restricted.
Implement embodiments of the invention, classified information in the file to be stored that terminal receives by identification, the identical file of classified information is moved in the destination folder being associated with described classified information, avoided user manually the file to be stored importing to be classified, the deficiency of inefficiency, particularly, when importing a large amount of file to be stored, can save a large amount of time of user.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only a kind of preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, one of ordinary skill in the art will appreciate that all or part of flow process that realizes above-described embodiment, and the equivalent variations of doing according to the claims in the present invention, still belong to the scope that invention is contained.