CN114880289A - File grouping display method and computing device - Google Patents

File grouping display method and computing device Download PDF

Info

Publication number
CN114880289A
CN114880289A CN202210395474.5A CN202210395474A CN114880289A CN 114880289 A CN114880289 A CN 114880289A CN 202210395474 A CN202210395474 A CN 202210395474A CN 114880289 A CN114880289 A CN 114880289A
Authority
CN
China
Prior art keywords
file
software
files
information
group
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
CN202210395474.5A
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.)
Uniontech Software Technology Co Ltd
Original Assignee
Uniontech Software Technology 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 Uniontech Software Technology Co Ltd filed Critical Uniontech Software Technology Co Ltd
Priority to CN202210395474.5A priority Critical patent/CN114880289A/en
Publication of CN114880289A publication Critical patent/CN114880289A/en
Pending legal-status Critical Current

Links

Images

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/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • 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/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The invention discloses a file grouping display method and computing equipment, and relates to the technical field of file management. The method is executed in a file manager of a computing device, and comprises the following steps: receiving an access request to a target directory; determining one or more software associated with a plurality of files under the target directory; grouping a plurality of files under a target directory based on one or more software associated with the plurality of files to form one or more file groups, each file group corresponding to one software and including file information of one or more files associated with the software; displaying the one or more file groups on a display interface of a file manager. According to the technical scheme of the invention, the files can be displayed in groups based on the software type associated with the files, so that a user can conveniently view the software which is used recently and one or more files which are edited by the software.

Description

