Method, device and equipment for monitoring file directory compression downloading, medium and product

By obtaining file download and compression status information on the client, generating and displaying file directory compression download progress, the problem of inaccurate file directory compression download progress monitoring in the prior art is solved, and the transparency and user experience of the download process are improved.

CN118694758APending Publication Date: 2024-09-24CCB FINTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410838851.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In the prior art, file directory compression download progress monitoring is inaccurate and unintuitive, especially in scenarios with complex directory structures or large file sizes, which affects download performance.

Method used

By obtaining the download status and compression status information of the files to be downloaded from the resource server on the client side, using compression tools to perform aggregate compression, and generating and displaying file directory compression download progress information, the download and compression progress can be tracked and visually displayed in real time.

Benefits of technology

It effectively solves the problem of accuracy and intuitiveness of file directory compression download progress monitoring, and improves the transparency and user experience of the download process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694758A
    Figure CN118694758A
Patent Text Reader

Abstract

The invention provides a method, a device, equipment, a medium and a product for monitoring file directory compression downloading, and relates to a mobile internet technology, the method comprises the following steps: in response to a file directory compression downloading request initiated by a user at a client, sending a to-be-downloaded directory to a resource server, obtaining a plurality of to-be-downloaded files corresponding to the to-be-downloaded directory from the resource server; each time one to-be-downloaded file is obtained from the resource server, the downloading completion state of the to-be-downloaded file is determined; acquiring file downloading state information of the plurality of files to be downloaded according to the downloading completion state; based on a compression tool, carrying out aggregation compression on all the obtained files to be downloaded, and determining file compression state information in an aggregation compression process; and generating file directory compression downloading progress information according to the file downloading state information and the file compression state information. By means of the method, the problems that in the prior art, the progress of the downloading and compressing process is difficult to reflect truly, accuracy is low, and intuition is not achieved are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of mobile Internet technology, and in particular to a monitoring method, device, equipment, medium and product for compressed downloading of a file directory. Background Art

[0002] The file downloading technology based on HyperText Transfer Protocol (HTTP) is a common downloading technology on the Internet. In practical applications, users may have the need to compress multiple file directories into a single ZIP compressed file.

[0003] In the related art, a scheme for compressed downloading of file directories is proposed, but there is a lack of means for monitoring compressed downloading of file directories. During the download process, users can only estimate the progress of compressed downloading of file directories based on the receiving speed of the client. Such progress monitoring is difficult to truly reflect the progress of the download compression process, and has low accuracy and is not intuitive. Especially for compressed downloading scenarios of file directories with complex directory structures or large file sizes, it will undoubtedly affect the compressed downloading performance of file directories. Summary of the invention

[0004] The present application provides a monitoring method, device, equipment, medium and product for compressed downloading of a file directory to at least solve the above-mentioned technical problems.

[0005] In a first aspect, the present application provides a method for monitoring compressed download of a file directory, which is applied to a client and includes:

[0006] In response to a file directory compression download request initiated by a user at a client, a directory to be downloaded is sent to a resource server, so as to obtain a plurality of files to be downloaded corresponding to the directory to be downloaded from the resource server;

[0007] Each time a file to be downloaded is obtained from the resource server, a download completion status of the file to be downloaded is determined;

[0008] According to the download completion status, obtaining file download status information of the multiple files to be downloaded;

[0009] Based on the compression tool, all the acquired files to be downloaded are aggregated and compressed, and the file compression status information of the aggregate compression process is determined;

[0010] File directory compression download progress information is generated according to the file download status information and the file compression status information, and is displayed at the file directory compression download position corresponding to the client.

[0011] In one embodiment, the file download status information includes at least one of the following: the number of downloaded files, the size of downloaded files, the percentage of the number of compressed files, and the percentage of the size of compressed files;

[0012] The file compression status information includes at least one of the following: the number of compressed files, the size of compressed files, the proportion of the number of compressed files, and the proportion of the size of compressed files.

[0013] In one implementation, the obtaining, from the resource server, a plurality of files to be downloaded corresponding to the directory to be downloaded includes:

[0014] Obtaining a directory and a file list corresponding to the directory to be downloaded from the resource server;

[0015] A list of directories to be read and a list of files to be downloaded are created according to the directory and file list, corresponding directory information is accessed from a resource server according to the list of directories to be read, and when the reading of the directory list is completed, a plurality of files to be downloaded corresponding to the directory to be downloaded are obtained from the resource server based on the list of downloaded files.

[0016] In one embodiment, the method further comprises:

[0017] Obtaining a directory reading status of the directory list, wherein the directory reading status includes a reading status of each directory information;

[0018] The step of generating file directory compression download progress information according to the file download status information and the file compression status information includes:

[0019] File directory compression download progress information is generated according to the directory reading status, file download status information and the file compression status information.

[0020] In one implementation, the step of aggregating and compressing all the acquired files to be downloaded based on a compression tool includes:

[0021] Based on the compression tool, create a compressed data writing instance;

[0022] For all the acquired files to be downloaded, the entry adding method of the compressed data writing instance is called in sequence, each file to be downloaded is added to the compressed data writing instance in the form of an entry, and compressed entry adding information is obtained;

[0023] The determining of the file compression status information of the aggregate compression process includes:

[0024] The file compression status information of the aggregate compression process is determined according to the compression entry addition information.

[0025] In one embodiment, the method further comprises:

[0026] Acquire transmission delay information of the plurality of files to be downloaded, wherein the transmission delay information includes time delay information of the client acquiring the files to be downloaded and / or time delay information of the server sending the files to be downloaded;

[0027] The step of generating file directory compression download progress information according to the file download status information and the file compression status information includes:

[0028] File directory compression progress information is generated according to the transmission delay information, the file download status information and the file compression status information.

[0029] In one embodiment, the method further comprises:

