CN104408080A - File information extraction method - Google Patents

File information extraction method Download PDF

Info

Publication number
CN104408080A
CN104408080A CN201410629646.6A CN201410629646A CN104408080A CN 104408080 A CN104408080 A CN 104408080A CN 201410629646 A CN201410629646 A CN 201410629646A CN 104408080 A CN104408080 A CN 104408080A
Authority
CN
China
Prior art keywords
information
fileinfo
character
extracted
file
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
CN201410629646.6A
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 Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201410629646.6A priority Critical patent/CN104408080A/en
Publication of CN104408080A publication Critical patent/CN104408080A/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/14Details of searching files based on file metadata
    • G06F16/156Query results presentation

Abstract

The embodiment of the invention discloses a file information extraction method. The method comprises the steps of acquiring file information corresponding to a target file, wherein the file information includes routing information and file identification information of each subfile in the target file; determining target directory information in the file information of each subfile; sequentially extracting the information from the primary directory information after the target directory information in the file information of each subfile to acquire target display information; and displaying the target display information in a file information display area. By adopting the file information extraction method, precision of the file information displayed in the file information display area can be improved, the file information is convenient to check by a user, and the user experience can be enhanced.

Description

A kind of fileinfo extracting method
Technical field
The present invention relates to areas of information technology, particularly relate to a kind of fileinfo extracting method.
Background technology
Computer documents is identified by fileinfo usually, wherein fileinfo can comprise file identification information and routing information, in the existing process that file destination is operated, terminal is usually at the fileinfo of fileinfo viewing area display-object file, so that user can learn the operation progress of file destination by fileinfo or find file destination, if fileinfo contain much information in the information capacity of fileinfo viewing area, then terminal random display partial document information in fileinfo viewing area, cause user can not specifying information easily in viewing files information, Consumer's Experience is poor.
Summary of the invention
The embodiment of the present invention provides a kind of fileinfo extracting method, can improve the precision of the fileinfo shown in fileinfo viewing area, facilitates user's viewing files information, promotes Consumer's Experience.
Embodiments provide a kind of fileinfo extracting method, comprising:
Obtain the fileinfo that file destination is corresponding;
Determine the target directory information in the fileinfo of son file described in each;
From the first order directory information after the target directory information in the fileinfo of son file described in each, order is extracted, to obtain target display information;
Described target display information is shown in fileinfo viewing area.
Implement the embodiment of the present invention, terminal obtains fileinfo corresponding to file destination, wherein fileinfo comprises routing information and the file identification information thereof of each son file in file destination, determine the target directory information in the fileinfo of each son file, from the first order directory information after the target directory information in the fileinfo of each son file, order is extracted, to obtain target display information, display-object display information in fileinfo viewing area, the precision of the fileinfo shown in fileinfo viewing area can be improved, facilitate user's viewing files information, promote Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of fileinfo extracting method provided in first embodiment of the invention;
Fig. 2 is the schematic flow sheet of a kind of fileinfo extracting method provided in second embodiment of the invention;
Fig. 3 is the schematic flow sheet of a kind of fileinfo extracting method provided in third embodiment of the invention;
Fig. 4 is the schematic flow sheet of a kind of fileinfo extracting method provided in fourth embodiment of the invention;
Fig. 5 is the structural representation of a kind of terminal provided in first embodiment of the invention;
Fig. 6 is the structural representation of the extraction unit of Fig. 5 in the embodiment of the present invention;
Fig. 7 is the structural representation of the extraction unit of Fig. 5 in another embodiment of the present invention;
Fig. 8 is the structural representation of a kind of terminal provided in second embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of fileinfo extracting method, terminal can obtain fileinfo corresponding to file destination, determine the target directory information in the fileinfo of each son file, from the first order directory information after the target directory information in the fileinfo of each son file, order is extracted, to obtain target display information, display-object display information in fileinfo viewing area, the embodiment of the present invention can improve the precision of the fileinfo shown in fileinfo viewing area, facilitate user's viewing files information, promote Consumer's Experience.
The fileinfo that the embodiment of the present invention is mentioned to can comprise routing information and the file identification information thereof of each son file in file destination, the routing information of son file can comprise source path information and/or destination path information, file identification information can comprise the file name information etc. of son file, specifically not by the restriction of the embodiment of the present invention.
The terminal that the embodiment of the present invention is mentioned to can comprise mobile phone, panel computer, PC (personalcomputer, personal computer), car-mounted terminal or Worn type smart machine etc.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of fileinfo extracting method provided in first embodiment of the invention, and the fileinfo extracting method as shown in the figure in the embodiment of the present invention can comprise:
S101, obtain the fileinfo that file destination is corresponding, fileinfo comprises routing information and the file identification information thereof of each son file in file destination.
Terminal can obtain fileinfo corresponding to file destination, wherein fileinfo can comprise routing information and the file identification information thereof of each son file in file destination, the routing information of son file can comprise source path information and/or destination path information, and file identification information can comprise file name information etc.
Such as, the file identification information of file destination is CFolder, and wherein file destination comprises 3 son files, then the fileinfo that the file destination that gets of terminal is corresponding can comprise:
C:\oParentFolder1\oParentFolder2\CFolder\CFolder1\CFile1.txt
C:\oParentFolder1\oParentFolder2\CFolder\CFolder1\CFile2.txt
C:\oParentFolder1\oParentFolder2\CFolder\CFile3.txt
In an alternative embodiment, terminal can detect whether get file destination operational order, if get file destination operational order, then obtains fileinfo corresponding to file destination; If do not get file destination operational order, then file destination is not processed accordingly.Such as, when terminal gets the duplicate instructions that user submits to file destination, obtain the fileinfo that file destination is corresponding.And for example, when terminal gets and installs instruction to the application program of file destination, the fileinfo that file destination is corresponding is obtained.It is to be noted, file destination operational order installs instruction including, but not limited to duplicate instructions or application program, can also be such as shear instruction, delete instruction, download instruction or scan instruction etc., scan instruction can comprise file type scan instruction, such as music scan instruction, picture scanning instruction or virus scan instruction etc., specifically not by the restriction of the embodiment of the present invention.
S102, determines the target directory information in the fileinfo of each son file.
After terminal gets fileinfo corresponding to file destination, the target directory information in the fileinfo of each son file can be determined.
Concrete, the directory informations at different levels in the fileinfo of each son file can compare by terminal, determine the target directory information in the fileinfo of each son file, and the fileinfo that such as file destination is corresponding is:
C:\oParentFolder1\oParentFolder2\CFolder\CFolder1\CFile1.txt
C:\oParentFolder1\oParentFolder2\CFolder\CFolder1\CFile2.txt
C:\oParentFolder1\oParentFolder2\CFolder\CFile3.txt
Terminal can determine the first order directory information in each son file, second level directory information and third level directory information identical, afterbody directory information in identical directory information can be set as target directory information by terminal, then terminal can determine that target directory information is CFolder, first order directory information in the fileinfo of wherein the first son file after CFolder is CFolder1, first order directory information in the fileinfo of the second son file after CFolder is CFolder1, first order directory information in the fileinfo of the 3rd son file after CFolder is CFile3.txt, first order directory information in the fileinfo of each son file after target directory information is incomplete same.
S103, from the first order directory information after the target directory information in the fileinfo of each son file, order is extracted, to obtain target display information.
After terminal determines the target directory information in the fileinfo of each son file, order can extract from the target directory information in the fileinfo of each son file, to obtain target display information.
Such as, after terminal determination target directory information is CFolder, sequentially can extract the first order directory information from the fileinfo of the first son file after CFolder, the character extracted can be CFolder1 CFile1.txt; Terminal sequentially can be extracted the first order directory information from the fileinfo of the second son file after CFolder, and the character extracted can be CFolder1 CFile2.txt; Terminal sequentially can be extracted the first order directory information from the fileinfo of the 3rd son file after CFolder, the character extracted can be CFile3.txt, then the target display information that terminal gets can comprise CFolder1 CFile1.txt, CFolder1 CFile2.txt and CFile3.txt.
S104, display-object display information in fileinfo viewing area.
After terminal extracts target display information, this target display information can be shown in fileinfo viewing area.The fileinfo that such as terminal extracts the first son file be CFolder1 CFile1.txt, the fileinfo of the second son file be CFolder1 CFile2.txt, the fileinfo of the 3rd son file is CFile3.txt, then terminal can territory, document display area display CFolder1 CFile1.txtCFolder1 CFile2.txtCFile3.txt.
In an alternative embodiment, terminal can in fileinfo viewing area while display-object display information, the operation progress information of identification information and/or described file destination is preset in display, wherein presetting identification information can be suspension points etc., and the operation progress information of file destination can be current operation ratio.Such as, target that terminal gets display information be CFolder1 CFile1.txt, CFolder1 CFile2.txt and CFile3.txt, default identification information is suspension points, then terminal can fileinfo viewing area display CFolder1 CFile1.txt ... CFolder1 CFile2.txt ... CFile3.txt.And for example, the operation progress that terminal gets file destination is 30%, target display information be CFolder1 CFile1.txt, CFolder1 CFile2.txt and CFile3.txt, then terminal can fileinfo viewing area display 30%CFolder1 CFile1.txtCFolder1 CFile2.txtCFile3.txt.And for example, the operation progress that terminal gets file destination is 30%, target display information be CFolder1 CFile1.txt, CFolder1 CFile2.txt and CFile3.txt, default identification information is suspension points, then terminal can fileinfo viewing area display 30%CFolder1 CFile1.txt ... CFolder1 CFile2.txt ... CFile3.txt.
In the fileinfo extracting method shown in Fig. 1, in terminal determination file destination each son file routing information in target character, all directory informations in the routing information of wherein each son file before target directory information are identical, from the target directory information in the routing information of each son file, order is extracted, to obtain target display information, display-object display information in fileinfo viewing area, the precision of the fileinfo shown in fileinfo viewing area can be improved, facilitate user's viewing files information, promote Consumer's Experience.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of a kind of fileinfo extracting method provided in second embodiment of the invention, and the fileinfo extracting method as shown in the figure in the embodiment of the present invention can comprise:
S201, obtains the fileinfo that file destination is corresponding.
Terminal can obtain fileinfo corresponding to file destination, wherein fileinfo can comprise routing information and the file identification information thereof of file destination, the routing information of file destination can comprise source path information and/or destination path information, and file identification information can comprise file name information etc.
In an alternative embodiment, terminal can detect whether get file destination operational order, if get file destination operational order, then obtains fileinfo corresponding to file destination; If do not get file destination operational order, then file destination is not processed accordingly.Such as, when terminal gets the duplicate instructions that user submits to file destination, obtain the fileinfo that file destination is corresponding.And for example, when terminal gets and installs instruction to the application program of file destination, the fileinfo that file destination is corresponding is obtained.It is to be noted, file destination operational order installs instruction including, but not limited to duplicate instructions or application program, can also be such as shear instruction, delete instruction, download instruction or scan instruction etc., scan instruction can comprise file type scan instruction, such as music scan instruction, picture scanning instruction or virus scan instruction etc., specifically not by the restriction of the embodiment of the present invention.
S202, obtains the information capacity threshold value of fileinfo viewing area.
Terminal can obtain the information capacity threshold value of fileinfo viewing area.Wherein information capacity threshold value can be less than or equal to the information capacity of fileinfo viewing area, the information capacity of such as fileinfo viewing area is 32 characters, then the information capacity threshold value of fileinfo viewing area can be 32 characters, also can be 30 characters, etc.When single file display file information is only supported in fileinfo viewing area, the information capacity of fileinfo viewing area is the information capacity of fileinfo viewing area single file; When multirow display file information is only supported in fileinfo viewing area, the information capacity of fileinfo viewing area is the product of the supported maximum number of lines of information capacity and fileinfo viewing area of fileinfo viewing area single file.
It is pointed out that the sequencing of S201 and S202 in other embodiment can be exchanged, also can synchronously perform, do not affect enforcement logic of the present invention.
S203, what fileinfo detected contains much information when the information capacity threshold value of fileinfo viewing area, extracts target display information from fileinfo.
Whether the quantity of information that terminal can detect fileinfo is greater than the information capacity threshold value of fileinfo viewing area, if fileinfo detected contain much information in the information capacity threshold value of fileinfo viewing area, then from fileinfo, extract target display information; If detect, the quantity of information of fileinfo is less than or equal to the information capacity threshold value of fileinfo viewing area, then do not process fileinfo, in fileinfo viewing area, directly show the fileinfo got.
In an alternative embodiment, terminal order can be extracted from the first character in fileinfo, until the quantity of information of the character extracted arrives the information capacity threshold value of fileinfo viewing area, is target display information by the character setting extracted.Such as fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1 CFile.txt, the information capacity threshold value of fileinfo viewing area is 30 characters, then terminal order can extract 30 characters from the first character in fileinfo, namely extract from the character C in fileinfo, the character extracted can be C: oParentFolder1 oParentFolde, and the character setting extracted can be target display information by terminal.
In an alternative embodiment, terminal inverted order can be extracted from last character in fileinfo, until the quantity of information of the character extracted arrives the information capacity threshold value of fileinfo viewing area, is target display information by the character setting extracted.Such as fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1 CFile.txt, the information capacity threshold value of fileinfo viewing area is 30 characters, then terminal inverted order can extract 30 characters from last character in fileinfo, namely extract from the character t in fileinfo, the character extracted can be er2 CFolder CFolder1 CFile.txt, and the character setting extracted can be target display information by terminal.
In an alternative embodiment, terminal can obtain the file identification information in fileinfo, from the first character in the routing information of file destination, order is extracted, until the quantity of information sum of the quantity of information of the character extracted and file identification information arrives the information capacity threshold value of fileinfo viewing area, the character extracted and file identification information are set as target display information.Such as fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1 CFile.txt, the information capacity threshold value of fileinfo viewing area is 30 characters, then terminal can obtain file identification information CFile.txt, detect that file identification information is 10 characters, then terminal order can extract 20 characters from the first character in fileinfo, namely extract from the character C in fileinfo, the character extracted can be C: oParentFolder1 oPar, the character extracted and file identification information can be set as target display information by terminal.
Further alternative, after terminal gets the file identification information in fileinfo, inverted order can extract from the afterbody directory information in the routing information of file destination, to obtain at least one directory information, from the first character in the routing information of file destination, order is extracted, until the quantity of information of the directory information extracted, the quantity of information of the character extracted and the quantity of information sum of file identification information arrive the information capacity threshold value of fileinfo viewing area, by the directory information extracted, the character extracted and file identification information are set as target display information.Such as fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1 CFile.txt, the information capacity threshold value of fileinfo viewing area is 30 characters, then terminal can obtain file identification information CFile.txt, terminal inverted order can also be extracted from the afterbody directory information in the routing information of file destination, with obtain at least one directory information CFolder1, detect that file identification information is 10 characters, directory information is 9 characters, then terminal order can extract 11 characters from the first character in fileinfo, namely extract from the character C in fileinfo, the character extracted can be C: oParent, the character that terminal can will be extracted, directory information and file identification information are set as target display information.
In an alternative embodiment, routing information can comprise source path information and the destination path information thereof of file destination, then terminal order can be extracted from the first character in the source path information of file destination, to obtain at least one character, from the first character in the destination path information of file destination, order is extracted, until the quantity of information sum of character in the quantity of information of character in the source path information extracted and the destination path information extracted arrives the information capacity threshold value of fileinfo viewing area, be target display information by the character in the source path information extracted and the character setting in the destination path information extracted.Such as, source path information in fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1, destination path information be D: dParentFolder1 dParentFolder2 dFolder dFolder1, the information capacity threshold value of fileinfo viewing area is 30 characters, then terminal order can be extracted from the first character in the source path information of file destination, to obtain at least one character, from the first character in the destination path information of file destination, order is extracted, until the quantity of information sum of character in the quantity of information of character in the source path information extracted and the destination path information extracted arrives 30 characters, character then in the source path information extracted of terminal can be C: oParentFolde, character in the destination path information extracted can be D: dParentFolde, the character that terminal can will be extracted, directory information and file identification information are set as target display information.
In an alternative embodiment, routing information can comprise source path information and the destination path information thereof of file destination, then terminal inverted order can be extracted from last character in the source path information of file destination, to obtain at least one character, from last character in the destination path information of file destination, inverted order is extracted, until the quantity of information sum of character in the quantity of information of character in the source path information extracted and the destination path information extracted arrives the information capacity threshold value of fileinfo viewing area, be target display information by the character in the source path information extracted and the character setting in the destination path information extracted.Such as, source path information in fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1, destination path information be D: dParentFolder1 dParentFolder2 dFolder dFolder1, the information capacity threshold value of fileinfo viewing area is 30 characters, then terminal inverted order can be extracted from last character in the source path information of file destination, to obtain at least one character, from last character in the destination path information of file destination, inverted order is extracted, until the quantity of information sum of character in the quantity of information of character in the source path information extracted and the destination path information extracted arrives 30 characters, character then in the source path information extracted of terminal can be Folder CFolder1, character in the destination path information extracted can be Folder dFolder1, the character that terminal can will be extracted, directory information and file identification information are set as target display information.
S204, display-object display information in fileinfo viewing area.
After terminal gets target display information, in fileinfo viewing area, information can be shown by display-object.Target that such as terminal gets display information be C: oParentFolder1 oParentFolde, then show in fileinfo viewing area C: oParentFolder1 oParentFolde.
In an alternative embodiment, terminal can in fileinfo viewing area while display-object display information, the operation progress information of identification information and/or described file destination is preset in display, wherein presetting identification information can be suspension points etc., and the operation progress information of file destination can be current operation ratio.Such as, terminal get target display information be C: oParentFolder1 oPar and CFile.txt, default identification information is suspension points, then terminal can fileinfo viewing area display C: oParentFolder1 oPar ... CFile.txt.And for example terminal gets the operation progress of file destination is 30%, target display information be C: oParentFolder1 oParentFolde, then terminal can fileinfo viewing area display 30%C: oParentFolder1 oParentFolde.And for example terminal gets the operation progress of file destination is 30%, target display information be er2 CFolder CFolder1 CFile.txt, default identification information is suspension points, then terminal can in fileinfo viewing area display 30% ... er2 CFolder CFolder1 CFile.txt.
In the fileinfo extracting method shown in Fig. 2, what terminal detected fileinfo contains much information when the information capacity threshold value of fileinfo viewing area, target display information is extracted from fileinfo, display-object display information in fileinfo viewing area, user's viewing files information can be facilitated, promote Consumer's Experience.
Refer to Fig. 3, Fig. 3 is the schematic flow sheet of a kind of fileinfo extracting method provided in third embodiment of the invention, and the fileinfo extracting method as shown in the figure in the embodiment of the present invention can comprise:
S301, obtains the fileinfo that file destination is corresponding.
Terminal can obtain fileinfo corresponding to file destination, and wherein fileinfo can comprise routing information and the file identification information thereof of file destination.
In an alternative embodiment, terminal can detect whether get file destination operational order, if get file destination operational order, then obtains fileinfo corresponding to file destination; If do not get file destination operational order, then file destination is not processed accordingly.Such as, when terminal gets the duplicate instructions that user submits to file destination, obtain the fileinfo that file destination is corresponding.And for example, when terminal gets and installs instruction to the application program of file destination, the fileinfo that file destination is corresponding is obtained.It is to be noted, file destination operational order installs instruction including, but not limited to duplicate instructions or application program, can also be such as shear instruction, delete instruction, download instruction or scan instruction etc., scan instruction can comprise file type scan instruction, such as music scan instruction, picture scanning instruction or virus scan instruction etc., specifically not by the restriction of the embodiment of the present invention.
S302, obtains the information capacity threshold value of fileinfo viewing area.
Terminal can obtain the information capacity threshold value of fileinfo viewing area.Wherein information capacity threshold value can be less than or equal to the information capacity of fileinfo viewing area, the information capacity of such as fileinfo viewing area is 32 characters, then the information capacity threshold value of fileinfo viewing area can be 32 characters, also can be 30 characters, etc.
S303, what fileinfo detected contains much information when the information capacity threshold value of fileinfo viewing area, from the first character in fileinfo, order is extracted, until the quantity of information of the character extracted arrives the information capacity threshold value of fileinfo viewing area.
Whether the quantity of information that terminal can detect fileinfo is greater than the information capacity threshold value of fileinfo viewing area, if what fileinfo detected contains much information in the information capacity threshold value of fileinfo viewing area, then from the first character in fileinfo, order is extracted, until the quantity of information of the character extracted arrives the information capacity threshold value of fileinfo viewing area; If detect, the quantity of information of fileinfo is less than or equal to the information capacity threshold value of fileinfo viewing area, then do not process fileinfo, in fileinfo viewing area, directly show the fileinfo got.Such as fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1 CFile.txt, the information capacity threshold value of fileinfo viewing area is 30 characters, then terminal order can extract 30 characters from the first character in fileinfo, namely extract from the character C in fileinfo, the character extracted can be C: oParentFolder1 oParentFolde.
In an alternative embodiment, terminal inverted order can be extracted from last character in fileinfo, until the quantity of information of the character extracted arrives the information capacity threshold value of fileinfo viewing area.Such as fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1 CFile.txt, the information capacity threshold value of fileinfo viewing area is 30 characters, then terminal inverted order can extract 30 characters from last character in fileinfo, namely extract from the character t in fileinfo, the character extracted can be er2 CFolder CFolder1 CFile.txt.
In an alternative embodiment, terminal can obtain the file identification information in fileinfo, from the first character in the routing information of file destination, order is extracted, until the quantity of information sum of the quantity of information of the character extracted and file identification information arrives the information capacity threshold value of fileinfo viewing area.Such as fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1 CFile.txt, the information capacity threshold value of fileinfo viewing area is 30 characters, then terminal can obtain file identification information CFile.txt, detect that file identification information is 10 characters, then terminal order can extract 20 characters from the first character in fileinfo, namely extract from the character C in fileinfo, the character extracted can be C: oParentFolder1 oPar.
Further alternative, after terminal gets the file identification information in fileinfo, inverted order can extract from the afterbody directory information in the routing information of file destination, to obtain at least one directory information, from the first character in the routing information of file destination, order is extracted, until the quantity of information of the directory information extracted, the quantity of information of character extracted and the quantity of information sum of file identification information arrive the information capacity threshold value of fileinfo viewing area.Such as fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1 CFile.txt, the information capacity threshold value of fileinfo viewing area is 30 characters, then terminal can obtain file identification information CFile.txt, terminal inverted order can also be extracted from the afterbody directory information in the routing information of file destination, with obtain at least one directory information CFolder1, detect that file identification information is 10 characters, directory information is 9 characters, then terminal order can extract 11 characters from the first character in fileinfo, namely extract from the character C in fileinfo, the character extracted can be C: oParent.
The character setting extracted is target display information by S304.
After terminal extracts at least one character from fileinfo, can be target display information by the character setting extracted.
S305, display-object display information in fileinfo viewing area.
After terminal gets target display information, in fileinfo viewing area, information can be shown by display-object.Target that such as terminal gets display information be C: oParentFolder1 oParentFolde, then show in fileinfo viewing area C: oParentFolder1 oParentFolde.
In an alternative embodiment, terminal can in fileinfo viewing area while display-object display information, the operation progress information of identification information and/or described file destination is preset in display, wherein presetting identification information can be suspension points etc., the operation progress information of file destination can be current operation ratio or operation progress identification information etc., such as operation progress bar.Such as, terminal get target display information be C: oParentFolder1 oPar and CFile.txt, default identification information is suspension points, then terminal can fileinfo viewing area display C: oParentFolder1 oPar ... CFile.txt.And for example terminal gets the operation progress of file destination is 30%, target display information be C: oParentFolder1 oParentFolde, then terminal can fileinfo viewing area display 30%C: oParentFolder1 oParentFolde.And for example terminal gets the operation progress of file destination is 30%, target display information be er2 CFolder CFolder1 CFile.txt, default identification information is suspension points, then terminal can in fileinfo viewing area display 30% ... er2 CFolder CFolder1 CFile.txt.
In an alternative embodiment, when information capacity threshold value equals the information capacity of fileinfo viewing area, terminal can in fileinfo viewing area only display-object display information; During information capacity threshold value 1 character less of the information capacity of fileinfo viewing area, can in fileinfo viewing area display-object display information and default identification information; During information capacity threshold value 2 character less of the information capacity of fileinfo viewing area, can in fileinfo viewing area the operation progress information of display-object display information and file destination; During information capacity threshold value 3 character less of the information capacity of fileinfo viewing area, can information be shown, preset the operation progress information of identification information and file destination by display-object in fileinfo viewing area, etc., to realize the maximum resource utilization of fileinfo viewing area.
In the fileinfo extracting method shown in Fig. 3, what terminal detected fileinfo contains much information when the information capacity threshold value of fileinfo viewing area, from the first character in fileinfo, order is extracted, until the quantity of information of the character extracted arrives the information capacity threshold value of fileinfo viewing area, be target display information by the character setting extracted, in fileinfo viewing area, display-object display information, can facilitate user's viewing files information, promote Consumer's Experience.
Refer to Fig. 4, Fig. 4 is the schematic flow sheet of a kind of fileinfo extracting method provided in fourth embodiment of the invention, and the fileinfo extracting method as shown in the figure in the embodiment of the present invention can comprise:
S401, obtains the fileinfo that file destination is corresponding.
Terminal can obtain fileinfo corresponding to file destination, wherein fileinfo can comprise routing information and the file identification information thereof of file destination, the routing information of file destination can comprise source path information and/or destination path information, and file identification information can comprise file name information etc.
S402, obtains the information capacity threshold value of fileinfo viewing area.
Terminal can obtain the information capacity threshold value of fileinfo viewing area.Wherein information capacity threshold value can be less than or equal to the information capacity of fileinfo viewing area, the information capacity of such as fileinfo viewing area is 32 characters, then the information capacity threshold value of fileinfo viewing area can be 32 characters, also can be 30 characters, etc.
S403, what fileinfo detected contains much information when the information capacity threshold value of fileinfo viewing area, and from the first character in the source path information of file destination, order is extracted, to obtain at least one character.
Whether the quantity of information that terminal can detect fileinfo is greater than the information capacity threshold value of fileinfo viewing area, if what fileinfo detected contains much information in the information capacity threshold value of fileinfo viewing area, then from the first character in the source path information of file destination, order is extracted, to obtain at least one character; If detect, the quantity of information of fileinfo is less than or equal to the information capacity threshold value of fileinfo viewing area, then do not process fileinfo, in fileinfo viewing area, directly show the fileinfo got.Such as, the source path information of file destination be C: oParentFolder1 oParentFolder2 CFolder CFolder1, then terminal order can be extracted from the first character in source path information, namely extract from the character C in fileinfo, the character extracted can be C: oParentFolde.
In an alternative embodiment, terminal inverted order can be extracted, to obtain at least one character from last character in the source path information of file destination.Such as, source path information in fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1, then terminal order can be extracted from the first character in source path information, namely extract from the character 1 in fileinfo, the character extracted can be Folder CFolder1.
In an alternative embodiment, terminal can obtain the file identification information in fileinfo, and from the first character in the source path information of file destination, order is extracted, to obtain at least one character.Such as, terminal can obtain file identification information CFile.txt, source path information in file destination information be C: oParentFolder1 oParentFolder2 CFolder CFolder1, then terminal order can be extracted from the first character in source path information, namely extract from the character C in fileinfo, the character extracted can be C: oParent.
Further alternative, after terminal gets the file identification information in fileinfo, inverted order can extract from the afterbody directory information in the source path information of file destination, to obtain at least one directory information, from the first character in the source path information of file destination, order is extracted, to obtain at least one character.Such as, terminal can obtain file identification information CFile.txt, source path information in file destination information be C: oParentFolder1 oParentFolder2 CFolder CFolder1, then terminal inverted order can be extracted from the afterbody directory information in the source path information of file destination, the directory information extracted can be CFolder1, terminal order can also be extracted from the first character in source path information, namely extract from the character C in fileinfo, the character extracted can be C.
S404, from the first character in the destination path information of file destination, order is extracted, until the quantity of information sum of character in the quantity of information of character in the source path information extracted and the destination path information extracted arrives the information capacity threshold value of fileinfo viewing area.
After terminal extracts at least one character from the source path information of file destination, order can extract from the first character in the destination path information of file destination, until the quantity of information sum of character in the quantity of information of character in the source path information extracted and the destination path information extracted arrives the information capacity threshold value of fileinfo viewing area.Such as, the destination path information of file destination be D: dParentFolder1 dParentFolder2 dFolder dFolder1, then terminal order can be extracted from the first character in destination path information, namely extract from the character C in fileinfo, until the quantity of information sum of character in the quantity of information of character in the source path information extracted and the destination path information extracted arrives the information capacity threshold value of fileinfo viewing area, the character in the destination path information wherein extracted can be C: oParentFolde.
In an alternative embodiment, terminal inverted order can be extracted from last character in the destination path information of file destination, until the quantity of information sum of character in the quantity of information of character in the source path information extracted and the destination path information extracted arrives the information capacity threshold value of fileinfo viewing area.Such as, the destination path information of file destination be D: dParentFolder1 dParentFolder2 dFolder dFolder1, then terminal inverted order can be extracted from last character in destination path information, namely extract from the character 1 in fileinfo, the character extracted can be Folder CFolder1.
In an alternative embodiment, terminal can obtain the file identification information in fileinfo, from the first character in the destination path information of file destination, order is extracted, until the quantity of information sum of character in the quantity of information of character in the source path information extracted and the destination path information extracted arrives the information capacity threshold value of fileinfo viewing area.Such as, terminal can obtain file identification information CFile.txt, the destination path information of file destination be D: dParentFolder1 dParentFolder2 dFolder dFolder1, then terminal order can be extracted from the first character in destination path information, namely extract from the character C in fileinfo, the character extracted can be D: dParent.
Further alternative, after terminal gets the file identification information in fileinfo, inverted order can extract from the afterbody directory information in the destination path information of file destination, to obtain at least one directory information, from the first character in the destination path information of file destination, order is extracted, to obtain at least one character.Such as, terminal can obtain file identification information CFile.txt, destination path information in file destination information be D: dParentFolder1 dParentFolder2 dFolder dFolder1, then terminal inverted order can be extracted from the afterbody directory information in the destination path information of file destination, the directory information extracted can be dFolder1, terminal order can also be extracted from the first character in source path information, namely extract from the character D in fileinfo, the character extracted can be D.
Character in the source path information extracted and the character setting in the destination path information extracted are target display information by S405.
After terminal extracts at least one character in source path information and at least one character in destination path information, can be target display information by the character setting in the character in the source path information extracted and the destination path information extracted.
S406, display-object display information in fileinfo viewing area.
After terminal gets target display information, in fileinfo viewing area, information can be shown by display-object.Target that such as terminal gets display information be C: oParentFolde, then show in fileinfo viewing area D: dParentFolde, then terminal can show in fileinfo viewing area C: oParentFoldeD: dParentFolde.
In an alternative embodiment, terminal can in fileinfo viewing area while display-object display information, the operation progress information of identification information and/or described file destination is preset in display, wherein presetting identification information can be suspension points etc., and the operation progress information of file destination can be current operation ratio.
In the fileinfo extracting method shown in Fig. 4, what terminal detected fileinfo contains much information when the information capacity threshold value of fileinfo viewing area, from the first character in the source path information of file destination, order is extracted, to obtain at least one character, from the first character in the destination path information of file destination, order is extracted, until the quantity of information sum of character in the quantity of information of character in the source path information extracted and the destination path information extracted arrives the information capacity threshold value of fileinfo viewing area, be target display information by the character in the source path information extracted and the character setting in the destination path information extracted, display-object display information in fileinfo viewing area, user's viewing files information can be facilitated, promote Consumer's Experience.
Refer to Fig. 5, Fig. 5 is the structural representation of a kind of terminal provided in first embodiment of the invention, wherein the terminal that provides of the embodiment of the present invention is corresponding with the method shown in Fig. 1, may operate in the executive agent of the fileinfo extracting method shown in Fig. 1, terminal 500 as shown in the figure in the embodiment of the present invention at least can comprise fileinfo acquiring unit 510, determining unit 520, extraction unit 530 and display unit 540, wherein:
Fileinfo acquiring unit 510, for obtaining fileinfo corresponding to file destination, wherein fileinfo can comprise routing information and the file identification information thereof of each son file in file destination.
The file identification information of such as file destination is CFolder, and wherein file destination comprises 3 son files, then the fileinfo that the file destination that gets of fileinfo acquiring unit 510 is corresponding can comprise:
C:\oParentFolder1\oParentFolder2\CFolder\CFolder1\CFile1.txt
C:\oParentFolder1\oParentFolder2\CFolder\CFolder1\CFile2.txt
C:\oParentFolder1\oParentFolder2\CFolder\CFile3.txt
Determining unit 520, for determining the target directory information in the fileinfo of each son file.
Directory informations at different levels in the fileinfo of each son file can compare by determining unit 520, determine the target directory information in the fileinfo of each son file, and the fileinfo that such as file destination is corresponding is:
C:\oParentFolder1\oParentFolder2\CFolder\CFolder1\CFile1.txt
C:\oParentFolder1\oParentFolder2\CFolder\CFolder1\CFile2.txt
C:\oParentFolder1\oParentFolder2\CFolder\CFile3.txt
Determining unit 520 can determine the first order directory information in each son file, second level directory information and third level directory information identical, then afterbody directory information in identical directory information can be set as target directory information by determining unit 520, namely target directory information is CFolder, first order directory information in the fileinfo of wherein the first son file after CFolder is CFolder1, first order directory information in the fileinfo of the second son file after CFolder is CFolder1, first order directory information in the fileinfo of the 3rd son file after CFolder is CFile3.txt, first order directory information in the fileinfo of each son file after target directory information is incomplete same.
Extraction unit 530, extracts for order from the first order directory information after the target directory information in the fileinfo of each son file, to obtain target display information.
Such as, after determining unit 520 determines that target directory information is CFolder1, extraction unit 530 sequentially can extract the first order directory information from the fileinfo of the first son file after CFolder, and the character extracted can be CFolder1 CFile1.txt; Extraction unit 530 sequentially can extract the first order directory information from the fileinfo of the second son file after CFolder, and the character extracted can be CFolder1 CFile2.txt; Extraction unit 530 sequentially can extract the first order directory information from the fileinfo of the 3rd son file after CFolder, the character extracted can be CFile3.txt, then the target display information that extraction unit 530 gets can be CFolder1 CFile1.txt, CFolder1 CFile2.txt and CFile3.txt.
Display unit 540, for the display of display-object in fileinfo viewing area information.
The fileinfo that such as extraction unit 530 extracts the first son file be CFolder1 CFile1.txt, the fileinfo of the second son file be CFolder1 CFile2.txt, the fileinfo of the 3rd son file is CFile3.txt, then display unit 540 can territory, document display area display CFolder1 CFile1.txtCFolder1 CFile2.txtCFile3.txt.
As the optional embodiment of one, the terminal 500 in the embodiment of the present invention can also comprise:
Capacity threshold acquiring unit 550, for obtaining the information capacity threshold value of fileinfo viewing area.
Extraction unit 530, also contains much information when the information capacity threshold value of fileinfo viewing area for what fileinfo detected, extracts target display information from fileinfo.Wherein information capacity threshold value can be less than or equal to the information capacity of fileinfo viewing area, the information capacity of such as fileinfo viewing area is 32 characters, then the information capacity threshold value of fileinfo viewing area can be 32 characters, also can be 30 characters, etc.When single file display file information is only supported in fileinfo viewing area, the information capacity of fileinfo viewing area is the information capacity of fileinfo viewing area single file; When multirow display file information is only supported in fileinfo viewing area, the information capacity of fileinfo viewing area is the product of the supported maximum number of lines of information capacity and fileinfo viewing area of fileinfo viewing area single file.
Display unit 540, also for the display of display-object in fileinfo viewing area information.
Further alternative, the extraction unit 530 in the embodiment of the present invention can as shown in Figure 6, comprise further:
Character extraction unit 610, extracts for order from the first character in fileinfo, until the quantity of information of the character extracted arrives the information capacity threshold value of fileinfo viewing area.
Setup unit 620, the character setting for extracting is described target display information.
Such as fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1 CFile.txt, the information capacity threshold value of fileinfo viewing area is 30 characters, then character extraction unit 610 order can extract 30 characters from the first character in fileinfo, namely extract from the character C in fileinfo, the character extracted can be C: oParentFolder1 oParentFolde, and the character setting extracted can be target display information by setup unit 620.
Further alternative, the extraction unit 530 in the embodiment of the present invention can as shown in Figure 6, comprise further:
Character extraction unit 610, extracts for inverted order from last character in fileinfo, until the quantity of information of the character extracted arrives the information capacity threshold value of fileinfo viewing area.
Setup unit 620, the character setting for extracting is target display information.
Such as fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1 CFile.txt, the information capacity threshold value of fileinfo viewing area is 30 characters, then character extraction unit 610 inverted order can extract 30 characters from last character in fileinfo, namely extract from the character t in fileinfo, the character extracted can be er2 CFolder CFolder1 CFile.txt, and the character setting extracted can be target display information by setup unit 620.
Further alternative, the extraction unit 530 in the embodiment of the present invention can as shown in Figure 7, comprise further:
Identification information obtaining unit 630, for obtaining the file identification information in fileinfo.
Character extraction unit 610, extracts for order from the first character in the routing information of file destination, until the quantity of information sum of the quantity of information of the character extracted and file identification information arrives the information capacity threshold value of fileinfo viewing area.
Setup unit 620, for being set as target display information by the character extracted and file identification information.
Such as fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1 CFile.txt, the information capacity threshold value of fileinfo viewing area is 30 characters, then identification information obtaining unit 630 can obtain file identification information CFile.txt, detect that file identification information is 10 characters, then character extraction unit 610 order can extract 20 characters from the first character in fileinfo, namely extract from the character C in fileinfo, the character extracted can be C: oParentFolder1 oPar, the character extracted and file identification information can be set as target display information by setup unit 620.
Further alternative, character extraction unit 610, extracts for inverted order from the afterbody directory information in the routing information of file destination, to obtain at least one directory information; From the first character in the routing information of file destination, order is extracted, until the quantity of information of the directory information extracted, the quantity of information of character extracted and the quantity of information sum of file identification information arrive the information capacity threshold value of fileinfo viewing area.
Setup unit 620, for being set as target display information by the directory information extracted, the character extracted and file identification information.
Such as fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1 CFile.txt, the information capacity threshold value of fileinfo viewing area is 30 characters, then identification information obtaining unit 630 can obtain file identification information CFile.txt, character extraction unit 610 inverted order can also extract from the afterbody directory information in the routing information of file destination, with obtain at least one directory information CFolder1, detect that file identification information is 10 characters, directory information is 9 characters, then character extraction unit 610 order can extract 11 characters from the first character in fileinfo, namely extract from the character C in fileinfo, the character extracted can be C: oParent, the character that setup unit 620 can will extract, directory information and file identification information are set as target display information.
Further alternative, routing information can comprise source path information and the destination path information thereof of file destination, then the extraction unit 530 in the embodiment of the present invention can as shown in Figure 6, comprise further:
Character extraction unit 610, extracts for order from the first character in the source path information of file destination, to obtain at least one character; From the first character in the destination path information of file destination, order is extracted, until the quantity of information sum of character in the quantity of information of character in the source path information extracted and the destination path information extracted arrives the information capacity threshold value of fileinfo viewing area.
Setup unit 620, for by the character setting in the character in the source path extracted information and the destination path information extracted being target display information.
Such as, source path information in fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1, destination path information be D: dParentFolder1 dParentFolder2 dFolder dFolder1, the information capacity threshold value of fileinfo viewing area is 30 characters, then character extraction unit 610 order can extract from the first character in the source path information of file destination, to obtain at least one character, from the first character in the destination path information of file destination, order is extracted, until the quantity of information sum of character in the quantity of information of character in the source path information extracted and the destination path information extracted arrives 30 characters, character then in the source path information extracted of character extraction unit 610 can be C: oParentFolde, character in the destination path information extracted can be D: dParentFolde, the character that setup unit 620 can will extract, directory information and file identification information are set as target display information.
Further alternative, routing information can comprise source path information and the destination path information thereof of file destination, then the extraction unit 530 in the embodiment of the present invention can as shown in Figure 6, comprise further:
Character extraction unit 610, extracts for inverted order from last character in the source path information of file destination, to obtain at least one character; From last character in the destination path information of file destination, inverted order is extracted, until the quantity of information sum of character in the quantity of information of character in the source path information extracted and the destination path information extracted arrives the information capacity threshold value of fileinfo viewing area.
Setup unit 620, for by the character setting in the character in the source path extracted information and the destination path information extracted being target display information.
Such as, source path information in fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1, destination path information be D: dParentFolder1 dParentFolder2 dFolder dFolder1, the information capacity threshold value of fileinfo viewing area is 30 characters, then character extraction unit 610 inverted order can extract from last character in the source path information of file destination, to obtain at least one character, from last character in the destination path information of file destination, inverted order is extracted, until the quantity of information sum of character in the quantity of information of character in the source path information extracted and the destination path information extracted arrives 30 characters, character then in the source path information extracted of character extraction unit 610 can be Folder CFolder1, character in the destination path information extracted can be Folder dFolder1, the character that setup unit 620 can will extract, directory information and file identification information are set as target display information.
As the optional embodiment of one, display unit 540, while the display of display-object in fileinfo viewing area information, the operation progress information of identification information and/or described file destination is preset in display, wherein presetting identification information can be suspension points etc., and the operation progress information of file destination can be current operation ratio.
Such as, extraction unit 530 extract target display information be C: oParentFolder1 oPar and CFile.txt, default identification information is suspension points, then display unit 540 can fileinfo viewing area display C: oParentFolder1 oPar ... CFile.txt.And for example extraction unit 530 extracts the operation progress of file destination is 30%, target display information be C: oParentFolder1 oParentFolde, then display unit 540 can fileinfo viewing area display 30%C: oParentFolder1 oParentFolde.And for example extraction unit 530 extracts the operation progress of file destination is 30%, target display information be er2 CFolder CFolder1 CFile.txt, default identification information is suspension points, then display unit 540 can in fileinfo viewing area display 30% ... er2 CFolder CFolder1 CFile.txt.
As the optional embodiment of one, fileinfo acquiring unit 510, when getting file destination operational order for detecting, obtains the fileinfo that file destination is corresponding.Wherein file destination operational order can comprise duplicate instructions to file destination, application program installs instruction and shear instruction, delete instruction, download instruction or scan instruction etc., scan instruction can comprise file type scan instruction, such as music scan instruction, picture scanning instruction or virus scan instruction etc., specifically not by the restriction of the embodiment of the present invention.
In the terminal shown in Fig. 5, determining unit 520 determines the target directory information in the routing information of each son file in the fileinfo that file destination that fileinfo acquiring unit 510 gets is corresponding, all directory informations in the routing information of wherein each son file before target directory information are identical, extraction unit 530 order from the target directory information in the routing information of each son file is extracted, to obtain target display information, display unit 540 is display-object display information in fileinfo viewing area, the precision of the fileinfo shown in fileinfo viewing area can be improved, facilitate user's viewing files information, promote Consumer's Experience.
Refer to Fig. 8, Fig. 8 is the structural representation of a kind of terminal provided in second embodiment of the invention, as shown in Figure 8, this terminal 800 comprises: at least one processor 810, such as CPU, at least one input media 830, at least one output unit 840, storer 850, at least one bus 820.Wherein, communication bus 820 is for realizing the connection communication between these assemblies.Such as, input media 830 can comprise Trackpad, microphone etc., and output unit 840 can comprise display screen, loudspeaker etc.Storer 850 can be high-speed RAM storer, also can be non-labile storer (non-volatile memory), such as at least one magnetic disk memory.Storer 850 can also be optionally that at least one is positioned at the storage terminal away from aforementioned processor 810.Wherein processor 810 can the terminal shown in composition graphs 5 ~ Fig. 7, wherein stores batch processing code in storer 850, and processor 810 calls the program code stored in storer 850, for performing following operation:
Obtain the fileinfo that file destination is corresponding, wherein fileinfo can comprise routing information and the file identification information thereof of each son file in file destination.
The file identification information of such as file destination is CFolder, and wherein file destination comprises 3 son files, then the fileinfo that the file destination that gets of processor 810 is corresponding can comprise:
C:\oParentFolder1\oParentFolder2\CFolder\CFolder1\CFile1.txt
C:\oParentFolder1\oParentFolder2\CFolder\CFolder1\CFile2.txt
C:\oParentFolder1\oParentFolder2\CFolder\CFile3.txt
Determine the target directory information in the fileinfo of each son file.
Directory informations at different levels in the fileinfo of each son file can compare by processor 810, determine the target directory information in the fileinfo of each son file, and the fileinfo that such as file destination is corresponding is:
C:\oParentFolder1\oParentFolder2\CFolder\CFolder1\CFile1.txt
C:\oParentFolder1\oParentFolder2\CFolder\CFolder1\CFile2.txt
C:\oParentFolder1\oParentFolder2\CFolder\CFile3.txt
Processor 810 can determine the first order directory information in each son file, second level directory information and third level directory information identical, then afterbody directory information in identical directory information can be set as target directory information by processor 810, namely target directory information is CFolder, first order directory information in the fileinfo of wherein the first son file after CFolder is CFolder1, first order directory information in the fileinfo of the second son file after CFolder is CFolder1, first order directory information in the fileinfo of the 3rd son file after CFolder is CFile3.txt, first order directory information in the fileinfo of each son file after target directory information is incomplete same.
From the first order directory information after the target directory information in the fileinfo of each son file, order is extracted, to obtain target display information.
Such as, after processor 810 determines that target directory information is CFolder1, sequentially can extract the first order directory information from the fileinfo of the first son file after CFolder, the character extracted can be CFolder1 CFile1.txt; Sequentially can extract first order directory information from the fileinfo of the first son file after CFolder, the character extracted can be CFolder1 CFile2.txt; Sequentially can extract first order directory information from the fileinfo of the first son file after CFolder, the character extracted can be CFile3.txt, then the target display information that processor 810 gets can be CFolder1 CFile1.txt, CFolder1 CFile2.txt and CFile3.txt.
By output unit 840 display-object display information in fileinfo viewing area.
The fileinfo that such as processor 810 extracts the first son file be CFolder1 CFile1.txt, the fileinfo of the second son file be CFolder1 CFile2.txt, the fileinfo of the 3rd son file is CFile3.txt, then output unit 840 can territory, document display area display CFolder1 CFile1.txtCFolder1 CFile2.txtCFile3.txt.
As the optional embodiment of one, processor 810 can also perform following operation after obtaining fileinfo corresponding to file destination:
Obtain the information capacity threshold value of fileinfo viewing area.
What fileinfo detected contains much information when the information capacity threshold value of fileinfo viewing area, extracts target display information from fileinfo.Wherein information capacity threshold value can be less than or equal to the information capacity of fileinfo viewing area, the information capacity of such as fileinfo viewing area is 32 characters, then the information capacity threshold value of fileinfo viewing area can be 32 characters, also can be 30 characters, etc.When single file display file information is only supported in fileinfo viewing area, the information capacity of fileinfo viewing area is the information capacity of fileinfo viewing area single file; When multirow display file information is only supported in fileinfo viewing area, the information capacity of fileinfo viewing area is the product of the supported maximum number of lines of information capacity and fileinfo viewing area of fileinfo viewing area single file.
By output unit 840 display-object display information in fileinfo viewing area.
Further alternative, processor 810 extracts target display information and specifically can comprise from fileinfo:
From the first character in fileinfo, order is extracted, until the quantity of information of the character extracted arrives the information capacity threshold value of fileinfo viewing area.
Be described target display information by the character setting extracted.
Such as fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1 CFile.txt, the information capacity threshold value of fileinfo viewing area is 30 characters, then processor 810 order can extract 30 characters from the first character in fileinfo, namely extract from the character C in fileinfo, the character extracted can be C: oParentFolder1 oParentFolde, and then the character setting extracted can be target display information by processor 810.
Further alternative, processor 810 extracts target display information and specifically can comprise from fileinfo:
From last character in fileinfo, inverted order is extracted, until the quantity of information of the character extracted arrives the information capacity threshold value of fileinfo viewing area.
Character setting for extracting is target display information.
Such as fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1 CFile.txt, the information capacity threshold value of fileinfo viewing area is 30 characters, then processor 810 inverted order can extract 30 characters from last character in fileinfo, namely extract from the character t in fileinfo, the character extracted can be er2 CFolder CFolder1 CFile.txt, and then the character setting extracted can be target display information by processor 810.
Further alternative, processor 810 extracts target display information and specifically can comprise from fileinfo:
Obtain the file identification information in fileinfo.
From the first character in the routing information of file destination, order is extracted, until the quantity of information sum of the quantity of information of the character extracted and file identification information arrives the information capacity threshold value of fileinfo viewing area.
The character extracted and file identification information are set as target display information.
Such as fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1 CFile.txt, the information capacity threshold value of fileinfo viewing area is 30 characters, then processor 810 can obtain file identification information CFile.txt, detect that file identification information is 10 characters, then processor 810 order can extract 20 characters from the first character in fileinfo, namely extract from the character C in fileinfo, the character extracted can be C: oParentFolder1 oPar, and then the character extracted and file identification information can be set as target display information by processor 810.
Further alternative, processor 810 order from the first character in the routing information of file destination is extracted and specifically can be comprised:
From the afterbody directory information in the routing information of file destination, inverted order is extracted, to obtain at least one directory information; From the first character in the routing information of file destination, order is extracted, until the quantity of information of the directory information extracted, the quantity of information of character extracted and the quantity of information sum of file identification information arrive the information capacity threshold value of fileinfo viewing area.
The directory information extracted, the character extracted and file identification information are set as target display information.
Such as fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1 CFile.txt, the information capacity threshold value of fileinfo viewing area is 30 characters, then processor 810 can obtain file identification information CFile.txt, inverted order can also extract from the afterbody directory information in the routing information of file destination, with obtain at least one directory information CFolder1, detect that file identification information is 10 characters, directory information is 9 characters, then processor 810 order can extract 11 characters from the first character in fileinfo, namely extract from the character C in fileinfo, the character extracted can be C: oParent, and then the character that processor 810 can will extract, directory information and file identification information are set as target display information.
Further alternative, routing information can comprise source path information and the destination path information thereof of file destination, then processor 810 extract from fileinfo target display information specifically can comprise:
From the first character in the source path information of file destination, order is extracted, to obtain at least one character; From the first character in the destination path information of file destination, order is extracted, until the quantity of information sum of character in the quantity of information of character in the source path information extracted and the destination path information extracted arrives the information capacity threshold value of fileinfo viewing area.
Be target display information by the character in the source path information extracted and the character setting in the destination path information extracted.
Such as, source path information in fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1, destination path information be D: dParentFolder1 dParentFolder2 dFolder dFolder1, the information capacity threshold value of fileinfo viewing area is 30 characters, then processor 810 order can extract from the first character in the source path information of file destination, to obtain at least one character, from the first character in the destination path information of file destination, order is extracted, until the quantity of information sum of character in the quantity of information of character in the source path information extracted and the destination path information extracted arrives 30 characters, character then in the source path information extracted of processor 810 can be C: oParentFolde, character in the destination path information extracted can be D: dParentFolde, and then the character that processor 810 can will extract, directory information and file identification information are set as target display information.
Further alternative, routing information can comprise source path information and the destination path information thereof of file destination, then processor 810 extract from fileinfo target display information specifically can comprise:
From last character in the source path information of file destination, inverted order is extracted, to obtain at least one character; From last character in the destination path information of file destination, inverted order is extracted, until the quantity of information sum of character in the quantity of information of character in the source path information extracted and the destination path information extracted arrives the information capacity threshold value of fileinfo viewing area.
Be target display information by the character in the source path information extracted and the character setting in the destination path information extracted.
Such as, source path information in fileinfo be C: oParentFolder1 oParentFolder2 CFolder CFolder1, destination path information be D: dParentFolder1 dParentFolder2 dFolder dFolder1, the information capacity threshold value of fileinfo viewing area is 30 characters, then processor 810 inverted order can extract from last character in the source path information of file destination, to obtain at least one character, from last character in the destination path information of file destination, inverted order is extracted, until the quantity of information sum of character in the quantity of information of character in the source path information extracted and the destination path information extracted arrives 30 characters, character then in the source path information extracted of processor 810 can be Folder CFolder1, character in the destination path information extracted can be Folder dFolder1, and then the character that processor 810 can will extract, directory information and file identification information are set as target display information.
As the optional embodiment of one, output unit 840 display-object display information in fileinfo viewing area specifically can comprise:
In fileinfo viewing area while display-object display information, the operation progress information of identification information and/or described file destination is preset in display, wherein presetting identification information can be suspension points etc., and the operation progress information of file destination can be current operation ratio.
Such as, processor 810 extract target display information be C: oParentFolder1 oPar and CFile.txt, default identification information is suspension points, then output unit 840 can fileinfo viewing area display C: oParentFolder1 oPar ... CFile.txt.And for example processor 810 extracts the operation progress of file destination is 30%, target display information be C: oParentFolder1 oParentFolde, then output unit 840 can fileinfo viewing area display 30%C: oParentFolder1 oParentFolde.And for example processor 810 extracts the operation progress of file destination is 30%, target display information be er2 CFolder CFolder1 CFile.txt, default identification information is suspension points, then output unit 840 can in fileinfo viewing area display 30% ... er2 CFolder CFolder1 CFile.txt.
As the optional embodiment of one, processor 810 obtains fileinfo corresponding to file destination and specifically can comprise:
When detection gets file destination operational order, obtain the fileinfo that file destination is corresponding.Wherein file destination operational order can comprise duplicate instructions to file destination, application program installs instruction and shear instruction, delete instruction, download instruction or scan instruction etc., scan instruction can comprise file type scan instruction, such as music scan instruction, picture scanning instruction or virus scan instruction etc., specifically not by the restriction of the embodiment of the present invention.
Concrete, the terminal 800 introduced in the embodiment of the present invention can in order to implement the part or all of flow process in the fileinfo extracting method embodiment of composition graphs 1 of the present invention, Fig. 2, Fig. 3 or Fig. 4 introduction.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as 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.
It should be noted that, in the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and module might not be that the embodiment of the present invention is necessary.
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention terminal can carry out merging, divide and deleting according to actual needs.
Unit described in the embodiment of the present invention, universal integrated circuit can be passed through, such as CPU (CentralProcessing Unit, central processing unit), or realized by ASIC (Application Specific IntegratedCircuit, special IC).
Above the text message extracting method that the embodiment of the present invention provides is described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a fileinfo extracting method, is characterized in that, comprising:
Obtain the fileinfo that file destination is corresponding;
Determine the target directory information in the fileinfo of son file described in each;
From the first order directory information after the target directory information in the fileinfo of son file described in each, order is extracted, to obtain target display information;
Described target display information is shown in fileinfo viewing area.
2. the method for claim 1, is characterized in that, after the fileinfo that described acquisition file destination is corresponding, also comprises:
Obtain the information capacity threshold value of described fileinfo viewing area;
What described fileinfo detected contains much information when the information capacity threshold value of described fileinfo viewing area, extracts target display information from described fileinfo;
Described target display information is shown in described fileinfo viewing area.
3. method as claimed in claim 2, is characterized in that, described target display information of extracting from described fileinfo comprises:
From the first character in described fileinfo, order is extracted, until described in the quantity of information of character extracted arrive the information capacity threshold value of described fileinfo viewing area;
Be described target display information by the described character setting extracted.
4. method as claimed in claim 2, is characterized in that, described target display information of extracting from described fileinfo comprises:
From last character in described fileinfo, inverted order is extracted, until described in the quantity of information of character extracted arrive the information capacity threshold value of described fileinfo viewing area;
Be described target display information by the described character setting extracted.
5. method as claimed in claim 2, is characterized in that, described target display information of extracting from described fileinfo comprises:
Obtain the file identification information in described fileinfo;
From the first character in the routing information of described file destination, order is extracted, until described in the quantity of information of character extracted and the quantity of information sum of described file identification information arrive the information capacity threshold value of described fileinfo viewing area;
The described character that extracts and described file identification information are set as described target display information.
6. method as claimed in claim 5, is characterized in that, described sequentially extraction from the first character in the routing information of described file destination comprises:
From the afterbody directory information in the routing information of described file destination, inverted order is extracted, to obtain at least one directory information;
From the first character in the routing information of described file destination, order is extracted, until described in extract character quantity of information, described in the quantity of information of directory information extracted and the quantity of information sum of described file identification information arrive the information capacity threshold value of described fileinfo viewing area;
Describedly the described character that extracts and described file identification information are set as described target display information comprises:
The directory information extracted described, described in the character that extracts and described file identification information be set as described target display information.
7. method as claimed in claim 2, it is characterized in that, described routing information comprises source path information and the destination path information thereof of described file destination;
Described target display information of extracting from described fileinfo comprises:
From the first character in the source path information of described file destination, order is extracted, to obtain at least one character;
From the first character in the destination path information of described file destination, order is extracted, until described in the quantity of information sum of character in the quantity of information of character in the source path information extracted and the described destination path information extracted arrive the information capacity threshold value of described fileinfo viewing area;
Be described target display information by the character setting in the character in the described source path information extracted and the described destination path information extracted.
8. method as claimed in claim 2, it is characterized in that, described routing information comprises source path information and the destination path information thereof of described file destination;
Described target display information of extracting from described fileinfo comprises:
From last character in the source path information of described file destination, inverted order is extracted, to obtain at least one character;
From last character in the destination path information of described file destination, inverted order is extracted, until described in the quantity of information sum of character in the quantity of information of character in the source path information extracted and the described destination path information extracted arrive the information capacity threshold value of described fileinfo viewing area;
Be described target display information by the character setting in the character in the described source path information extracted and the described destination path information extracted.
9. the method for claim 1, is characterized in that, the described described target display information that shows in described fileinfo viewing area comprises:
Show described target display information in described fileinfo viewing area while, the operation progress information of identification information and/or described file destination is preset in display.
10. the method for claim 1, is characterized in that, the fileinfo that described acquisition file destination is corresponding comprises:
When detection gets file destination operational order, obtain the fileinfo that described file destination is corresponding.
CN201410629646.6A 2014-11-10 2014-11-10 File information extraction method Pending CN104408080A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410629646.6A CN104408080A (en) 2014-11-10 2014-11-10 File information extraction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410629646.6A CN104408080A (en) 2014-11-10 2014-11-10 File information extraction method