File grouping display method and computing device
Technical Field
The invention relates to the technical field of file management, in particular to a file grouping display method and computing equipment.
Background
Currently, the "recently accessed" directory in the mainstream file manager lists the files that the user has recently used, and the user can quickly view the last edited files through the directory. In addition, most applications also support the ability to browse recently accessed files. However, the existing file manager does not support the software-based classified browsing of file information in the "recently accessed" directory, and the user cannot intuitively see which software has been used recently and which files have been edited by the software in the recently accessed directory.
For this reason, a file group display method is required to solve the problems in the above-described schemes.
Disclosure of Invention
To this end, the present invention provides a file group display method to solve or at least alleviate the above existing problems.
According to one aspect of the present invention, there is provided a file grouping display method, executed in a file manager of a computing device, comprising the steps of: receiving an access request to a target directory; determining one or more software associated with a plurality of files under the target directory; grouping a plurality of files under a target directory based on one or more software associated with the plurality of files to form one or more file groups, each file group corresponding to one software and including file information of one or more files associated with the software; displaying the one or more file groups on a display interface of a file manager.
Optionally, in the file group display method according to the present invention, the step of displaying one or more file groups on a display interface of the file manager includes: for each file group, determining a weight value of the file group based on the number of files contained in the file group and the access time of the files; and displaying the one or more file groups on a display interface of the file manager according to the sequence of the weighted values from large to small.
Optionally, in the method for displaying a file group according to the present invention, the step of determining a weight value of the file group based on the number of files included in the file group and the access time of the file includes: determining the access time of the file which is accessed recently in the file group, and calculating the time interval between the access time and the current time; determining a weight value for the set of files based on the time interval and the number of files contained in the set of files.
Optionally, in the file group display method according to the present invention, the formula for determining the weight value of the file group based on the time interval and the number of files contained in the file group is:
Figure BDA0003597185140000021
wherein S represents a weight value of the file group, N represents the number of files included in the file group, and w (j) represents a time interval.
Optionally, in the file grouping display method according to the present invention, the step of determining one or more software associated with the plurality of files under the target directory includes: and acquiring the file type of each file in the target directory, and reading the software information associated with each file type from the configuration file.
Optionally, in the file grouping display method according to the present invention, the step of grouping the plurality of files under the target directory based on one or more software associated with the plurality of files to form one or more file groups includes: creating a container corresponding to each file type, and writing software information related to the file types into the container; traversing a file information list corresponding to the target directory, and writing file information into a corresponding container based on the file type of each file; and obtaining a corresponding file group based on the software information and the file information in each container.
Optionally, in the file group display method according to the present invention, the step of displaying one or more file groups on a display interface of the file manager includes: generating a corresponding file group list based on each file group; displaying one or more file group lists on a display interface of the file manager; wherein each file group list comprises software information items and one or more file information items associated with the software.
Optionally, in the file grouping display method according to the present invention, the step of generating a corresponding file group list based on each file group includes: for each file group, acquiring software information corresponding to the file group, and acquiring a corresponding desktop file from a system directory based on the software information; acquiring an icon and a software name of the software from the desktop file; generating software information items based on the icons and the software names of the software, and generating corresponding file information items based on each file information in the file group; a file group list is generated based on the software information entries and each file information entry.
Optionally, in the file grouping display method according to the present invention, the target directory includes a most recently accessed directory; the file information comprises one or more of file name, modification time, file size and file type.
According to an aspect of the invention, there is provided a computing device comprising: at least one processor; a memory storing program instructions configured to be executed by the at least one processor, the program instructions including instructions for performing the file group display method as described above.
According to an aspect of the present invention, there is provided a readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to execute the file group display method as described above.
According to the technical scheme of the invention, the file grouping display method is provided, wherein files are grouped based on file associated software by determining the file associated software, each file group formed by grouping corresponds to one software, and thus, when a user accesses a target directory (for example, a directory accessed recently), the file group corresponding to each software is finally displayed in a file view. In this way, it is convenient for the user to view the most recently used software, as well as one or more files that have been edited by the software.
Further, a file group list corresponding to each file group is generated, each file group list is arranged in a file view of the display interface, and software information items in the file list comprise software icons and software names, so that the grouping display effect of the files based on the software is more visual.
In addition, two factors of file access time and file number are considered when the weight value of each software group is calculated, so that the display sequence of each file group is more reasonable.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 shows a schematic diagram of a computing device 100, according to one embodiment of the invention;
FIGS. 2 and 3 respectively illustrate a flow chart of a file grouping display method 200 according to an embodiment of the invention;
FIG. 4 illustrates an effect diagram of the display interface 155 of the file manager according to one embodiment of the invention;
FIG. 5 shows a schematic diagram of a container storage structure according to one embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The invention provides a file grouping display method suitable for being executed in a computing device, which can realize grouping display of files based on the associated software types of the files so as to facilitate a user to view the software which is used recently and one or more files which are edited by the software.
FIG. 1 shows a block diagram of the physical components (i.e., hardware) of a computing device 100. In a basic configuration, computing device 100 includes at least one processing unit 102 and system memory 104. According to one aspect, the processing unit 102 may be implemented as a processor depending on the configuration and type of computing device. The system memory 104 includes, but is not limited to, volatile storage (e.g., random access memory), non-volatile storage (e.g., read-only memory), flash memory, or any combination of such memories. According to one aspect, operating system 105 is included in system memory 104, with file manager 150 running in operating system 105, and file manager 150 is configured to perform file group display method 200 of the present invention.
According to one aspect, the operating system 105 is, for example, adapted to control the operation of the computing device 100. Further, the examples are practiced in conjunction with a graphics library, other operating systems, or any other application program, and are not limited to any particular application or system. This basic configuration is illustrated in fig. 1 by those components within dashed line 108. According to one aspect, the computing device 100 has additional features or functionality. For example, according to one aspect, computing device 100 includes additional data storage devices (removable and/or non-removable) such as, for example, magnetic disks, optical disks, or tape. Such additional storage is illustrated in FIG. 1 by removable storage device 109 and non-removable storage device 110.
As stated hereinabove, according to one aspect, program modules are stored in the system memory 104. According to one aspect, the program modules may include one or more applications, the invention not being limited to the type of application, for example, the applications may include: email and contacts applications, word processing applications, spreadsheet applications, database applications, slide show applications, drawing or computer-aided applications, web browser applications, and the like.
According to one aspect, examples may be practiced in a circuit comprising discrete electronic elements, a packaged or integrated electronic chip containing logic gates, a circuit utilizing a microprocessor, or on a single chip containing electronic elements or microprocessors. For example, an example may be practiced via a system on a chip (SOC) in which each or many of the components shown in fig. 1 may be integrated on a single integrated circuit. According to one aspect, such SOC devices may include one or more processing units, graphics units, communication units, system virtualization units, and various application functions, all integrated (or "burned") onto a chip substrate as a single integrated circuit. When operating via an SOC, the functionality described herein may be operated via application-specific logic integrated with other components of the computing device 100 on the single integrated circuit (chip). Embodiments of the invention may also be practiced using other technologies capable of performing logical operations (e.g., AND, OR, AND NOT), including but NOT limited to mechanical, optical, fluidic, AND quantum technologies. In addition, embodiments of the invention may be practiced within a general purpose computer or in any other circuits or systems.
According to one aspect, computing device 100 may also have one or more input devices 112, such as a keyboard, mouse, pen, voice input device, touch input device, or the like. Output device(s) 114 such as a display, speakers, printer, etc. may also be included. The foregoing devices are examples and other devices may also be used. Computing device 100 may include one or more communication connections 116 that allow communication with other computing devices 118. Examples of suitable communication connections 116 include, but are not limited to: RF transmitter, receiver and/or transceiver circuitry; universal Serial Bus (USB), parallel, and/or serial ports.
The term computer readable media as used herein includes computer storage media. Computer storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, or program modules. System memory 104, removable storage 109, and non-removable storage 110 are all examples of computer storage media (i.e., memory storage). Computer storage media may include Random Access Memory (RAM), read-only memory (ROM), electrically erasable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other article of manufacture that can be used to store information and that can be accessed by the computer device 100. In accordance with one aspect, any such computer storage media may be part of computing device 100. Computer storage media does not include a carrier wave or other propagated data signal.
According to one aspect, communication media is embodied by computer readable instructions, data structures, program modules, or other data in a modulated data signal (e.g., a carrier wave or other transport mechanism) and includes any information delivery media. According to one aspect, the term "modulated data signal" describes a signal that has one or more feature sets or that has been altered in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, Radio Frequency (RF), infrared, and other wireless media.
In one embodiment of the invention, computing device 100 includes one or more processors and one or more readable storage media storing program instructions. The program instructions, when configured to be executed by one or more processors, cause a computing device to perform a file grouping display method in an embodiment of the invention.
Fig. 2 and fig. 3 respectively show a flowchart of a file grouping display method 200 according to an embodiment of the present invention. The method 200 is suitable for execution in a computing device (the aforementioned computing device 100).
In an embodiment in accordance with the invention, an operating system is running in the computing device 100, and a file manager 150 is running in the operating system. The method 200 is suitable for execution in the file manager 150.
The file manager 150 includes a corresponding display interface 155. FIG. 4 illustrates an effect diagram of the display interface 155 of the file manager according to one embodiment of the invention. As shown in fig. 4, a file view 152 for displaying file information, a directory listing area 153 for displaying one or more file directories, may be included on the display interface 155. The directory list area 153 includes a plurality of directories (i.e., interfaces of directories), including a "most recently accessed" directory.
As shown in fig. 2 and 3, the method 200 begins at step S210.
In step S210, a user access request to the target directory is received.
Here, the target directory may be implemented as an arbitrary directory in the file manager, for example, may be implemented as a recently accessed directory. Multiple files may be included under the target directory.
Subsequently, in step S220, one or more software associated with the plurality of files under the target directory is determined. Here, the plurality of files covers all the files under the target directory.
It is understood that the software associated with each file in the target directory may be the same type of software or different types of software, so that one or more types of software may be associated with a plurality of files in the target directory.
It should be noted that the software associated with the file is software adapted to access the file. The software may include various types of software, including, for example, text editors, picture viewers, and the like. The text-based editor may access the text file and the picture-based browser may access the picture file. In other words, the software associated with one or more text files of the text file type under the target directory may be a text editor, and the software associated with one or more picture files of the picture file type under the target directory may be a picture viewer. That is, each file type may be associated with a piece of software upon which files of the corresponding file type may be accessed.
In one embodiment, as shown in fig. 3, the software type associated with each file type in the target directory can be determined by obtaining the file type of each file in the target directory and reading the software information associated with each file type from the configuration file in the system directory, so as to determine one or more types of software associated with a plurality of files in the target directory. Subsequently, the file type and associated software information for each file may be written into a predetermined container T. Here, the configuration file is, for example,/. config/mimeapps.list.
It should be noted that the file types include, for example, a text file type, a picture file type, a video file type, and the like, and each file type may be associated with a piece of software. For example, the software associated with a text file type may be a text editor, the software associated with a picture file type may be a picture viewer, and the software associated with a video file type may be a video player.
In addition, each file type may further include a plurality of file format types, for example, a text file type may include file format types such as doc, txt, md, inf, ini, etc., a picture file type may include file format types such as JPG, PNG, GIF, TIF, etc., and a video file type may include file format types such as MPEG4, MKV, etc. It should be noted that multiple files belonging to different file format types within the same file type may be associated with the same software corresponding to the file type.
The file type may be determined according to the attribute of the file, mimetap. In one implementation, the file type may be obtained by a system function or by calling a "mimetypee [ file ]", "file [ file ] - -mime-type" command.
Subsequently, in step S230, the plurality of files under the target directory are grouped based on the one or more software associated with the plurality of files under the target directory to form one or more file groups. Here, each file group corresponds to one type of software, and the file group includes file information of one or more files (belonging to the same file type as the one associated with the software) associated with the software. The file information may include information on a file name, a modification time, a file size, a file type, and the like.
In one embodiment, when grouping a plurality of files under a target directory based on one or more software associated with the plurality of files under the target directory, for the one or more software associated with the plurality of files under the target directory, one container corresponding to each software may be created, one file group corresponding to each container. Specifically, the following method can be used.
As shown in fig. 3, first, based on each software associated with each file type, a container corresponding to each file type is created (that is, a container corresponding to the software associated with each file type is created), and the software information associated with the file type is written in the container. For example, containers C1 to Cn corresponding to a plurality of file types, respectively, may be created. Here, fig. 5 shows a schematic view of a container storage structure according to an embodiment of the present invention. As shown in fig. 5, the left list in the container stores corresponding software information, where the software information includes, for example, a software name, and specifically, the software name may be an english software name, such as deep-editor (text editor) and google-chrome (google browser).
Then, a file information list corresponding to the target directory may be obtained, and file information is written into a corresponding container based on the file type of each file by traversing the file information list corresponding to the target directory. Here, the file information list is an original file information list corresponding to the target directory, the file information list includes file information of each file under the target directory, and for each file information traversed, the file information is written into a corresponding container based on a file type in the file information. As shown in fig. 5, file information of a plurality of files is stored in the right list in the container. Here, the file information may include information such as a file name, modification time, file size, file type, and the like, for example.
Finally, a corresponding set of files may be derived based on the software information and file information in each container.
In one implementation, creating containers C1-Cn corresponding to each file type respectively and writing file information into the corresponding containers based on the file type of each file may be accomplished as follows. Here, as described above, the predetermined container T stores therein the file type and associated software information of each file under the target directory.
The first step is as follows: in the first traversal of the file information list, the file type (MimeTape) of the traversed file is compared with the file types stored in the predetermined container T, and if the file type is the same as one of the file types in the predetermined container, a first container C1 is created based on the file type of the traversed file, and the file information of the file is written in the container C1. Otherwise, the traversal continues. Here, container C1 corresponds to a file type and accordingly container C1 corresponds to software associated with a file type.
The second step is that: in the next traversal of the file information list, it is first determined whether the file type (MimeTape) of the file being traversed is the same as the file type in the container C1 that has been created, and if so, the file information of the file is written in the container C1. If not, executing the same steps as the first traversal of the file information list: the file type of the traversed file is compared with the file types stored in the predetermined container T, and if the file type is the same as one of the file types in the predetermined container, a second container C2 is created based on the file type of the traversed file, and the file information of the file is written in the container C2. Otherwise, the traversal continues. Here, container C2 corresponds to another file type and accordingly container C2 corresponds to software associated with another file type.
By analogy, finally, the creation of containers C1 to Cn corresponding to each file type under the target directory can be realized, and the file information is written into the corresponding container based on the file type of each file.
Finally, in step S240, the one or more file groups formed by grouping are displayed on the display interface of the file manager. Here, specifically, one or more file groups may be displayed in the file view of the display interface, that is, one or more file groups formed by grouping the plurality of files in the target directory based on the file association software are displayed in the file view of the display interface, so that the grouping display of the plurality of files based on the file association software is realized.
It is understood that in each file group displayed in the file view, file information of one or more files associated with the software corresponding to the file group is contained.
In one implementation, the target directory may be implemented as a recently accessed directory. When the user requests to access the recently accessed directory, one or more file groups formed by grouping all the files in the recently accessed directory based on the file association software can be finally displayed in the file view of the display interface by executing the steps S220 to S240.
In one implementation, as shown in fig. 4, the user may click on the target directory in the directory list area of the display interface to request access to the target directory. When receiving a click operation of a user on a target directory (e.g., a recently accessed directory) in the directory list area, the file manager reads each file in the target directory in response to the click operation, and performs the above steps S220 to S240.
According to an embodiment of the present invention, when one or more file groups are displayed on the display interface of the file manager, the order of the one or more file groups may be determined according to the priority of each file group. And the priority level of the file group can be determined by calculating the weight value of the file group. That is, the higher the weight value of the file group is, the higher the priority is, and the more forward the display position of the file group is.
Specifically, as shown in fig. 3, for each file group, the weight value of the file group may be determined based on the number of files contained in the file group and the access time of the files in the file group. Here, the access time of a file in the file group refers to the access time of the most recently accessed file in the file group.
And further, displaying one or more file groups in the file view of the display interface of the file manager according to the sequence of the weighted values from large to small.
It should be noted that, for the latest access directory, the closer the access time of the file is to the current time, the earlier the corresponding sorting principle should be. In addition, according to the file group formed by grouping files based on software, the greater the number of files contained in the file group, the higher the frequency of using the software corresponding to the file group by a user, and the closer the ranking of the file group should be.
Considering that the access time of the files, the number of files included in the file group are factors affecting the sorting priority of the file group, the present invention determines the weight value of the file group based on the number of files included in the file group, and the access time of the files in the file group. Further, the access time of the file which is accessed recently in the file group is determined, and the time interval between the access time and the current time is calculated. The weight value of the file group is determined based on the time interval and the number of files contained in the file group.
In one implementation, the weight value of the file group is determined based on the time interval and the number of files contained in the file group, and may be specifically calculated by the following formula.
Figure BDA0003597185140000101
In the above formula, S represents a weight value of the file group, N represents the number of files included in the file group, and w (j) represents a time interval between the access time and the current time, where j is greater than or equal to 0 and less than N. Specifically, the time unit of the time interval w (j) here is days, i.e., w (j) represents the number of days that the access time differs from the current time.
After the weight value of each file group is calculated according to the formula, one or more file groups are displayed in a file view of a display interface of the file manager by comparing the weight values and according to the sequence of the weight values from large to small.
In one embodiment, one or more groups of files may be displayed in a list in a file view of a display interface. Specifically, a respective file group list is generated based on each file group (including corresponding software information, file information for one or more files contained in the file group). One or more file group lists are displayed in a file view of a display interface of the file manager. As shown in fig. 4, each file group list includes software information entries, and one or more file information entries associated with the software corresponding to the file group.
Further, as shown in fig. 3, generating a corresponding file group list based on each file group may be implemented according to the following steps:
first, for each file group, software information corresponding to the file group is acquired. Here, the software information includes a software name (english software name). Subsequently, the corresponding desktop file is acquired from the system directory based on the software information (english software name). Here, the system directory is, for example,/usr/share/applications. For example, the corresponding desktop file "depth-editor. desktop" may be obtained from the system directory/user/share/applications based on the software name "depth-editor". In an implementation manner, the data structure of the desktop file desktop-editor.
[Desktop Entry]
Categories=Utility;TextEditor;
Comment=Simple and easy to use text editor
Exec=deepin-editor%F
Icon=deepin-editor
Name=Text Editor
GenericName=Text Editor
...
Name [ zh _ CN ] ═ text editor
Name [ zh _ HK ] ═ deep text editor
Name [ zh _ TW ] ═ deep text editor
Next, the icon and the software name (chinese software name) of the software are acquired from the desktop file.
Next, software information entries are generated based on the software's icon and software name, and corresponding file information entries are generated based on each file information in the file group.
Finally, a file group list is generated based on the software information entries and each file information entry.
In this way, a file group list corresponding to each file group may be generated and presented in the file view of the display interface based on the weight value of the file group. Moreover, the software information items in the file list comprise software icons and software names, so that the grouping display effect of the files based on the software is more visual.
According to the file grouping display method 200 of the present invention, files are grouped based on file-associated software by determining file-associated software, each file group formed by grouping corresponds to one software, so that when a user accesses a target directory (for example, a directory accessed recently), the file group corresponding to each software is finally displayed in a file view. In this way, it is convenient for the user to view the most recently used software, as well as one or more files that have been edited by the software.
Further, a file group list corresponding to each file group is generated, each file group list is arranged in a file view of the display interface, and software information items in the file list comprise software icons and software names, so that the grouping display effect of the files based on the software is more visual.
In addition, two factors of file access time and file number are considered when the weight value of each software group is calculated, so that the display sequence of each file group is more reasonable.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U.S. disks, floppy disks, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the mobile terminal generally includes a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to execute the file group display method of the present invention according to instructions in the program code stored in the memory.
By way of example, and not limitation, readable media may comprise readable storage media and communication media. Readable storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with examples of this invention. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed in an illustrative rather than a restrictive sense with respect to the scope of the invention, as defined in the appended claims.

