CN116055464A - Download preservation path selection method, device and medium - Google Patents

Download preservation path selection method, device and medium Download PDF

Info

Publication number
CN116055464A
CN116055464A CN202310182121.1A CN202310182121A CN116055464A CN 116055464 A CN116055464 A CN 116055464A CN 202310182121 A CN202310182121 A CN 202310182121A CN 116055464 A CN116055464 A CN 116055464A
Authority
CN
China
Prior art keywords
path
file
downloaded
saving
download
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.)
Granted
Application number
CN202310182121.1A
Other languages
Chinese (zh)
Other versions
CN116055464B (en
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202310182121.1A priority Critical patent/CN116055464B/en
Publication of CN116055464A publication Critical patent/CN116055464A/en
Application granted granted Critical
Publication of CN116055464B publication Critical patent/CN116055464B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • 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 provides a download preservation path selection method, a device and a medium, which relate to the technical field of computers and are used for solving the problems that the prior art can not predict a download preservation address expected by a user, and the address is frequently required to be manually modified to influence the download efficiency, and the method comprises the following steps: receiving a downloading instruction of a file to be downloaded; determining a first preset time period to which the current time belongs; acquiring a first history preservation number of a history download preservation path in a first preset period; and selecting a default saving path of the file to be downloaded from the historical downloading saving paths according to the first historical saving times. According to the method and the device, the expected saving path of the file to be downloaded is predicted by the user according to the saving path of the file to be downloaded in different time periods, so that the default saving path of the file to be downloaded is obtained, the requirement of the user for classified saving of the file to be downloaded is met, the probability of modifying the saving address by the user is reduced, and the downloading efficiency is improved.

Description

Download preservation path selection method, device and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for selecting a download save path, and a computer readable storage medium.
Background
In the prior art, when a user downloads data, the user usually has the function of automatically filling in the download storage address, so that the user can store the downloaded data according to the automatically filled address. At present, the download saving address which is automatically filled is usually filled into the path saved last time, but the downloaded file is likely to be saved into other paths, so that the paths can be manually reselected, which is troublesome and affects the downloading efficiency.
Disclosure of Invention
The invention aims to solve the technical problems of the prior art, and provides a download preservation path selection method, a device and a computer readable storage medium, so as to solve the problems that the prior art can not predict a download preservation address expected by a user, and the download efficiency is affected because the address is frequently required to be manually modified.
In a first aspect, the present invention provides a download save path selection method, the method
The method comprises the following steps:
s1, receiving a downloading instruction of a file to be downloaded;
s12, determining a first preset period to which the current time belongs;
s13, acquiring first history storage times of a history downloading storage path in a first preset period;
s14, selecting a default saving path of the file to be downloaded from the history downloading saving paths according to the first history saving times.
Optionally, after step S1, the method further comprises:
s22, determining a source path of a file to be downloaded;
s23, acquiring the name approximation degree of the available download storage path and the source path;
s24, selecting a default saving path of the file to be downloaded from the available downloading saving paths according to the name similarity.
Optionally, the method:
step S22-S24 is executed first, if the default saving path of the file to be downloaded is not selected in the step S24, step S12-S14 is executed; or alternatively, the process may be performed,
steps S12-S14 are performed first, and if step S14 does not select the default save path to the file to be downloaded, steps S22-S24 are performed.
Optionally, after step S1, the method further comprises:
s33, acquiring second historical preservation times of the historical download preservation path in all time periods;
s34, selecting a default saving path of the file to be downloaded from the historical downloading saving paths according to the second historical saving times.
Optionally, the method:
step S33-S34 is executed first, if the default saving path of the file to be downloaded is not selected in the step S34, step S12-S14 is executed; or alternatively, the process may be performed,
steps S12-S14 are performed first, and if step S14 does not select the default save path to the file to be downloaded, steps S33-S34 are performed.
Optionally, before step S1, the method further includes:
setting a plurality of preset time periods;
establishing a table, and recording a history download save path, a preset period corresponding to each use of the history download save path, and the history save times of each history download save path in each preset period.
Optionally, step S14 specifically includes:
judging whether the utilization rate of a first history download save path with the largest first history save times is larger than a first preset threshold value;
if so, selecting the first historical download save path as a default save path for the file to be downloaded.
Optionally, the file to be downloaded is a network disk file to be downloaded, the source path is a network disk storage path of the network disk file to be downloaded, and the available download storage paths are all local storage paths except a preset blacklist.
Optionally, step S24 specifically includes:
judging whether the first available download save path with the highest name similarity is unique or not;
if so, the first available download save path is selected as the default save path for the file to be downloaded, and,
if not, selecting a second available download save path with the largest first historical save times from the first available download save paths, and taking the second available download save path as a default save path of the file to be downloaded.
In a second aspect, the present invention provides a download save path selection apparatus, the apparatus
The device comprises:
the receiving module is used for receiving a downloading instruction of the file to be downloaded;
the determining module is connected with the receiving module and is used for determining a first preset period to which the current time belongs;
the acquisition module is connected with the determination module and is used for acquiring the first history storage times of the history downloading storage path in a first preset period;
and the selection module is connected with the acquisition module and is used for selecting a default saving path of the file to be downloaded from the history downloading saving paths according to the first history saving times.
In a third aspect, the present invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a download save path selection method as described above.
The invention provides a download save path selection method, a device and a computer readable storage medium, which predict the current expected save path of a file to be downloaded by a user according to the save path of the file downloaded by the user in different time periods, so as to obtain the default save path of the file to be downloaded, meet the requirement of the user on classified save of the downloaded file, reduce the probability of modifying save addresses by the user and improve the download efficiency.
Drawings
FIG. 1 is a flow chart of a download save path selection method according to an embodiment of the present invention;
FIG. 2 is a multi-scheme alternative flow chart of a download save path selection method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an exemplary scenario of a download save path selection method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a download save path selection apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical scheme of the present invention better understood by those skilled in the art, the following detailed description of the embodiments of the present invention will be given with reference to the accompanying drawings.
It is to be understood that the specific embodiments and figures described herein are merely illustrative of the invention, and are not limiting of the invention.
It is to be understood that the various embodiments of the invention and the features of the embodiments may be combined with each other without conflict.
It is to be understood that only the portions relevant to the present invention are shown in the drawings for convenience of description, and the portions irrelevant to the present invention are not shown in the drawings.
It should be understood that each unit and module in the embodiments of the present invention may correspond to only one physical structure, may be formed by a plurality of physical structures, or may be integrated into one physical structure.
It will be appreciated that the functions and steps noted in the flowcharts and block diagrams of the subject invention can occur out of the order noted in the figures without conflict.
It is to be understood that the flowcharts and block diagrams of the present invention illustrate the architecture, functionality, and operation of possible implementations of systems, apparatuses, devices, methods according to various embodiments of the present invention. Where each block in the flowchart or block diagrams may represent a unit, module, segment, code, or the like, which comprises executable instructions for implementing the specified functions. Moreover, each block or combination of blocks in the block diagrams and flowchart illustrations can be implemented by hardware-based systems that perform the specified functions, or by combinations of hardware and computer instructions.
It should be understood that the units and modules related in the embodiments of the present invention may be implemented by software, or may be implemented by hardware, for example, the units and modules may be located in a processor.
Example 1:
as shown in fig. 1, embodiment 1 of the present invention provides a download save path selection method, which includes:
s1, receiving a downloading instruction of a file to be downloaded;
s12, determining a first preset period to which the current time belongs;
s13, acquiring first history storage times of a history downloading storage path in a first preset period;
s14, selecting a default saving path of the file to be downloaded from the history downloading saving paths according to the first history saving times.
Specifically, the principle (one) supported by this embodiment is:
the types of files that users need to download and save may be different in different time periods, and the requirements on the file save addresses are different accordingly, so that there is a relatively high probability that the user downloads the files and the time have relevance, for example: working hours of a workday, the downloaded content may be work-related; rather than working time, the downloaded file may be work-independent. So content downloaded in monday morning may be more relevant than content downloaded in monday morning and less relevant than content downloaded in sunday. Further, for example, some operations with strong regularity may require specific data downloads during specific time periods. Thus, both the period and the history download save record within the corresponding period can be referenced as default download save paths.
Based on the above principle (one), the present embodiment proposes a method for automatically selecting a default saving path for a file to be downloaded according to a period to which a current time belongs, and by counting the number of times of using the historical download saving path in a historical download saving record of the user, which is used by the period to which the current time belongs, as a selection basis of the default saving path, the prediction of the desired saving path of the file to be downloaded currently by the user is realized, the requirement of the user for classifying and saving the downloaded file is met, the probability of modifying the saving address by the user is reduced, and the downloading efficiency is improved.
Optionally, before step S1, the method further includes:
setting a plurality of preset time periods;
establishing a table, and recording a history download save path, a preset period corresponding to each use of the history download save path, and the history save times of each history download save path in each preset period.
Optionally, step S14 specifically includes:
judging whether the utilization rate of a first history download save path with the largest first history save times is larger than a first preset threshold value;
if so, selecting the first historical download save path as a default save path for the file to be downloaded.
Specifically, the implementation of the present embodiment based on principle (one) in more detail is: firstly, setting a plurality of preset time periods, setting corresponding time feature description for each preset time period, recording the time period corresponding to each file downloading time of a user and a final actual saving path in a form of a table when the user downloads the file each time, if the path is recorded in the time period, adding 1 on the original basis of the recorded saving times, otherwise, adding the path as a new record into the table. And setting a first preset threshold as a basis for selecting a history download save path subsequently, for example, setting the first preset threshold to be 50%, and when the ratio of the history save time of a certain history download save path in a certain preset period to the total history save time in the period exceeds 50%, predicting that the probability of selecting the history download save path in the period by a user is larger, so that the user can adjust the specific numerical value of 50% according to the use habit by taking the history download save path as a default save path of the current download. After the preparation work is finished, the recorded table can be used as a basis for selecting a default saving path for a file to be downloaded subsequently, after a downloading instruction is obtained by clicking the file to be downloaded by a user, the current time is acquired firstly, the preset period of time to which the current time belongs is determined, the recorded table in advance is read, the historical downloading saving paths corresponding to the saving records are arranged in the current period, the saving times of all the historical downloading saving paths corresponding to the saving records are read, the ratio of the saving times of one historical downloading saving path with the largest saving times to the total saving times is calculated, if the ratio is larger than 50%, the historical downloading saving path is selected as the default downloading saving path, and if the ratio is smaller than 50%, other judging basis can be added to select the default saving path.
Optionally, as shown in fig. 2, after step S1, the method further includes:
s22, determining a source path of a file to be downloaded;
s23, acquiring the name approximation degree of the available download storage path and the source path;
s24, selecting a default saving path of the file to be downloaded from the available downloading saving paths according to the name similarity.
Optionally, the method first performs steps S22-S24, and if S24 does not select a default saving path to the file to be downloaded, steps S12-S14 are performed.
Optionally, the method first performs steps S12-S14, and if S14 does not select a default saving path to the file to be downloaded, steps S22-S24 are performed.
Optionally, the file to be downloaded is a network disk file to be downloaded, the source path is a network disk storage path of the network disk file to be downloaded, and the available download storage paths are all local storage paths except a preset blacklist.
Optionally, step S24 specifically includes:
judging whether the first available download save path with the highest name similarity is unique or not;
if so, the first available download save path is selected as the default save path for the file to be downloaded, and,
if not, selecting a second available download save path with the largest first historical save times from the first available download save paths, and taking the second available download save path as a default save path of the file to be downloaded.
Specifically, the embodiment can also realize more accurate prediction of the user expected saved path based on the principle (two) of:
the desired save path of the file to be downloaded by the user may be related to the source of the file to be downloaded. Taking the example of the network disk file to be downloaded by the user, the storage space of the network disk is in a tree structure mode, which is similar to the storage mode on a computer. If a file to be downloaded exists/work/file/work 1 below a network disk, and meanwhile, a folder of./ file/work1 exists on a computer, the possibility that the file is stored under./ file/work1 after being downloaded is high, and the./ file/work1 on the computer can be used as a candidate default downloading path for the downloading. However, on the computer, there may be c/work/file/work1, d/new folder/file/work 1, or no file/work1, but there is a d/new folder/work 1, etc. That is, the local storage path and the network disk are somewhat like, but not exactly like, and these situations need to be handled separately. The method is characterized in that the method is used for preferentially finding the path with the largest similarity with the network disk, such as work/file/work1, if the path is not found, the file/work1 is found, and if the path is not found, the work1 is found. In the above steps, there may be more than one result with the same path similarity, for example, the computer has two folders of c/test/work1 and d/work/work1 at the same time, which should be selected, and a determination needs to be made. Some paths, such as C/windows, C: \program Files, etc., are default to not being downloaded, and may be blacklisted, and will not be considered by the system.
Based on the principle (II), the specific practice of the embodiment is as follows: firstly adding a common system catalog into a blacklist, after receiving a downloading instruction of clicking a file to be downloaded by a user, obtaining storage paths on all computers except the blacklist, simultaneously obtaining the storage paths of the file of the network disk to be downloaded on the network disk, searching a local storage path which is most similar to the network disk storage path, taking the path as a default storage path if only one local storage path is similar, and selecting by combining with other basis if more than one local storage path is needed, wherein the first historical storage times obtained by the principle (I) can be used as a basis for further judgment, and the execution sequence of the corresponding steps of the principle (I) and the principle (II) is not limited. For example, the steps S12 to S14 corresponding to the first principle (one) may be executed first, and then, if it is determined in S14 that the history download save address with the highest number of times of first history save does not reach the first preset threshold, the steps S22 to S24 are executed, and the available download save address with the highest name approximation is selected as the default save address; or executing the steps S22-S24 corresponding to the principle (II), then executing the steps S12-S14 to select the available download save address with the highest historical save times and the highest name approximation degree as the default address when the S24 judges that more than one available download save address with the highest name approximation degree exists; alternatively, the first principle (i) and the second principle (ii) may be applied in a cross manner, for example, steps S12-S14 are performed first, if the default saving path is not selected, steps S22-S24 are performed again, if the default saving path is not selected yet, then the history download saving address with the largest number of times of first history saving is selected as the default address according to steps S12-S14, and the first history saving time ratio of the address is not required to reach the first preset threshold value.
Optionally, as shown in fig. 2, after step S1, the method further includes:
s33, acquiring second historical preservation times of the historical download preservation path in all time periods;
s34, selecting a default saving path of the file to be downloaded from the historical downloading saving paths according to the second historical saving times.
Alternatively, steps S33 to S34 are performed first, and if S34 does not select a default save path to the file to be downloaded, steps S12 to S14 are performed.
Alternatively, steps S12-S14 are performed first, and if S14 does not select a default save path to the file to be downloaded, steps S33-S34 are performed.
Specifically, the embodiment can also realize more accurate prediction of the user expected saved path based on the principle (III) that: for some users, the downloaded file is stored in a fixed location, such as a desktop or a download folder, and the default path for the higher user can be obtained through the number of times of storing in the last period of time (such as one month and half year, which can be set). The implementation steps S33-S34 based on principle (iii) can be understood as simplified steps S12-S14, without considering the time characteristics any more, and only the historical number of times of saving is used as the basis for selecting the default saving path. In particular, when the method is implemented, a table is pre-established to record all the historical download saving paths in all the time periods and the historical saving times of each historical download saving path in all the time periods, the table can be established by the principle (one) instead of being singly recorded, the first historical saving times of the same historical download saving path in different time periods are added and obtained, when judging whether the historical saving times in all the time periods are used as the selection basis of the default path, a second preset threshold value can be set, when the ratio of the historical download saving path with the largest total historical saving times is larger than the second preset threshold value, the historical download saving path is selected, and otherwise, the principles (one) and (two) can be combined for further judgment.
Fig. 2 provides various alternative schemes of the present invention, fig. 3 illustrates a specific selected scheme, and the step execution scheme after S1 in fig. 2 of the present invention may specifically include the following cases:
firstly, executing steps S12-S14, selecting a default saving path of a file to be downloaded by S14, and ending the flow;
firstly, executing the steps S12-S14, and executing the steps S22-S24, wherein the step S14 does not select a default saving path of the file to be downloaded, and the step S24 selects the default saving path of the file to be downloaded, so that the flow is ended;
firstly, executing the steps S12-S14, and executing the steps S33-S34, and S34 to select the default saving path of the file to be downloaded if the step S14 does not select the default saving path of the file to be downloaded, and ending the flow;
firstly, executing the steps S12-S14, wherein the step S14 does not select a default saving path of the file to be downloaded, then executing the steps S22-S24, and S24 does not select the default saving path of the file to be downloaded, then executing the steps S33-S34, and S34 to select the default saving path of the file to be downloaded, and ending the flow;
firstly, executing the steps S12-S14, wherein the step S14 does not select a default saving path of the file to be downloaded, then executing the steps S33-S34, and S34 does not select the default saving path of the file to be downloaded, then executing the steps S22-S24, and S24 to select the default saving path of the file to be downloaded, and ending the flow;
firstly, executing the steps S22-S24, and executing the steps S12-S14, and S14 to select the default saving path of the file to be downloaded if the step S24 does not select the default saving path of the file to be downloaded, and ending the flow;
firstly, executing the steps S22-S24, wherein the step S24 does not select a default saving path of the file to be downloaded, then executing the steps S12-S14, and S14 does not select the default saving path of the file to be downloaded, then executing the steps S33-S34, and S34 to select the default saving path of the file to be downloaded, and ending the flow;
firstly, executing the steps S22-S24, wherein the step S24 does not select a default saving path of the file to be downloaded, then executing the steps S33-S34, and S34 does not select the default saving path of the file to be downloaded, then executing the steps S12-S14, and S14 to select the default saving path of the file to be downloaded, and ending the flow;
firstly, executing the steps S33-S34, and if the step S34 does not select the default saving path of the file to be downloaded, executing the steps S12-S14 and S14 to select the default saving path of the file to be downloaded, and ending the flow;
firstly, executing the steps S33-S34, wherein the step S34 does not select a default saving path of the file to be downloaded, then executing the steps S12-S14, and S14 does not select the default saving path of the file to be downloaded, then executing the steps S22-S24, and S24 to select the default saving path of the file to be downloaded, and ending the flow;
the steps S33-S34 and S34 are executed firstly, the default saving path of the file to be downloaded is not selected, the steps S22-S24 and S24 are executed, the steps S12-S14 and S14 are executed, the default saving path of the file to be downloaded is selected, and the process is finished.
The sequence of execution between the steps corresponding to the principles (one), (two) and (three) is not limited, and the steps can be executed in any order or can be executed in a crossing manner, and a specific example is as follows:
(1) Making a black list: adding a common system catalog to a blacklist, such as: c \Program Files, C \Windows, C \Program Files (x 86), and the blacklist may be user-modifiable, such that when a default path is selected, those paths and sub-paths in the blacklist are not considered;
(2) Obtaining available download save paths: obtaining all storage paths except a blacklist on a computer as available download storage paths;
(3) Setting a preset period: setting two preset time periods of "working time" and "non-working time", such as "working day 8:30 earlier to late 5: 00' is working time, and the rest is non-working time;
(4) Recording a history download preservation path and preservation times: tables 1 and 2 may be respectively established as shown below, where table 1 is used to record the historical download path and the number of times of saving in all time periods, table 2 is used to record the historical download path and the number of times of saving in preset time periods, and when each download is performed, tables 1 and 2 are updated, and if there is no new catalog saved in the tables this time, a new row is added, as shown in bold in tables 1 and 2:
table 1 historical download Path and number of times of saving for all time periods
Catalogue Number of times of preservation
Table top 14
download 13
C: 5
C:\work 1
Table 2 historical download Path and number of times of saving for preset time period
Catalogue Number of times of preservation Download time
Table top 10 Operating time
Table top
4 Non-working time
download 13 Non-working time
C: 5 Operating time
C:\work 1 Operating time
(5) Based on the three basis for judging the downloading paths, when receiving a downloading instruction of a file to be downloaded sent by a user, determining what the default downloading path is through different combinations;
(6) Firstly, reading a table 1, if one of the most preservation times exceeds 50% of the total preservation times, defining the one as a default preservation path at this time, and ending the scheme; if the number of the current power supply is less than 50%, the condition that the principle (III) of the scheme is not met is explained, and the next step is executed; 50% can be adjusted according to the usage habit;
(7) Reading a table 2, if the current time is the working time and one of the most times of preservation is in the download records of the working time in the table, and the current time exceeds 50% of the total preservation times of the working time, defining the current time as a default preservation path, and ending the scheme; similarly, if the current time is the non-working time, performing similar judgment; if the number of the current power supply is less than 50%, the condition that the principle (I) of the scheme is not met is explained, and the next step is executed; 50% can be adjusted according to the usage habit;
(8) Supplementing the principle (two) of the scheme as a main reference basis and the (one) and (three) as secondary reference bases, for example: the storage path of the network disk file to be downloaded on the network disk is network disk/work/file/work 1, whether the work/file/work1 exists on the computer is checked, and if one exists, the network disk file is directly used as a default storage path; if there are multiple paths, for example, c/work/file/work1 and d/work/file/work1, then reading table 1, judging the download and storage times of the two paths, and selecting one more paths as default paths; if the times in the table 1 are the same, reading the table 2, and selecting more paths as default paths according to the current time and the download preservation times; if the two pieces are the same, randomly selecting one piece; if none of the network paths is found, then checking the file/work1, namely removing the first stage of the network path, and processing the result as the previous step; if the directory with the similarity degree does not exist, repeating the previous step until only one level of directory is left, for example, only work1 is left in the example, and repeating the same process as the previous step; if the download is not selectable, selecting the one with the largest download preservation number in the table 2 as a default path according to the current time.
The method for selecting the download saving path provided by the embodiment 1 of the invention provides the method for predicting the expected download saving path of the user according to the time characteristic of the downloaded file, predicts the expected download saving path of the user according to the source of the file to be downloaded, and can also improve the accuracy of predicting the expected download saving path of the user by combining the number of times of historical download saving paths used by the user, thereby meeting the requirement of the user on classified saving of the downloaded file, reducing the probability of modifying the saving address by the user and improving the downloading efficiency.
Example 2:
as shown in fig. 1-4, embodiment 2 of the present invention provides a download save path selecting device, which includes:
the receiving module 1 is used for executing the step S1 to receive a downloading instruction of a file to be downloaded;
a determining module 2, connected to the receiving module 1, for executing step S12 to determine a first preset period to which the current time belongs;
an obtaining module 3, connected to the determining module 2, for performing step S13 to obtain a first number of times of history storage of the history download storage path in a first preset period;
the selecting module 4 is connected to the obtaining module 3, and is configured to execute step S14 to select a default saving path of the file to be downloaded from the history downloading saving paths according to the first history saving times.
Alternatively, the process may be carried out in a single-stage,
the determining module 2 is further configured to perform step S22 to determine a source path of the file to be downloaded;
the obtaining module 3 is further configured to execute step S23 to obtain a name approximation degree between the available download save path and the source path;
the selecting module 4 is further configured to execute step S24 to select a default saving path of the file to be downloaded from available downloading saving paths according to the name proximity.
Alternatively, the process may be carried out in a single-stage,
the determining module 2, the obtaining module 3, and the selecting module 4 are firstly configured to execute steps S22-S24, and if S24 does not select a default saving path to the file to be downloaded, then execute steps S12-S14.
Alternatively, the process may be carried out in a single-stage,
the determining module 2, the obtaining module 3, and the selecting module 4 are firstly configured to execute steps S12-S14, and if S14 does not select a default saving path to the file to be downloaded, then execute steps S22-S24.
Alternatively, the process may be carried out in a single-stage,
the obtaining module 3 is further configured to perform step S33 to obtain a second history storage number of times of the history download storage path in all periods;
the selecting module 4 is further configured to execute step S34 to select a default saving path of the file to be downloaded from the historical download saving paths according to the second historical saving times.
Alternatively, the process may be carried out in a single-stage,
the obtaining module 3 and the selecting module 4 are firstly used for executing steps S33-S34, and if the default saving path of the file to be downloaded is not selected in S34, steps S12-S14 are executed.
Alternatively, the process may be carried out in a single-stage,
the obtaining module 3 and the selecting module 4 are firstly configured to execute steps S12-S14, and if S14 does not select a default saving path of the file to be downloaded, then execute steps S33-S34.
Optionally, the apparatus further comprises:
the preset module is used for setting a plurality of preset time periods;
the recording module is connected with the preset module and used for establishing a table, recording the history download storage paths, preset time periods corresponding to each time of using the history download storage paths and the history storage times of each history download storage path in each preset time period.
Optionally, the selection module 4 specifically includes:
the judging unit is used for judging whether the utilization rate of the first history download save path with the largest first history save times is larger than a first preset threshold value;
and the selection unit is connected with the judging unit, and if so, the selection unit selects the first historical download saving path as a default saving path of the file to be downloaded.
Optionally, the file to be downloaded is a network disk file to be downloaded, the source path is a network disk storage path of the network disk file to be downloaded, and the available download storage paths are all local storage paths except a preset blacklist.
Alternatively, the process may be carried out in a single-stage,
the judging unit is further used for judging whether the first available download storage path with the highest name similarity is unique;
a selection unit for selecting the first available download save path as a default save path for the file to be downloaded, if so, and,
if not, selecting a second available download save path with the largest first historical save times from the first available download save paths, and taking the second available download save path as a default save path of the file to be downloaded.
The embodiment 2 of the invention provides a download saving path selecting device, which provides a default saving path of a file to be downloaded for a user by predicting the current expected saving path of the file to be downloaded, meets the requirement of the user on classified saving of the file to be downloaded, reduces the probability of modifying a saving address by the user and improves the downloading efficiency; embodiment 2 is an apparatus corresponding to the method of embodiment 1, which can be understood in conjunction with each other.
Example 3:
embodiment 3 of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the download save path selection method as described in embodiment 1.
Computer-readable storage media includes volatile or nonvolatile, removable or non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, computer program modules or other data. Computer-readable storage media includes, but is not limited to, RAM (Random Access Memory ), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory, charged erasable programmable Read-Only Memory), flash Memory or other Memory technology, CD-ROM (Compact Disc Read-Only Memory), digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer.
The embodiment 3 of the invention provides a computer readable storage medium, wherein a stored computing program can be run on various electronic devices, including but not limited to mobile phones, ipads, PCs and the like, and is used for providing a default storage path for a current file to be downloaded of a user, meeting the requirement of the user on classified storage of the downloaded file, reducing the probability of modifying a storage address of the user, and improving the downloading efficiency.
In addition, the present invention may also provide an electronic device including a memory and a processor, where the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the download save path selection method as described in embodiment 1.
The memory is connected with the processor, the memory can be flash memory or read-only memory or other memories, and the processor can be a central processing unit or a singlechip.
Embodiments 1-3 of the present invention provide a method, an apparatus, and a computer readable storage medium for selecting a download save path, by which a user predicts an expected save path of a file to be downloaded currently by using a save path of a file downloaded in different periods in the past, so as to obtain a default save path of the file to be downloaded, meet the requirement of the user for classifying and saving the downloaded file, reduce the probability of modifying a save address of the user, and improve the download efficiency.
It is to be understood that the above embodiments are merely illustrative of the application of the principles of the present invention, but not in limitation thereof. Various modifications and improvements may be made by those skilled in the art without departing from the spirit and substance of the invention, and are also considered to be within the scope of the invention.