Publications (1)

Publication Number Publication Date
CN104408080A true CN104408080A (en) 2015-03-11

Family

ID=52645711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410629646.6A Pending CN104408080A (en) 2014-11-10 2014-11-10 File information extraction method

Country Status (1)

Country Link
CN (1) CN104408080A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102142028A (en) * 2011-03-18 2011-08-03 鸿富锦精密工业(深圳)有限公司 Electronic equipment and file path display method thereof
CN102609453A (en) * 2012-01-11 2012-07-25 中国农业大学 Embedded file searching method and embedded file searching system
CN102708774A (en) * 2012-04-19 2012-10-03 广东威创视讯科技股份有限公司 Display method of character strings and system thereof
CN103164402A (en) * 2011-12-08 2013-06-19 青岛海尔电子有限公司 Method for displaying files

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102142028A (en) * 2011-03-18 2011-08-03 鸿富锦精密工业(深圳)有限公司 Electronic equipment and file path display method thereof
CN103164402A (en) * 2011-12-08 2013-06-19 青岛海尔电子有限公司 Method for displaying files
CN102609453A (en) * 2012-01-11 2012-07-25 中国农业大学 Embedded file searching method and embedded file searching system
CN102708774A (en) * 2012-04-19 2012-10-03 广东威创视讯科技股份有限公司 Display method of character strings and system thereof

