CN113051232A - File downloading method and device and processor - Google Patents

File downloading method and device and processor Download PDF

Info

Publication number
CN113051232A
CN113051232A CN202110290996.4A CN202110290996A CN113051232A CN 113051232 A CN113051232 A CN 113051232A CN 202110290996 A CN202110290996 A CN 202110290996A CN 113051232 A CN113051232 A CN 113051232A
Authority
CN
China
Prior art keywords
downloading
download
file
event
triggering
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110290996.4A
Other languages
Chinese (zh)
Inventor
朱晓明
应干飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Qunhe Information Technology Co Ltd
Original Assignee
Hangzhou Qunhe Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Qunhe Information Technology Co Ltd filed Critical Hangzhou Qunhe Information Technology Co Ltd
Priority to CN202110290996.4A priority Critical patent/CN113051232A/en
Publication of CN113051232A publication Critical patent/CN113051232A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The invention discloses a file downloading method, a file downloading device and a processor. Wherein, the method comprises the following steps: triggering a downloading event of the desktop development tool; responding to the downloading event, and acquiring a preset downloading catalog; and starting to download the file corresponding to the download directory according to the download directory. The invention solves the technical problem that the desktop development tool only provides the trigger downloading function in the related technology, and is difficult to manage, so that the user experiences poor file downloading.

Description

File downloading method and device and processor
Technical Field
The invention relates to the field of file downloading, in particular to a file downloading method, a file downloading device and a processor.
Background
Electron is a common desktop development tool, and is a framework for building a cross-platform desktop application using JavaScript, HTML, and CSS. The interface is rendered by analyzing HTML and CSS through a built-in chrome kernel, and rich functions are realized through a native API called by JavaScript.
And as a general application development framework, the Electron does not provide a file downloading system, and only provides a crude function of triggering downloading. The Electron application will trigger the file download by clicking on a hyperlink or button during use by the user.
Just because the download function provided by the Electron is too simple, the current applications based on the Electron have no download function such as visual studio code, twitch, inVision and the like which are popular in the market, but the download functions such as whatsapp and slide open can only trigger file download, but the downloaded files are not managed by establishing a system, so that the file download experience of a user is poor, the management of the downloaded files is disordered, and a large number of scenes of disordered file storage and difficult searching are often generated in the using process.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a file downloading method, a file downloading device and a file downloading processor, which at least solve the technical problem that in the related art, a desktop development tool only provides a trigger downloading function and is difficult to manage, so that a user has poor experience of downloading files.
According to an aspect of an embodiment of the present invention, there is provided a file downloading method, including: triggering a downloading event of the desktop development tool; responding to the downloading event, and acquiring a preset downloading catalog; and starting to download the file corresponding to the download directory according to the download directory.
Optionally, the event triggering the downloading of the desktop development tool includes: setting a monitoring event for monitoring the trigger operation of the downloading event of the desktop development tool; and determining to trigger the downloading event under the condition that the desktop development tool is monitored to have the triggering operation through the monitoring event.
Optionally, when it is monitored that the desktop development tool performs the triggering operation through the monitoring event, determining to trigger the downloading event includes: under the condition that a link clicked by the desktop development tool is monitored, whether the link needs to download the file is checked; triggering the triggering operation when the link is detected to need to download the file; and under the condition that the link is checked not to need to download the file, responding to the link to carry out operation of a jump interface.
Optionally, before responding to the download event and acquiring the preset download directory, the method further includes: setting a downloading method corresponding to the downloading event, wherein the downloading method comprises a downloading path which is used for indicating a storage path of the downloading catalogue; and caching the downloading method.
Optionally, the obtaining the preset download directory in response to the download event includes: when the downloading event is triggered, acquiring the downloading method corresponding to the cached downloading event; and acquiring the download directory according to the download path of the download method.
Optionally, before obtaining the download directory according to the download path of the download method, the method further includes: sending an inquiry request, wherein the inquiry request is used for inquiring a user to set a downloading catalogue; and receiving the downloading catalogue input in response to the inquiry request, and caching.
Optionally, starting to download the file corresponding to the download event according to the download directory includes: synchronizing the downloading task of the file into a downloading management window when the file starts to be downloaded; and when the update of the downloading progress of the file is detected, triggering an update event of the downloading management window, and updating the state of the downloading task of the downloading management window.
Optionally, when detecting that the download progress of the file is updated, triggering an update event of the download management window, and before updating the state of the download task of the download management window, the method further includes: receiving an operation of downloading a task in the download management window, wherein the operation comprises at least one of the following operations of suspending, resuming, terminating, canceling, retrying and deleting the file which fails to be downloaded, searching, opening and deleting the file which is downloaded; and updating the downloading progress of the file according to the operation.
According to another aspect of the embodiments of the present invention, there is also provided a file downloading apparatus, including: the trigger module is used for triggering a downloading event of the desktop development tool; the acquisition module is used for responding to the downloading event and acquiring a preset downloading catalogue; and the downloading module is used for starting to download the file corresponding to the downloading event according to the downloading catalog.
According to another aspect of the embodiments of the present invention, there is also provided a processor, where the processor is configured to execute a program, where the program executes the file downloading method described in any one of the above.
According to another aspect of the embodiments of the present invention, there is also provided a computer storage medium, where the computer storage medium includes a stored program, and when the program runs, the apparatus where the computer storage medium is located is controlled to execute any one of the file downloading methods described above.
In the embodiment of the invention, a downloading event triggering a desktop development tool is adopted; responding to the downloading event, and acquiring a preset downloading catalog; according to the downloading catalog, the downloading of the file corresponding to the downloading catalog is started, the purpose of performing system management on the downloaded file by setting the downloading catalog is achieved, the technical effects of improving the downloading experience of users and effectively managing the downloaded file are achieved, and the technical problem that the downloading experience of the users is poor due to the fact that a desktop development tool only provides a triggering downloading function and is difficult to manage in the related art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a file download method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a file download method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a file downloading device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present invention, there is provided a method embodiment of a file download method, it should be noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a flowchart of a file downloading method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, triggering a downloading event of a desktop development tool;
step S104, responding to a downloading event, and acquiring a preset downloading catalog;
and step S106, according to the downloading catalog, starting to download the file corresponding to the downloading catalog.
Through the steps, a downloading event triggering the desktop development tool is adopted; responding to the downloading event, and acquiring a preset downloading catalog; according to the downloading catalog, the downloading of the file corresponding to the downloading catalog is started, the purpose of performing system management on the downloaded file by setting the downloading catalog is achieved, the technical effects of improving the downloading experience of users and effectively managing the downloaded file are achieved, and the technical problem that the downloading experience of the users is poor due to the fact that a desktop development tool only provides a triggering downloading function and is difficult to manage in the related art is solved.
The desktop development tool can be an Electron, and the desktop development tool does not provide a file downloading system and only provides a crude downloading triggering function, namely, a user clicks a hyperlink or a button to trigger file downloading in the using process, and cannot manage downloaded files.
Therefore, the present embodiment provides the file downloading method, which includes monitoring, by a monitor, a downloading event that triggers a desktop development tool, and acquiring a preset corresponding downloading directory in response to the downloading event. The file corresponding to the download directory is downloaded according to the download directory, and the download file is managed systematically through the download directory, so that the technical effects of improving the download experience of a user and effectively managing the download file are achieved, and the technical problem that in the related art, a desktop development tool only provides a trigger download function and is difficult to manage, and the user experience of file downloading is poor is solved.
Optionally, the event triggering the downloading of the desktop development tool includes: setting a monitoring event for monitoring the trigger operation of a downloading event of the desktop development tool; and determining a trigger downloading event by monitoring the event under the condition that the desktop development tool is triggered.
By setting a monitoring event processing method for a downloading event, the method can be executed when the downloading event is triggered, a downloading path is set for the file downloaded at this time in the method, and the file is set to start downloading when the set file is set for a downloading directory set by a user in a file storage setting item management module. Because the file is set with the download path, the system can not always repeatedly inquire the user to download the directory when the file is downloaded every time, and the file download experience is optimized.
In addition, when a download path is set, the file naming module can process the conflict between the download file name and the file name in the download directory by detecting the download directory and the download file name, and the user renaming operation is simplified.
Optionally, the determining the trigger download event includes, by monitoring the event, when it is monitored that the desktop development tool performs the trigger operation: under the condition that a desktop development tool clicks a link, checking whether the link needs to download a file or not; triggering the triggering operation under the condition that the link is checked to need to download the file; and under the condition that the link is checked not to need to download the file, responding to the link to perform the operation of the jump interface.
The downloading event may be an event of clicking a link, and the desktop development tool of the related art center triggers file downloading by clicking the link or clicking a button. Under the condition that a desktop development tool clicks a link, checking whether the link needs to download a file or not; triggering the triggering operation under the condition that the link is checked to need to download the file; and under the condition that the link is checked not to need to download the file, responding to the link to perform the operation of the jump interface. Therefore, whether response is needed or not is determined according to the specific requirements of the link clicked by the user, and the file downloading experience of the user is improved.
Optionally, before the downloading event is responded and the preset downloading directory is obtained, the method further includes: setting a downloading method corresponding to a downloading event, wherein the downloading method comprises a downloading path, and the downloading path is used for indicating a storage path of a downloading catalogue; and caching the downloading method.
The storage path of the download directory, namely the download path, is stored, when the user quits the application and enters the application again, the set items are synchronized with the last setting in real time, the record of the user is prevented from disappearing due to quitting of other reasons, and the download experience of the user is improved.
Optionally, the obtaining the preset download directory in response to the download event includes: when a downloading event is triggered, acquiring a downloading method corresponding to the cached downloading event; and acquiring a downloading directory according to the downloading path of the downloading method.
When a downloading event is triggered, the downloading method in the cache can be obtained, the storage path of the downloading directory is determined through the downloading path of the downloading method, the downloading directory is obtained according to the storage path, and therefore effective downloading of the file according to the downloading directory is guaranteed.
Optionally, before acquiring the download directory according to the download path of the download method, the method further includes: sending an inquiry request, wherein the inquiry request is used for inquiring a user to set a downloading catalogue; and receiving the downloading catalogue input in response to the inquiry request, and caching.
The download directory can be set by a user, so that the use flexibility of file downloading by the user is improved, and downloading is carried out according to requirements. Specifically, the download catalog required by the download intention of the user can be acquired through the inquiry request. And receiving the downloading catalogue input in response to the inquiry request, and caching.
Optionally, starting to download the file corresponding to the download event according to the download directory includes: synchronizing the downloading task of the file into a downloading management window when the file starts to be downloaded; and when the update of the downloading progress of the file is detected, triggering an update event of the downloading management window, and updating the state of the downloading task of the downloading management window.
In the process of downloading the file, the downloading task corresponding to the file downloading is managed in the downloading window, and the corresponding downloading task can be displayed in the downloading window, and the downloading task comprises information such as a number corresponding to the downloading task, a downloading rate, a downloading progress, a file name and the like. And when the update of the downloading progress of the file is detected, triggering an update event of the downloading management window, and updating the state of the downloading task of the downloading management window. For example, if the downloading process is suspended, it is indicated that the downloading task is suspended, and if the downloading task is failed, it is indicated that the downloading task is failed. And providing real-time dynamic downloading tasks for the user to manage.
Optionally, when detecting that the download progress of the file is updated, triggering an update event of the download management window, and before updating the state of the download task of the download management window, the method further includes: receiving an operation of downloading a task in a downloading management window, wherein the operation comprises at least one of the following operations of suspending, resuming, terminating, canceling, retrying and deleting the file which fails to be downloaded, searching, opening and deleting the file which finishes downloading; and updating the downloading progress of the file according to the operation.
In the download management window, the user can manage the download tasks in the download management window. For example, the file being downloaded is subjected to pause operation, resume operation, terminate operation, cancel operation, retry operation and delete operation on the file which fails to be downloaded, and search, open and delete operation on the file which is downloaded; and updating the downloading progress of the file according to the operation. And managing the downloading tasks according to the requirements, thereby further improving the downloading experience of the user.
It should be noted that the present application also provides an alternative implementation, and the details of the implementation are described below.
The embodiment provides a file downloading system and method based on Electron. By establishing the download file management system according to the scheme, a user is provided with a better file download prompt, the file download experience is optimized, and the problem of disordered download file management is solved.
The system mainly comprises a download triggering module and a download management module. The download trigger module comprises a file storage setting item management module, a download file identification module, a download event processing module and a file naming module. The download management module comprises a multi-window communication synchronization module for the download task and a download task cache module.
The following modules are respectively explained according to the whole downloading process:
in the download trigger module:
firstly, a file storage setting item management module provides a function of setting a downloading directory;
the Electron application asks the user to download the catalog each time a download event triggers. The download directory setting item is provided to allow the user to set the download directory without repeatedly inquiring the download directory. Meanwhile, the module simultaneously establishes the cache of the user setting items on the local server and the remote server by utilizing a cache technology, and ensures that the setting items are synchronized with the last setting in real time when the user exits from the application and enters again.
Secondly, identifying file downloading in the user operation process by a downloaded file identification module;
when a user clicks some file links or clicks a jump button in a page, the downloaded file identification module checks a jump address, intelligently identifies the file links needing to be downloaded, calls a native API provided by an Electron, and triggers a downloading event.
Thirdly, monitoring a downloading event;
the download event processing module sets an event processing method for the download event, the method is executed when the download event is triggered, a download path is set for the downloaded file in the method, and the set file can be downloaded after the download directory set by the user in the file storage setting item management module is set. Because the file is set with the download path, the system can not always repeatedly inquire the user to download the directory when the file is downloaded every time, and the file download experience is optimized.
In addition, when a download path is set, the file naming module can process the conflict between the download file name and the file name in the download directory by detecting the download directory and the download file name, and the user renaming operation is simplified.
In the download management module:
firstly, a multi-window communication synchronization module of a download task monitors the download progress;
when a user triggers a download event to start downloading in one window, the multi-window communication synchronization module synchronizes the download task to the download management window. And simultaneously, when the downloading progress of the file is updated, triggering an event of updating the downloading progress, setting an event processing function for the event, monitoring the downloading progress of the file in real time, and synchronizing the progress into a downloading window, so that the downloading progress of the file can be recorded into a file list in a downloading management window. Furthermore, the progress of all file downloading tasks can be displayed for the user, operation options such as pause, recovery and failure retry can be provided for each file downloading task, and the file downloading progress is operated.
Secondly, the downloading task caching module caches downloading history;
the download task cache module caches all download tasks and task progress states to local and remote cache servers, and a user can check and manage the download tasks when entering again at any time even exiting the application. And meanwhile, file management options such as searching, opening, deleting and the like can be provided for the downloaded files.
According to the method and the device, the flow of file downloading triggering is optimized, a downloading directory does not need to be frequently set for each downloading file, and better user experience is brought to a user for downloading the files. Through a file naming conflict processing algorithm, renaming operation of a user is simplified. By monitoring the download-related events provided by the Electron and using the cache, the operations of suspension, recovery, retry and the like of the download file progress are supported, the management operations of searching, opening, deleting and the like of the downloaded file are supported, and the file management efficiency of the user is improved. The defect that the Electron application lacks a file downloading system is overcome.
Fig. 2 is a flowchart of a file downloading method according to an embodiment of the present invention, and as shown in fig. 2, a specific embodiment of the present invention will now be described from the perspective of actual use of a user, and is divided into two scenarios: an implementation in an application and a specific implementation in a download management window.
Firstly, in application:
and setting the monitoring of the link jump and the monitoring of the download event in all application window interfaces except the download management window.
When a link jump occurs, the download file identification module checks the link. If the file address is the file address needing downloading, a native API provided by the Electron is called, and a downloading event is triggered.
In the downloading event processing module, when a downloading event is triggered, the file naming module acquires a downloading file name and a downloading directory set by a user, checks all file names in the downloading directory and a current downloading file name, and adds a self-increment suffix to the downloading file name if the name conflicts. And finally, setting a downloading path, and starting downloading the file.
Secondly, in a download management window of the application:
first, a download directory setting item is provided, where the user can set the download directory of each file, the setting item will be cached, the user exits from entering the application again, and the last set download directory value of the user is still maintained.
Secondly, when the creation of a downloading event is monitored, the downloading task is synchronized into a downloading management window through a multi-window communication module, and a task record is newly added into the downloading task record. Meanwhile, the multi-window communication module updates the progress in the records in real time by monitoring the downloading progress of the file, and the recorded data updating can also synchronously update the display of the downloading record list in the interface. In addition, the records can be cached by the download task cache module, and the records cannot disappear when the user quits the application and enters the application again.
In the download record list, the user can operate to pause, resume and delete the download for the file being downloaded. The file which fails to be downloaded can be retried and deleted. And the downloaded file can be searched, opened and deleted. These operations all call the corresponding native API to achieve the corresponding effect on the downloaded object.
Fig. 3 is a schematic diagram of a file downloading device according to an embodiment of the present invention, and as shown in fig. 3, according to another aspect of the embodiment of the present invention, there is also provided a file downloading device, including: a triggering module 32, an acquisition module 34, and a download module 36, which are described in detail below.
A trigger module 32, configured to trigger a downloading event of the desktop development tool; an obtaining module 34, connected to the triggering module 32, for responding to a download event and obtaining a preset download directory; and the downloading module 36 is connected to the obtaining module 34, and is configured to start downloading the file corresponding to the downloading event according to the downloading directory.
By the device, a downloading event triggering the desktop development tool is adopted; responding to the downloading event, and acquiring a preset downloading catalog; according to the downloading catalog, the downloading of the file corresponding to the downloading catalog is started, the purpose of performing system management on the downloaded file by setting the downloading catalog is achieved, the technical effects of improving the downloading experience of users and effectively managing the downloaded file are achieved, and the technical problem that the downloading experience of the users is poor due to the fact that a desktop development tool only provides a triggering downloading function and is difficult to manage in the related art is solved.
According to another aspect of the embodiments of the present invention, there is also provided a processor, configured to execute a program, where the program executes to perform the file downloading method of any one of the above.
According to another aspect of the embodiments of the present invention, there is also provided a computer storage medium, where the computer storage medium includes a stored program, and when the program runs, the apparatus on which the computer storage medium is located is controlled to execute the file downloading method of any one of the foregoing methods.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for downloading a file, comprising:
triggering a downloading event of the desktop development tool;
responding to the downloading event, and acquiring a preset downloading catalog;
and starting to download the file corresponding to the download directory according to the download directory.
2. The method of claim 1, wherein triggering a download event of a desktop development tool comprises:
setting a monitoring event for monitoring the trigger operation of the downloading event of the desktop development tool;
and determining to trigger the downloading event under the condition that the desktop development tool is monitored to have the triggering operation through the monitoring event.
3. The method of claim 2, wherein the determining to trigger the download event when the desktop development tool is monitored to perform the triggering operation through the monitoring event comprises:
under the condition that a link clicked by the desktop development tool is monitored, whether the link needs to download the file is checked;
triggering the triggering operation when the link is detected to need to download the file;
and under the condition that the link is checked not to need to download the file, responding to the link to carry out operation of a jump interface.
4. The method of claim 1, wherein before acquiring the predetermined download directory in response to the download event, the method further comprises:
setting a downloading method corresponding to the downloading event, wherein the downloading method comprises a downloading path which is used for indicating a storage path of the downloading catalogue;
and caching the downloading method.
5. The method of claim 4, wherein obtaining a predetermined download directory in response to the download event comprises:
when the downloading event is triggered, acquiring the downloading method corresponding to the cached downloading event;
and acquiring the download directory according to the download path of the download method.
6. The method of claim 5, wherein before obtaining the download directory according to the download path of the download method, further comprising:
sending an inquiry request, wherein the inquiry request is used for inquiring a user to set a downloading catalogue;
and receiving the downloading catalogue input in response to the inquiry request, and caching.
7. The method of claim 1, wherein starting to download the file corresponding to the download event according to the download directory comprises:
synchronizing the downloading task of the file into a downloading management window when the file starts to be downloaded;
and when the update of the downloading progress of the file is detected, triggering an update event of the downloading management window, and updating the state of the downloading task of the downloading management window.
8. The method according to claim 7, wherein when detecting that the download progress of the file is updated, triggering an update event of the download management window, and before updating the status of the download task of the download management window, further comprising:
receiving an operation of downloading a task in the download management window, wherein the operation comprises at least one of the following operations of suspending, resuming, terminating, canceling, retrying and deleting the file which fails to be downloaded, searching, opening and deleting the file which is downloaded;
and updating the downloading progress of the file according to the operation.
9. A file downloading apparatus, comprising:
the trigger module is used for triggering a downloading event of the desktop development tool;
the acquisition module is used for responding to the downloading event and acquiring a preset downloading catalogue;
and the downloading module is used for starting to download the file corresponding to the downloading event according to the downloading catalog.
10. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the file download method according to any one of claims 1 to 8 when running.
CN202110290996.4A 2021-03-18 2021-03-18 File downloading method and device and processor Pending CN113051232A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110290996.4A CN113051232A (en) 2021-03-18 2021-03-18 File downloading method and device and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110290996.4A CN113051232A (en) 2021-03-18 2021-03-18 File downloading method and device and processor

