CN102622442A - Linux system-based display method and device for directories and files - Google Patents

Linux system-based display method and device for directories and files Download PDF

Info

Publication number
CN102622442A
CN102622442A CN2012100634760A CN201210063476A CN102622442A CN 102622442 A CN102622442 A CN 102622442A CN 2012100634760 A CN2012100634760 A CN 2012100634760A CN 201210063476 A CN201210063476 A CN 201210063476A CN 102622442 A CN102622442 A CN 102622442A
Authority
CN
China
Prior art keywords
file
tree
catalogue
statistical information
file system
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
CN2012100634760A
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.)
Fujian Star Net eVideo Information Systems Co Ltd
Original Assignee
Fujian Star Net eVideo Information Systems 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 Fujian Star Net eVideo Information Systems Co Ltd filed Critical Fujian Star Net eVideo Information Systems Co Ltd
Priority to CN2012100634760A priority Critical patent/CN102622442A/en
Publication of CN102622442A publication Critical patent/CN102622442A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The invention discloses a Linux system-based display method and device for directories and files. The display method comprises the following steps of: S101-, acquiring attribute information of all directories and files in a file system, and establishing a statistical information tree according to a directory structure in the current file system; S102-, presenting file information on the basis of the statistical information tree according to a presenting view selected by a user by means of a corresponding browser view. According to the Linux system-based display method and device for the directories and the files, the file information can be visually presented, and the file information is presented according to the selection of the user by the corresponding browser view. Through the display method disclosed by the invention, the files can be visually presented according to the levels of the directories; when the files need to be operated, a specific command does not need to be remembered. An operation mode is visual, and moreover, the misoperation phenomenon is not easy to occur.

Description