Similar Documents

Publication Publication Date Title
CN106250498B (en) Method, equipment and system for realizing multi-system page switching
CN104991705A (en) Interface display method and terminal
CN104683458A (en) Wallpaper recommendation method and server
CN105446739A (en) UI interface setting method and apparatus
CN105745612A (en) Resizing technique for display content
CN106227483B (en) Display control method and mobile terminal
CN104615331A (en) Corner mark processing method
CN104657668A (en) Terminal
DE602004016205D1 (en) METHOD AND SYSTEM FOR DELIVERING DOCUMENTS TO DEVICES WITH LIMITED DISPLAY CAPACITIES SUCH AS, FOR EXAMPLE, MOBILE DEVICES
CN104503674A (en) Screenshot picture generating method
CN109298817B (en) Item display method, item display device, terminal and storage medium
CN103365968A (en) Webpage content magnification method and webpage content magnifier
CN106909272B (en) Display control method and mobile terminal
CN105320406A (en) Picture management method and terminal
CN105094562A (en) Information processing method and terminal
CN104657991A (en) Picture processing method
CN105094668B (en) Information processing method and electronic equipment
US10254959B2 (en) Method of inputting a character into a text string using a sliding touch gesture, and electronic device therefor
CN104766352A (en) Picture processing method
CN105426438A (en) Information display method and terminal
CN104408080A (en) File information extraction method
CN104462221A (en) Terminal
CN106657316B (en) Message withdrawing method and device
CN103617299A (en) Method and system for setting table attribute
CN104572454A (en) Method and device for positioning resource

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150311

WD01 Invention patent application deemed withdrawn after publication