[0030] Sending a delay monitoring request to a resource server, the delay monitoring request carrying the file download addresses of the multiple files to be downloaded, so as to obtain transmission information of each file to be downloaded from the resource server according to the file download addresses, the transmission information including transmission timestamp information of each file to be downloaded transmitted by the resource server to the client;

[0031] The acquiring the transmission delay information of the plurality of files to be downloaded includes:

[0032] The transmission delay information of the plurality of files to be downloaded is obtained according to the transmission timestamp information and the reception timestamp information of each file to be downloaded obtained from the resource server.

[0033] In one implementation, sending a delay monitoring request to a resource server includes:

[0034] At every preset time period, according to the preset progress query interface address of the resource server, a delay monitoring request is sent to the resource server.

[0035] In one embodiment, the transmission information further includes transmission file information of the resource server regarding the transmission timestamp information, and the transmission file information includes the size of the transmitted file corresponding to the transmission timestamp;

[0036] The acquiring the transmission delay information of the plurality of files to be downloaded includes:

[0037] The transmission delay information of the multiple files to be downloaded is obtained according to the transmission timestamp information, the transmission file information, and the reception timestamp information and the reception file information of each file to be downloaded obtained from the resource server.

[0038] In one embodiment, the method further comprises:

[0039] If the transmission delay information reaches a preset transmission delay condition, generating compression abnormality prompt information;

[0040] The compression exception prompt information is associated with the file directory compression download progress information and displayed.

[0041] In a second aspect, a monitoring device for compressed downloading of a file directory is provided, which is applied to a client and includes:

[0042] A file resource acquisition module, which is configured to respond to a file directory compression download request initiated by a user on a client, send a directory to be downloaded to at least one resource server, and obtain multiple files to be downloaded corresponding to the directory to be downloaded from the resource server;

[0043] a status determination module, configured to determine the download completion status of each file to be downloaded after obtaining the file from the resource server;

[0044] A download status acquisition module, configured to acquire file download status information of the plurality of files to be downloaded according to the download completion status;

[0045] A compression status acquisition module, which is configured to aggregate and compress all acquired files to be downloaded based on a compression tool, and determine file compression status information of the aggregate compression process;

[0046] The progress generation and display module is configured to generate file directory compression download progress information according to the file download status information and the file compression status information, and display it at the file directory compression download position on the client.

[0047] In a third aspect, an electronic device is provided, comprising: a processor, and a memory communicatively connected to the processor;

[0048] The memory stores computer-executable instructions;

[0049] The processor executes the computer-executable instructions stored in the memory to implement the monitoring method for compressed downloading of file directories.

[0050] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions, and when the computer execution instructions are executed by a processor, the method for monitoring the compressed download of a file directory provided in the first aspect is implemented.

[0051] In a fifth aspect, a computer program product is provided, including a computer program, which, when executed by a processor, implements the monitoring method for compressed downloading of a file directory provided in the first aspect.

[0052] The monitoring method, device, equipment, medium and product for compressed download of file directories provided by the present application, for the compressed download process of file directories, by determining the file download status information of the files to be downloaded when obtaining the files to be downloaded from the resource server, and determining the file compression status information during the aggregation compression, and generating and displaying the compressed download progress according to the file download status information and the file compression status information, thus achieving real-time progress tracking and intuitive display of the status information at different stages in the compressed download process. In this way, it can effectively solve the problem in the prior art that it is difficult to truly reflect the progress of the download compression process, and the accuracy is low and it is not intuitive. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0054] Figure 1 One of the flow diagrams of a method for monitoring the compressed download of a file directory provided in an embodiment of the present application;

[0055] Figure 2 A second flowchart of a method for monitoring file directory compression downloading provided in an embodiment of the present application;

[0056] Figure 3 for Figure 1 Schematic diagram of the process of step S104;

[0057] Figure 4 A flowchart of another method for monitoring the compressed download of a file directory provided in an embodiment of the present application;

[0058] Figure 5 A flowchart of another method for monitoring the compressed download of a file directory provided in an embodiment of the present application;

[0059] Figure 6 A possible scenario diagram provided for an embodiment of the present application;

[0060] Figure 7 An interactive schematic diagram of a method for monitoring file directory downloads provided in an embodiment of the present application;

[0061] Figure 8 A schematic diagram of the structure of a monitoring device for compressed downloading of a file directory provided in an embodiment of the present application;

[0062] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0063] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0064] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0065] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of financial data or user data and other information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals. It should be noted that in the embodiments of this application, some existing solutions in the industry such as certain software, components, models, etc. may be mentioned, and they should be considered as exemplary. Their purpose is only to illustrate the feasibility of the implementation of the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.

[0066] The following is an introduction to the embodiments of the present application in conjunction with the application scenario. In a possible application scenario, it includes a client and a server, and the client and the server are connected to each other via a wired or wireless network. The client is installed with a web browsing application, and the user can browse the web and download files on the web on the client, such as initiating a file directory download request by selecting a file directory to be downloaded. The file directory download request can carry the directory to be downloaded selected by the user. The client responds to the multiple file directory download request and initiates a corresponding file directory download request to the server, carrying the directory to be downloaded. For example, the user's directory information to be downloaded is " / home / user / project_files", and this directory information to be downloaded will contain all the requested files and subdirectories. The client goes to the resource server to request the corresponding directory and file information according to this path, and performs subsequent download and compression operations. The server responds to the download request and sends the resources of the corresponding file directory to the client. The client aggregates and compresses the acquired resources to obtain an aggregated compressed file and downloads it locally.

[0067] Optionally, the client may include, but is not limited to, computers, smart phones, tablet computers, e-book readers, portable computers, car computers, wearable devices, desktop computers, set-top boxes, smart TVs, etc. Optionally, the server may be an independent physical server, or a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0068] Currently, there is a lack of means to monitor the compressed download of file directories during the process of compressed downloading. During the downloading process, users can only estimate the progress of the compressed download of file directories based on the receiving speed of the client. This type of progress monitoring is difficult to truly reflect the progress of the download compression process, has low accuracy and is not intuitive.