Catalogue and file display packing and device based on the linux system
Technical field
The present invention relates to the catalogue and the file processing of linux system, relate in particular to a kind of catalogue and file display packing and device based on the linux system.
Background technology
In traditional embedded Linux system for the file on the operating system; Usually all be to utilize serial ports or network interface to be connected in the system; Then through order query directory structure and fileinfo; Or through order manipulation file (method of operating mainly contains: move, xcopy, deleted file).Because be to handle file through order line, it is more abstract, not directly perceived to handle file mode, operates also more complicated, and, also need remember linux file operation instruction, the use of inconvenient domestic consumer for the user.Because order line can't provide good user feedback, so user experience is poor.In addition, can only be in the linux system in viewing files under the editing mode, and once can only check a file, efficient is low, and is easy to take place maloperation.
Summary of the invention
The present invention mainly provides a kind of catalogue and file display packing and device based on the linux system, solves the problem that present linux system file can not visualization display cause file operation inconvenience.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: a kind of catalogue and file display packing based on the linux system is provided, comprises step:
S101: obtain all catalogues and the attribute information of file in the file system, and set up the statistical information tree according to the bibliographic structure in the current file system;
S102: according to said statistical information tree, the performance view of selecting according to the user presents fileinfo by corresponding browse view.
Wherein, said file display packing based on the linux system also comprises the step parallel with step S101:
S201: the real-time change of monitoring file system, and upgrade the statistics inforamtion tree.
Wherein, the real-time change of step S201 file system file comprises increase, modification and the deletion of file.
Wherein, step S101 is specially: begin from the root directory of file system, the All Files according under bibliographic structure recurrence traversal root directory and the sub-directory obtains corresponding file attribute information, sets up the statistical information tree that is tree structure in logic.
For solving the problems of the technologies described above, another technical scheme that the present invention adopts is: a kind of catalogue and document display apparatus based on the linux system is provided, comprises:
Processing unit: be used for obtaining the attribute information of the All Files of file system, and set up the statistical information tree according to the bibliographic structure in the current file system;
Display unit: be used for according to said statistical information tree, the performance view of selecting according to the user presents fileinfo by corresponding browse view.
Wherein, said document display apparatus based on the linux system also comprises: monitoring unit: be used to monitor the real-time change of file system, and upgrade the statistics inforamtion tree.
The invention has the beneficial effects as follows: catalogue of the present invention and file display packing, set up the statistical information tree according to the catalogue framework of file system, comprised All Files information in the file system in this statistical information tree; Fileinfo is appeared visually; Then, present fileinfo, and the statistical information tree is set up with the catalogue framework of file system with corresponding browse view again according to user's selection; Safeguarded the logical level of file, can show by TOC level.Through display packing of the present invention, file is appeared by TOC level visually, in the time of need operating file, need not remember specific order, mode of operation is directly perceived, and is difficult for taking place the phenomenon of maloperation.
Description of drawings
Fig. 1 is the process flow diagram of the display packing of one embodiment of the invention;
Fig. 2 is the display packing process flow diagram of another embodiment of the present invention;
Fig. 3 is the application example synoptic diagram of statistical information tree of the present invention;
Fig. 4 is the synoptic diagram that the present invention's one application example shows with List View;
Fig. 5 is the synoptic diagram that the present invention's one application example shows with icon view;
Fig. 6 is the synoptic diagram of the display device of one embodiment of the invention.
Embodiment
By specifying technology contents of the present invention, structural attitude, realized purpose and effect, give explanation below in conjunction with embodiment and conjunction with figs. are detailed.
See also Fig. 1, the present invention provides a kind of catalogue and file display packing based on the linux system, comprises step:
S101: obtain all catalogues and the attribute information of file in the file system, and set up the statistical information tree according to the bibliographic structure in the current file system.This statistical information tree includes the attribute information of the All Files in the current file system, and the attribute information of file comprises filename, file size, modification time or the like.For file system; Its file that comprises comprises file and is located immediately at the single file under the file system root directory; And also possibly comprise file and the sub-folder that is arranged in this document folder in the file; Certainly can comprise file and file again in the sub-folder, from seeing in logic, be that root is a tree structure with the file system.In this step; A kind of concrete implementation is: begin from the root directory of file system; All Files according under bibliographic structure recurrence traversal root directory and the sub-directory obtains corresponding file attribute information, sets up the statistical information tree that is tree structure in logic.Wherein, In ergodic process, be base unit with single file, except that the attribute information that obtains this document folder, also need continue to obtain the fileinfo that comprises in the file when even file is file; If file is single file, the attribute information that then obtains this single file gets final product.
S102: according to said statistical information tree, the performance view of selecting according to the user presents fileinfo by corresponding browse view.The user can select or menu selection or shortcut selection through mouse; Browse view is the demonstration view that the linux system terminal can be supported; Can be tree view, icon view (as shown in Figure 5), List View (as shown in Figure 4) etc., concrete view type can be according to the different terminal software and hardware resources and different the setting.
Catalogue of the present invention and file display packing are set up the statistical information tree according to the catalogue framework of file system, have comprised All Files information in the file system in this statistical information tree; Fileinfo is appeared visually; Then, present fileinfo, and the statistical information tree is set up with the catalogue framework of file system with corresponding browse view again according to user's selection; Safeguarded the logical level of file, can show by TOC level.Through display packing of the present invention, file is appeared by TOC level visually, in the time of need operating file, need not remember specific order, mode of operation is directly perceived, and is difficult for taking place the phenomenon of maloperation.
According to the method for the invention, can make display file visually on the terminal device that has adopted linux operating system, and the directory hierarchy of ability maintenance documentation, the unit affinity under display effect and the windows operating system, user friendly operation.Because the implementation method of windows is not disclosed, precedent of also not increasing income and disclosed scheme can be applied to corresponding implementation method in the windows system in the linux operating system.Because the linux system is low than the windows system to the requirement of hardware, linux system committed memory and storage space are all very little, are applicable to most embedded devices, thereby method of the present invention especially has superiority in the embedded Linux system terminal.
Consult Fig. 2, the present invention also provides a kind of catalogue and file display packing based on the linux system of optimization, and itself and above-mentioned catalogue and the difference of file display packing are, also comprise the step parallel with said method step S101:
S201: the real-time change of monitoring file system, and upgrade the statistics inforamtion tree.
Through this method, can be so that the content of current view can better reflect the content of current file system.Step S201 and step S101 are parallel, and in fact, step S201 can think a background thread, and the variation of file system is monitored in step S201 isolated operation in real time, when file system changes, upgrade the statistics inforamtion tree.And,, present to the corresponding variation that demonstrates file of users'interfaces if the statistical information tree changes to step S102.
Wherein, the real-time change of above-mentioned mentioned file system comprises increase, modification and the deletion of file, and said here certainly file both can be that single file also can be a file.The increase of file, modification and deletion can realize through duplicating operations such as stickup, shearing, deletion, editor; The mode that can use keyboard shortcut and mouse to pull is handled file; Experience that the user uses and the file browser of windows are similar; Easy to operate, the general user can grasp like a cork.
Below specify with an application example.
If need to show the structure of file system as shown in Figure 4, as an example, in this document system, comprise NST file, PATH file and NeoGrub file under the root directory, and comprise Item1 and two files of Item2 in the NST file.
According to step S101, at first to obtain the information of file system, begin visit from root directory earlier; Obtain the fileinfo under the root directory, the title of NST item for example, the modification date of NST item; The type of NST item, NST item size etc., PATH item and NeoGrub item need obtain corresponding information equally; In addition,, then need continue item under the recurrence traverse folder, obtain the information of item accordingly, obtain the corresponding information of Item1 and Item2 under the NST item like this because the type of NST item and PATH item is a file.Finally, logically resulting information has just formed a tree structure, and is as shown in Figure 3.
According to step S102, according to the performance view that the active user selects, like icon view, List View etc. present different browse view to the user.Fig. 4 and Fig. 5 have represented the effect of List View and icon view respectively; In these two kinds of view effects of Fig. 4 and Fig. 5, the son file under the file is not listed, but in actual use; Can also file further be launched to show, show with tabulation or tree view.
In addition, in file system, newly added file or reduced file, need embody at once on the user interface, background thread that Here it is is the effect of step S201.Such as having increased a file as the user through the USB flash disk copy, background thread monitors this and changes, and just adds the fileinfo that newly adds to file system statistical information tree, and the statistical information tree is the new fileinfo that adds of notice interface display further.The step of the operation of deletion and revised file and interpolation file is similar.
Method of the present invention is applicable to the file type that can directly on the terminal of adopting the linux system, show; As long as file may be displayed on the terminal; Can in the statistical information tree, comprise the information of this document, and this document can be shown by corresponding performance view on terminal interface.
Consult Fig. 6, show a kind of catalogue and document display apparatus, comprising based on the linux system:
Processing unit 101: be used for obtaining all catalogues of file system and the attribute information of file, and set up the statistical information tree according to the bibliographic structure in the current file system;
Display unit 102: be used for according to said statistical information tree, the performance view of selecting according to the user presents fileinfo by corresponding browse view.
According to this display device, the terminal file based on the linux system is appeared visually, conveniently file is operated.
Preferably, this catalogue and document display apparatus also comprise monitoring unit 201, are used to monitor the real-time change of file system, and upgrade the statistics inforamtion tree.Can reflect the content of current file system in real time with this.
Each unit in catalogue and the document display apparatus is provided with corresponding to above-mentioned catalogue and file display packing, and the function of each unit and implementation thereof with reference to above-mentioned narration to catalogue and file display packing, are repeated no more here.
The above is merely embodiments of the invention; Be not so limit claim of the present invention; Every equivalent structure or equivalent flow process conversion that utilizes instructions of the present invention and accompanying drawing content to be done; Or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.

Claims (6)

1. catalogue and file display packing based on a linux system is characterized in that, comprise step:
S101: obtain all catalogues and the attribute information of file in the file system, and set up the statistical information tree according to the bibliographic structure in the current file system;
S102: according to said statistical information tree, the performance view of selecting according to the user presents fileinfo by corresponding browse view.
2. catalogue and file display packing based on the linux system according to claim 1 is characterized in that: also comprise the step parallel with step S101:
S201: the real-time change of monitoring file system, and upgrade the statistics inforamtion tree.
3. catalogue and document display mode based on the linux system according to claim 2 is characterized in that: the real-time change of step S201 file system file comprises increase, modification and the deletion of file.
4. according to claim 1-3 each described catalogue and file display packing based on the linux system; It is characterized in that: step S101 is specially: begin from the root directory of file system; According to the All Files under bibliographic structure recurrence traversal root directory and the sub-directory; Obtain corresponding file attribute information, set up the statistical information tree that is tree structure in logic.
5. catalogue and document display apparatus based on a linux system is characterized in that, comprising:
Processing unit: be used for obtaining all catalogues of file system and the attribute information of file, and set up the statistical information tree according to the bibliographic structure in the current file system;
Display unit: be used for according to said statistical information tree, the performance view of selecting according to the user presents fileinfo by corresponding browse view.
6. catalogue and document display apparatus based on the linux system according to claim 5 is characterized in that: also comprise:
Monitoring unit: be used to monitor the real-time change of file system, and upgrade the statistics inforamtion tree.
CN2012100634760A 2012-03-12 2012-03-12 Linux system-based display method and device for directories and files Pending CN102622442A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012100634760A CN102622442A (en) 2012-03-12 2012-03-12 Linux system-based display method and device for directories and files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012100634760A CN102622442A (en) 2012-03-12 2012-03-12 Linux system-based display method and device for directories and files

Publications (1)

Publication Number Publication Date
CN102622442A true CN102622442A (en) 2012-08-01

Family

ID=46562361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012100634760A Pending CN102622442A (en) 2012-03-12 2012-03-12 Linux system-based display method and device for directories and files

Country Status (1)

Country Link
CN (1) CN102622442A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929980A (en) * 2012-10-17 2013-02-13 广东欧珀移动通信有限公司 Folder cleaning method and device
CN103810235A (en) * 2012-11-14 2014-05-21 佳能株式会社 Information processing apparatus, method for controlling the same, and storage medium therefor
CN104598363A (en) * 2015-01-27 2015-05-06 北京奇虎科技有限公司 Method and device for monitoring attribute parameters of memory file
CN105183872A (en) * 2015-09-17 2015-12-23 西安未来国际信息股份有限公司 Method for managing multiple types of directory files in visualized mode
CN105808770A (en) * 2016-03-22 2016-07-27 北京北方微电子基地设备工艺研究中心有限责任公司 File management method and device
CN106446233A (en) * 2016-10-10 2017-02-22 郑州云海信息技术有限公司 Web-based Linux file management method and device
CN107515705A (en) * 2017-08-22 2017-12-26 四川长虹电器股份有限公司 The icon display method of linux system multimedia file folder
CN107748758A (en) * 2017-09-21 2018-03-02 广州视源电子科技股份有限公司 File information display method and system, readable storage medium and computer equipment
CN108628915A (en) * 2017-07-26 2018-10-09 北京视联动力国际信息技术有限公司 A kind of record queries method and device
CN111723049A (en) * 2019-03-19 2020-09-29 北京奇虎科技有限公司 File directory updating method and device
CN113377836A (en) * 2017-11-01 2021-09-10 斯沃尔德斯股份有限公司 Method and apparatus for efficiently implementing a fast-replicating database

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050091667A1 (en) * 2003-10-23 2005-04-28 Mckee Timothy P. System and a method for presenting items to a user with a contextual presentation
CN101075264A (en) * 2007-07-20 2007-11-21 中国建设银行股份有限公司 Method and device for displaying UNIX/LINUX character terminal file

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050091667A1 (en) * 2003-10-23 2005-04-28 Mckee Timothy P. System and a method for presenting items to a user with a contextual presentation
CN101075264A (en) * 2007-07-20 2007-11-21 中国建设银行股份有限公司 Method and device for displaying UNIX/LINUX character terminal file

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
马强,赵军伟,李宏穆: "基于Linux嵌入式操作***的图形化界面的实现", 《电子质量》, 30 April 2011 (2011-04-30) *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929980A (en) * 2012-10-17 2013-02-13 广东欧珀移动通信有限公司 Folder cleaning method and device
US10127241B2 (en) 2012-11-14 2018-11-13 Canon Kabushiki Kaisha Information processing apparatus, method for controlling the same, and storage medium therefor
CN103810235A (en) * 2012-11-14 2014-05-21 佳能株式会社 Information processing apparatus, method for controlling the same, and storage medium therefor
CN103810235B (en) * 2012-11-14 2017-05-31 佳能株式会社 Information processor and its control method
CN104598363A (en) * 2015-01-27 2015-05-06 北京奇虎科技有限公司 Method and device for monitoring attribute parameters of memory file
CN104598363B (en) * 2015-01-27 2016-10-12 北京奇虎科技有限公司 The method and apparatus of monitoring memory file property parameters
CN105183872A (en) * 2015-09-17 2015-12-23 西安未来国际信息股份有限公司 Method for managing multiple types of directory files in visualized mode
CN105183872B (en) * 2015-09-17 2019-08-09 西安未来国际信息股份有限公司 A kind of method of visualized management multiple types catalogue file
CN105808770A (en) * 2016-03-22 2016-07-27 北京北方微电子基地设备工艺研究中心有限责任公司 File management method and device
CN106446233A (en) * 2016-10-10 2017-02-22 郑州云海信息技术有限公司 Web-based Linux file management method and device
CN108628915A (en) * 2017-07-26 2018-10-09 北京视联动力国际信息技术有限公司 A kind of record queries method and device
CN107515705A (en) * 2017-08-22 2017-12-26 四川长虹电器股份有限公司 The icon display method of linux system multimedia file folder
CN107748758A (en) * 2017-09-21 2018-03-02 广州视源电子科技股份有限公司 File information display method and system, readable storage medium and computer equipment
CN113377836A (en) * 2017-11-01 2021-09-10 斯沃尔德斯股份有限公司 Method and apparatus for efficiently implementing a fast-replicating database
CN113377836B (en) * 2017-11-01 2024-04-30 海德拉哈希图有限责任公司 Method and device for efficiently implementing a rapidly reproducible database
CN111723049A (en) * 2019-03-19 2020-09-29 北京奇虎科技有限公司 File directory updating method and device

Similar Documents

Publication Publication Date Title
CN102622442A (en) Linux system-based display method and device for directories and files
US20200218693A1 (en) Data storage system for analysis of data across heterogeneous information management systems
US10684748B2 (en) User interface controls for specifying data hierarchies
US10482161B2 (en) Generating and displaying active reports
CA2795183C (en) Temporary formatting and charting of selected data
WO2017032005A1 (en) Operation menu display method and terminal
US9442618B2 (en) Mobile device interface generator
US20090150823A1 (en) Apparatus and Method for Improved Window Management in a Grid Management System
US20140109043A1 (en) Displaying different hierarchy levels of computer program source code
CN102736903A (en) Method and device for managing widgets based on intelligent terminal desktop
WO2015158165A1 (en) Relay protection constant value visualization method
US20120066257A1 (en) Document management system, search designation method, and storage medium
CN104615602A (en) Automatic generation device and method thereof for query interface
US8312105B2 (en) Natural ordering in a graphical user interface
US9513794B2 (en) Event visualization and control
CN102663070B (en) Method and system for supporting browser application
WO2014036073A2 (en) Method and apparatus for browsing large data network topology trees
CN104009866A (en) WEB network management system modularization implementing method and device based on RIA
KR101589969B1 (en) File management method and system of network structure
US9547431B2 (en) Consuming data on a touchscreen device
US9384251B2 (en) Synchronization of off-line reports and off-line mobile content packages
JP6013957B2 (en) File management method and file management system
CN104903852A (en) Project data creation device
US9710477B2 (en) Method for file system management and associated data structure
JP6847498B2 (en) Configuration information display system, method, and program that displays configuration information about remote resources

Legal Events

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

Application publication date: 20120801