技术领域Technical field
本申请涉及计算机技术领域,特别是涉及一种目录分离方法、装置、计算机设备、存储介质和计算机程序产品。The present application relates to the field of computer technology, and in particular to a directory separation method, device, computer equipment, storage medium and computer program product.
背景技术Background technique
随着计算机技术的发展,出现了一种针对计算机芯片的研发技术,在该过程中,通常会随着时间会产生大量的中间文件。对于用户而言,如果需要逐个查询上述产生的中间文件,以及文件的目录,来实现对中间文件的管理,则通常需要浪费大量的时间和精力。With the development of computer technology, a research and development technology for computer chips has emerged. In this process, a large number of intermediate files are usually generated over time. For users, if they need to query the intermediate files generated above and the directories of the files one by one to manage the intermediate files, it usually takes a lot of time and effort.
传统技术中,对中间文件的管理,用户可以先通过系统命令du来提高管理的效率,然而,系统命令du虽然可以深度遍历的方式列出所有文件及目录,但是如果用户需要从中分离出不同层级的目录,例如表征一级目录的文件、只包含文件的次级目录,以及其他的高层次目录,则需要用户根据得到的du数据来手动判断各条du数据对应的目录层级后,再进行分离与整合。因此,目前从du数据中分离出不同层级目录的方法中,目录分离的处理效率较低。In traditional technology, for the management of intermediate files, users can first use the system command du to improve the management efficiency. However, although the system command du can list all files and directories in a deep traversal manner, if the user needs to separate different levels from them, Directories, such as files representing first-level directories, secondary directories containing only files, and other high-level directories, users need to manually determine the directory level corresponding to each du data based on the obtained du data, and then separate it. and integration. Therefore, in the current methods of separating directories of different levels from du data, the processing efficiency of directory separation is low.
发明内容Contents of the invention
基于此,有必要针对上述技术问题,提供一种能够提高目录分离处理效率的目录分离方法、装置、计算机设备、计算机可读存储介质和计算机程序产品。Based on this, it is necessary to address the above technical problems and provide a directory separation method, device, computer equipment, computer readable storage medium and computer program product that can improve directory separation processing efficiency.
第一方面,本申请提供了一种目录分离方法,包括:In the first aspect, this application provides a directory separation method, including:
获取由待目录分离的du数据组成的当前du数据列表,以及获取所述当前du数据列表中各所述du数据对应的绝对路径信息;所述du数据通过执行用于查看磁盘使用情况的命令后得到;Obtain the current du data list consisting of the du data to be separated by directory, and obtain the absolute path information corresponding to each du data in the current du data list; the du data is obtained by executing a command for viewing disk usage. get;
针对所述当前du数据列表中的任一当前du数据,获取所述当前du数据关联的第一绝对路径信息与第二绝对路径信息之间的路径信息包含关系;其中,所述第一绝对路径信息为所述当前du数据列表中所述当前du数据的上一条du数据对应的绝对路径信息,所述第二绝对路径信息为所述当前du数据对应的绝对路径信息;For any current du data in the current du data list, obtain the path information inclusion relationship between the first absolute path information and the second absolute path information associated with the current du data; wherein, the first absolute path The information is the absolute path information corresponding to the previous du data of the current du data in the current du data list, and the second absolute path information is the absolute path information corresponding to the current du data;
若所述包含关系表征所述第一绝对路径信息中未包含所述第二绝对路径信息,将所述当前du数据写入与所述当前du数据列表对应的第一子du数据列表中;If the inclusion relationship indicates that the first absolute path information does not include the second absolute path information, write the current du data into the first sub-du data list corresponding to the current du data list;
获取所述当前du数据列表对应的目录分离轮次,并在所述目录分离轮次达到与预先设定的分离目录层级相匹配的目标分离轮次的情况下,将所述第一子du数据列表作为与所述分离目录层级相匹配的分离目录列表。Obtain the directory separation round corresponding to the current du data list, and when the directory separation round reaches the target separation round that matches the preset separation directory level, the first sub-du data is List as a list of separate directories matching the separate directory hierarchy.
在其中一个实施例中,所述获取所述当前du数据关联的第一绝对路径信息与第二绝对路径信息之间的路径信息包含关系,包括:获取与所述当前du数据关联的第一指针的第一指针值,并将所述第二绝对路径信息赋值给第二指针;所述第一指针值用于存储所述第一绝对路径信息;根据所述第一指针值与所述第二指针的第二指针值之间的指针值包含关系,得到所述路径信息包含关系。In one embodiment, obtaining the path information containing relationship between the first absolute path information associated with the current du data and the second absolute path information includes: obtaining the first pointer associated with the current du data. the first pointer value, and assigns the second absolute path information to the second pointer; the first pointer value is used to store the first absolute path information; according to the first pointer value and the second The pointer value inclusion relationship between the second pointer values of the pointers is used to obtain the path information inclusion relationship.
在其中一个实施例中,所述得到所述路径信息包含关系之后,还包括:将所述第二指针值赋值给所述第一指针,得到更新后的第一指针;所述更新后的第一指针用于存储所述当前du数据列表中所述当前du数据的下一条du数据关联的第一绝对路径信息。In one embodiment, after obtaining the path information containing relationship, the method further includes: assigning the second pointer value to the first pointer to obtain an updated first pointer; the updated first pointer A pointer is used to store the first absolute path information associated with the next du data of the current du data in the current du data list.
在其中一个实施例中,在所述当前du数据为所述当前du数据列表中的首条du数据的情况下,所述获取与所述当前du数据关联的第一指针的第一指针值之前,还包括:将所述第一指针的第一指针值,与所述第二指针的第二指针值,设置为空值。In one embodiment, when the current du data is the first du data in the current du data list, before obtaining the first pointer value of the first pointer associated with the current du data, , further comprising: setting the first pointer value of the first pointer and the second pointer value of the second pointer to null values.
在其中一个实施例中,所述获取所述当前du数据列表中所述当前du数据的上一条du数据对应的第一绝对路径信息,以及所述当前du数据对应的第二绝对路径信息之间的路径信息包含关系之后,还包括:若所述路径信息包含关系表征所述第一绝对路径信息中包含所述第二绝对路径信息,将所述当前du数据写入与所述当前du数据列表对应的第二子du数据列表中;所述获取所述当前du数据列表对应的目录分离轮次之后,还包括:在所述目录分离轮次未达到所述目标分离轮次的情况下,将所述第二子du数据列表作为新的当前du数据列表,并返回执行获取所述当前du数据列表中各所述du数据对应的绝对路径信息的步骤,直到所述目录分离轮次达到所述目标分离轮次。In one embodiment, the acquisition is between the first absolute path information corresponding to the previous du data of the current du data in the current du data list, and the second absolute path information corresponding to the current du data. After the path information contains the relationship, it also includes: if the path information contains the relationship indicating that the first absolute path information contains the second absolute path information, writing the current du data into the current du data list in the corresponding second sub-du data list; after obtaining the directory separation round corresponding to the current du data list, it also includes: when the directory separation round does not reach the target separation round, The second sub-du data list is used as the new current du data list, and the step of obtaining the absolute path information corresponding to each du data in the current du data list is returned until the directory separation round reaches the Target separation rounds.
在其中一个实施例中,所述获取由待目录分离的du数据组成的当前du数据列表,包括:响应于目标账户发起的用于查看磁盘使用情况的命令,获取对应的du数据,并将所述对应的du数据存入与所述目标账户关联的文本文档中;将所述文本文档读取到内存中,生成与所述文本文档相匹配的du数据列表,作为所述当前du数据列表。In one embodiment, obtaining the current du data list consisting of du data to be separated from the directory includes: in response to a command initiated by the target account for checking disk usage, obtaining the corresponding du data, and storing all the du data. The corresponding du data is stored in a text document associated with the target account; the text document is read into the memory, and a du data list matching the text document is generated as the current du data list.
在其中一个实施例中,所述当前du数据列表中还存储有各所述du数据所表征目录的目录容量;将所述当前du数据写入与所述当前du数据列表对应的第一子du数据列表中,还包括:将所述当前du数据以及所述当前du数据对应的目录容量写入所述第一子du数据列表中;所述将所述第一子du数据列表作为与所述分离目录层级相匹配的分离目录列表之后,还包括:获取所述分离目录列表中包含的各du数据对应的目录容量;根据所述目录容量对所述分离目录列表中包含的各du数据进行排序处理,并将所述分离目录列表中包含的各du数据中,目录容量最大的前预设数量的du数据,存入结果路径文件中;将所述结果路径文件进行可视化展示处理。In one embodiment, the current du data list also stores the directory capacity of the directory represented by each of the du data; the current du data is written into the first sub-du corresponding to the current du data list. The data list also includes: writing the current du data and the directory capacity corresponding to the current du data into the first sub-du data list; and writing the first sub-du data list as the same as the After separating the separated directory list matching the directory level, it also includes: obtaining the directory capacity corresponding to each du data included in the separated directory list; sorting each du data included in the separated directory list according to the directory capacity. Process and store the preset number of du data with the largest directory capacity among the du data included in the separated directory list into the result path file; and perform visual display processing on the result path file.
第二方面,本申请还提供了一种目录分离装置,包括:In a second aspect, this application also provides a directory separation device, including:
du列表获取模块,用于获取由待目录分离的du数据组成的当前du数据列表,以及获取所述当前du数据列表中各所述du数据对应的绝对路径信息;The du list acquisition module is used to obtain the current du data list consisting of the du data to be separated by directory, and obtain the absolute path information corresponding to each du data in the current du data list;
路径包含获取模块,用于针对所述当前du数据列表中的任一当前du数据,获取所述当前du数据关联的第一绝对路径信息与第二绝对路径信息之间的路径信息包含关系;其中,所述第一绝对路径信息为所述当前du数据列表中所述当前du数据的上一条du数据对应的绝对路径信息,所述第二绝对路径信息为所述当前du数据对应的绝对路径信息;The path inclusion acquisition module is configured to acquire, for any current du data in the current du data list, the path information inclusion relationship between the first absolute path information and the second absolute path information associated with the current du data; wherein , the first absolute path information is the absolute path information corresponding to the previous du data of the current du data in the current du data list, and the second absolute path information is the absolute path information corresponding to the current du data. ;
子du列表获取模块,用于若所述包含关系表征所述第一绝对路径信息中未包含所述第二绝对路径信息,将所述当前du数据写入与所述当前du数据列表对应的第一子du数据列表中;A sub-du list acquisition module, configured to write the current du data into the second absolute path information corresponding to the current du data list if the inclusion relationship indicates that the first absolute path information does not include the second absolute path information. A sub-du data list;
分离目录获取模块,用于获取所述当前du数据列表对应的目录分离轮次,并在所述目录分离轮次达到预先设定的分离目录层级的情况下,将所述第一子du数据列表作为与所述分离目录层级相匹配的分离目录列表。The separation directory acquisition module is used to obtain the directory separation round corresponding to the current du data list, and when the directory separation round reaches the preset separation directory level, the first sub-du data list As a list of separate directories matching the separate directory hierarchy.
第三方面,本申请还提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In a third aspect, this application also provides a computer device, including a memory and a processor. The memory stores a computer program. When the processor executes the computer program, it implements the following steps:
获取由待目录分离的du数据组成的当前du数据列表,以及获取所述当前du数据列表中各所述du数据对应的绝对路径信息;Obtain the current du data list consisting of the du data to be separated by directory, and obtain the absolute path information corresponding to each du data in the current du data list;
针对所述当前du数据列表中的任一当前du数据,获取所述当前du数据关联的第一绝对路径信息与第二绝对路径信息之间的路径信息包含关系;其中,所述第一绝对路径信息为所述当前du数据列表中所述当前du数据的上一条du数据对应的绝对路径信息,所述第二绝对路径信息为所述当前du数据对应的绝对路径信息;For any current du data in the current du data list, obtain the path information inclusion relationship between the first absolute path information and the second absolute path information associated with the current du data; wherein, the first absolute path The information is the absolute path information corresponding to the previous du data of the current du data in the current du data list, and the second absolute path information is the absolute path information corresponding to the current du data;
若所述包含关系表征所述第一绝对路径信息中未包含所述第二绝对路径信息,将所述当前du数据写入与所述当前du数据列表对应的第一子du数据列表中;If the inclusion relationship indicates that the first absolute path information does not include the second absolute path information, write the current du data into the first sub-du data list corresponding to the current du data list;
获取所述当前du数据列表对应的目录分离轮次,并在所述目录分离轮次达到预先设定的分离目录层级的情况下,将所述第一子du数据列表作为与所述分离目录层级相匹配的分离目录列表。Obtain the directory separation round corresponding to the current du data list, and when the directory separation round reaches the preset separation directory level, use the first sub-du data list as the separation directory level List of matching detached directories.
第四方面,本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:In a fourth aspect, the application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
获取由待目录分离的du数据组成的当前du数据列表,以及获取所述当前du数据列表中各所述du数据对应的绝对路径信息;Obtain the current du data list consisting of the du data to be separated by directory, and obtain the absolute path information corresponding to each du data in the current du data list;
针对所述当前du数据列表中的任一当前du数据,获取所述当前du数据关联的第一绝对路径信息与第二绝对路径信息之间的路径信息包含关系;其中,所述第一绝对路径信息为所述当前du数据列表中所述当前du数据的上一条du数据对应的绝对路径信息,所述第二绝对路径信息为所述当前du数据对应的绝对路径信息;For any current du data in the current du data list, obtain the path information inclusion relationship between the first absolute path information and the second absolute path information associated with the current du data; wherein, the first absolute path The information is the absolute path information corresponding to the previous du data of the current du data in the current du data list, and the second absolute path information is the absolute path information corresponding to the current du data;
若所述包含关系表征所述第一绝对路径信息中未包含所述第二绝对路径信息,将所述当前du数据写入与所述当前du数据列表对应的第一子du数据列表中;If the inclusion relationship indicates that the first absolute path information does not include the second absolute path information, write the current du data into the first sub-du data list corresponding to the current du data list;
获取所述当前du数据列表对应的目录分离轮次,并在所述目录分离轮次达到预先设定的分离目录层级的情况下,将所述第一子du数据列表作为与所述分离目录层级相匹配的分离目录列表。Obtain the directory separation round corresponding to the current du data list, and when the directory separation round reaches the preset separation directory level, use the first sub-du data list as the separation directory level List of matching detached directories.
第五方面,本申请还提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In a fifth aspect, this application also provides a computer program product, including a computer program that implements the following steps when executed by a processor:
获取由待目录分离的du数据组成的当前du数据列表,以及获取所述当前du数据列表中各所述du数据对应的绝对路径信息;Obtain the current du data list consisting of the du data to be separated by directory, and obtain the absolute path information corresponding to each du data in the current du data list;
针对所述当前du数据列表中的任一当前du数据,获取所述当前du数据关联的第一绝对路径信息与第二绝对路径信息之间的路径信息包含关系;其中,所述第一绝对路径信息为所述当前du数据列表中所述当前du数据的上一条du数据对应的绝对路径信息,所述第二绝对路径信息为所述当前du数据对应的绝对路径信息;For any current du data in the current du data list, obtain the path information inclusion relationship between the first absolute path information and the second absolute path information associated with the current du data; wherein, the first absolute path The information is the absolute path information corresponding to the previous du data of the current du data in the current du data list, and the second absolute path information is the absolute path information corresponding to the current du data;
若所述包含关系表征所述第一绝对路径信息中未包含所述第二绝对路径信息,将所述当前du数据写入与所述当前du数据列表对应的第一子du数据列表中;If the inclusion relationship indicates that the first absolute path information does not include the second absolute path information, write the current du data into the first sub-du data list corresponding to the current du data list;
获取所述当前du数据列表对应的目录分离轮次,并在所述目录分离轮次达到预先设定的分离目录层级的情况下,将所述第一子du数据列表作为与所述分离目录层级相匹配的分离目录列表。Obtain the directory separation round corresponding to the current du data list, and when the directory separation round reaches the preset separation directory level, use the first sub-du data list as the separation directory level List of matching detached directories.
上述目录分离方法、装置、计算机设备、存储介质和计算机程序产品,通过获取由待目录分离的du数据组成的当前du数据列表,以及获取当前du数据列表中各du数据对应的绝对路径信息;du数据通过执行用于查看磁盘使用情况的命令后得到;针对当前du数据列表中的任一当前du数据,获取当前du数据关联的第一绝对路径信息与第二绝对路径信息之间的路径信息包含关系;其中,第一绝对路径信息为当前du数据列表中当前du数据的上一条du数据对应的绝对路径信息,第二绝对路径信息为当前du数据对应的绝对路径信息;若包含关系表征第一绝对路径信息中未包含第二绝对路径信息,将当前du数据写入与当前du数据列表对应的第一子du数据列表中;获取当前du数据列表对应的目录分离轮次,并在目录分离轮次达到与预先设定的分离目录层级相匹配的目标分离轮次的情况下,将第一子du数据列表作为与分离目录层级相匹配的分离目录列表。本申请通过构建由待目录分离的du数据组成的当前du数据列表,并且得到列表各du数据对应的绝对路径信息,从而利用上述绝对路径信息,比对该列表中任意一个当前du数据的绝对路径,与该du数据的上一条du数据对应的绝对路径之间的包含关系,从而可以在上一条du数据对应的绝对路径未包含当前du数据的绝对路径的情况下,将当前du数据写入第一子du数据列表,并在目录分离轮次满足分离目录层级时,将分离出的第一子du数据列表作为分离目录列表,从而实现目录的分离,相比于现有技术通过用户手动分离整合各目录层级的目录列表,本申请可以通过计算机利用绝对路径的包含关系实现目录列表分离,从而可以提高目录分离的处理效率。The above directory separation methods, devices, computer equipment, storage media and computer program products obtain the current du data list composed of the du data to be directory separated, and obtain the absolute path information corresponding to each du data in the current du data list; du The data is obtained by executing a command for checking disk usage; for any current du data in the current du data list, the path information between the first absolute path information and the second absolute path information associated with the current du data is obtained. relationship; among them, the first absolute path information is the absolute path information corresponding to the previous du data of the current du data in the current du data list, and the second absolute path information is the absolute path information corresponding to the current du data; if the relationship is included, it represents the first The absolute path information does not contain the second absolute path information, and the current du data is written into the first sub-du data list corresponding to the current du data list; the directory separation round corresponding to the current du data list is obtained, and in the directory separation round When the target separation round matching the preset separation directory level is reached for the first time, the first sub-du data list is used as the separation directory list matching the separation directory level. This application constructs a current du data list composed of du data to be separated by directory, and obtains the absolute path information corresponding to each du data in the list, thereby using the above absolute path information to compare the absolute path of any current du data in the list. , the inclusion relationship between the absolute path corresponding to the previous du data of the du data, so that the current du data can be written to the first du data when the absolute path corresponding to the previous du data does not contain the absolute path of the current du data. One sub-DU data list, and when the directory separation round satisfies the separation directory level, the separated first sub-DU data list is used as the separation directory list, thereby realizing directory separation. Compared with the existing technology, which is manually separated and integrated by the user For directory lists at each directory level, this application can use the computer to use the inclusion relationship of absolute paths to achieve directory list separation, thereby improving the processing efficiency of directory separation.
附图说明Description of drawings
为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in the embodiments of the present application or related technologies, the drawings needed to be used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings in the following description are only for the purpose of describing the embodiments or related technologies. For some embodiments of the application, those of ordinary skill in the art can also obtain other drawings based on these drawings without exerting creative efforts.
图1为一个实施例中目录分离方法的流程示意图;Figure 1 is a schematic flow chart of a directory separation method in one embodiment;
图2为一个实施例中获取路径信息包含关系的流程示意图;Figure 2 is a schematic flowchart of obtaining path information containing relationships in one embodiment;
图3为一个实施例中获取当前du数据列表的流程示意图;Figure 3 is a schematic flow chart of obtaining the current du data list in one embodiment;
图4为一个实施例中可视化展示大容量目录的流程示意图;Figure 4 is a schematic process diagram for visually displaying a large-capacity directory in one embodiment;
图5为一个实施例中一种文件和目录统计分析方法的流程示意图;Figure 5 is a schematic flow chart of a file and directory statistical analysis method in one embodiment;
图6为一个实施例中目录分离装置的结构框图;Figure 6 is a structural block diagram of a directory separation device in one embodiment;
图7为一个实施例中计算机设备的内部结构图。Figure 7 is an internal structure diagram of a computer device in one embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.
在一个实施例中,如图1所示,提供了一种目录分离方法,本实施例以该方法应用于终端进行举例说明,可以理解的是,该方法也可以应用于服务器,还可以应用于包括终端和服务器的系统,并通过终端和服务器的交互实现。本实施例中,该方法包括以下步骤:In one embodiment, as shown in Figure 1, a directory separation method is provided. This embodiment illustrates the application of this method to a terminal. It can be understood that this method can also be applied to a server, and can also be applied to a server. A system that includes terminals and servers and is implemented through the interaction between terminals and servers. In this embodiment, the method includes the following steps:
步骤S101,获取由待目录分离的du数据组成的当前du数据列表,以及获取当前du数据列表中各du数据对应的绝对路径信息;du数据通过执行用于查看磁盘使用情况的命令后得到。Step S101: Obtain the current du data list consisting of du data to be separated into directories, and obtain the absolute path information corresponding to each du data in the current du data list; the du data is obtained by executing a command for checking disk usage.
待目录分离的du数据指的是需要执行目录分离操作的du数据,该du数据可以是用户发起du命令,即用于查看磁盘使用情况的命令后得到的,还未执行目录分离的du数据,也可以是已经执行过目录分离后,剩余的还需要继续进行目录分离的du数据。而当前du数据列表则指的是由上述待目录分离的du数据所组成的数据列表,绝对路径信息则是上述列表中各个du数据对应的完整路径信息。The du data to be directory separated refers to the du data that needs to perform directory separation operation. The du data can be obtained after the user initiates the du command, that is, the command used to check the disk usage. The du data that has not yet been executed is the du data. It can also be the du data that needs to be continued after directory separation has been performed. The current du data list refers to the data list composed of the above du data to be separated by directory, and the absolute path information is the complete path information corresponding to each du data in the above list.
本实施例中,在执行用于查看磁盘使用情况的du命令后,终端可以得到当前需要进行目录分离的du数据,并且上述du数据可以组成当前du数据列表,并且在上述du数据中,还可以存储有通过du命令遍历得到的各个文件或者目录的完整路径信息,终端则可以将上述完整路径信息,作为绝对路径信息,从而得到当前du数据列表中各个du数据的绝对路径信息。In this embodiment, after executing the du command for checking disk usage, the terminal can obtain the du data that currently needs to be directory separated, and the above du data can form the current du data list, and in the above du data, it can also The complete path information of each file or directory traversed by the du command is stored. The terminal can use the above complete path information as absolute path information to obtain the absolute path information of each du data in the current du data list.
步骤S102,针对当前du数据列表中的任一当前du数据,获取当前du数据关联的第一绝对路径信息与第二绝对路径信息之间的路径信息包含关系;其中,第一绝对路径信息为当前du数据列表中当前du数据的上一条du数据对应的绝对路径信息,第二绝对路径信息为当前du数据对应的绝对路径信息。Step S102: For any current du data in the current du data list, obtain the path information inclusion relationship between the first absolute path information and the second absolute path information associated with the current du data; wherein the first absolute path information is the current The absolute path information corresponding to the previous du data of the current du data in the du data list, and the second absolute path information is the absolute path information corresponding to the current du data.
当前du数据指的是在当前du数据列表中的任意一行du数据,而当前du数据关联的第一绝对路径信息则指的是当前du数据的上一条du数据对应的绝对路径信息,而当前du数据关联的第二绝对路径信息则是当前du数据对应的绝对路径信息。The current du data refers to any row of du data in the current du data list, and the first absolute path information associated with the current du data refers to the absolute path information corresponding to the previous du data of the current du data, and the current du data The second absolute path information associated with the data is the absolute path information corresponding to the current du data.
终端在得到当前du数据列表后,还可以将当前du数据列表中的各个du数据逐一作为当前du数据,并分别得到每一个当前du数据分别关联的第一绝对路径信息与第二绝对路径信息,从而判断每个当前du数据关联的第一绝对路径信息中是否包含有第二绝对路径信息,进而得到各个当前du数据对应的路径信息包含关系。After obtaining the current du data list, the terminal can also use each du data in the current du data list as the current du data one by one, and obtain the first absolute path information and the second absolute path information associated with each current du data respectively. Thereby, it is determined whether the first absolute path information associated with each current du data contains the second absolute path information, and then the path information inclusion relationship corresponding to each current du data is obtained.
步骤S103,若包含关系表征第一绝对路径信息中未包含第二绝对路径信息,将当前du数据写入与当前du数据列表对应的第一子du数据列表中;Step S103, if the inclusion relationship indicates that the first absolute path information does not include the second absolute path information, write the current du data into the first sub-du data list corresponding to the current du data list;
步骤S104,获取当前du数据列表对应的目录分离轮次,并在目录分离轮次达到与预先设定的分离目录层级相匹配的目标分离轮次的情况下,将第一子du数据列表作为与分离目录层级相匹配的分离目录列表。Step S104, obtain the directory separation round corresponding to the current du data list, and when the directory separation round reaches the target separation round that matches the preset separation directory level, use the first sub-du data list as the A list of split directories that match the split directory hierarchy.
第一子du数据列表则是由当前du数据列表将部分du数据分离出去形成的数据列表,而目录分离轮次指的是当前执行目录分离的轮次,分离目录层级则指的是预先设定的需要分离目录的层级,如果需要分离的是表征一级目录的文件,那么该分离目录层级则可以是一级。而如果需要分离的是只包含文件的次级目录,那么该分离目录层级则可以是二级,以此类推。而目标分离轮次则指的是与预先设定的分离目录层级相匹配的目录分离轮次,如果需要分离一级目录,那么目录分离轮次则可以设定为1,而如果需要分离二级目录,那么目录分离轮次则可以设定为2。The first sub-du data list is a data list formed by separating part of the du data from the current du data list. The directory separation round refers to the current round of directory separation, and the separation directory level refers to the preset The level of the directory that needs to be separated. If what needs to be separated is a file that represents a first-level directory, then the level of the separated directory can be one level. And if what needs to be separated is a secondary directory that only contains files, then the level of the separated directory can be level two, and so on. The target separation round refers to the directory separation round that matches the preset separation directory level. If the first-level directory needs to be separated, the directory separation round can be set to 1, and if the second-level directory needs to be separated directory, then the directory separation round can be set to 2.
本实施例中,由于du的数据是按照深度遍历的,所以层次越深的数据,越靠前,那么以目录分离轮次是一次为例,如果某个当前du数据的上一个du数据所对应的绝对路径信息,即该du数据关联的第一绝对路径信息,如果包含了当前du数据的绝对路径信息,即该du数据关联的第二绝对路径信息,则说明上一个du数据对应的目录在当前du数据对应的目录内部,当前du数据是上一个du数据的上级目录,那么当前du数据对应的目录则必然不是表征一级目录的文件。而只有在包含关系表征第一绝对路径信息中未包含所述第二绝对路径信息,表征当前du数据与上一个du数据并不存在目录上下级之间的关系,那么在这种情况下,则可以表明当前du数据对应的是表征一级目录的文件,因此通过将该当前du数据写入第一子du数据列表,可以使第一子du数据列表存储的所有du数据都可以用于表征一级目录的文件,因此通过该方式,如果用户需要分离表征一级目录的文件,则可以将分离目录层级相匹配的目标分离轮次设置为1,那么终端只需要执行一次目录分离操作,即可得到作为分离出的文件列表的第一子du数据列表。In this embodiment, since du data is traversed according to depth, the deeper the data level, the higher it is. Taking the directory separation round as an example, if the previous du data of a certain current du data corresponds to The absolute path information of , that is, the first absolute path information associated with the du data. If it contains the absolute path information of the current du data, that is, the second absolute path information associated with the du data, it means that the directory corresponding to the previous du data is in Within the directory corresponding to the current du data, the current du data is the superior directory of the previous du data, so the directory corresponding to the current du data must not be a file representing the first-level directory. Only when the inclusion relationship indicates that the first absolute path information does not include the second absolute path information, indicating that there is no relationship between the current du data and the previous du data between the upper and lower levels of the directory, then in this case, then It can be shown that the current du data corresponds to files representing the first-level directory. Therefore, by writing the current du data into the first sub-du data list, all the du data stored in the first sub-du data list can be used to represent a first-level directory. Therefore, through this method, if the user needs to separate the files representing the first-level directory, the target separation round matching the separation directory level can be set to 1, then the terminal only needs to perform the directory separation operation once. Get the first subdu data list as a separated file list.
同理,如果需要分离的是次级目录,由于在初次对当前du数据列表进行分离时,已经将表征一级目录的文件分离出去,因此,如果再次执行du数据分离,即再次执行步骤S102至步骤S103的过程,此时次级目录则是剩余的du数据中层次最深的目录,因此通过该方式,可以将次级目录,与其他高层级目录例如三级目录等进行分离,用户只需要设定目标分离轮次为2,终端只需要执行2次目录分离操作,即可实现次级目录的分离。Similarly, if what needs to be separated is a secondary directory, since the files representing the first-level directory have been separated when the current du data list is separated for the first time, if du data separation is performed again, steps S102 to In the process of step S103, the secondary directory is the deepest directory among the remaining du data. Therefore, in this way, the secondary directory can be separated from other high-level directories such as third-level directories. The user only needs to set The target separation round is set to 2, and the terminal only needs to perform two directory separation operations to achieve the separation of secondary directories.
上述目录分离方法中,通过获取由待目录分离的du数据组成的当前du数据列表,以及获取当前du数据列表中各du数据对应的绝对路径信息;du数据通过执行用于查看磁盘使用情况的命令后得到;针对当前du数据列表中的任一当前du数据,获取当前du数据关联的第一绝对路径信息与第二绝对路径信息之间的路径信息包含关系;其中,第一绝对路径信息为当前du数据列表中当前du数据的上一条du数据对应的绝对路径信息,第二绝对路径信息为当前du数据对应的绝对路径信息;若包含关系表征第一绝对路径信息中未包含第二绝对路径信息,将当前du数据写入与当前du数据列表对应的第一子du数据列表中;获取当前du数据列表对应的目录分离轮次,并在目录分离轮次达到预先设定的与分离目录层级相匹配的目标分离轮次的情况下,将第一子du数据列表作为与分离目录层级相匹配的分离目录列表。本申请通过构建由待目录分离的du数据组成的当前du数据列表,并且得到列表各du数据对应的绝对路径信息,从而利用上述绝对路径信息,比对该列表中任意一个当前du数据的绝对路径,与该du数据的上一条du数据对应的绝对路径之间的包含关系,从而可以在上一条du数据对应的绝对路径未包含当前du数据的绝对路径的情况下,将当前du数据写入第一子du数据列表,并在目录分离轮次满足分离目录层级时,将分离出的第一子du数据列表作为分离目录列表,从而实现目录的分离,相比于现有技术通过用户手动分离整合各目录层级的目录列表,本申请可以通过计算机利用绝对路径的包含关系实现目录列表分离,从而可以提高目录分离的处理效率。In the above directory separation method, the current du data list composed of the du data to be directory separated is obtained, and the absolute path information corresponding to each du data in the current du data list is obtained; the du data is obtained by executing the command used to view disk usage. obtained; for any current du data in the current du data list, obtain the path information inclusion relationship between the first absolute path information and the second absolute path information associated with the current du data; where the first absolute path information is the current The absolute path information corresponding to the previous du data of the current du data in the du data list, the second absolute path information is the absolute path information corresponding to the current du data; if the inclusion relationship indicates that the first absolute path information does not contain the second absolute path information , write the current du data into the first sub-du data list corresponding to the current du data list; obtain the directory separation round corresponding to the current du data list, and reach the preset separation directory level in the directory separation round In the case of a matching target separation round, the first sub-du data list is used as a separation directory list matching the separation directory level. This application constructs a current du data list composed of du data to be separated by directory, and obtains the absolute path information corresponding to each du data in the list, thereby using the above absolute path information to compare the absolute path of any current du data in the list. , the inclusion relationship between the absolute path corresponding to the previous du data of the du data, so that the current du data can be written to the first du data when the absolute path corresponding to the previous du data does not contain the absolute path of the current du data. One sub-DU data list, and when the directory separation round satisfies the separation directory level, the separated first sub-DU data list is used as the separation directory list, thereby realizing directory separation. Compared with the existing technology, which is manually separated and integrated by the user For directory lists at each directory level, this application can use the computer to use the inclusion relationship of absolute paths to achieve directory list separation, thereby improving the processing efficiency of directory separation.
在一个示例性的实施例中,如图2所示,步骤S102可以进一步包括:In an exemplary embodiment, as shown in Figure 2, step S102 may further include:
步骤S201,获取与当前du数据关联的第一指针的第一指针值,并将第二绝对路径信息赋值给第二指针;第一指针值用于存储第一绝对路径信息。Step S201: Obtain the first pointer value of the first pointer associated with the current du data, and assign the second absolute path information to the second pointer; the first pointer value is used to store the first absolute path information.
其中,第一指针值指的是第一指针存储的指针值,而第二指针值则指的是第二指针存储的指针值,本实施例中,当前du数据关联的第一绝对路径信息与第二绝对路径信息可以通过两个指针进行存储,其中第一指针是用来存储第一绝对路径信息的指针,例如可以是previous指针,而第二指针则可以是用于存储第二绝对路径信息的指针,例如可以是current指针。Wherein, the first pointer value refers to the pointer value stored by the first pointer, and the second pointer value refers to the pointer value stored by the second pointer. In this embodiment, the first absolute path information associated with the current du data and The second absolute path information can be stored through two pointers, where the first pointer is a pointer used to store the first absolute path information, for example, it can be a previous pointer, and the second pointer can be used to store the second absolute path information. The pointer, for example, can be the current pointer.
具体来说,终端可以通过设置两个指针的方式,来实现当前du数据关联的第一绝对路径信息与第二绝对路径信息之间的路径信息包含关系的获取,其中第一指针值可以预先存储有当前du数据的第一绝对路径信息,之后,终端在得到当前du数据对应的绝对路径信息,即关联的第二绝对路径信息后,则可以将第二绝对路径信息赋值给第二指针。Specifically, the terminal can obtain the path information inclusion relationship between the first absolute path information and the second absolute path information associated with the current du data by setting two pointers, where the first pointer value can be stored in advance. After obtaining the first absolute path information of the current du data, the terminal can assign the second absolute path information to the second pointer after obtaining the absolute path information corresponding to the current du data, that is, the associated second absolute path information.
步骤S202,根据第一指针值与第二指针的第二指针值之间的指针值包含关系,得到路径信息包含关系。Step S202: Obtain the path information inclusion relationship based on the pointer value inclusion relationship between the first pointer value and the second pointer value of the second pointer.
由于此时第一指针值已经存储了当前du数据关联的第一绝对路径信息,同时第二指针的指针值,即第二指针值则是存储了当前du数据关联的第二绝对路径信息,因此可以通过第一指针值与第二指针值之间的包含关联,来表征第一绝对路径信息与第二绝对路径信息之间的路径信息包含关系,本实施例通过两个指针,实现了地址信息包含关系的获取,从而可以进一步提高地址信息包含关系的获取效率。Since at this time the first pointer value has stored the first absolute path information associated with the current du data, and at the same time the pointer value of the second pointer, that is, the second pointer value, has stored the second absolute path information associated with the current du data, therefore The path information inclusion relationship between the first absolute path information and the second absolute path information can be represented by the inclusion association between the first pointer value and the second pointer value. In this embodiment, the address information is implemented through two pointers. The acquisition of the inclusion relationship can further improve the efficiency of obtaining the inclusion relationship of the address information.
本实施例中,终端可以通过第一指针和第二指针,来分别存储第一绝对路径信息和第二绝对路径信息,即通过两个指针,实现了地址信息包含关系的获取,从而可以进一步提高地址信息包含关系的获取效率。In this embodiment, the terminal can store the first absolute path information and the second absolute path information respectively through the first pointer and the second pointer, that is, through the two pointers, the acquisition of the address information inclusion relationship is achieved, which can further improve the The address information contains the relationship acquisition efficiency.
进一步地,步骤S202之后,还可以包括:将第二指针值赋值给第一指针,得到更新后的第一指针;更新后的第一指针用于存储当前du数据列表中当前du数据的下一条du数据关联的第一绝对路径信息。Further, after step S202, it may also include: assigning the second pointer value to the first pointer to obtain an updated first pointer; the updated first pointer is used to store the next item of the current du data in the current du data list. The first absolute path information associated with du data.
而在完成当前du数据的地址信息包含关系获取后,由于当前第一指针值存储的是当前du数据的上一条du数据对应的绝对路径信息,因此如果需要使得当前du数据的下一条du数据,也可以使用第一指针和第二指针来得到路径信息的包含关系,终端则需要将当前的第二指针值赋值给第一指针,来得到更新后的第一指针,此时更新后的第一指针的第一指针值则可以存储有当前du数据的绝对路径信息,在进行当前du数据的下一条du数据的路径信息包含关系获取时,由于此时第一指针值已经是当前du数据的绝对路径信息,那么对于当前du数据的下一条du数据而言,此时第一指针值正是表征下一条du数据关联的第一绝对路径信息,之后终端还可以将下一条du数据对应的绝对路径信息赋值给第二指针来实现第二指针值的更新,通过该方式,能不断更新第一指针值和第二指针值,从而可以实现利用两个指针得到所有当前du数据列表中所有du数据对应的路径信息包含关系。After completing the acquisition of the address information inclusion relationship of the current du data, since the current first pointer value stores the absolute path information corresponding to the previous du data of the current du data, if it is necessary to make the next du data of the current du data, You can also use the first pointer and the second pointer to obtain the inclusion relationship of the path information. The terminal needs to assign the current second pointer value to the first pointer to obtain the updated first pointer. At this time, the updated first pointer The first pointer value of the pointer can store the absolute path information of the current du data. When obtaining the path information inclusion relationship of the next du data of the current du data, the first pointer value is already the absolute path information of the current du data. Path information, then for the next du data of the current du data, the first pointer value at this time is the first absolute path information that represents the association of the next du data. After that, the terminal can also use the absolute path corresponding to the next du data. The information is assigned to the second pointer to update the second pointer value. In this way, the first pointer value and the second pointer value can be continuously updated, so that the two pointers can be used to obtain the correspondence of all du data in the current du data list. The path information contains relationships.
本实施例中,完成当前du数据对应的路径信息包含关系获取后,还可以将第二指针值赋值给第一指针,通过该方式以实现利用两个指针得到所有当前du数据列表中所有du数据对应的路径信息包含关系,进一步提高了路径信息包含关系的获取简便性。In this embodiment, after completing the acquisition of the path information inclusion relationship corresponding to the current du data, the second pointer value can also be assigned to the first pointer. In this way, two pointers can be used to obtain all the du data in the current du data list. The corresponding path information inclusion relationship further improves the ease of obtaining the path information inclusion relationship.
另外,在当前du数据为当前du数据列表中的首条du数据的情况下,步骤S201之前,还可以包括:将第一指针的第一指针值,与第二指针的第二指针值,设置为空值。In addition, when the current du data is the first du data in the current du data list, before step S201, it may also include: setting the first pointer value of the first pointer and the second pointer value of the second pointer. is a null value.
而如果当前du数据是当前du数据列表中的首条du数据,即当前du数据列表中的第一条数据的情况下,由于此时第一指针与第二指针都不存在指针值,那么为了使得目录分离过程可以顺利执行,终端可以对第一指针与第二指针的指针值进行赋空值处理,即将第一指针值和第二指针值设置成空值。And if the current du data is the first du data in the current du data list, that is, the first data in the current du data list, since neither the first pointer nor the second pointer has a pointer value at this time, then in order So that the directory separation process can be executed smoothly, the terminal can assign null values to the pointer values of the first pointer and the second pointer, that is, set the first pointer value and the second pointer value to null values.
本实施例中,如果当前du数据为当前du数据列表中的首条du数据,终端还可以将第一指针值和第二指针值设置为空值,通过该方式可以确保目录分离的顺利执行,从而可以进一步提高目录分离的运行稳定性。In this embodiment, if the current du data is the first du data in the current du data list, the terminal can also set the first pointer value and the second pointer value to null values. In this way, the smooth execution of directory separation can be ensured. This can further improve the operational stability of directory separation.
在一个实施例中,步骤S102之后,还可以包括:若路径信息包含关系表征第一绝对路径信息中包含第二绝对路径信息,将当前du数据写入与当前du数据列表对应的第二子du数据列表中;步骤S104之后,还可以包括:在目录分离轮次未达到目标分离轮次的情况下,将第二子du数据列表作为新的当前du数据列表,并返回执行步骤S101,直到目录分离轮次达到目标分离轮次。In one embodiment, after step S102, it may also include: if the path information inclusion relationship indicates that the first absolute path information contains the second absolute path information, writing the current du data into the second sub-du corresponding to the current du data list. in the data list; after step S104, it may also include: when the directory separation round does not reach the target separation round, use the second sub-du data list as the new current du data list, and return to step S101 until the directory Separation Rounds Achieve target separation rounds.
第二子du数据列表指的是当前du数据列表中分离出第一子du数据列表后,剩余的du数据所组成的du数据列表,由于第一子du数据列表中包含的du数据是关联的第一绝对路径信息中未包含第二绝对路径信息的du数据,因此组成第二子du数据列表的du数据则是关联的第一绝对路径信息中包含第二绝对路径信息的du数据。The second sub-du data list refers to the du data list composed of the remaining du data after the first sub-du data list is separated from the current du data list. Since the du data contained in the first sub-du data list is related The first absolute path information does not contain the du data of the second absolute path information, so the du data constituting the second sub-du data list is the du data of the associated first absolute path information that contains the second absolute path information.
具体来说,如果路径信息包含关系表征第一绝对路径信息中包含第二绝对路径信息,那么终端则可以将当前du数据写入第二子du数据列表中。而在完成当前du数据列表所有du数据的目录分离后,如果目录分离轮次还未达到目标分离轮次,那么终端则可以将第二子du数据列表作为新的当前du数据列表,再次返回获取绝对路径信息,并执行利用绝对路径信息之间的包含关系实现目录分离的步骤,直到目录分离轮次达到目标分离轮次。Specifically, if the path information contains a relationship indicating that the first absolute path information contains the second absolute path information, then the terminal can write the current du data into the second sub-du data list. After completing the directory separation of all du data in the current du data list, if the directory separation round has not reached the target separation round, the terminal can use the second sub-du data list as the new current du data list and return to obtain it again. Absolute path information, and perform the steps of utilizing the inclusion relationship between absolute path information to achieve directory separation until the directory separation round reaches the target separation round.
例如,需要分离的目录是次级目录,那么预先设定的分离目录层级则可以是2级,如果当前目录分离轮次是1次,未达到与分离目录层级相匹配目标分离轮次,此时终端在完成第一次目录分离,形成第一子du数据列表和第二子du数据列表后,由于第一子du数据列表已经分离出了表征一级目录的文件列表,因此终端则可以将剩余的包含次级目录以及其他高层级目录的du数据组成的第二子du数据列表,作为新的当前du数据列表,再次执行目录分离操作,在完成再次第二次目录分离后,由于已经达到了分离目录层级,因此终端即可将第二次分离得到的第一子du数据列表,作为最终分离出的次级目录列表。For example, if the directory that needs to be separated is a secondary directory, the preset separation directory level can be level 2. If the current directory separation round is 1 and the target separation round that matches the separation directory level has not been reached, at this time After the terminal completes the first directory separation and forms the first sub-du data list and the second sub-du data list, since the first sub-du data list has separated the file list representing the first-level directory, the terminal can use the remaining The second sub-du data list consisting of du data of secondary directories and other high-level directories is used as the new current du data list, and the directory separation operation is performed again. After completing the second directory separation, since the The directory hierarchy is separated, so the terminal can use the first sub-du data list obtained by the second separation as the final separated secondary directory list.
本实施例中,终端还可以生成第二子du数据列表,并且该第二子du数据列表可以作为目录分离轮次未达到目标分离轮次的情况下,新的当前du数据列表,通过该方式,可以实现不同分离目录层级的分离目录列表获取,提高了不同分离目录层级的分离目录列表获取的通用性。In this embodiment, the terminal can also generate a second sub-du data list, and the second sub-du data list can be used as a new current du data list when the directory separation round does not reach the target separation round. In this way, , can realize the acquisition of separated directory lists at different separated directory levels, and improves the versatility of obtaining separated directory lists at different separated directory levels.
在一个实施例中,如图3所示,步骤S101可以进一步包括:In one embodiment, as shown in Figure 3, step S101 may further include:
步骤S301,响应于目标账户发起的用于查看磁盘使用情况的命令,获取对应的du数据,并将对应的du数据存入与目标账户关联的文本文档中。Step S301, in response to a command initiated by the target account for checking disk usage, obtain corresponding du data, and store the corresponding du data in a text document associated with the target account.
其中。目标账户则是触发用于查看磁盘使用情况的命令的用户账户,目标账户关联的文本文档则指的是与目标账户对应的文本文档,例如可以是以目标账户的账户名进行命名的txt文档。本实施例中,du数据可以保存在以用户命名的txt文件中,并且不同用户得到的du数据可以保存在不同txt文件中。in. The target account is the user account that triggers the command for viewing disk usage. The text document associated with the target account refers to the text document corresponding to the target account. For example, it can be a txt document named after the account name of the target account. In this embodiment, du data can be saved in a txt file named after the user, and du data obtained by different users can be saved in different txt files.
步骤S302,将文本文档读取到内存中,生成与文本文档相匹配的du数据列表,作为当前du数据列表。Step S302: Read the text document into the memory and generate a du data list matching the text document as the current du data list.
终端完成du数据的保存后,则可以进一步读取用户的txt文件,将该文本文档读取到内存中,并将其存储在内存的list列表中,从而得到du数据列表,并将其作为首次目录分离对应的当前du数据列表。After the terminal completes saving the du data, it can further read the user's txt file, read the text document into the memory, and store it in the list list of the memory, thereby obtaining the du data list and treating it as the first The current du data list corresponding to the directory separation.
本实施例中,终端可以通过响应用户的用于查看磁盘使用情况的命令,将对应的du数据存储至该用户相应的文本文档中,并且还可以通过将文本文档读取入内存,来形成当前du数据列表,通过该方式实现目录分离,可以在提高效率的同时,避免文件系统的侵入,从而减少对文件系统造成的压力。In this embodiment, the terminal can respond to the user's command for checking disk usage, store the corresponding du data into the user's corresponding text document, and can also read the text document into the memory to form the current du data list, through which directory separation can be achieved, it can improve efficiency while avoiding file system intrusion, thereby reducing pressure on the file system.
进一步地,当前du数据列表中还存储有各du数据所表征目录的目录容量;步骤S103可以进一步包括:将当前du数据以及当前du数据对应的目录容量写入第一子du数据列表中;如图4所示,步骤S104之后,还可以包括:Further, the current du data list also stores the directory capacity of the directory represented by each du data; step S103 may further include: writing the current du data and the directory capacity corresponding to the current du data into the first sub-du data list; such as As shown in Figure 4, after step S104, it may also include:
步骤S401,获取分离目录列表中包含的各du数据对应的目录容量。Step S401: Obtain the directory capacity corresponding to each du data included in the separated directory list.
目录容量指的是du数据对应目录的容量信息,本实施例中,提取的du数据的数据格式为对应目录的文件大小,即容量信息、目录的操作日期和绝对路径信息,因此在形成当前du数据列表中,还可以存储有各个du数据的容量信息。之后在构建第一子du数据列表,除了将当前du数据写入第一子du数据列表,还可以将当前du数据的容量信息一并写入,从而在形成的分离目录列表中,终端则可以得到各个du数据对应的目录容量。Directory capacity refers to the capacity information of the directory corresponding to the du data. In this embodiment, the data format of the extracted du data is the file size of the corresponding directory, that is, the capacity information, the operation date and absolute path information of the directory, so when forming the current du In the data list, the capacity information of each du data can also be stored. After that, when constructing the first sub-du data list, in addition to writing the current du data into the first sub-du data list, the capacity information of the current du data can also be written together, so that in the formed separate directory list, the terminal can Get the directory capacity corresponding to each du data.
步骤S402,根据目录容量对分离目录列表中包含的各du数据进行排序处理,并将分离目录列表中包含的各du数据中,目录容量最大的前预设数量的du数据,存入结果路径文件中;Step S402: Sort the du data contained in the separated directory list according to the directory capacity, and store the preset number of du data with the largest directory capacity among the du data included in the separated directory list into the result path file. middle;
步骤S403,将结果路径文件进行可视化展示处理。Step S403: Visually display the result path file.
而在得到分离目录列表中各个du数据的目录容量后,还可以按照目录容量的大小,对分离目录列表中的各个du数据进行排序,例如可以是按照目录容量由大至小的顺序对各个du数据进行排序,并且还可以将上述du数据中,目录容量最大的前预设数量的du数据,存入结果路径文件中,例如可以是将容量最大的前n个du数据存入结果路径文件,并进行可视化展示,通过该方式用户即可快速定位出占用容量较大的目录,例如定位出大文件以及容量较大的次级目录等等。After obtaining the directory capacity of each du data in the separated directory list, the du data in the separated directory list can also be sorted according to the size of the directory capacity. For example, each du data can be sorted in order from large to small in directory capacity. The data is sorted, and the preset number of du data with the largest directory capacity among the above du data can also be stored in the result path file. For example, the top n du data with the largest capacity can be stored in the result path file. And perform visual display. Through this method, users can quickly locate directories that occupy large capacity, such as locating large files and secondary directories with large capacity, etc.
本实施例中,终端还可以根据各个du数据中对应的目录容量,来实现大容量目录的筛选,并将大容量目录进行可视化展示,进一步提高了目录分析的智能性。In this embodiment, the terminal can also implement filtering of large-capacity directories based on the corresponding directory capacity in each du data, and visually display the large-capacity directories, further improving the intelligence of directory analysis.
在一个实施例中,还提供了一种文件和目录统计分析方法,该方法可以在存储空闲时,提取用户的du数据,然后以du的数据为基础数据,使用算法将文件、只包括文件的次级目录和高层次目录分离开来,通过排序算法定位出大文件和只包括文件的次级目录。该方法可以提高查询的效率,且不会侵入文件系统。在本方法中,du数据保存在以用户命名的txt文件,不同的用户保存在不同的txt里,如图5所示,该方法具体包括以下步骤:In one embodiment, a file and directory statistical analysis method is also provided. This method can extract the user's du data when the storage is idle, and then use the du data as the basic data to use an algorithm to classify the files, including only the files. The secondary directories are separated from the high-level directories, and large files and secondary directories containing only files are located through a sorting algorithm. This method can improve query efficiency without invading the file system. In this method, du data is saved in a txt file named after the user, and different users are saved in different txt files, as shown in Figure 5. This method specifically includes the following steps:
(1)获取用户的du数据,该数据的格式为文件大小、操作日期和绝对路径。(1) Obtain the user's du data. The format of the data is file size, operation date and absolute path.
(2)读取文本文档文件。将该文本文档读取到内存,存储在du数据列表中。(2) Read text document files. Read the text document into memory and store it in the du data list.
(3)对指针变量第一指针和第二指针赋值,默认值为空。获取list列表的第一行数据,将其分裂后获取其路径信息,赋值给第二指针。(3) Assign values to the first pointer and second pointer of pointer variables, and the default value is empty. Get the first row of data in the list, split it, get its path information, and assign it to the second pointer.
(4)判断第一指针值是否包含第二指针值。若不包含,则将该第二指针值及对应的文件/目录大小、日期保存在第一子du数据列表;若包含,则将其保存在第二子du数据列表。然后将第二指针赋值给第一指针。(4) Determine whether the first pointer value contains the second pointer value. If it is not included, then the second pointer value and the corresponding file/directory size and date are saved in the first sub-du data list; if they are included, then they are saved in the second sub-du data list. Then assign the second pointer to the first pointer.
(5)判断du数据列表是否有下一条数据。若有,则获取下一条数据,将其分裂后获取其地址信息,将地址赋值给第二指针,跳转至步骤4。直至所有的列表数据取完。(5) Determine whether there is next data in the du data list. If so, obtain the next piece of data, split it and obtain its address information, assign the address to the second pointer, and jump to step 4. Until all list data is fetched.
(6)获取用户排名前N的大文件。获取第一子du数据列表值,按照目录大小进行降序排列,获取该用户排名前N名的文件信息并将结果保存至结果路径下相应的文件里,结果文件格式为大小、操作日期和绝对路径。(6) Obtain the top N large files ranked by users. Get the first subdu data list value, sort it in descending order according to the directory size, get the top N file information of the user and save the result to the corresponding file under the result path. The result file format is size, operation date and absolute path. .
(7)获取第二子du数据列表。对该第二子du数据列表再次执行(3)-(5)得到次级目录第一子du数据列表。(7) Get the second subdu data list. Execute (3)-(5) again on the second sub-du data list to obtain the first sub-du data list of the secondary directory.
(8)获取用户排名前N的只包含文件的次级目录。对步骤7获得的第一子du数据列表,按照目录大小进行降序排列,获取用户名下排名前N的只包括文件的次级目录,并将结果保存至结果路径下相应的文件里,结果文件格式为大小、操作日期和绝对路径。(8) Obtain the top N subdirectories containing only files among users. Arrange the first sub-du data list obtained in step 7 in descending order according to the directory size, obtain the top N sub-directories under the user name that only include files, and save the result to the corresponding file under the result path. The result file The format is size, operation date, and absolute path.
(9)将获取的结果文件存储至数据库。(9) Store the obtained result file in the database.
(10)使用前端展示技术将其可视化。(10) Use front-end display technology to visualize it.
通过本实施例,可以在不侵入文件系统的情况下即定位出大文件和只包括文件的次级目录,并且还可以提高搜寻的效率。Through this embodiment, large files and subdirectories including only files can be located without invading the file system, and the search efficiency can also be improved.
应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts involved in the above-mentioned embodiments are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated in this article, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flowcharts involved in the above embodiments may include multiple steps or stages. These steps or stages are not necessarily executed at the same time, but may be completed at different times. The execution order of these steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的目录分离方法的目录分离装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个目录分离装置实施例中的具体限定可以参见上文中对于目录分离方法的限定,在此不再赘述。Based on the same inventive concept, embodiments of the present application also provide a directory separation device for implementing the above-mentioned directory separation method. The solution to the problem provided by this device is similar to the solution recorded in the above method. Therefore, for the specific limitations in one or more directory separation device embodiments provided below, please refer to the limitations on the directory separation method mentioned above. I won’t go into details here.
在一个实施例中,如图6所示,提供了一种目录分离装置,包括:du列表获取模块601、路径包含获取模块602、子du列表获取模块603和分离目录获取模块604,其中:In one embodiment, as shown in Figure 6, a directory separation device is provided, including: du list acquisition module 601, path inclusion acquisition module 602, sub-du list acquisition module 603 and separation directory acquisition module 604, wherein:
du列表获取模块601,用于获取由待目录分离的du数据组成的当前du数据列表,以及获取当前du数据列表中各du数据对应的绝对路径信息;du数据通过执行用于查看磁盘使用情况的命令后得到;The du list acquisition module 601 is used to obtain the current du data list consisting of the du data to be separated by directory, and to obtain the absolute path information corresponding to each du data in the current du data list; the du data is used to check disk usage by executing Obtained after command;
路径包含获取模块602,用于针对当前du数据列表中的任一当前du数据,获取当前du数据关联的第一绝对路径信息与第二绝对路径信息之间的路径信息包含关系;其中,第一绝对路径信息为当前du数据列表中当前du数据的上一条du数据对应的绝对路径信息,第二绝对路径信息为当前du数据对应的绝对路径信息;The path inclusion acquisition module 602 is used to obtain the path information inclusion relationship between the first absolute path information and the second absolute path information associated with the current du data for any current du data in the current du data list; wherein, the first The absolute path information is the absolute path information corresponding to the previous du data of the current du data in the current du data list, and the second absolute path information is the absolute path information corresponding to the current du data;
子du列表获取模块603,用于若包含关系表征第一绝对路径信息中未包含第二绝对路径信息,将当前du数据写入与当前du数据列表对应的第一子du数据列表中;The sub-du list acquisition module 603 is used to write the current du data into the first sub-du data list corresponding to the current du data list if the inclusion relationship indicates that the first absolute path information does not contain the second absolute path information;
分离目录获取模块604,用于获取当前du数据列表对应的目录分离轮次,并在目录分离轮次达到与预先设定的分离目录层级相匹配的目标分离轮次的情况下,将第一子du数据列表作为与分离目录层级相匹配的分离目录列表。The separation directory acquisition module 604 is used to obtain the directory separation round corresponding to the current du data list, and when the directory separation round reaches the target separation round that matches the preset separation directory level, the first child The du data list serves as a detached directory listing matching the detached directory hierarchy.
在一个实施例中,路径包含获取模块602,进一步用于获取与当前du数据关联的第一指针的第一指针值,并将第二绝对路径信息赋值给第二指针;第一指针值用于存储第一绝对路径信息;根据第一指针值与第二指针的第二指针值之间的指针值包含关系,得到路径信息包含关系。In one embodiment, the path includes the acquisition module 602, which is further used to acquire the first pointer value of the first pointer associated with the current du data, and assign the second absolute path information to the second pointer; the first pointer value is used to Store the first absolute path information; obtain the path information inclusion relationship based on the pointer value inclusion relationship between the first pointer value and the second pointer value of the second pointer.
在一个实施例中,路径包含获取模块602,还用于将第二指针值赋值给第一指针,得到更新后的第一指针;更新后的第一指针用于存储当前du数据列表中当前du数据的下一条du数据关联的第一绝对路径信息。In one embodiment, the path includes an acquisition module 602, which is also used to assign the second pointer value to the first pointer to obtain the updated first pointer; the updated first pointer is used to store the current du in the current du data list. The first absolute path information associated with the next du data of the data.
在一个实施例中,路径包含获取模块602,还用于将第一指针的第一指针值,与第二指针的第二指针值,设置为空值。In one embodiment, the path includes the acquisition module 602, which is also configured to set the first pointer value of the first pointer and the second pointer value of the second pointer to null values.
在一个实施例中,子du列表获取模块603,还用于若路径信息包含关系表征第一绝对路径信息中包含第二绝对路径信息,将当前du数据写入与当前du数据列表对应的第二子du数据列表中;分离目录获取模块604,还用于在目录分离轮次未达到目标分离轮次的情况下,将第二子du数据列表作为新的当前du数据列表,并返回执行获取当前du数据列表中各du数据对应的绝对路径信息的步骤,直到目录分离轮次达到目标分离轮次。In one embodiment, the sub-DU list acquisition module 603 is also used to write the current DU data into the second DU data list corresponding to the current DU data list if the path information contains a relationship indicating that the first absolute path information contains the second absolute path information. In the sub-du data list; the separation directory acquisition module 604 is also used to use the second sub-du data list as the new current du data list when the directory separation round does not reach the target separation round, and return to execute the acquisition of the current The steps of absolute path information corresponding to each du data in the du data list until the directory separation round reaches the target separation round.
在一个实施例中,du列表获取模块601,进一步用于响应于目标账户发起的用于查看磁盘使用情况的命令,获取对应的du数据,并将对应的du数据存入与目标账户关联的文本文档中;将文本文档读取到内存中,生成与文本文档相匹配的du数据列表,作为当前du数据列表。In one embodiment, the du list acquisition module 601 is further configured to obtain the corresponding du data in response to a command initiated by the target account for checking disk usage, and store the corresponding du data in the text associated with the target account. document; read the text document into memory and generate a du data list that matches the text document as the current du data list.
在一个实施例中,当前du数据列表中还存储有各du数据所表征目录的目录容量;子du列表获取模块603,进一步用于将当前du数据以及当前du数据对应的目录容量写入第一子du数据列表中;目录分离装置,还包括:结果文件展示模块,用于获取分离目录列表中包含的各du数据对应的目录容量;根据目录容量对分离目录列表中包含的各du数据进行排序处理,并将分离目录列表中包含的各du数据中,目录容量最大的前预设数量的du数据,存入结果路径文件中;将结果路径文件进行可视化展示处理。In one embodiment, the current du data list also stores the directory capacity of the directory represented by each du data; the sub-du list acquisition module 603 is further configured to write the current du data and the directory capacity corresponding to the current du data into the first In the sub-du data list; the directory separation device also includes: a result file display module, used to obtain the directory capacity corresponding to each du data included in the separated directory list; and sort each du data included in the separated directory list according to the directory capacity. Process, and store the preset number of du data with the largest directory capacity among the du data contained in the separated directory list into the result path file; perform visual display processing on the result path file.
上述目录分离装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above directory separation device can be implemented in whole or in part by software, hardware and combinations thereof. Each of the above modules may be embedded in or independent of the processor of the computer device in the form of hardware, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
在一个示例性的实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图7所示。该计算机设备包括处理器、存储器、输入/输出接口、通信接口、显示单元和输入装置。其中,处理器、存储器和输入/输出接口通过系统总线连接,通信接口、显示单元和输入装置通过输入/输出接口连接到系统总线。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的输入/输出接口用于处理器与外部设备之间交换信息。该计算机设备的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、移动蜂窝网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种目录分离方法。该计算机设备的显示单元用于形成视觉可见的画面,可以是显示屏、投影装置或虚拟现实成像装置。显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 7 . The computer device includes a processor, memory, input/output interface, communication interface, display unit and input device. Among them, the processor, memory and input/output interface are connected through the system bus, and the communication interface, display unit and input device are connected to the system bus through the input/output interface. Wherein, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes non-volatile storage media and internal memory. The non-volatile storage medium stores operating systems and computer programs. This internal memory provides an environment for the execution of operating systems and computer programs in non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used for wired or wireless communication with external terminals. The wireless mode can be implemented through WIFI, mobile cellular network, NFC (Near Field Communication) or other technologies. The computer program, when executed by the processor, implements a directory separation method. The display unit of the computer equipment is used to form a visually visible picture, and may be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display or an electronic ink display. The input device of the computer device can be a touch layer covered on the display screen, or it can be a button, trackball or touch pad provided on the computer device casing, or it can be External keyboard, trackpad or mouse, etc.
本领域技术人员可以理解,图7中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 7 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Specific computer equipment can May include more or fewer parts than shown, or combine certain parts, or have a different arrangement of parts.
在一个实施例中,还提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现上述各方法实施例中的步骤。In one embodiment, a computer device is also provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, it implements the steps in the above method embodiments.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.
在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。In one embodiment, a computer program product is provided, including a computer program that implements the steps in each of the above method embodiments when executed by a processor.
需要说明的是,本申请所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,且相关数据的收集、使用和处理需要符合相关规定。It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all It is information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant regulations.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric RandomAccess Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic RandomAccessMemory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage. In the media, when executed, the computer program may include the processes of the above method embodiments. Any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetic variable memory (Magnetoresistive Random) Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene memory, etc. Volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory, etc. As an illustration and not a limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM). The databases involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include blockchain-based distributed databases, etc., but are not limited thereto. The processors involved in the various embodiments provided in this application may be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to this.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined in any way. To simplify the description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, all possible combinations should be used. It is considered to be within the scope of this manual.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above-described embodiments only express several implementation modes of the present application, and their descriptions are relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all fall within the protection scope of the present application. Therefore, the scope of protection of this application should be determined by the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311569042.2ACN117290302B (en) | 2023-11-23 | 2023-11-23 | Directory separation method, device, computer equipment and storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311569042.2ACN117290302B (en) | 2023-11-23 | 2023-11-23 | Directory separation method, device, computer equipment and storage medium |
| Publication Number | Publication Date |
|---|---|
| CN117290302A CN117290302A (en) | 2023-12-26 |
| CN117290302Btrue CN117290302B (en) | 2024-02-06 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311569042.2AActiveCN117290302B (en) | 2023-11-23 | 2023-11-23 | Directory separation method, device, computer equipment and storage medium |
| Country | Link |
|---|---|
| CN (1) | CN117290302B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108268609A (en)* | 2017-12-29 | 2018-07-10 | 新浪网技术(中国)有限公司 | A kind of foundation of file path, access method and device |
| WO2021003932A1 (en)* | 2019-07-05 | 2021-01-14 | 平安国际智慧城市科技股份有限公司 | File management method and apparatus, computer device and storage medium |
| WO2023036005A1 (en)* | 2021-09-08 | 2023-03-16 | 华为技术有限公司 | Information processing method and apparatus |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108268609A (en)* | 2017-12-29 | 2018-07-10 | 新浪网技术(中国)有限公司 | A kind of foundation of file path, access method and device |
| WO2021003932A1 (en)* | 2019-07-05 | 2021-01-14 | 平安国际智慧城市科技股份有限公司 | File management method and apparatus, computer device and storage medium |
| WO2023036005A1 (en)* | 2021-09-08 | 2023-03-16 | 华为技术有限公司 | Information processing method and apparatus |
| Title |
|---|
| 一种基于目录数据分离存储的文件存储方法的研究与实现;何文才;郑钊;刘培鹤;杜敏;;网络安全技术与应用(第01期);全文* |
| Publication number | Publication date |
|---|---|
| CN117290302A (en) | 2023-12-26 |
| Publication | Publication Date | Title |
|---|---|---|
| US10725981B1 (en) | Analyzing big data | |
| US9361320B1 (en) | Modeling big data | |
| US20200226133A1 (en) | Knowledge map building system and method | |
| US20070179973A1 (en) | Status tool to expose metadata read and write queues | |
| CN110134681B (en) | Data storage and query method and device, computer equipment and storage medium | |
| CN114328632A (en) | User data analysis method and device based on bitmap and computer equipment | |
| US20200342029A1 (en) | Systems and methods for querying databases using interactive search paths | |
| CN114625696B (en) | File recovery method and device, electronic equipment and storage medium | |
| CN114564620A (en) | Graph data storage method, system and computer equipment | |
| WO2024187779A1 (en) | Service data storage method and apparatus, computer device, and storage medium | |
| CN112835886A (en) | Data table field adding method and device | |
| CN116778124A (en) | Three-dimensional scene editing method, system, equipment and storage medium | |
| CN117290302B (en) | Directory separation method, device, computer equipment and storage medium | |
| CN118152622A (en) | Processing method, device, equipment, medium and product of data asset directory tree | |
| CN117540915A (en) | Big data technology-based selection scheme generation method, device, equipment and medium | |
| CN117688033A (en) | Data processing method and device, electronic equipment and storage medium | |
| CN117389960A (en) | File parsing method, apparatus, device, storage medium and program product | |
| CN114647630B (en) | File synchronization, information generation method, device, computer equipment and storage medium | |
| WO2024016789A1 (en) | Log data query method and apparatus, and device and medium | |
| CN115185458A (en) | A data writing method, apparatus, storage medium and computer equipment | |
| CN114547066A (en) | Nuclear power business data standardization method and device and computer equipment | |
| CN117435589A (en) | Data transfer method, device, computer equipment and storage medium | |
| CN117194532A (en) | Sorting processing method, device, computer equipment and storage medium | |
| CN115357559A (en) | Data migration method, device, computer equipment and storage medium | |
| CN119414997A (en) | Business information display method, device, equipment, and readable storage medium |
| 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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| PP01 | Preservation of patent right | Effective date of registration:20250725 Granted publication date:20240206 | |
| PP01 | Preservation of patent right |