[0069] In view of this, the monitoring method, device, equipment, medium and product for compressed download of a file directory provided in the embodiment of the present application, by responding to the compressed download request of the file directory initiated by the user on the client, sending the directory to be downloaded to the resource server, so as to obtain multiple files to be downloaded corresponding to the directory to be downloaded from the resource server, and each time a file to be downloaded is obtained from the resource server, the download completion status of the file to be downloaded is determined, and the file download status information of the multiple files to be downloaded is obtained according to the download completion status, and the file compression status information of the multiple files to be downloaded is obtained, and the compression tool is used to aggregate and compress all the obtained files to be downloaded, and the file compression status information of the aggregate compression process is determined, and the file directory compression download progress information is generated according to the file download status information and the file compression status information, and displayed at the compressed download position of the file directory corresponding to the client. In this process, for the compressed download process of the file directory, by obtaining the file download status information of the file to be downloaded when obtaining the file to be downloaded from the resource server, and obtaining the file compression status information when the aggregate compression is performed, and generating and displaying the compressed download progress according to the file download status information and the file compression status information, the real-time progress tracking and intuitive display of the status information at different stages in the compressed download process are realized. In this way, the problem in the prior art that it is difficult to truly reflect the progress of the download compression process, the accuracy is low and it is not intuitive can be effectively solved.

[0070] It should be noted that the file compression downloading method of the present application can be used in the field of financial technology. It can also be used in any field other than the field of financial technology, and the application field of the monitoring method for file directory compression downloading of the present application is not limited.

[0071] Based on the above application scenario, the present application embodiment provides a monitoring method for compressed download of a file directory, such as Figure 1 As shown, the method is applied to the client and may include the following steps S101-S105:

[0072] Step S101: In response to a file directory compression download request initiated by a user at a client, a directory to be downloaded is sent to a resource server to obtain a plurality of files to be downloaded corresponding to the directory to be downloaded from the resource server.

[0073] Exemplarily, a user may open a web page interactive application (such as a web browser) on a client and input the directory information to be downloaded to initiate a file directory compression download request. For example, a user wants to download a directory named "project_files", which contains some subdirectories and files. The directory information input by the user in the web page interactive application is such as " / home / user / project_files", which indicates that the user wishes to download the "project_files" directory and all its contents under his home directory. In actual applications, the input interface may include a text box in which the user enters the above path, and then clicks a "download" button to submit the information, thereby initiating a file directory compression download request. In response to the file directory compression download request, the compression component of the client sends a directory access request to the resource server, which may include the directory information to be downloaded to access the directory and download the corresponding files.

[0074] In some embodiments, the compression component of the client may also simultaneously send the to-be-downloaded directory information to the progress monitoring component of the client, so that the progress monitoring component reports the task status and the progress monitoring device registers the task information.

[0075] In some embodiments, when a file directory compression download request is a file directory download demand for multiple resource servers, the relay server can be used to sort out the directory to be downloaded to determine which resource server the file resources of the directory to be downloaded are located on, and obtain multiple files to be downloaded corresponding to the directory to be downloaded from the corresponding resource server based on the file resource location information determined by the relay server.

[0076] It can be understood that in response to the conditions or states on which the executed operations depend, when the dependent conditions or states are met, one or more operations executed can be in real time or have a set delay; unless otherwise specified, there is no restriction on the order of execution of the multiple operations executed.

[0077] In one embodiment, Figure 2As shown, step S101 obtains multiple files to be downloaded corresponding to the to-be-downloaded directory from the resource server, which may include the following steps:

[0078] Step S101a: Obtain a directory and file list corresponding to the directory to be downloaded from the resource server.

[0079] In this embodiment, after the client sends the directory to be downloaded to the resource server, the data returned by the resource server may be in the file data exchange (JSON) format. Specifically, the client obtains the directory and file information of the directory to be downloaded from the resource server, that is, the directory structure and the file information contained therein.

[0080] Step S101b: creating a list of directories to be read and a list of files to be downloaded according to the list of directories and files.

[0081] Exemplarily, by parsing the JSON data returned by the resource server, two lists are generated: one is a directory list and the other is a file resource list. The directory list contains all directory information that needs to be read; the file resource list contains all file information that needs to be downloaded. In addition, after generating these two lists, tasks can be recorded in the progress monitoring component, and progress monitoring can be combined with the list information when performing progress monitoring, such as whether the directory in the directory to be read has been read.

[0082] The directory information may include one or any combination of the following: directory name, the name or path of the directory; subdirectory list, the subdirectory information contained in the directory; file list, the file information contained in the directory; directory attributes, such as creation time, modification time, permissions, etc.

[0083] Step S101c: access corresponding directory information from a resource server according to the to-be-read directory list, and when the directory list is read, obtain multiple to-be-downloaded files corresponding to the to-be-downloaded directory from the resource server based on the download file list.

[0084] Exemplarily, the compression component of the client traverses the local file directory list and reads the directory information one by one. When reading each directory information, the compression component initiates a request to the remote server to obtain the detailed content under the directory until all directory information is read, and then downloads and compresses the file.

[0085] In this embodiment, by reading the directory information and downloading the file, the complete directory structure can be obtained, and the client can have a clearer understanding of the hierarchical relationship of the entire directory tree, so as to facilitate subsequent file downloads and organization, and ensure that the downloaded files can be correctly placed in the corresponding directory; and by first obtaining the directory structure, the client can be helped to optimize the download order and strategy. For example, in some scenarios, certain key files can be downloaded first, or files in different directories can be downloaded in parallel to improve download efficiency. In addition, breakpoint resumption can be supported, and the complete directory structure and file list can be solved to better support breakpoint resumption. If the download process is interrupted, the client can continue to download from the interrupted place based on the existing directory and file information. In addition, the consistency of the directory structure in aggregate compression can also be improved.

[0086] Step S102: each time a file to be downloaded is obtained from the resource server, a download completion status of the file to be downloaded is determined.