Publications (1)

Publication Number Publication Date
CN113051232A true CN113051232A (en) 2021-06-29

Family

ID=76513628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110290996.4A Pending CN113051232A (en) 2021-03-18 2021-03-18 File downloading method and device and processor

Country Status (1)

Country Link
CN (1) CN113051232A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335186A (en) * 2014-08-11 2016-02-17 腾讯科技(深圳)有限公司 Data downloading management method and system
CN106354804A (en) * 2016-08-26 2017-01-25 乐视控股(北京)有限公司 File download processing method and device thereof
CN107948403A (en) * 2017-11-08 2018-04-20 深圳天珑无线科技有限公司 Download method, mobile terminal and the device with store function of file

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335186A (en) * 2014-08-11 2016-02-17 腾讯科技(深圳)有限公司 Data downloading management method and system
CN106354804A (en) * 2016-08-26 2017-01-25 乐视控股(北京)有限公司 File download processing method and device thereof
CN107948403A (en) * 2017-11-08 2018-04-20 深圳天珑无线科技有限公司 Download method, mobile terminal and the device with store function of file

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
带刀预言家: "Electron构建下载文件桌面应用", 《CSDN,HTTPS://BLOG.CSDN.NET/QQ_31628337/ARTICLE/DETAILS/67659253》 *
晓前端: "[Electron Playground 系列]文件下载篇", 《CSDN,HTTPS://BLOG.CSDN.NET/XIAOHEIBANFE/ARTICLE/DETAILS/111307662》 *

Similar Documents

Publication Publication Date Title
CN111095219B (en) File system point-in-time restoration using recycle bin and version history
CN107256178B (en) Container management platform
US9262899B2 (en) Method, device and system for implementing video recording retrieval
US20080195827A1 (en) Storage control device for storage virtualization system
US10585752B1 (en) Intelligent snapshot cataloging using separate logical containers to reduce snapshot query times
CN108200220A (en) A kind of method of data synchronization, server and storage medium
CN105407117B (en) The methods, devices and systems of distributed backup data
CN106557384A (en) Based on the data processing method of Linux, device and system
CN106095621B (en) The restoration methods and system that Launcher is operating abnormally in a kind of Android system
CN110286922A (en) Using downloading updating method, device, computer equipment and storage medium
CN105872168A (en) Address list update method and device
US20220335011A1 (en) System and Method for Eliminating Full Rescan Synchronizations on Service Restarts
CN114281779A (en) Data synchronization method and device, computer equipment and storage medium
CN113051232A (en) File downloading method and device and processor
US20160188625A1 (en) Computer-readable storage medium and method for cross-platform synchronizing attributes of files
CN109189813B (en) Data sharing method and device
JP2001060175A (en) Data maintaining method for information processing system
CN103902663A (en) File synchronization method and device
Cisco Populating the Network Inventory
JPH0997263A (en) Server access system
CN110990359A (en) Method and system for cleaning useless data in synchronous framework
CN110851192A (en) Method and device for responding to configuration of degraded switch
CN114595069B (en) Service offline method and device, electronic equipment and storage medium
CN110209976A (en) A kind of buffering updating method and computer equipment of front end resource
CN111176871B (en) Target application processing method and device, storage medium and electronic device

Legal Events

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

Application publication date: 20210629