Claims (11)

1. A download save path selection method, the method comprising:
s1, receiving a downloading instruction of a file to be downloaded;
s12, determining a first preset period to which the current time belongs;
s13, acquiring first history storage times of a history downloading storage path in a first preset period;
s14, selecting a default saving path of the file to be downloaded from the history downloading saving paths according to the first history saving times.
2. The method according to claim 1, characterized in that after step S1, the method further comprises:
s22, determining a source path of a file to be downloaded;
s23, acquiring the name approximation degree of the available download storage path and the source path;
s24, selecting a default saving path of the file to be downloaded from the available downloading saving paths according to the name similarity.
3. The method according to claim 2, characterized in that it comprises:
step S22-S24 is executed first, if the default saving path of the file to be downloaded is not selected in the step S24, step S12-S14 is executed; or alternatively, the process may be performed,
steps S12-S14 are performed first, and if step S14 does not select the default save path to the file to be downloaded, steps S22-S24 are performed.
4. A method according to any one of claims 1-3, characterized in that after step S1, the method further comprises:
s33, acquiring second historical preservation times of the historical download preservation path in all time periods;
s34, selecting a default saving path of the file to be downloaded from the historical downloading saving paths according to the second historical saving times.
5. The method according to claim 4, characterized in that it comprises:
step S33-S34 is executed first, if the default saving path of the file to be downloaded is not selected in the step S34, step S12-S14 is executed; or alternatively, the process may be performed,
steps S12-S14 are performed first, and if step S14 does not select the default save path to the file to be downloaded, steps S33-S34 are performed.
6. The method according to claim 1, characterized in that before step S1, the method further comprises:
setting a plurality of preset time periods;
establishing a table, and recording a history download save path, a preset period corresponding to each use of the history download save path, and the history save times of each history download save path in each preset period.
7. The method according to claim 1, wherein step S14 specifically comprises:
judging whether the utilization rate of a first history download save path with the largest first history save times is larger than a first preset threshold value;
if so, selecting the first historical download save path as a default save path for the file to be downloaded.
8. A method according to any of claims 2-3, wherein the file to be downloaded is a network disk file to be downloaded, the source path is a network disk storage path of the network disk file to be downloaded, and the available download save paths are all local storage paths except a preset blacklist.
9. A method according to any one of claims 2-3, wherein step S24 comprises:
judging whether the first available download save path with the highest name similarity is unique or not;
if so, the first available download save path is selected as the default save path for the file to be downloaded, and,
if not, selecting a second available download save path with the largest first historical save times from the first available download save paths, and taking the second available download save path as a default save path of the file to be downloaded.
10. A download save path selection apparatus, the apparatus comprising:
the receiving module is used for receiving a downloading instruction of the file to be downloaded;
the determining module is connected with the receiving module and is used for determining a first preset period to which the current time belongs;
the acquisition module is connected with the determination module and is used for acquiring the first history storage times of the history downloading storage path in a first preset period;
and the selection module is connected with the acquisition module and is used for selecting a default saving path of the file to be downloaded from the history downloading saving paths according to the first history saving times.
11. A computer readable storage medium, having stored thereon a computer program which, when executed by a processor, implements a download preservation path selection method as claimed in any one of claims 1-9.
CN202310182121.1A 2023-02-20 2023-02-20 Download preservation path selection method, device and medium Active CN116055464B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310182121.1A CN116055464B (en) 2023-02-20 2023-02-20 Download preservation path selection method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310182121.1A CN116055464B (en) 2023-02-20 2023-02-20 Download preservation path selection method, device and medium