Claims (11)

1. A file grouping display method, executed in a file manager of a computing device, comprising the steps of:
receiving an access request to a target directory;
determining one or more software associated with a plurality of files under the target directory;
grouping a plurality of files under a target directory based on one or more software associated with the plurality of files to form one or more file groups, each file group corresponding to one software and including file information of one or more files associated with the software;
displaying the one or more file groups on a display interface of a file manager.
2. The method of claim 1, wherein the step of displaying one or more file groups on a display interface of a file manager comprises:
for each file group, determining a weight value of the file group based on the number of files contained in the file group and the access time of the files;
and displaying the one or more file groups on a display interface of the file manager according to the sequence of the weighted values from large to small.
3. The method of claim 2, wherein determining the weight value of the file group based on the number of files contained in the file group and the access time of the files comprises:
determining the access time of the file which is accessed recently in the file group, and calculating the time interval between the access time and the current time;
determining a weight value for the set of files based on the time interval and the number of files contained in the set of files.
4. The method of claim 3, wherein the formula for determining the weight value for a set of files based on the time interval and the number of files contained in the set of files is:
Figure FDA0003597185130000011
wherein S represents a weight value of the file group, N represents the number of files included in the file group, and w (j) represents a time interval.
5. The method of any of claims 1-4, wherein determining one or more software associated with the plurality of files under the target directory comprises:
and acquiring the file type of each file in the target directory, and reading the software information associated with each file type from the configuration file.
6. The method of claim 5, wherein grouping the plurality of files under the target directory based on the one or more software associated with the plurality of files to form one or more file groups comprises:
creating a container corresponding to each file type, and writing software information related to the file types into the container;
traversing a file information list corresponding to the target directory, and writing file information into a corresponding container based on the file type of each file;
a corresponding set of files is derived based on the software information and file information in each container.
7. The method of any of claims 1-6, wherein displaying one or more file groups on a display interface of a file manager comprises:
generating a corresponding file group list based on each file group;
displaying one or more file group lists on a display interface of the file manager;
wherein each file group list comprises software information items and one or more file information items associated with the software.
8. The method of claim 7, wherein generating a respective file group list based on each file group comprises:
for each file group, acquiring software information corresponding to the file group, and acquiring a corresponding desktop file from a system directory based on the software information;
acquiring an icon and a software name of the software from the desktop file;
generating software information items based on the icons and the software names of the software, and generating corresponding file information items based on each file information in the file group;
a file group list is generated based on the software information entries and each file information entry.
9. The method of any one of claims 1-8,
the target directory comprises a most recently accessed directory;
the file information comprises one or more of file name, modification time, file size and file type.
10. A computing device, comprising:
at least one processor; and
a memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the method of any of claims 1-9.
11. A readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the method of any of claims 1-9.
CN202210395474.5A 2022-04-14 2022-04-14 File grouping display method and computing device Pending CN114880289A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210395474.5A CN114880289A (en) 2022-04-14 2022-04-14 File grouping display method and computing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210395474.5A CN114880289A (en) 2022-04-14 2022-04-14 File grouping display method and computing device