[0087] Exemplarily, the files to be downloaded can be obtained from the resource server according to the list of files to be downloaded, and the download completion status of each file to be downloaded can be determined. The download completion status can be determined based on the consistency between the file size sent by the resource server and the file size received by the client. When the sizes are consistent, the download is completed.

[0088] In some embodiments, the client obtains the file to be downloaded from the resource server, that is, the process of reading the file resources of the resource server. Optionally, the compression component can determine the existence of the file to be downloaded in combination with the above-mentioned list of files to be downloaded, and take out the first record in the list, initiate a file download request to the resource server, the resource server responds to the file download request, returns the file content, the compression component receives the return content from the resource server, and can record it in the blob attribute of the current download item, and then determine the download completion status of the file to be downloaded based on the returned content, and can remove the above-mentioned downloaded file item from the list of files to be downloaded.

[0089] By determining the download completion status of each file to be downloaded, the overall download status information of multiple files to be downloaded that the client needs to download can be obtained in subsequent steps.

[0090] Step S103: Obtain file download status information of the multiple files to be downloaded according to the download completion status.

[0091] In this embodiment, according to the completion status corresponding to each file to be downloaded, the file download status information of the entire file to be downloaded is obtained, and the file download status information is convenient for intuitively monitoring the progress of the file download.

[0092] Exemplarily, the file download status information may include at least one of the following: the number of downloaded files, the size of downloaded files, the percentage of compressed files, and the percentage of compressed files. In some examples, the file compression status information may also include other information that can be used to describe the file compression status, such as download interruption or pause, etc.

[0093] Step S104: Based on the compression tool, aggregate and compress all the acquired files to be downloaded, and determine the file compression status information of the aggregate compression process.

[0094] Exemplarily, the file compression status information includes at least one of the following: the number of compressed files, the size of compressed files, the percentage of the number of compressed files, and the percentage of the size of compressed files. In some examples, the file compression status information may also include other information that can be used to describe the file compression status, such as whether the compression is interrupted or paused.

[0095] In order to improve the compression efficiency of the file directory, during the aggregate compression process, it is not necessary to wait for all the files to be downloaded to be downloaded before performing aggregate compression. Aggregate compression can be performed on the acquired files to be compressed, that is, the file download process can be carried out simultaneously with the aggregate compression process (for example, if a downloaded file has been completed, the downloaded file is compressed and added to the compressed file when the downloaded file is completed later).

[0096] In one embodiment, Figure 3 As shown, in the above step S104, all the acquired files to be downloaded are aggregated and compressed based on the compression tool, which may include the following steps:

[0097] Step S104a: Create a compressed data writing instance based on the compression tool.

[0098] Exemplarily, the compression tool may be a ZIP.JS compression tool, which is a JavaScript library for processing ZIP files, allowing the creation, reading and decompression of ZIP files in a browser without relying on server-side processing. The ZIP.JS compression tool used in this embodiment can improve the convenience of file directory compression.

[0099] Specifically, this embodiment uses the ZIP.JS compression tool to create a compressed data writing (ZipWriter) instance, which can implement the writing operation of creating and managing aggregate compressed (ZIP) files. Specifically, the ZipWriter instance can compress multiple files or data streams into a file ZIP.

[0100] Step S104b: for all the acquired files to be downloaded, the entry adding method of the compressed data writing instance is called in sequence, and each file to be downloaded is added to the compressed data writing instance in the form of an entry.

[0101] Exemplarily, the compression component of the client can create a list of files to be compressed, read the tasks to be compressed (the acquired files to be downloaded) in the list, call the add method of ZipWriter, and add the corresponding entries to the compressed file of the compressed data writing instance.

[0102] The above-mentioned method of creating the list of files to be compressed can be based on all the acquired files to be downloaded, and each new file to be downloaded is added to the list. It can also be created based on multiple lists of files to be downloaded, and all the files to be downloaded in the list are marked to achieve priority traversal compression of downloaded files.

[0103] In some embodiments, the entry adding method of the compressed data writing instance can be called in sequence for the read directories, and each read directory can be added to the compressed data writing instance in the form of an entry. Specifically, there are two ways of adding for the compression process of the file directory. When the target record is a directory, the added file content is null. When the added record is a file, the file to be downloaded obtained from the server (by reading the content blob attribute) is set as the content of the added file.

[0104] Furthermore, determining the file compression status information of the aggregate compression process in the above step S104 may include the following steps:

[0105] Step S104c: Determine file compression status information of the aggregate compression process according to the compression entry addition information.

[0106] Exemplarily, the total entries can be determined based on the compressed file list, and the file compression status information can be determined based on the compressed entry addition information (currently added entries). The compression status information can be information such as the compressed entry ratio and the number of added entries.

[0107] Step S105: Generate file directory compression download progress information according to the file download status information and the file compression status information, and display it at the file directory compression download position corresponding to the client.

[0108] For example, the generated progress information can be displayed on the user interface of the client, and the specific location may be the compressed download location of the file directory. The user can view the download and compression progress of the file directory in real time through the interface, improving the user download experience.

[0109] Through the above scheme, for the compressed download process of the file directory, by obtaining the file download status information of the file to be downloaded when obtaining the file to be downloaded from the resource server, and obtaining the file compression status information during the aggregation compression, and generating and displaying the compressed download progress according to the file download status information and the file compression status information, the real-time progress tracking and intuitive display of the status information at different stages in the compressed download process are realized. In this way, the problem that it is difficult to truly reflect the progress of the download compression process, the accuracy is low and it is not intuitive in the prior art can be effectively solved.

[0110] Continue to combine Figure 2 Considering the directory reading, in one implementation, the method provided in this embodiment may further include the following steps:

[0111] Step S201: Obtain the directory reading status of the directory list, where the directory reading status includes the reading status of each directory information.

[0112] In this embodiment, the reading status of each directory information, that is, whether the directory information corresponding to each directory in the list has been read, can also include information such as whether the overall directory information has been read, is being read, and the number of reads.

[0113] The above step S105 may include the following steps: S105a, generating file directory compression download progress information according to the directory reading status, file download status information and the file compression status information, and displaying it at the file directory compression download position corresponding to the client.

[0114] In this implementation, in addition to displaying the progress of the file download status and the file compression status, the progress of the directory reading stage is also considered, which can further improve the overall progress display of the file directory compression process. In addition, for the file directory compression process, the user can flexibly adjust the subsequent file download and compression process based on the reading progress information of the directory stage, thereby improving the flexibility of file directory compression.

[0115] Figure 4 This is a flowchart of another method for monitoring the compressed download of a file directory provided by an embodiment of the present application. Based on the above embodiment, considering that there may be a transmission delay problem in the process of compressing a file directory, especially in the process of compressing a large file directory, in order to further improve the compressed download performance of the file directory. In addition to the above steps S101-S105, the method provided by this embodiment may also include step S401, and the above step S105 is further divided into step S105a:

[0116] Step S401: Acquire transmission delay information of the plurality of files to be downloaded, wherein the transmission delay information includes time delay information for the client to acquire the files to be downloaded and / or time delay information for the server to send the files to be downloaded.

[0117] Exemplarily, the transmission delay information of multiple files to be downloaded can be obtained based on the information interaction with the resource server. Specifically, the transmission delay information of the multiple files to be downloaded is obtained by sending a delay monitoring request to the resource server, and according to the transmission timestamp information, obtaining the receiving timestamp information of each file to be downloaded from the resource server. The delay monitoring request carries the file download addresses of the multiple files to be downloaded, so as to obtain the transmission information of each file to be downloaded from the resource server according to the file download address, and the transmission information includes the transmission timestamp information of each file to be downloaded transmitted by the resource server to the client.

[0118] In the above process of sending a delay monitoring request to the resource server, the delay monitoring request can be sent to the resource server at every preset time period according to the preset progress query interface address of the resource server. Exemplarily, the resource server can pre-set the progress query interface, and exchange the transmission delay information based on the progress query interface. Specifically, the client periodically (may be 1 second) requests the real-time transmission progress (i.e., transmission information) of the server through the progress query address exposed by the server to obtain the transmission status of the currently downloaded file.

[0119] In some embodiments, in addition to the timestamp, the transmission delay information of the file can also be determined in combination with the transmission file information to further improve the compression download performance. The above transmission information can also include the transmission file information of the resource server about the transmission timestamp information, and the transmission file information includes the size of the transmitted file corresponding to the transmission timestamp;

[0120] The above step S401 obtains the transmission delay information of the multiple files to be downloaded, specifically: according to the transmission timestamp information, the transmission file information, and the reception timestamp information and the reception file information of each file to be downloaded obtained from the resource server, the transmission delay information of the multiple files to be downloaded is obtained.

[0121] In this embodiment, the transmission delay information includes two monitoring indicators. For example, assuming that the server sends a 500k file cumulatively at 10:23:0 seconds, and the client receives a 500k file at 10:23:5, then the transmission delay of 500k in the file is 5 seconds. Another transmission monitoring indicator is: assuming that the server reports that a 500k file is sent cumulatively at 10:23:0 seconds, and the client records a cumulative reception of 450k files at the same time, then the number of unreceived files at the same time is 50k (the transmission delay of 50k can also be calculated in combination with the transmission time, for example, in this embodiment, the delay rate is 0.1).

[0122] Based on this method, the transmission delay information obtained includes the timestamp information of the file transfer and the transmission file information. The file transmission delay can be determined based on the timestamp information. Whether the file information transmitted in the same time is the same can also be determined. Based on the file information, it can be further determined whether it is data loss or delay. This improves the compression download performance of the file directory.

[0123] Step S105a: Generate file directory compression progress information according to the transmission delay information, the file download status information and the file compression status information.

[0124] Through the above technical solution, the problem of transmission delay that may exist in the file directory compression process, especially for the compression process of large file directories, is effectively solved. The file directory compression progress information is generated in combination with the transmission delay information. The user can judge the delay problem of the current compression download process based on the transmission delay information, making the file directory compression progress information more objective, and at the same time providing data support for improving the compression performance of the file directory.

[0125] Figure 5 This is a flowchart of another method for monitoring the compressed download of a file directory provided by an embodiment of the present application. Figure 4 On the basis of the corresponding embodiment, an abnormal prompt solution for transmission delay is also provided to improve the user experience. Figure 4 In addition to the steps shown, the method provided in this embodiment may also include step S501 and step S502.

[0126] Step S501: If the transmission delay information reaches a preset transmission delay condition, compression abnormality prompt information is generated.

[0127] Continuing with the above transmission monitoring indicator example, after obtaining the transmission delay information, the client determines whether the transmission delay information reaches the preset transmission delay condition, and the preset transmission delay condition may include a delay time threshold and / or a file size difference threshold at the same time, or may only include a delay time rate (the delay time is calculated as a ratio of the delay time to the transmission time, and the file size difference is converted into the delay time). In some embodiments, the preset transmission delay condition may also be adaptively adjusted according to the actual application.

[0128] Step S502: The compression exception prompt information is associated with the file directory compression download progress information and displayed.

[0129] For example, when the transmission delay time exceeds a certain period of time, the client may consider that a network anomaly has occurred in the file transmission, and may adopt the HTTP resume request method to re-establish the request connection. The file continues to be received, and the timeout disconnection problem has been solved. By generating a compression exception prompt message and displaying it in association with the file directory compression progress information, the user can understand the abnormal situation in the current file directory download progress, further improving the user experience.

[0130] To facilitate the understanding of the embodiments of the present application, the following is a further introduction in conjunction with a web page download scenario: Figure 6 , including a client and a server, the client includes a web application device 601, a web file compression device 602 (referred to as a compression device, corresponding to the above-mentioned compression component) and a progress monitoring device 603 (corresponding to the above-mentioned progress monitoring component), and the server includes a resource server, which can be a customized HTTP file resource server 604; optionally, the web application device 601 is used to display downloadable resources, and in response to the user's resource selection and download request, the web compression device initiates instructions, and in response to the specified storage path selected by the user, the compressed file resources obtained from the web compression device are stored in the user's local hard disk using the browser's file access capability. The web file compression device 602 can complete the front-end compression of file data based on zip.js. Specifically, it requests a customized HTTP resource server, initiates a server-side directory list request, a file download request, etc., and can report the task execution details to the progress monitoring device 603 through a message mechanism. The progress monitoring device 603 communicates with the compression device 602 through the message mechanism, receives the task completion status of each stage in real time, and can perform statistical calculations on the overall progress of the entire download task by creating a statistical component, and comprehensively feedback the data progress status of each stage of the download process (directory reading, file downloading, file compression, etc.). The customized HTTP file resource server (i.e., resource server) can be customized based on Tomcat's file server, and mainly returns JSON data about directory / file lists for directory requests.

[0131] In this application scenario, an exemplary embodiment is provided, such as Figure 7 As shown, the following process is included:

[0132] S1. The user opens the web interactive application and enters the directory information to be downloaded.

[0133] S2. The compression device receives download directory information submitted by the interactive application.

[0134] S3. The compression device initiates a directory access request to the remote server.

[0135] During this process, the compression device reports the task status to the monitoring device, the monitoring device registers the task information, and the resource server returns the JSON information corresponding to the file directory.

[0136] S4. Compress the recorded information returned by the device

[0137] In this process, the compression device calculates the directory information to be read, the file information to be downloaded, and the compressed data item list returned by the local download. Optionally, all data items returned by the server are added to the compressed data item list, all directory information is added to the directory list to be read, and file information is added to the file list to be downloaded.

[0138] The compression device can report the above-mentioned analysis content to the monitoring device, the monitoring device registers the relevant task content, and the monitoring device completes the update of the real-time task list, statistics and other information.

[0139] S5, the compression device continues to traverse the list of directories to be read, takes out the first directory entry, and jumps to step S3. If there is no directory entry to be read, jumps to S6.

[0140] S6: The compression device reports to the monitoring device that the directory reading phase is over, wherein the monitoring device receives the directory reading phase end event and synchronously updates the statistical data.

[0141] S7, the compression device reads the list of files to be downloaded, if there is one, execute the following steps, if not, jump to step S8

[0142] That is, the following steps are executed: the compression device determines that there is a file to be downloaded, and takes out the first record in the list; the compression device reports the current file information to be downloaded to the monitoring device; the monitoring device registers the current file information status to be downloaded; the compression device initiates a file download request to the file server; the file server responds to the file download request and returns the file content; the compression device receives the return content from the file server and records it in the binary data (blob) attribute of the current download item; the compression device reports the completion of the file download to the monitoring device; the monitoring device registers the completion of the file download; the monitoring device completes the real-time task statistics. Including the number of downloaded files, the total size of downloaded files, the list of downloaded files, the percentage of the number, the percentage of the size, etc.; the above file items are removed from the file items to be downloaded, added to the downloaded file items, and repeated execution is performed until the list traversal is completed.

[0143] S8. The compression device creates a compression component instance, the ZipWriter instance of zip.js.

[0144] During this process, the compression device can report to the monitoring device that the task has entered the file compression phase, and the monitoring device registers the task phase change.

[0145] S9, the compression device reads the list of files / directories to be compressed. If there are entries to be compressed, the following steps are executed; otherwise, the process jumps to step S10.

[0146] That is, the compression device reads the first compressed record, calls the add method of ZipWriter, and adds the corresponding entry to the compressed target file. When the target record is a directory, the added file content is null. When the added record is a file, the content blob attribute read from the server in the previous stage is set to the content of the added file.

[0147] In addition, the compression device reports the compressed file adding progress to the monitoring device, the monitoring device registers the compressed file adding progress, and the monitoring device counts the real-time compression progress, the total number of added files, the percentage, etc.

[0148] S9. The compression device calls the close method of zipWriter and waits for the compression calculation to be completed.

[0149] S10. The compression device reports a close completion event to the monitoring device, and the monitoring device records the close completion event.

[0150] S11. The webpage interactive application receives the blob object (including the data of the aggregated file) generated by the compression device.

[0151] S12. The webpage interactive application generates a downloadable uniform resource locator (URL) address of the blob object.

[0152] S13. The web page interactive application generates an "a" tag and sets the url as the url (Hypertext Reference, href) attribute of the hyperlink target specified by the a tag.

[0153] Step 14: The web application initiates a click event on the "a" tag, and a download dialog box pops up.

[0154] Step 15: The user selects the storage directory for this time and completes the file directory compression download.

[0155] The current HTTP request adopts a question-and-answer interaction mode. When the server responds to the client's request to transfer files, it is difficult to report the overall download progress to the client periodically or in real time through a single response. Due to the compression technology, it is difficult for the client to distinguish the current transmission progress from the data transmission situation. This embodiment is based on the front-end compression download technology. During the compression download process, multiple file download events and custom logic callback events (status acquisition and progress information generation methods) are used to effectively display the entire compression progress to the user in real time during the compression download process. Compared with the server-side compression monitoring mechanism, the client progress report is based on the actual download process of the front end, so that the real-time and accuracy of each event are not affected by the network speed. At the same time, the worker thread mechanism (display of progress information at each stage) is used to separate intensive calculations, thereby ensuring the real-time and effectiveness of monitoring.

[0156] Figure 8 is a schematic diagram of a monitoring device for compressed downloading of a file directory provided in an embodiment of the present application, and the device is applied to a client, such as Figure 8 As shown, the device 800 includes a file resource acquisition module 801, a status determination module 802, a download status acquisition module 803, a compression status acquisition module 804 and a progress generation and display module 805, wherein:

[0157] The file resource acquisition module 801 is configured to respond to a file directory compression download request initiated by a user on a client, send a directory to be downloaded to at least one resource server, and obtain multiple files to be downloaded corresponding to the directory to be downloaded from the resource server;

[0158] A status determination module 802, which is configured to determine the download completion status of each file to be downloaded when obtaining the file to be downloaded from the resource server;

[0159] A download status acquisition module 803, which is configured to acquire file download status information of the multiple files to be downloaded according to the download completion status;

[0160] A compression status acquisition module 804 is configured to aggregate and compress all acquired files to be downloaded based on a compression tool, and determine file compression status information of the aggregate compression process;

[0161] The progress generation and display module 805 is configured to generate file directory compression download progress information according to the file download status information and the file compression status information, and display it at the file directory compression download position on the client.

[0162] In one embodiment, the file download status information includes at least one of the following: the number of downloaded files, the size of downloaded files, the percentage of the number of compressed files, and the percentage of the size of compressed files;

[0163] The file compression status information includes at least one of the following: the number of compressed files, the size of compressed files, the proportion of the number of compressed files, and the proportion of the size of compressed files.

[0164] In one implementation, the file resource acquisition module 801 includes:

[0165] A list acquisition unit, configured to acquire a directory and file list corresponding to the directory to be downloaded from the resource server;

[0166] A directory reading unit, which is configured to create a list of directories to be read and a list of files to be downloaded according to the directory and file list, and access corresponding directory information from a resource server according to the list of directories to be read;

[0167] The file acquisition unit is configured to acquire a plurality of to-be-downloaded files corresponding to the to-be-downloaded directory from a resource server based on the download file list when the directory list is read.

[0168] In one embodiment, the device further comprises:

[0169] A reading status acquisition module, which is configured to acquire a directory reading status of the directory list, wherein the directory reading status includes a reading status of each directory information;

[0170] The progress generation and display module 805 is specifically configured to generate file directory compression download progress information according to the directory reading status, file download status information and the file compression status information.

[0171] In one implementation, the compression state acquisition module 804 includes:

[0172] An instance creation unit, configured to create a compressed data writing instance based on a compression tool;

[0173] An entry adding unit, which is configured to sequentially call the entry adding method of the compressed data writing instance for all the acquired files to be downloaded, add each file to be downloaded to the compressed data writing instance in the form of an entry, and obtain compressed entry adding information;

[0174] A state determination unit is configured to determine file compression state information of the aggregate compression process according to the compression entry addition information.

[0175] In one embodiment, the device further comprises:

[0176] A delay acquisition module, configured to acquire transmission delay information of the plurality of files to be downloaded, wherein the transmission delay information includes time delay information of the client acquiring the files to be downloaded and / or time delay information of the server sending the files to be downloaded;

[0177] The progress generation and display module 805 is specifically configured to generate file directory compression progress information according to the transmission delay information, the file download status information and the file compression status information.

[0178] In one embodiment, the device further comprises:

[0179] a delay request module, configured to send a delay monitoring request to a resource server, wherein the delay monitoring request carries the file download addresses of the multiple files to be downloaded, so as to obtain transmission information of each file to be downloaded from the resource server according to the file download addresses, wherein the transmission information includes transmission timestamp information of each file to be downloaded transmitted by the resource server to the client;

[0180] The delay acquisition module is specifically configured to acquire the transmission delay information of the multiple files to be downloaded based on the transmission timestamp information and the receiving timestamp information of each file to be downloaded obtained from the resource server.

[0181] In one implementation, the delay request module is specifically configured to send a delay monitoring request to the resource server at every preset time period according to a preset progress query interface address of the resource server.

[0182] In one embodiment, the transmission information further includes transmission file information of the resource server regarding the transmission timestamp information, and the transmission file information includes the size of the transmitted file corresponding to the transmission timestamp;

[0183] The delay acquisition module is specifically configured to acquire the transmission delay information of the multiple files to be downloaded based on the transmission timestamp information, the transmission file information, and the reception timestamp information and the reception file information of each file to be downloaded obtained from the resource server.

[0184] In one embodiment, the device further comprises:

[0185] An abnormality prompt module, which is configured to generate compressed abnormality prompt information when the transmission delay information reaches a preset transmission delay condition;

[0186] The associated display module is configured to associate and display the compression exception prompt information with the file directory compression download progress information.

[0187] The above-mentioned device provided in the embodiment of the present application can be used to execute the technical solution of the monitoring method for compressed downloading of the file directory in the above-mentioned embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0188] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the progress generation and display module 805 can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The function of the above progress generation and display module 805. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.

[0189] Fig. 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig. 9 As shown, the electronic device may include: a transceiver 91 , a processor 92 , and a memory 93 .

[0190] The processor 92 executes the computer execution instructions stored in the memory, so that the processor 92 executes the monitoring scheme of the file directory compression download in the above embodiment. The processor 92 can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0191] The memory 93 is connected to the processor 92 via a system bus and completes communication between them. The memory 93 is used to store computer program instructions.

[0192] The transceiver 91 can be used to receive and send data.

[0193] The system bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The transceiver is used to realize the communication between the database access device and other computers (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM) and may also include non-volatile memory.

[0194] The electronic device provided in the embodiment of the present application may be the client of the above embodiment.

[0195] The above-mentioned device provided in the embodiment of the present application can be used to execute the technical solution of the monitoring method for compressed downloading of the file directory in the above-mentioned embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0196] The embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the monitoring method for compressed downloading of file directories provided in the above embodiment.

[0197] The above-mentioned medium provided in the embodiment of the present application can be used to execute the technical solution of the monitoring method for compressed downloading of the file directory in the above-mentioned embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0198] The embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the monitoring method for compressed downloading of a file directory provided in the above embodiment.

[0199] The above-mentioned program product provided in the embodiment of the present application can be used to execute the technical solution of the monitoring method for compressed downloading of file directories in the above-mentioned embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0200] The present application also provides a chip for executing instructions, which is used to execute the monitoring method for compressed downloading of file directories in the above embodiment. Its implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.

[0201] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0202] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of this embodiment.

[0203] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The above-mentioned module-composed unit can be implemented in the form of hardware or in the form of hardware plus software functional units.

[0204] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of various embodiments of the present application.

[0205] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.

[0206] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.

[0207] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0208] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.

[0209] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic control unit or a main control device.

[0210] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0211] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A monitoring method for file directory compression downloading, It is characterized in that Applied to the client, including: In response to a file directory compression download request initiated by a user at a client, a directory to be downloaded is sent to a resource server, so as to obtain a plurality of files to be downloaded corresponding to the directory to be downloaded from the resource server; Each time a file to be downloaded is obtained from the resource server, a download completion status of the file to be downloaded is determined; According to the download completion status, obtaining file download status information of the multiple files to be downloaded; Based on the compression tool, all the acquired files to be downloaded are aggregated and compressed, and the file compression status information of the aggregate compression process is determined; File directory compression download progress information is generated according to the file download status information and the file compression status information, and is displayed at the file directory compression download position corresponding to the client.

2. The method according to claim 1, It is characterized in that The file download status information includes at least one of the following: the number of downloaded files, the size of downloaded files, the proportion of compressed files, and the proportion of compressed files; The file compression status information includes at least one of the following: the number of compressed files, the size of compressed files, the proportion of the number of compressed files, and the proportion of the size of compressed files.

3. The method according to claim 1 or 2, It is characterized in that The step of obtaining a plurality of files to be downloaded corresponding to the directory to be downloaded from the resource server includes: Obtaining a directory and a file list corresponding to the directory to be downloaded from the resource server; A list of directories to be read and a list of files to be downloaded are created according to the directory and file list, corresponding directory information is accessed from a resource server according to the list of directories to be read, and when the reading of the directory list is completed, a plurality of files to be downloaded corresponding to the directory to be downloaded are obtained from the resource server based on the list of downloaded files.

4. The method according to claim 3, It is characterized in that Also includes: Obtaining a directory reading status of the directory list, wherein the directory reading status includes a reading status of each directory information; The step of generating file directory compression download progress information according to the file download status information and the file compression status information includes: File directory compression download progress information is generated according to the directory reading status, file download status information and the file compression status information.

5. The method according to claim 1, It is characterized in that The method of aggregating and compressing all the obtained files to be downloaded based on the compression tool includes: Based on the compression tool, create a compressed data writing instance; For all the acquired files to be downloaded, the entry adding method of the compressed data writing instance is called in sequence, each file to be downloaded is added to the compressed data writing instance in the form of an entry, and compressed entry adding information is obtained; The determining of the file compression status information of the aggregate compression process includes: The file compression status information of the aggregate compression process is determined according to the compression entry addition information.

6. The method according to any one of claims 1 to 5, It is characterized in that Also includes: Acquire transmission delay information of the plurality of files to be downloaded, wherein the transmission delay information includes time delay information of the client acquiring the files to be downloaded and / or time delay information of the server sending the files to be downloaded; The step of generating file directory compression download progress information according to the file download status information and the file compression status information includes: File directory compression progress information is generated according to the transmission delay information, the file download status information and the file compression status information.

7. The method according to claim 6, It is characterized in that Also includes: Sending a delay monitoring request to a resource server, the delay monitoring request carrying the file download addresses of the multiple files to be downloaded, so as to obtain transmission information of each file to be downloaded from the resource server according to the file download addresses, the transmission information including transmission timestamp information of each file to be downloaded transmitted by the resource server to the client; The acquiring the transmission delay information of the plurality of files to be downloaded includes: The transmission delay information of the plurality of files to be downloaded is obtained according to the transmission timestamp information and the reception timestamp information of each file to be downloaded obtained from the resource server.

8. The method according to claim 7, It is characterized in that The sending of the delay monitoring request to the resource server includes: At every preset time period, according to the preset progress query interface address of the resource server, a delay monitoring request is sent to the resource server.

9. The method according to claim 7 or 8, It is characterized in that The transmission information also includes transmission file information of the resource server about the transmission timestamp information, and the transmission file information includes the size of the transmitted file corresponding to the transmission timestamp; The acquiring the transmission delay information of the plurality of files to be downloaded includes: The transmission delay information of the multiple files to be downloaded is obtained according to the transmission timestamp information, the transmission file information, and the reception timestamp information and the reception file information of each file to be downloaded obtained from the resource server.

10. The method according to claim 9, It is characterized in that Also includes: If the transmission delay information reaches a preset transmission delay condition, generating compression abnormality prompt information; The compression exception prompt information is associated with the file directory compression download progress information and displayed.

11. A monitoring device for compressed downloading of file directories, It is characterized in that Applied to the client, including: A file resource acquisition module, which is configured to respond to a file directory compression download request initiated by a user on a client, send a directory to be downloaded to at least one resource server, and obtain multiple files to be downloaded corresponding to the directory to be downloaded from the resource server; a status determination module, configured to determine the download completion status of each file to be downloaded after obtaining the file from the resource server; A download status acquisition module, configured to acquire file download status information of the plurality of files to be downloaded according to the download completion status; A compression status acquisition module, which is configured to aggregate and compress all acquired files to be downloaded based on a compression tool, and determine file compression status information of the aggregate compression process; The progress generation and display module is configured to generate file directory compression download progress information according to the file download status information and the file compression status information, and display it at the file directory compression download position on the client.

12. An electronic device, It is characterized in that include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the monitoring method for compressed downloading of a file directory as described in any one of claims 1-10.

13. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the monitoring method for compressed downloading of a file directory according to any one of claims 1 to 10.

14. A computer program product, It is characterized in that It comprises a computer program, which, when executed by a processor, implements the monitoring method for compressed downloading of a file directory as described in any one of claims 1 to 10.