Publications (2)

Publication Number Publication Date
CN116055464A true CN116055464A (en) 2023-05-02
CN116055464B CN116055464B (en) 2024-04-05

Family

ID=86123878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310182121.1A Active CN116055464B (en) 2023-02-20 2023-02-20 Download preservation path selection method, device and medium

Country Status (1)

Country Link
CN (1) CN116055464B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226534A (en) * 2007-12-29 2008-07-23 深圳华为通信技术有限公司 Method, terminal and system for searching relevant document
US20090248615A1 (en) * 2008-03-25 2009-10-01 Tal Drory Method and System for Folder Recommendation in a File Operation
CN102289475A (en) * 2011-07-29 2011-12-21 宇龙计算机通信科技(深圳)有限公司 Terminal and method for storing file
US8286085B1 (en) * 2009-10-04 2012-10-09 Jason Adam Denise Attachment suggestion technology
CN110019018A (en) * 2017-09-22 2019-07-16 三星Sds株式会社 File recommended method and file recommendation apparatus
CN110324416A (en) * 2019-06-28 2019-10-11 百度在线网络技术(北京)有限公司 Download path tracking, device, server, terminal and medium
US20200142973A1 (en) * 2018-11-05 2020-05-07 International Business Machines Corporation Recommending a target location when relocating a file
US20200174967A1 (en) * 2018-11-30 2020-06-04 International Business Machines Corporation Suggesting a destination folder for a file to be saved

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226534A (en) * 2007-12-29 2008-07-23 深圳华为通信技术有限公司 Method, terminal and system for searching relevant document
US20090248615A1 (en) * 2008-03-25 2009-10-01 Tal Drory Method and System for Folder Recommendation in a File Operation
US8286085B1 (en) * 2009-10-04 2012-10-09 Jason Adam Denise Attachment suggestion technology
CN102289475A (en) * 2011-07-29 2011-12-21 宇龙计算机通信科技(深圳)有限公司 Terminal and method for storing file
CN110019018A (en) * 2017-09-22 2019-07-16 三星Sds株式会社 File recommended method and file recommendation apparatus
US20200142973A1 (en) * 2018-11-05 2020-05-07 International Business Machines Corporation Recommending a target location when relocating a file
US20200174967A1 (en) * 2018-11-30 2020-06-04 International Business Machines Corporation Suggesting a destination folder for a file to be saved
CN110324416A (en) * 2019-06-28 2019-10-11 百度在线网络技术(北京)有限公司 Download path tracking, device, server, terminal and medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
G. KAUSHIK RAM等: "A mail based recommender system", 《2017 IEEE INTERNATIONAL CONFERENCE ON SMART TECHNOLOGIES AND MANAGEMENT FOR COMPUTING, COMMUNICATION, CONTROLS, ENERGY AND MATERIALS (ICSTM)》, 30 October 2017 (2017-10-30) *
SEGAL, R.B等: "MailCat: an intelligent assistant for organizing e-mail", 《PROCEEDINGS OF THE THIRD INTERNATIONAL CONFERENCE ON AUTONOMOUS AGENTS》, 1 January 1999 (1999-01-01) *
XINLONG BAO等: "FolderPredictor: Reducing the cost of reaching the right folder", 《 ACM TRANSACTIONS ON INTELLIGENT SYSTEMS AND TECHNOLOGY》, 24 January 2011 (2011-01-24) *
金春华;: "一种基于RFID技术的路径推荐算法", 物流技术, no. 19, 15 October 2013 (2013-10-15) *