Publications (1)

Publication Number Publication Date
CN114880289A true CN114880289A (en) 2022-08-09

Family

ID=82670665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210395474.5A Pending CN114880289A (en) 2022-04-14 2022-04-14 File grouping display method and computing device

Country Status (1)

Country Link
CN (1) CN114880289A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116775419A (en) * 2023-08-28 2023-09-19 荣耀终端有限公司 File system monitoring method and device
CN116841959A (en) * 2023-09-01 2023-10-03 统信软件技术有限公司 Method for accessing file directory in application, computing device and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116775419A (en) * 2023-08-28 2023-09-19 荣耀终端有限公司 File system monitoring method and device
CN116775419B (en) * 2023-08-28 2023-12-05 荣耀终端有限公司 File system monitoring method and device
CN116841959A (en) * 2023-09-01 2023-10-03 统信软件技术有限公司 Method for accessing file directory in application, computing device and storage medium

Similar Documents

Publication Publication Date Title
JP5216845B2 (en) Technology for sharing information between application programs
US20110113365A1 (en) Scrolling large data sets
US8126859B2 (en) Updating a local version of a file based on a rule
EP3260993A1 (en) File operation method and device
CN114880289A (en) File grouping display method and computing device
US20230177009A1 (en) Techniques for handling letter case in file systems
US20140188929A1 (en) Computer-readable storage medium, file management apparatus, and file management method
CN116821437B (en) Data processing method, device, electronic equipment and storage medium
CN112580315A (en) Webpage table display method and device, terminal equipment and medium
CN110352410B (en) Tracking access patterns of index nodes and pre-fetching index nodes
WO2010144374A2 (en) Software extension analysis
JP3731859B2 (en) Method and apparatus for data storage and retrieval of handheld devices
CN111694992A (en) Data processing method and device
US20090313287A1 (en) Identifying objects within a multidimensional array
US10073852B2 (en) Computer-readable storage medium, file management apparatus, and file management method
CN114816772B (en) Debugging method, debugging system and computing device for application running based on compatible layer
WO2021042542A1 (en) Table of contents storage method and apparatus, computer device and storage medium
CN116560748A (en) Page loading method, device, computing equipment and storage medium
WO2021174232A2 (en) Constraint set merge and subtraction
CN116894007B (en) Catalog information display method, device, computing equipment and storage medium
CN115061954B (en) Missing page interrupt processing method, computing device and storage medium
CN115185426B (en) Data processing method and device for tree control and computing equipment
CN115617771A (en) Distributed file system and data processing method
CN114880286A (en) Device access method and device, computing device and readable storage medium
US20150178223A1 (en) Information Processing Technique to Manage Security Attributes of Data Generated in Different Modes

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination