Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification one or more, below will
In conjunction with the attached drawing in this specification one or more embodiment, to the technical solution in this specification one or more embodiment into
Row clearly and completely describes, it is clear that and described embodiment is only this specification one or more a part of the embodiment, and
The embodiment being not all of.Based on the embodiment in this specification one or more, those of ordinary skill in the art are not making
The model of this specification one or more protection all should belong in every other embodiment obtained under the premise of creative work out
It encloses.
This specification one or more embodiment provides a kind of document down loading method, apparatus and system, file upload side
After starting upper transmitting file, and file reception side start download file before, pass through the current attribute of Multiple-Scan file destination
Information, and after determining that file to be uploaded has been uploaded in conjunction with the current attribute information, the file destination is just downloaded, thus real
Existing file uploads the first time triggering downloading object file completed, and reaches and is confirming the integrality of the file destination uploaded
Under the premise of, the purpose of file download operation is executed in time, can ensure that file download timeliness and file download are complete simultaneously in this way
Whole property.
Fig. 1 is the application scenarios schematic diagram for the file download system that this specification one or more embodiment provides, such as Fig. 1
Shown, which includes: file upload side, file reception side and file scanning device, wherein file scanning device, which can be, to be set
It is placed in file reception side, can also be the device independently of file reception side, this document upload side can be for specified
The server of upper transmitting file under store path, this document recipient can be the clothes for downloading file under specified storage road strength
Business device, in Fig. 1, by taking file scanning device is independently of file reception side as an example, wherein the detailed process of file download are as follows:
(1) file uploads direction store path knit stitch is specified to upload file destination to file to be uploaded, wherein to be uploaded
File starts to be uploaded to file upload to be uploaded and finish to need certain uplink time, during the upload of file to be uploaded, uploads
The attribute information of file destination constantly updated with the variation of uplink time, after file to be uploaded uploads, mesh
The attribute information of mark file remains unchanged, and the file size of file destination is identical as the file size of file to be uploaded at this time, mesh
The file content for including in the file content and file to be uploaded for including in mark file is identical;
(2) file scanning device detects and uploads policy in file institute to be uploaded with the presence or absence of file under specified store path
The file destination of biography;
In the case where detecting specified store path there are after file destination, then file destination is obtained according to prefixed time interval
Current attribute information, wherein the prefixed time interval can be based on file to be uploaded file upload feature determine, deserve
Preceding attribute information can be at least one of file size or filemodetime;
According to the current attribute information of the file destination got, judges whether file to be uploaded uploads and finish, wherein by
In the current attribute information of file destination be with a certain trace interval by being taken multiple scan to file destination,
During file uploads, the attribute information of file destination is newest attribute letter that is continually changing, present scan being arrived
It ceases compared with the file attribute information that the last time is scanned, whether is changed according to file attribute information to be uploaded to judge
Whether file, which uploads, finishes;
After determining that file to be uploaded uploads, then file reception side's downloading object file is triggered, wherein on file
After biography side uploads file to be uploaded, the attribute information of the file destination under specified store path is remained unchanged, at this time mesh
The file size for marking file is identical as the file size of file to be uploaded, the file content and text to be uploaded for including in file destination
The file content for including in part is identical, can guarantee the integrality of file download, and determining the first of file upload completion
Time trigger downloading object file can guarantee the timeliness of file download;
(3) file reception side is after determining that file uploads, from downloading object file under specified store path, wherein
It is the case where file reception side executes for file attribute information scanning process, file reception side is according to the target text scanned
After the current attribute information of part determines that file uploads, the file destination is downloaded automatically;It is scanned for file attribute information
Process is the case where execution by the individual file scanning device independently of file reception side, to need this document scanning means in root
After determining that file uploads according to the current attribute information of the file destination scanned, file destination upload and completes mark
Note, or downloading instruction information is sent to file reception side, file reception side is detecting upload completion label or is receiving
After the downloading indicates information, the file destination is downloaded automatically.
Fig. 2 is the first flow diagram for the document down loading method that this specification one or more embodiment provides, Fig. 2
In method can be executed by the file scanning device in Fig. 1, as shown in Fig. 2, this method at least includes the following steps:
S201 is detected and is uploaded the target text that policy uploads file to be uploaded with the presence or absence of file under specified store path
Part;
Wherein, above-mentioned specified store path can be file upload side and file reception side and make an appointment and upload files to finger
The specified path for determining the SFTP server of special line, it is first when file upload side needs a certain file being transferred to file reception side
This document is uploaded under specified store path by first file upload side, and then file reception side downloads under specifying store path from this
This document;For example, being directed to Third-party payment mechanism payment transaction related to bank's progress, need to carry out in many ways after the completion of payment
The application scenarios that fund is calculated, file to be uploaded are fund clearing information, the money that Third-party payment mechanism will need bank to check
Gold clearance information is uploaded under specified store path, and banking institution downloads the fund clearing information under specified store path and goes forward side by side
Row verification;
Wherein, since file to be uploaded has certain file size, text to be uploaded is uploaded to since the file to be uploaded
Part upload, which finishes, needs certain uplink time, during the upload of file to be uploaded, the attribute information of the file destination of upload with
The variation of uplink time and constantly update, after detecting file destination, supporting paper upload side has started upper transmitting file;
If it exists, then S202 is executed, the current attribute information of file destination is obtained according to prefixed time interval;
Specifically, in the case where detecting specified store path there are after file destination, with a certain trace interval by pair
File destination carries out multiple timing and scans to obtain its current attribute information, wherein the current attribute information can be file destination
Newest file size can also be the newest modification time of file destination;
S203 judges whether file to be uploaded uploads and finishes according to the current attribute information of file destination;
Wherein, after file upload side uploads file to be uploaded, the attribute information of file destination is remained unchanged, i.e.,
The attribute information that present scan obtains is identical as the attribute information that last scanning obtains, at this time the file size of file destination with
The file size of file to be uploaded is identical, the file content for including in file destination and the file content for including in file to be uploaded
It is identical, therefore, text to be uploaded can be determined in conjunction with the attribute information of the file destination scanned according to prefixed time interval
Whether part, which uploads, finishes;
If so, executing S204, file reception side's downloading object file is triggered;Wherein, in the upper transmitting file in file upload side
Later (after detecting the file destination for existing under specified store path and being uploaded for file to be uploaded for the first time) and file
Recipient download file before (i.e. determine file uploaded finish before), believed by the attribute of timing scan file destination
Breath finishes to judge whether file upload side uploads, after the completion of determining that file upload side uploads file to be uploaded, text
Part recipient downloads file under specified store path and uploads the file destination that policy uploads file to be uploaded, can guarantee
The integrality of file download, and downloading object file is triggered in the first time for determining that file upload is completed, it can guarantee text
The timeliness of part downloading.
In this specification one or more embodiment, after file upload side starts upper transmitting file, and file reception side is opened
Begin to determine before downloading file by the current attribute information of Multiple-Scan file destination, and in conjunction with the current attribute information
After file to be uploaded has uploaded, the file destination is just downloaded, to realize that file uploads under the first time triggering completed
File destination is carried, reaches under the premise of the integrality for the file destination that confirmation has uploaded, executes file download operation in time
Purpose can ensure file download timeliness and file download integrality simultaneously in this way.
Wherein, judging whether file uploads the process finished, Multiple-Scan is needed to obtain the current attribute of file destination
Information is based on the current attribute information of file destination after scanning obtains current attribute information every time whether to determine file
Upload finishes, and after determining that file uploads, stops scanning, after determining that file does not upload, continues timing scan, is based on
This, as shown in figure 3, current attribute information of the above-mentioned S203 according to file destination, judges whether file to be uploaded uploads and finishes, tool
Body includes:
S2031, judges whether the current attribute information of file destination meets the preset termination condition of scanning, wherein the attribute
Information can be file size, can also be filemodetime, be also possible to file size and filemodetime, either
The continually changing attribute information of alternative document upload procedure;Corresponding, which can be attribute information guarantor
Hold it is constant, i.e., when determining that attribute information that present scan obtains and the attribute information that last scanning obtains remain unchanged,
Determine that the current attribute information of file destination meets the preset termination condition of scanning;
It is finished if so, determining that file to be uploaded has uploaded, specifically, in the current attribute information for determining file destination
After meeting the preset termination condition of scanning, file upload operation is completed in supporting paper upload side, and the file of file destination is big at this time
File small identical as the file size of file to be uploaded, including in the file content and file to be uploaded for including in file destination
Content is identical, can guarantee the integrality of file destination;
Otherwise, the step that above-mentioned S202 obtains the current attribute information of file destination according to prefixed time interval is continued to execute
Suddenly, specifically, after the current attribute information for determining file destination is unsatisfactory for the preset termination condition of scanning, supporting paper is uploaded
Side not can guarantee the integrality of file destination also in upper transmitting file, needs to continue waiting for the upload of file upload side and finishes.
Wherein, above-mentioned current attribute information may include: file size and/or filemodetime, it can according to mesh
The file size of mark file judges whether file uploads completion, can also judge file according to the filemodetime of file destination
Whether upload complete, can also be judged according to two parameters of file size and filemodetime of file destination file whether on
It passes and completes;Specifically, judging whether the file size of file destination remains unchanged, and/or judge the file modification of file destination
Whether the time remains unchanged;Whether can be remained unchanged by judging the file size of file destination, or by judging mesh
Mark file filemodetime whether remain unchanged, or the file size by judging file destination whether remain unchanged with
And whether filemodetime remains unchanged, to determine whether file uploads completion;
Further, it is contemplated that according to the attribute information of some time interval timing scan file destination, and be based on the category
Property information judges whether file uploads the executing subject finished and can be file reception side, can also be independently of file reception side
Individual file scanning device.Wherein, in order to minimize the treatment process for adjusting file reception side, and in view of file connects
Debit may have multiple, therefore, file scanning device can be set in the equipment independently of file reception side;
It, can be using the side that file name is marked for file scanning device independently of the situation of file reception side
Formula downloads file to trigger file reception side in time, by taking attribute information is filemodetime as an example, is based on this, as shown in figure 4,
The realization process of document down loading method specifically:
Above-mentioned S202 obtains the current attribute information of file destination according to prefixed time interval, specifically includes:
S2021, file scanning device obtain the filemodetime of file destination, i.e. target text according to first time interval
The modification time at part scanning moment;
Corresponding, above-mentioned S2031 judges whether the current attribute information of file destination meets the preset termination condition of scanning, tool
Body includes:
S20311, file scanning device judge whether the filemodetime of file destination remains unchanged;
If so, executing S20312, preset format is set by the file name of file destination, and determine file destination
Current attribute information meet the preset termination condition of scanning, that is, determine that file to be uploaded has uploaded and finish.
Wherein, after determining that file upload side completes file upload, triggering file reception side starts to download the mode of file,
It can be in such a way that file name is marked, can also be by the way of sending prompting download information, for adopting
Used in the case where file is marked file name after having uploaded is determined, file reception side is also required to timing scan acquisition
The file name of file destination, so that after detecting that file name becomes preset format, timely downloading object file is based on
This, for file reception side, in the case where detecting specified store path, there are files to upload policy in file institute to be uploaded
After the file destination of biography, further includes:
S205, file reception side obtain the file name of file destination according to the second time interval, wherein second time
Interval can be identical as first time interval, can also be different;
S206, file reception side judge whether the file name of file destination meets preset format;If it is not, then continuing to execute
S205, if so, downloading object file;
Corresponding, above-mentioned S204 triggers file reception side's downloading object file, specifically includes:
If file reception side detects that the file name of file destination meets preset format, S2041, file reception are executed
Square downloading object file;Specifically, file scanning device is after setting preset format for the file name of file destination, file
Recipient will test file name and meet preset format.
Wherein, it is contemplated that judge whether file uploads the process finished according to the current attribute information of file destination every time,
Need by present scan to file attribute information be compared with the attribute information that scans of last time, therefore, for for the first time
The case where scanning file destination needs to record the file attribute information of file destination, and arrives for non-first scan
The case where file destination, illustrates the last file attribute information scanned for having recorded the file destination, will record at this time
File attribute information be updated to the file attribute information that present scan arrives, this is based on, as shown in figure 5, detecting specified deposit
After uploading the file destination that policy uploads file to be uploaded there are file under storage path, further includes:
S207 judges whether there is the attribute information recorded for file destination, wherein for first scan to target
The case where file, judging result be there is no, and be directed to non-first scan file destination attribute information the case where, judging result
To exist;
If it does not exist, then S208 is executed, obtains and record the attribute information of file destination, and using attribute information as needle
To the attribute information of file destination first record, and continues to execute above-mentioned S202 and obtain file destination according to prefixed time interval
The step of current attribute information, file upload side starts to upload file to be uploaded to specified store path at this time.
It is corresponding, the case where for non-first scan to file destination, illustrate that the last time for having recorded the file destination sweeps
The file attribute information recorded is updated to the file attribute information that present scan arrives at this time by the file attribute information retouched,
Based on this, after determining that file to be uploaded does not upload, further includes:
S209 is directed to the attribute information that file destination is recorded according to the current attribute information update got, and continues
The step of above-mentioned S202 obtains the current attribute information of file destination according to prefixed time interval is executed, specifically, mesh will be directed to
The file attribute information that has recorded of mark file is updated to the newest file attribute information that present scan arrives, so as to will be updated
Judge whether current attribute information meets preset termination scanning as subsequent for the file attribute information that file destination is recorded
The benchmark of condition.
It is corresponding, judge whether file uploads the process finished for based on file attribute information, above-mentioned S203 is according to mesh
The current attribute information for marking file, judges whether file to be uploaded uploads and finishes, specifically include:
For the current attribute information got every time, judges the current attribute information and be directed to what file destination was recorded
Whether attribute information is consistent;
If consistent, it is determined that file to be uploaded, which has uploaded, to be finished;If inconsistent, it is determined that file to be uploaded has not uploaded
Finish.
In a specific embodiment, it is 10:34 point that file upload side, which starts the time of upper transmitting file, specifies store path
For ABC/pay/20181108/alipay_ABC_pay.txt, for the prior art, due to can not accurately predict in advance
When file, which uploads, finishes, in order to guarantee file download integrality, by way of delaying predetermined file download time, and agreement
11:30 starts to download file, but actually may 10:44 file uploaded completion, lead to that there are file download poor in timeliness
Problem;In order to guarantee file download timeliness, by way of arranging the file download time in advance, agreement 11:46 starts to download
File, but file upload progress may be affected for some reason, actually 10:50 file just uploads completion, leads to not
The problem of guaranteeing file download integrality;
In order to combine file download timeliness and file download integrality, this specification one or more embodiment
In, the process of file download specifically includes:
After uploading the file destination that policy uploads file to be uploaded there are file in the case where detecting specified store path,
The current attribute information of file destination is obtained according to prefixed time interval;And for the current attribute information got every time, sentence
Whether the current attribute information that breaks changes, and after determining that the current attribute information of file destination does not change, determines
File upload finishes;
Wherein, default with first for the process of the attribute information of file scanning device multiple timing scanning file destination
Time interval be 5 minutes for, specifically:
If the time point of scanning file is 2018-11-09 10:30 for the first time, file upload side does not have started upload at this time
Therefore file destination is not present under specified store path in file;
If the time point of second of scanning file is 2018-11-09 10:35, file upload side has started to upload text at this time
Part, therefore, there are file destinations under specified store path, and obtain the current attribute information of file destination, and file size is
3000KB, the last modification time of file are 2018-11-09 10:34:10, record the attribute information of file destination;
If the time point of third time scanning file is 2018-11-09 10:40, there are mesh under specified store path at this time
File is marked, and obtains the current attribute information of file destination, file size 4100KB, the last modification time of file is 2018-
11-09 10:39:57, the current attribute information and last time scan recorded attribute information (file size 3000KB, text
The last modification time of part is 2018-11-09 10:34:10) it is inconsistent, then supporting paper, will be for target text still in upper crossing
The attribute information that part is recorded is updated to the current attribute information, and (file size 4100KB, the last modification time of file are
2018-11-09 10:39:57);
If the time point of the 4th scanning file is 2018-11-09 10:45, there are mesh under specified store path at this time
File is marked, and obtains the current attribute information of file destination, file size 4200KB, the last modification time of file is 2018-
11-09 10:44:29, the current attribute information and last time scan recorded attribute information (file size 4100KB, text
The last modification time of part is 2018-11-09 10:39:57) it is inconsistent, the attribute information recorded for file destination is updated
For the current attribute information (file size 4200KB, the last modification time of file are 2018-11-09 10:44:29);
If the time point of the 5th scanning file is 2018-11-09 10:50, there are mesh under specified store path at this time
File is marked, and obtains the current attribute information of file destination, file size 4200KB, the last modification time of file is 2018-
11-09 10:44:29, the current attribute information and last time scan recorded attribute information (file size 4200KB, text
The last modification time of part is 2018-11-09 10:44:29) unanimously, supporting paper, which has uploaded, to be finished;
Preset format is set by the file name of file destination, for example, by the title of file destination again name are as follows: ABC/
Pay/20181108/alipay_ABC_pay_2018apilayinsure.txt (specified format symbol be old file name+year+
Apilayinsure+ file suffixes).
It should be noted that the first prefixed time interval can be reduced in order to further increase the timeliness of file download,
Or the first prefixed time interval is determined with reference to the multiple relation factors for influencing file uploading speed, so that it is guaranteed that on file
After biography side's completion file uploads in the shortest time, determine that the current attribute information of file destination meets preset termination scan stripes
Part.
Wherein, for the process of the file name of file reception side's multiple timing scanning file destination, trace interval
For the second prefixed time interval, which can be less than or equal to above-mentioned first prefixed time interval, specifically
Are as follows:
If the time point for scanning file is 2018-11-09 10:33, file upload side does not have started transmitting file at this time,
Therefore, it is not processed;
If the time point for scanning file is 2018-11-09 10:40, there are file destinations under specified store path, but
The file name of file destination is non-designated format (specified format is [year+apilayinsure] symbol), is not processed,
In, 10:33 to 10:40 can pass through Multiple-Scan;
If the time point for scanning file is 2018-11-09 10:51, there are file destinations under specified store path, and
The file name of file destination is specified format (specified format is [year+apilayinsure] symbol), then downloading object file,
Wherein, 10:40 to 10:51 can pass through Multiple-Scan.
Further, in order to improve the scanning precision of file attribute information, need to preset file attribute information
Trace interval is based on this, before above-mentioned S202 obtains the current attribute information of file destination according to prefixed time interval,
Further include:
Determine that the file of file to be uploaded uploads feature, wherein it includes: that file uploads time-consuming, text that this document, which uploads feature,
At least one of part uploading bandwidth, file size;
Feature is uploaded according to the file for the file to be uploaded determined, determines and file to be uploaded is uploaded for scanning needle
File destination attribute information used in prefixed time interval.
Wherein, when determining the prefixed time interval of attribute information of timing scan file destination, with reference on influence file
The multiple relation factors for passing speed, can be improved the scanning precision of file attribute information in this way, further increase file download
Timeliness;Specifically, uploading feature by file includes for file uploads time-consuming, file uploading bandwidth and file size, in advance
If time interval calculation formula are as follows: R=b1x+b2y+b3Z, wherein R indicates prefixed time interval, b1It is time-consuming to indicate that file uploads
Weight coefficient, b2Indicate the weight coefficient of file uploading bandwidth, b3Indicate that the weight coefficient of file size, x indicate to be directed to file
Upload the first numerical value that time-consuming occurrence is converted to, y indicate that the occurrence for file uploading bandwidth is converted to the
Two numerical value, z indicate the third value that the occurrence for file size is converted to, wherein calculate in prefixed time interval public
In formula, since the unit of multiple relation factors is different, it is therefore desirable to according to preset rules by the specific value of each relation factor into
The unified conversion of row, then the numerical value after conversion is substituted into formula and obtains prefixed time interval.
In a specific embodiment, as shown in fig. 6, giving the multiterminal interaction schematic diagram in document down loading method, tool
Body includes:
S601, file upload direction and store path knit stitch are specified to upload file destination to file to be uploaded, wherein to upper
Transmitting file starts to be uploaded to file upload to be uploaded and finish to need certain uplink time, during the upload of file to be uploaded, on
The file size and filemodetime of the file destination of biography are constantly updated with the variation of uplink time;
S602, file scanning device detect and upload policy to file institute to be uploaded with the presence or absence of file under specified store path
The file destination of upload;
File destination if it does not exist, then S603, determines that file uploads Fang Wei and starts upper transmitting file;
File destination if it exists then executes S604, and file scanning device is judged whether there is to be recorded for file destination
Attribute information, wherein the case where arriving file destination for first scan, judging result are that there is no and be directed to and non-sweep for the first time
The case where retouching the attribute information of file destination, judging result are to exist;
If non-record attribute information, illustrates that present scan is the scanning of attribute information for the first time for file destination, execute
S605 obtains and records the attribute information of file destination;
If record attribute information, illustrates that present scan is the non-attribute information for the first time scanning for file destination, hold
Row S606 obtains the current attribute information of file destination according to the first prefixed time interval, wherein the attribute information includes: text
Part size and/or filemodetime, this document modification time characterize what file destination was newly written under specified store path
Temporal information;And
S607 is executed, judges whether the current attribute information of file destination meets the preset termination condition of scanning, specifically, sentencing
Whether the attribute information of disconnected file destination remains unchanged, that is, compares the newest attribute information of file destination and be directed to file destination institute
Whether the attribute information of record is consistent;
If it is not, then explanation is in crossing on file, S608 is executed, according to the current attribute information got, updates needle
To the attribute information that file destination is recorded, and continue to execute above-mentioned S606;
It is finished if so, supporting paper has uploaded, executes S609, set default lattice for the file name of file destination
Formula, for example, increasing a certain specific fields in the file name of file destination;
S610, file reception side obtain the file name of file destination according to the second prefixed time interval;
S611, file reception side judges whether the file name of file destination is preset format, for example, judging file destination
File name in whether there is specific fields;
If it is not, then continuing to execute above-mentioned S610;If so, executing S612, the file destination is downloaded.
Document down loading method in this specification one or more embodiment, in the case where detecting specified store path, there are needles
After the file destination uploaded to file to be uploaded, the current attribute information of file destination is obtained according to prefixed time interval;Root
According to the current attribute information, judges whether file to be uploaded uploads and finish;If so, triggering file reception side downloading target text
Part.After i.e. file upload side starts upper transmitting file, and file reception side start download file before, pass through Multiple-Scan target
The current attribute information of file, and after determining that file to be uploaded has been uploaded in conjunction with the current attribute information, just download this
File destination reaches the mesh uploaded in confirmation to realize that file uploads the first time triggering downloading object file completed
Under the premise of the integrality for marking file, the purpose of file download operation is executed in time, when can ensure file download simultaneously in this way
Effect property and file download integrality.
The document down loading method that corresponding above-mentioned Fig. 2 to Fig. 6 is described, based on the same technical idea, this specification one or
Multiple embodiments additionally provide a kind of file downloading device, and Fig. 7 is under the file that this specification one or more embodiment provides
The module composition schematic diagram set is carried, the device is for executing the document down loading method that Fig. 2 to Fig. 6 is described, as shown in fig. 7, should
Device includes:
File detection module 701 uploads policy to text to be uploaded with the presence or absence of file under specified store path for detecting
The file destination that part is uploaded;
Attribute information obtains module 702, if being to exist for testing result, obtains the mesh according to prefixed time interval
Mark the current attribute information of file;
Attribute information judgment module 703, for the current attribute information according to the file destination, judgement it is described to
Whether upper transmitting file, which uploads, finishes;
File download module 704 downloads the file destination for if the determination result is YES, then triggering file reception side.
In this specification one or more embodiment, after file upload side starts upper transmitting file, and file reception side is opened
Begin to determine before downloading file by the current attribute information of Multiple-Scan file destination, and in conjunction with the current attribute information
After file to be uploaded has uploaded, the file destination is just downloaded, to realize that file uploads under the first time triggering completed
File destination is carried, reaches under the premise of the integrality for the file destination that confirmation has uploaded, executes file download operation in time
Purpose can ensure file download timeliness and file download integrality simultaneously in this way.
Optionally, the attribute information judgment module 703, is specifically used for:
Judge whether the current attribute information of the file destination meets the preset termination condition of scanning;
It is finished if so, determining that the file to be uploaded has uploaded, otherwise, continues to execute and obtained according to prefixed time interval
The step of current attribute information of the file destination.
Optionally, the current attribute information includes: file size and/or filemodetime;The attribute information is sentenced
Disconnected module 703, is further specifically used for:
Judge whether the file size of the file destination remains unchanged, and/or judges that the file of the file destination is repaired
Change whether the time remains unchanged;
If judging result is to be, it is determined that the current attribute information of the file destination meets preset termination scanning
Condition, and preset format is set by the file name of the file destination.
Optionally, the file download module 704, is specifically used for:
If file reception side detects that the file name of the file destination meets preset format, the file reception side
Download the file destination.
Optionally, described device further includes attribute information logging modle, is used for:
Determining that there are after the file destination, judge whether there is the attribute letter recorded for the file destination
Breath;
If it does not exist, then the attribute information of the file destination is obtained and records, and using the attribute information as needle
To the attribute information of the file destination first record.
Optionally, described device further includes attribute information update module, is used for:
After determining that the file to be uploaded does not upload, the attribute letter recorded for the file destination is updated
Breath.
Optionally, the attribute information judgment module 703, also particularly useful for:
For the current attribute information got every time, judges the current attribute information and be directed to the file destination
Whether the attribute information recorded is consistent;
If consistent, it is determined that the file to be uploaded, which has uploaded, to be finished;
If inconsistent, it is determined that the file to be uploaded, which does not upload, to be finished.
Optionally, described device further includes time interval determining module, is used for:
Determine that the file of file to be uploaded uploads feature, wherein the file upload feature include: file upload it is time-consuming,
At least one of file uploading bandwidth, file size;
Feature is uploaded according to the file of the file to be uploaded, is determined for scanning needle to the file institute to be uploaded
Prefixed time interval used in the attribute information of the file destination of upload.
File downloading device in this specification one or more embodiment, in the case where detecting specified store path, there are needles
After the file destination uploaded to file to be uploaded, the current attribute information of file destination is obtained according to prefixed time interval;Root
According to the current attribute information, judges whether file to be uploaded uploads and finish;If so, triggering file reception side downloading target text
Part.After i.e. file upload side starts upper transmitting file, and file reception side start download file before, pass through Multiple-Scan target
The current attribute information of file, and after determining that file to be uploaded has been uploaded in conjunction with the current attribute information, just download this
File destination reaches the mesh uploaded in confirmation to realize that file uploads the first time triggering downloading object file completed
Under the premise of the integrality for marking file, the purpose of file download operation is executed in time, when can ensure file download simultaneously in this way
Effect property and file download integrality.
It should be noted that in this specification about in the embodiment of file downloading device and this specification about under file
Based on the same inventive concept, therefore the specific implementation of the embodiment may refer under aforementioned corresponding file the embodiment of support method
The implementation of support method, overlaps will not be repeated.
The document down loading method that corresponding above-mentioned Fig. 2 to Fig. 6 is described, based on the same technical idea, this specification one or
Multiple embodiments additionally provide a kind of file download system, and Fig. 8 is under the file that this specification one or more embodiment provides
The structure composition schematic diagram of loading system, as shown in figure 8, the system includes: that file upload side 10, file reception side 20 and file are swept
Imaging apparatus 30;
Above-mentioned file upload side 10, for uploading file destination to file to be uploaded to specified store path knit stitch;
Above-mentioned file scanning device 30, for detect under specified store path with the presence or absence of the file side of uploading 10 for
The file destination that transmitting file is uploaded;If it exists, then the current attribute information of file destination is obtained according to prefixed time interval;With
And the current attribute information according to file destination, judge whether file to be uploaded uploads and finish, wherein file upload side will be to upper
After transmitting file uploads, the attribute information of the file destination under specified store path is remained unchanged, at this time the text of file destination
Part size is identical as the file size of file to be uploaded, includes in the file content for including in file destination and file to be uploaded
File content is identical, can guarantee the integrality of file download, and in the case where determining the first time triggering that file upload is completed
File destination is carried, can guarantee the timeliness of file download;
Above-mentioned file reception side 20, for after determining that file to be uploaded has uploaded, downloading object file, wherein
It is the case where file reception side executes for file attribute information scanning process, file reception side is according to the target text scanned
After the current attribute information of part determines that file uploads, the file destination is downloaded automatically;It is scanned for file attribute information
Process is the case where execution by the individual file scanning device independently of file reception side, to need this document scanning means in root
After determining that file uploads according to the current attribute information of the file destination scanned, file destination upload and completes mark
Note, or downloading instruction information is sent to file reception side, file reception side is detecting upload completion label or is receiving
After the downloading indicates information, the file destination is downloaded automatically.
In this specification one or more embodiment, after file upload side starts upper transmitting file, and file reception side is opened
Begin to determine before downloading file by the current attribute information of Multiple-Scan file destination, and in conjunction with the current attribute information
After file to be uploaded has uploaded, the file destination is just downloaded, to realize that file uploads under the first time triggering completed
File destination is carried, reaches under the premise of the integrality for the file destination that confirmation has uploaded, executes file download operation in time
Purpose can ensure file download timeliness and file download integrality simultaneously in this way.
Wherein, above-mentioned file scanning device 30 can be set in file reception side 20;Alternatively, above-mentioned file scanning device
30 place terminals can also be with 20 phase of file reception side independence;
Wherein, the case where for file scanning device 30 independently of file reception side 20, above-mentioned file scanning device 30, also
For setting preset format for the file name of file destination after determining that file to be uploaded has uploaded;
Above-mentioned file reception side 20, after meeting preset format in the file name for detecting file destination, then
It determines that file to be uploaded has uploaded to finish, and downloads the file destination.
File download system in this specification one or more embodiment, in the case where detecting specified store path, there are needles
After the file destination uploaded to file to be uploaded, the current attribute information of file destination is obtained according to prefixed time interval;Root
According to the current attribute information, judges whether file to be uploaded uploads and finish;If so, triggering file reception side downloading target text
Part.After i.e. file upload side starts upper transmitting file, and file reception side start download file before, pass through Multiple-Scan target
The current attribute information of file, and after determining that file to be uploaded has been uploaded in conjunction with the current attribute information, just download this
File destination reaches the mesh uploaded in confirmation to realize that file uploads the first time triggering downloading object file completed
Under the premise of the integrality for marking file, the purpose of file download operation is executed in time, when can ensure file download simultaneously in this way
Effect property and file download integrality.
Further, corresponding above-mentioned Fig. 2 is to method shown in fig. 6, based on the same technical idea, this specification one or
Multiple embodiments additionally provide a kind of file download equipment, and the equipment is for executing above-mentioned document down loading method, such as Fig. 9 institute
Show.
File download equipment can generate bigger difference because configuration or performance are different, may include one or one with
On processor 901 and memory 902, can store one or more storage application programs or number in memory 902
According to.Wherein, memory 902 can be of short duration storage or persistent storage.The application program for being stored in memory 902 may include one
A or more than one module (diagram is not shown), each module may include can to the series of computation machine in file download equipment
It executes instruction.Further, processor 901 can be set to communicate with memory 902, executes and deposits in file download equipment
Series of computation machine executable instruction in reservoir 902.File download equipment can also include one or more power supplys
903, one or more wired or wireless network interfaces 904, one or more input/output interfaces 905, one or
More than one keyboard 906 etc..
In a specific embodiment, file download equipment includes memory and one or more journey
Sequence, perhaps more than one program is stored in memory and one or more than one program may include one for one of them
Or more than one module, and each module may include to the series of computation machine executable instruction in file download equipment, and
Be configured to be executed this by one or more than one processor or more than one program include by carry out it is following based on
Calculation machine executable instruction:
It detects and uploads the file destination that policy uploads file to be uploaded with the presence or absence of file under specified store path;
If it exists, then the current attribute information of the file destination is obtained according to prefixed time interval;
According to the current attribute information of the file destination, judges whether the file to be uploaded uploads and finish;
If so, triggering file reception side downloads the file destination.
In this specification one or more embodiment, after file upload side starts upper transmitting file, and file reception side is opened
Begin to determine before downloading file by the current attribute information of Multiple-Scan file destination, and in conjunction with the current attribute information
After file to be uploaded has uploaded, the file destination is just downloaded, to realize that file uploads under the first time triggering completed
File destination is carried, reaches under the premise of the integrality for the file destination that confirmation has uploaded, executes file download operation in time
Purpose can ensure file download timeliness and file download integrality simultaneously in this way.
Optionally, computer executable instructions when executed, the current attribute according to the file destination
Information judges whether the file to be uploaded uploads and finishes, comprising:
Judge whether the current attribute information of the file destination meets the preset termination condition of scanning;
It is finished if so, determining that the file to be uploaded has uploaded, otherwise, continues to execute and obtained according to prefixed time interval
The step of current attribute information of the file destination.
Optionally, computer executable instructions when executed, the current attribute information include: file size and/or
Filemodetime;
Whether the current attribute information for judging the file destination meets the preset termination condition of scanning, comprising:
Judge whether the file size of the file destination remains unchanged, and/or judges that the file of the file destination is repaired
Change whether the time remains unchanged;
If judging result is to be, it is determined that the current attribute information of the file destination meets preset termination scanning
Condition, and preset format is set by the file name of the file destination.
Optionally, when executed, the triggering file reception side downloads the file destination to computer executable instructions,
Include:
If file reception side detects that the file name of the file destination meets preset format, the file reception side
Download the file destination.
Optionally, computer executable instructions when executed, whether there is on file in the case where detecting specified store path
After the file destination that biography policy uploads file to be uploaded, further includes:
Determining that there are after the file destination, judge whether there is the attribute letter recorded for the file destination
Breath;
If it does not exist, then the attribute information of the file destination is obtained and records, and using the attribute information as needle
To the attribute information of the file destination first record.
Optionally, computer executable instructions when executed, finish it judging whether the file to be uploaded uploads
Afterwards, further includes:
After determining that the file to be uploaded does not upload, the attribute letter recorded for the file destination is updated
Breath.
Optionally, computer executable instructions when executed, the current attribute according to the file destination
Information judges whether the file to be uploaded uploads and finishes, comprising:
For the current attribute information got every time, judges the current attribute information and be directed to the file destination
Whether the attribute information recorded is consistent;
If consistent, it is determined that the file to be uploaded, which has uploaded, to be finished;
If inconsistent, it is determined that the file to be uploaded, which does not upload, to be finished.
Optionally, computer executable instructions when executed, are obtaining the file destination according to prefixed time interval
Current attribute information before, further includes:
Determine that the file of file to be uploaded uploads feature, wherein the file upload feature include: file upload it is time-consuming,
At least one of file uploading bandwidth, file size;
Feature is uploaded according to the file of the file to be uploaded, is determined for scanning needle to the file institute to be uploaded
Prefixed time interval used in the attribute information of the file destination of upload.
File download equipment in this specification one or more embodiment, in the case where detecting specified store path, there are needles
After the file destination uploaded to file to be uploaded, the current attribute information of file destination is obtained according to prefixed time interval;Root
According to the current attribute information, judges whether file to be uploaded uploads and finish;If so, triggering file reception side downloading target text
Part.After i.e. file upload side starts upper transmitting file, and file reception side start download file before, pass through Multiple-Scan target
The current attribute information of file, and after determining that file to be uploaded has been uploaded in conjunction with the current attribute information, just download this
File destination reaches the mesh uploaded in confirmation to realize that file uploads the first time triggering downloading object file completed
Under the premise of the integrality for marking file, the purpose of file download operation is executed in time, when can ensure file download simultaneously in this way
Effect property and file download integrality.
It should be noted that in this specification about in the embodiment and this specification of file download equipment about under file
Based on the same inventive concept, therefore the specific implementation of the embodiment may refer under aforementioned corresponding file the embodiment of support method
The implementation of support method, overlaps will not be repeated.
Further, corresponding above-mentioned Fig. 2 is to method shown in fig. 6, based on the same technical idea, this specification one or
Multiple embodiments additionally provide a kind of storage medium,, should in a kind of specific embodiment for storing computer executable instructions
Storage medium can be USB flash disk, CD, hard disk etc., and the computer executable instructions of storage medium storage are being executed by processor
When, it is able to achieve following below scheme:
It detects and uploads the file destination that policy uploads file to be uploaded with the presence or absence of file under specified store path;
If it exists, then the current attribute information of the file destination is obtained according to prefixed time interval;
According to the current attribute information of the file destination, judges whether the file to be uploaded uploads and finish;
If so, triggering file reception side downloads the file destination.
In this specification one or more embodiment, after file upload side starts upper transmitting file, and file reception side is opened
Begin to determine before downloading file by the current attribute information of Multiple-Scan file destination, and in conjunction with the current attribute information
After file to be uploaded has uploaded, the file destination is just downloaded, to realize that file uploads under the first time triggering completed
File destination is carried, reaches under the premise of the integrality for the file destination that confirmation has uploaded, executes file download operation in time
Purpose can ensure file download timeliness and file download integrality simultaneously in this way.
Optionally, the computer executable instructions of storage medium storage are described according to when being executed by processor
The current attribute information of file destination judges whether the file to be uploaded uploads and finishes, comprising:
Judge whether the current attribute information of the file destination meets the preset termination condition of scanning;
It is finished if so, determining that the file to be uploaded has uploaded, otherwise, continues to execute and obtained according to prefixed time interval
The step of current attribute information of the file destination.
Optionally, the computer executable instructions of storage medium storage are when being executed by processor, the current attribute
Information includes: file size and/or filemodetime;
Whether the current attribute information for judging the file destination meets the preset termination condition of scanning, comprising:
Judge whether the file size of the file destination remains unchanged, and/or judges that the file of the file destination is repaired
Change whether the time remains unchanged;
If judging result is to be, it is determined that the current attribute information of the file destination meets preset termination scanning
Condition, and preset format is set by the file name of the file destination.
Optionally, the computer executable instructions of storage medium storage are when being executed by processor, the triggering file
Recipient downloads the file destination, comprising:
If file reception side detects that the file name of the file destination meets preset format, the file reception side
Download the file destination.
Optionally, the computer executable instructions of storage medium storage are specified in detection and are deposited when being executed by processor
After the file destination uploaded with the presence or absence of file upload policy to file to be uploaded under storage path, further includes:
Determining that there are after the file destination, judge whether there is the attribute letter recorded for the file destination
Breath;
If it does not exist, then the attribute information of the file destination is obtained and records, and using the attribute information as needle
To the attribute information of the file destination first record.
Optionally, the computer executable instructions of storage medium storage are when being executed by processor, judgement it is described to
Whether upper transmitting file uploads finish after, further includes:
After determining that the file to be uploaded does not upload, the attribute letter recorded for the file destination is updated
Breath.
Optionally, the computer executable instructions of storage medium storage are described according to when being executed by processor
The current attribute information of file destination judges whether the file to be uploaded uploads and finishes, comprising:
For the current attribute information got every time, judges the current attribute information and be directed to the file destination
Whether the attribute information recorded is consistent;
If consistent, it is determined that the file to be uploaded, which has uploaded, to be finished;
If inconsistent, it is determined that the file to be uploaded, which does not upload, to be finished.
Optionally, the computer executable instructions of storage medium storage are when being executed by processor, when according to default
Between file destination described in interval acquiring current attribute information before, further includes:
Determine that the file of file to be uploaded uploads feature, wherein the file upload feature include: file upload it is time-consuming,
At least one of file uploading bandwidth, file size;
Feature is uploaded according to the file of the file to be uploaded, is determined for scanning needle to the file institute to be uploaded
Prefixed time interval used in the attribute information of the file destination of upload.
The computer executable instructions of storage medium storage in this specification one or more embodiment are by processor
When execution, after there is the file destination uploaded for file to be uploaded in the case where detecting specified store path, according to it is default when
Between interval acquiring file destination current attribute information;According to the current attribute information, judge whether file to be uploaded has uploaded
Finish;If so, triggering file reception side's downloading object file.After i.e. file upload side starts upper transmitting file, and file reception
Before side starts to download file, by the current attribute information of Multiple-Scan file destination, and combine the current attribute information true
It makes after file to be uploaded uploaded, the file destination is just downloaded, to realize that file uploads the first time touching completed
Downloading object file is sent out, is reached under the premise of the integrality for the file destination that confirmation has uploaded, executes file download behaviour in time
The purpose of work can ensure file download timeliness and file download integrality simultaneously in this way.
It should be noted that in this specification about in the embodiment of storage medium and this specification about file download side
Based on the same inventive concept, therefore the specific implementation of the embodiment may refer to aforementioned corresponding file download side to the embodiment of method
The implementation of method, overlaps will not be repeated.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HD Cal、
JHDL(Java Hardware Description Language)、Lava、Lola、My HDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer
This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method process can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can
Read medium, logic gate, switch, specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and insertion microcontroller, the example of controller includes but is not limited to following microcontroller
Device: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320 are deposited
Memory controller is also implemented as a part of the control logic of memory.It is also known in the art that in addition to
Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic
Controller is obtained to come in fact in the form of logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and insertion microcontroller etc.
Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it
The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions
For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit can be realized in the same or multiple software and or hardware when specification one or more.
It should be understood by those skilled in the art that, the embodiment of this specification one or more can provide for method, system,
Or computer program product.Therefore, this specification one or more can be used complete hardware embodiment, complete software embodiment,
Or the form of embodiment combining software and hardware aspects.Moreover, this specification one or more can be used in one or more
It wherein include computer-usable storage medium (the including but not limited to magnetic disk storage, CD- of computer usable program code
ROM, optical memory etc.) on the form of computer program product implemented.
This specification one or more is referring to (being according to method, the equipment of this specification one or more embodiment
System) and the flowchart and/or the block diagram of computer program product describe.It should be understood that can be realized by computer program instructions
The process and/or box in each flow and/or block and flowchart and/or the block diagram in flowchart and/or the block diagram
Combination.Can provide these computer program instructions to general purpose computer, special purpose computer, Embedded Processor or other can compile
The processor of journey data processing equipment is to generate a machine, so that passing through computer or other programmable data processing devices
The instruction that processor executes generates for realizing in one box of one or more flows of the flowchart and/or block diagram or more
The device for the function of being specified in a box.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that the embodiment of this specification one or more can provide as method, system or meter
Calculation machine program product.Therefore, complete hardware embodiment, complete software embodiment or combination can be used in this specification one or more
The form of embodiment in terms of software and hardware.It is wherein wrapped moreover, this specification one or more can be used in one or more
Computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optics containing computer usable program code
Memory etc.) on the form of computer program product implemented.
This specification one or more can be in the general context of computer-executable instructions executed by a computer
Description, such as program module.Generally, program module includes the example for executing particular task or realizing particular abstract data type
Journey, programs, objects, component, data structure etc..This specification one or more can also be practiced in a distributed computing environment
It is a, in these distributed computing environments, by executing task by the connected remote processing devices of communication network.Dividing
Cloth calculates in environment, and program module can be located in the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely the embodiment of this specification one or more, be not limited to this specification one or
It is multiple.To those skilled in the art, this specification one or more can have various modifications and variations.It is all in this explanation
Any modification, equivalent replacement, improvement and so within book one or more spirit and principle, should be included in this specification
Within one or more scopes of the claims.