Also Published As

Publication number Publication date
CN116055464B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
US10678654B2 (en) Systems and methods for data backup using data binning and deduplication
JP4503647B2 (en) Binary search tree with hooked duplicate values for memory allocation
US11005717B2 (en) Storage capacity evaluation method based on content delivery network application and device thereof
CN106407207B (en) Real-time newly-added data updating method and device
CN107015985B (en) Data storage and acquisition method and device
CN107357862B (en) Method and device for arranging repeated voice messages
EP2889750B1 (en) Method and apparatus for managing data
CN105491149A (en) Data storage method and terminal
CN111324303B (en) SSD garbage recycling method, SSD garbage recycling device, computer equipment and storage medium
CN109240607B (en) File reading method and device
WO2018006721A1 (en) Method and apparatus for storing log file
CN110647502A (en) File loading method, equipment, device and computer storage medium
CN112466378A (en) Solid state disk operation error correction method and device and related components
CN111737265A (en) Block data access method, block data storage method and device
CN110688065A (en) Storage space management method, system, electronic equipment and storage medium
CN110955639A (en) Data processing method and device
CN114020193A (en) Cross-page checking determination method and device, electronic equipment and storage medium
CN116055464B (en) Download preservation path selection method, device and medium
CN111159160A (en) Version rollback method and device, electronic equipment and storage medium
CN115268794A (en) Data storage method and related device
CN116820323A (en) Data storage method, device, electronic equipment and computer readable storage medium
CN112612865A (en) Document storage method and device based on elastic search
CN109245949B (en) Information processing method and device
CN112711384A (en) Data storage method and device based on multiple storage devices
CN113010105A (en) Data backup method, device, equipment and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant