CN109104481A - file integrity detection method, file integrity detection device and terminal device - Google Patents
file integrity detection method, file integrity detection device and terminal device Download PDFInfo
- Publication number
- CN109104481A CN109104481A CN201810889979.0A CN201810889979A CN109104481A CN 109104481 A CN109104481 A CN 109104481A CN 201810889979 A CN201810889979 A CN 201810889979A CN 109104481 A CN109104481 A CN 109104481A
- Authority
- CN
- China
- Prior art keywords
- file
- server
- opening flag
- end mark
- content
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 52
- 238000004590 computer program Methods 0.000 claims description 24
- 238000000034 method Methods 0.000 description 21
- 230000006870 function Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000010485 coping Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005242 forging Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000007670 refining Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
- H04L63/123—Applying verification of the received information received data contents, e.g. message integrity
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
This application provides a kind of file integrity detection method, file integrity detection device, terminal device and computer readable storage mediums, it include: before downloading the first file in server, download the opening flag file and end mark file of first file, wherein, first file is the file that need to be downloaded from the server, and whether the opening flag file and the end mark file are used to indicate first file complete;If the opening flag file and the end mark file download success, whether the content for detecting the opening flag file is identical as the content of the end mark file;If the content of the opening flag file is identical as the content of the end mark file, it is determined that first file is complete, and downloads first file from the server.Whether the file that can solve the problems, such as that the prior art can not store in detection service device by the application is complete.
Description
Technical field
The application belongs to field of communication technology more particularly to a kind of file integrity detection method, file integrity detection
Device, terminal device and computer readable storage medium.
Background technique
With the rapid development of network technology, for the ease of the management of file, user is usually by the file in terminal device
It uploads onto the server, file is stored to server, while when needed, file is downloaded from server.However, existing
Whether the file that technology can not store in detection service device is complete, when the file stored in the server is imperfect, will lead to use
Download incomplete file in family.
Summary of the invention
In view of this, this application provides a kind of file integrity detection method, file integrity detection device, terminals to set
Whether standby and computer readable storage medium, the file that can not be stored in detection service device with solving the prior art completely ask
Topic.
The first aspect of the application provides a kind of file integrity detection method, comprising:
In the opening flag file and end mark text for before downloading the first file in server, downloading first file
Part, wherein first file is the file that need to be downloaded from the server, the opening flag file and end mark
Whether will file is used to indicate first file complete;
If the opening flag file and the end mark file download success, the opening flag file is detected
Content it is whether identical as the content of the end mark file;
If the content of the opening flag file is identical as the content of the end mark file, it is determined that first text
Part is complete, and first file is downloaded from the server.
The second aspect of the application provides a kind of file integrity detection device, comprising:
First download module, for before downloading the first file in server, downloading first file to start to mark
Will file and end mark file, wherein first file is the file that need to be downloaded from the server, described to start to mark
Whether will file and the end mark file are used to indicate first file complete;
Content detection module is examined if downloading success for the opening flag file and the end mark file
Whether the content for surveying the opening flag file is identical as the content of the end mark file;
Second download module, if content and the content phase of the end mark file for the opening flag file
Together, it is determined that first file is complete, and first file is downloaded from the server.
The third aspect of the application provides a kind of terminal device, including memory, processor and is stored in described deposit
In reservoir and the computer program that can run on the processor, the processor are realized such as when executing the computer program
Described in above-mentioned first aspect the step of file integrity detection method.
The fourth aspect of the application provides a kind of computer readable storage medium, and the computer readable storage medium is deposited
Computer program is contained, realizes that file integrality is examined as described in above-mentioned first aspect when the computer program is executed by processor
The step of survey method.
The 5th aspect of the application provides a kind of computer program product, and the computer program product includes computer
Program realizes that file integrality is examined as described in above-mentioned first aspect when the computer program is executed by one or more processors
The step of proved recipe method.
Therefore this programme before downloading the first file in server, is first downloading first text from server
The opening flag file and end mark file of part, if the opening flag file and the end mark file download at
Function, then whether the content for detecting the opening flag file is identical as the content of the end mark file, and in the beginning
When the content of logo file is identical as the content of the end mark file, determine that first file is complete, from starting from institute
It states and downloads first file in server.This programme can detecte server by opening flag file and end mark file
The integrality of the file of middle storage, and download this document again when file is complete, to can guarantee that user downloads from server
Whether complete file, that is, the file for solving the problems, such as that the prior art can not store in detection service device are complete.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the implementation process schematic diagram for the file integrity detection method that the embodiment of the present application one provides;
Fig. 2 is the implementation process schematic diagram for the file integrity detection method that the embodiment of the present application two provides;
Fig. 3 is the schematic diagram for the file integrity detection device that the embodiment of the present application three provides;
Fig. 4 is the schematic diagram for the terminal device that the embodiment of the present application four provides;
Fig. 5 is the schematic diagram for the terminal device that the embodiment of the present application five provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific
The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special
Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step,
Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment
And be not intended to limit the application.As present specification and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, terminal device described in the embodiment of the present application is including but not limited to such as with the sensitive table of touch
Mobile phone, laptop computer or the tablet computer in face (for example, touch-screen display and/or touch tablet) etc it is other
Portable device.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but is had
The desktop computer of touch sensitive surface (for example, touch-screen display and/or touch tablet).
In following discussion, the terminal device including display and touch sensitive surface is described.However, should manage
Solution, terminal device may include that one or more of the other physical User of such as physical keyboard, mouse and/or control-rod connects
Jaws equipment.
Terminal device supports various application programs, such as one of the following or multiple: drawing application program, demonstration application
Program, word-processing application, website creation application program, disk imprinting application program, spreadsheet applications, game are answered
With program, telephony application, videoconference application, email application, instant messaging applications, forging
Refining supports application program, photo management application program, digital camera application program, digital camera application program, web-browsing to answer
With program, digital music player application and/or video frequency player application program.
At least one of such as touch sensitive surface can be used in the various application programs that can be executed on the terminal device
Public physical user-interface device.It can be adjusted among applications and/or in corresponding application programs and/or change touch is quick
Feel the corresponding information shown in the one or more functions and terminal on surface.In this way, terminal public physical structure (for example,
Touch sensitive surface) it can support the various application programs with user interface intuitive and transparent for a user.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in the present embodiment, each process
Execution sequence should be determined by its function and internal logic, and the implementation process without coping with the embodiment of the present application constitutes any restriction.
In order to illustrate technical solution described herein, the following is a description of specific embodiments.
Referring to Fig. 1, it is the implementation process schematic diagram for the file integrity detection method that the embodiment of the present application one provides, such as schemes
Shown this document integrality detection method may comprise steps of:
Step S101, before downloading the first file in server, download first file opening flag file and
End mark file.
Wherein, first file is the file that need to be downloaded from the server.The opening flag file and described
End mark file is used to indicate whether first file is complete, and the opening flag file and the end mark file can
The mark in flag information and the end mark file to refer to the file including flag information, in the opening flag file
Will information is identical, and the flag information is used to indicate whether first file is complete, and the flag information can be by user certainly
Row setting can also be automatically generated when terminal device uploads the opening flag file of the first file to server, such as terminal
When uploading the opening flag file of the first file to server, the current time information for obtaining terminal device (starts equipment
Time when logo file uploads), using the current time information as the opening flag file and the end mark file
In flag information.The server includes but is not limited to File Transfer Protocol (File Transfer Protocol, FTP) clothes
Business device, ftp server are the computers for providing file on the internet and storing and accessing service, provide service, user according to FTP
Terminal device can be used, ftp server, the file of downloading ftp server storage are accessed by network remote.
In the embodiment of the present application, terminal device uploads first text while uploading the first file to server
The opening flag file and end mark file of part, by described in the opening flag file and end mark file detection
Whether first file stored in server is complete, that is, detects first text that terminal device is uploaded to the server
Whether part is complete.
In the embodiment of the present application, terminal device can send the first file download request information, server to server
After receiving the first file download request information, the opening flag file of first file is fed back to terminal device
With end mark file, if receiving the opening flag file and end mark file of first file within a preset time,
The opening flag file and end mark file for then determining first file download success;If not receiving within a preset time
To any file in the opening flag file and end mark file of first file, it is determined that this document (does not receive
The file arrived) failed download, this document may be not present in server, first file may be imperfect, at this time can be to
Server sends prompt information, to prompt first file imperfect by the prompt information.Wherein, the preset time is used
In judging whether successfully to download file from server, the preset time can be not limited thereto by user's self-setting.
It should be noted that being downloaded from server in order to avoid the failure of the file download as caused by network cause
Before the opening flag file and end mark file of first file, the current connected network of terminal device is first detected, and obtain
The intensity of the reception signal of the current connected network of terminal device indicates (Received Signal Strength
Indication, RSSI) value, when the RSSI value of the current connected network of terminal device is more than or equal to preset threshold, eventually
End equipment can be communicated by current connected network with server, such as through current connected network on server
Transmitting file downloads file from server;It, can when the RSSI value of the current connected network of terminal device is less than preset threshold
With by the current connected network switching of terminal device to RSSI value be greater than preset threshold network, thus guarantee terminal device with
Stable network is kept when server is communicated.
Step S102 is opened described in detection if the opening flag file and the end mark file download success
Whether the content of beginning logo file is identical as the content of the end mark file.
In the embodiment of the present application, if terminal device successfully downloads the opening flag file and the knot from server
Bundle flag file, then can by detect the content of the opening flag file and the end mark file content whether phase
With (detect flag information in the opening flag file and whether the flag information in the end mark file be identical),
Judge whether first file is complete.
Step S103, if the content of the opening flag file is identical as the content of the end mark file, it is determined that
First file is complete, and first file is downloaded from the server.
In the embodiment of the present application, if the content phase of the content of the opening flag file and the end mark file
Together, then it can determine that first file is complete, and start to download first file from the server;If the beginning
The content of logo file is not identical as the content of the end mark file, then can determine that first file is imperfect, and
Prompt information is sent to server, to prompt the first file described in server imperfect, server is receiving the prompt letter
After breath, incomplete first file can be deleted from server, it is incomplete described to avoid other users downloading
First file.
The embodiment of the present application can detecte the file stored in server by opening flag file and end mark file
Integrality, and this document is downloaded again when file is complete, to can guarantee that user downloads complete file from server, i.e.,
Whether the file for solving the problems, such as that the prior art can not store in detection service device is complete.
Referring to fig. 2, it is the implementation process schematic diagram for the file integrity detection method that the embodiment of the present application two provides, such as schemes
Shown this document integrality detection method may comprise steps of:
Step S201 uploads the opening flag file of the first file to server.
Wherein, first file is the file that need to be downloaded from the server, the opening flag file and described
End mark file is used to indicate whether first file is complete, and the opening flag file and the end mark file can
The mark in flag information and the end mark file to refer to the file including flag information, in the opening flag file
Will information is identical, and the flag information is used to indicate whether first file is complete, and the flag information can be by user certainly
Row setting can also be automatically generated when terminal device uploads the opening flag file of the first file to server, such as terminal
When uploading the opening flag file of the first file to server, the current time information for obtaining terminal device (starts equipment
Time when logo file uploads), using the current time information as the opening flag file and the end mark file
In flag information.The server includes but is not limited to ftp server, and ftp server is to provide file on the internet to deposit
The computer of storage and access service provides service according to FTP, and user can be used terminal device and access FTP by network remote
Server, the file of downloading ftp server storage.
Step S202 uploads first file to the server after the opening flag file uploads completion;
Optionally, described to upload first file to the server when the quantity of first file is multiple
Include:
Multiple first files are uploaded one by one to the server.
In the embodiment of the present application, terminal device is when uploading the first file to server, the quantity of first file
Can be one or more (i.e. at least two), it, can be to server one by one when the quantity of first file is multiple
Multiple first files are uploaded, to reduce the data processing threads of terminal device.
Step S203 uploads the knot of first file to the server after first file uploads completion
Bundle flag file.
In the embodiment of the present application, terminal device can be uploaded first to server when uploading the first file to server
The opening flag file of first file, after the opening flag file uploads completion, terminal device is again to server
First file is uploaded, and after first file uploads completion, the end of first file is uploaded to server
Logo file.
Optionally, the content of the opening flag file and the end mark file includes:
Time when the opening flag file uploads.
In the embodiment of the present application, terminal device is when uploading the opening flag file to server, available end
The current time information (time when i.e. opening flag file uploads) of end equipment, and using the current time information as described in
The content of opening flag file and the end mark file.
Progress of the terminal device to server up transfer file is understood for the ease of user, it can be in terminal device to server
It uploads aobvious when the end mark file of the opening flag file of first file, first file and first file
Show upload progress item.
Step S204 downloads the opening flag file and institute before downloading first file in the server
State end mark file.
The step is identical as step S101, and for details, reference can be made to the associated descriptions of step S101, and details are not described herein.
Step S205 is opened described in detection if the opening flag file and the end mark file download success
Whether the content of beginning logo file is identical as the content of the end mark file.
The step is identical as step S102, and for details, reference can be made to the associated descriptions of step S102, and details are not described herein.
Step S206, if the content of the opening flag file is identical as the content of the end mark file, it is determined that
First file is complete, and first file is downloaded from the server.
The step is identical as step S103, and for details, reference can be made to the associated descriptions of step S103, and details are not described herein.
Optionally, if the content of the opening flag file is not identical as the content of the end mark file, Huo Zhesuo
State any file download failure in opening flag file and the end mark file, it is determined that first file is imperfect.
In the embodiment of the present application, if the content of the content of the opening flag file and the end mark file not phase
Together, it is determined that first file is imperfect;If at least one text in the opening flag file and the end mark file
Part failed download, it is determined that first file is imperfect.
Optionally, after determining that first file is imperfect, further includes:
Prompt information is sent to the server, wherein the prompt information is for prompting first described in the server
File is imperfect.
In the embodiment of the present application, terminal device can be sent out after determining that first file is imperfect to server
Prompt information is sent, to prompt the first file described in server imperfect, server, can be with after receiving the prompt information
Incomplete first file is deleted from server, downloads incomplete first file to avoid other users.
The embodiment of the present application uploads the opening flag file of first file when uploading the first file to server
With end mark file, so as to when downloading the first file from server, according to the opening flag file of the first file and
The integrality of first file in end mark file detection service device.
It is the schematic diagram for the file integrity detection device that the embodiment of the present application three provides, for the ease of saying referring to Fig. 3
It is bright, illustrate only part relevant to the embodiment of the present application.
The file integrity detection device includes:
First download module 31, for downloading the beginning of first file before downloading the first file in server
Logo file and end mark file, wherein first file is the file that need to be downloaded from the server, the beginning
Whether logo file and the end mark file are used to indicate first file complete;
Content detection module 32, if downloading success for the opening flag file and the end mark file,
Whether the content for detecting the opening flag file is identical as the content of the end mark file;
Second download module 33, if content and the content phase of the end mark file for the opening flag file
Together, it is determined that first file is complete, and first file is downloaded from the server.
Optionally, the file integrity detection device further include:
Determining module 34, if the content of content and the end mark file for the opening flag file not phase
Any file download fails together or in the opening flag file and the end mark file, it is determined that first text
Part is imperfect;
Prompt information sending module 35, for sending prompt information to the server, wherein the prompt information is used for
Prompt the first file described in the server imperfect.
Optionally, the file integrity detection device further include:
File uploading module 36, for uploading first file to the server.
Optionally, the file uploading module 36 includes:
First uploading unit, for uploading the opening flag file to the server;
Second uploading unit is used for after the opening flag file uploads completion, to described in server upload
First file;
Third uploading unit, for uploading the end to the server after first file uploads completion
Logo file.
Optionally, second uploading unit is specifically used for:
When the quantity of first file is multiple, multiple first files are uploaded one by one to the server.
Optionally, the content of the opening flag file and the end mark file includes:
Time when the opening flag file uploads.
File integrity detection device provided by the embodiments of the present application can be applied in preceding method embodiment one and implement
In example two, details are referring to the description of above method embodiment one and embodiment two, and details are not described herein.
Fig. 4 is the schematic diagram for the terminal device that the embodiment of the present application four provides.The terminal device as shown in the figure can wrap
Include: one or more processors 401 (only show one) in figure;One or more input equipments 402 (one is only shown in figure),
One or more output equipments 403 (one is only shown in figure) and memory 404.It is above-mentioned processor 401, input equipment 402, defeated
Equipment 403 and memory 404 are connected by bus 405 out.Memory 404 for storing instruction, deposit for executing by processor 401
The instruction that reservoir 404 stores.Wherein:
The processor 401, for before downloading the first file in server, downloading first file to start to mark
Will file and end mark file, wherein first file is the file that need to be downloaded from the server, described to start to mark
Whether will file and the end mark file are used to indicate first file complete;If the opening flag file and described
End mark file downloads success, then the content of the content and the end mark file that detect the opening flag file is
It is no identical;If the content of the opening flag file is identical as the content of the end mark file, it is determined that first text
Part is complete, and first file is downloaded from the server.
Optionally, the processor 401 is also used to:
If the content of the opening flag file is not identical as the content of the end mark file or described starts to mark
Any file download failure in will file and the end mark file, it is determined that first file is imperfect.
Optionally, after determining that first file is imperfect, the processor 401 is also used to:
Prompt information is sent to the server, wherein the prompt information is for prompting first described in the server
File is imperfect.
Optionally, before downloading file in server, the processor 401 is also used to:
First file is uploaded to the server;
Optionally, the processor 401 is specifically used for:
The opening flag file is uploaded to the server;
After the opening flag file uploads completion, first file is uploaded to the server;
After first file uploads completion, the end mark file is uploaded to the server.
Optionally, when the quantity of first file is multiple, the processor 401 is specifically used for:
Multiple first files are uploaded one by one to the server.
Optionally, the content of the opening flag file and the end mark file includes:
Time when the opening flag file uploads.
It should be appreciated that in the embodiment of the present application, the processor 401 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
Reason device is also possible to any conventional processor etc..
Input equipment 402 may include that Trackpad, fingerprint adopt sensor (for acquiring the finger print information and fingerprint of user
Directional information), microphone, data receiver interface etc..Output equipment 403 may include display (LCD etc.), loudspeaker, data
Transmission interface etc..
The memory 404 may include read-only memory and random access memory, and to processor 401 provide instruction and
Data.The a part of of memory 404 can also include nonvolatile RAM.For example, memory 404 can also be deposited
Store up the information of device type.
In the specific implementation, processor 401, input equipment 402 described in the embodiment of the present application, 403 and of output equipment
Realization side described in the embodiment of file integrity detection method provided by the embodiments of the present application can be performed in memory 404
Implementation described in file integrity detection device described in embodiment three also can be performed in formula, and details are not described herein.
Fig. 5 is the schematic diagram for the terminal device that the embodiment of the present application five provides.As shown in figure 5, the terminal of the embodiment is set
Standby 5 include: processor 50, memory 51 and are stored in the meter that can be run in the memory 51 and on the processor 50
Calculation machine program 52.The processor 50 realizes that above-mentioned each file integrity detection method is real when executing the computer program 52
Apply the step in example, such as step S101 to S103 shown in FIG. 1.Alternatively, the processor 50 executes the computer program
The function of each module/unit in above-mentioned each Installation practice, such as the function of module 31 to 36 shown in Fig. 3 are realized when 52.
Illustratively, the computer program 52 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 51, and are executed by the processor 50, to complete the application.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 52 in the terminal device 5 is described.For example, the computer program 52 can be divided
It is cut into the first download module, content detection module, the second download module, determining module, prompt information sending module and file
Uploading module, each module concrete function are as follows:
First download module, for before downloading the first file in server, downloading first file to start to mark
Will file and end mark file, wherein first file is the file that need to be downloaded from the server, described to start to mark
Whether will file and the end mark file are used to indicate first file complete;
Content detection module is examined if downloading success for the opening flag file and the end mark file
Whether the content for surveying the opening flag file is identical as the content of the end mark file;
Second download module, if content and the content phase of the end mark file for the opening flag file
Together, it is determined that first file is complete, and first file is downloaded from the server.
Determining module, if the content for the opening flag file is not identical as the content of the end mark file,
Or any file download failure in the opening flag file and the end mark file, it is determined that first file is not
Completely;
Prompt information sending module, for sending prompt information to the server, wherein the prompt information is for mentioning
Show that the first file described in the server is imperfect.
File uploading module, for uploading first file to the server.
Optionally, the file uploading module includes:
First uploading unit, for uploading the opening flag file to the server;
Second uploading unit is used for after the opening flag file uploads completion, to described in server upload
First file;
Third uploading unit, for uploading the end to the server after first file uploads completion
Logo file.
Optionally, second uploading unit is specifically used for:
When the quantity of first file is multiple, multiple first files are uploaded one by one to the server.
Optionally, the content of the opening flag file and the end mark file includes:
Time when the opening flag file uploads.
The terminal device 5 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The terminal device may include, but be not limited only to, processor 50, memory 51.It will be understood by those skilled in the art that Fig. 5
The only example of terminal device 5 does not constitute the restriction to terminal device 5, may include than illustrating more or fewer portions
Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 50 can be central processing unit CPU, can also be other general processors, Digital Signal Processing
Device DSP, application-specific integrated circuit ASIC, ready-made programmable gate array FPGA or other programmable logic device, discrete gate or
Transistor logic, discrete hardware components etc..General processor can be microprocessor or the processor is also possible to appoint
What conventional processor etc..
The memory 51 can be the internal storage unit of the terminal device 5, such as the hard disk or interior of terminal device 5
It deposits.The memory 51 is also possible to the External memory equipment of the terminal device 5, such as be equipped on the terminal device 5
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 51 can also both include the storage inside list of the terminal device 5
Member also includes External memory equipment.The memory 51 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 51 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions
Believe signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality
Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all
Comprising within the scope of protection of this application.
Claims (10)
1. a kind of file integrity detection method characterized by comprising
Before downloading the first file in server, the opening flag file and end mark file of first file are downloaded,
Wherein, first file is the file that need to be downloaded from the server, the opening flag file and the end mark
Whether file is used to indicate first file complete;
If the opening flag file and the end mark file download success, the interior of the opening flag file is detected
Hold whether identical as the content of the end mark file;
If the content of the opening flag file is identical as the content of the end mark file, it is determined that first file is complete
It is whole, and first file is downloaded from the server.
2. file integrity detection method as described in claim 1, which is characterized in that further include:
If the content of the opening flag file is identical as the content of the end mark file or opening flag text
Any file download failure in part and the end mark file, it is determined that first file is imperfect.
3. file integrity detection method as claimed in claim 2, which is characterized in that determining that first file is imperfect
Later, further includes:
Prompt information is sent to the server, wherein the prompt information is for prompting the first file described in the server
It is imperfect.
4. file integrity detection method as described in claim 1, which is characterized in that from server download file it
Before, further includes:
First file is uploaded to the server.
5. file integrity detection method as claimed in claim 4, which is characterized in that described to described in server upload
First file includes:
The opening flag file is uploaded to the server;
After the opening flag file uploads completion, first file is uploaded to the server;
After first file uploads completion, the end mark file is uploaded to the server.
6. such as file integrity detection method described in any one of claim 1 to 5, which is characterized in that the opening flag text
The content of part and the end mark file includes:
Time when the opening flag file uploads.
7. a kind of file integrity detection device characterized by comprising
First download module, in the opening flag text for before downloading the first file in server, downloading first file
Part and end mark file, wherein first file is the file that need to be downloaded from the server, the opening flag text
Whether part and the end mark file are used to indicate first file complete;
Content detection module detects institute if downloading success for the opening flag file and the end mark file
Whether the content for stating opening flag file is identical as the content of the end mark file;
Second download module, if the content for the opening flag file is identical as the content of the end mark file,
It determines that first file is complete, and downloads first file from the server.
8. file integrity detection device as claimed in claim 7, which is characterized in that further include:
Determining module, if the content for the opening flag file is not identical as the content of the end mark file, or
Any file download failure in the opening flag file and the end mark file, it is determined that first file is endless
It is whole.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 6 when executing the computer program
The step of any one file integrity detection method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In realization file integrity detection method as described in any one of claim 1 to 6 when the computer program is executed by processor
The step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810889979.0A CN109104481B (en) | 2018-08-07 | 2018-08-07 | File integrity detection method, file integrity detection device and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810889979.0A CN109104481B (en) | 2018-08-07 | 2018-08-07 | File integrity detection method, file integrity detection device and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109104481A true CN109104481A (en) | 2018-12-28 |
CN109104481B CN109104481B (en) | 2021-09-21 |
Family
ID=64848632
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810889979.0A Active CN109104481B (en) | 2018-08-07 | 2018-08-07 | File integrity detection method, file integrity detection device and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109104481B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109922142A (en) * | 2019-02-21 | 2019-06-21 | 阿里巴巴集团控股有限公司 | A kind of document down loading method, apparatus and system |
CN112099822A (en) * | 2020-08-26 | 2020-12-18 | 华人运通(江苏)技术有限公司 | File update reminding method, device, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050149720A1 (en) * | 2004-01-07 | 2005-07-07 | Shimon Gruper | Method for speeding up the pass time of an executable through a checkpoint |
CN1855059A (en) * | 2005-04-21 | 2006-11-01 | 中兴通讯股份有限公司 | Method for accessing data file of telecommunication apparatus |
CN101193284A (en) * | 2007-12-27 | 2008-06-04 | 北京中星微电子有限公司 | Validation method, system and device for transmission integrity of compressed file |
CN102790790A (en) * | 2011-10-21 | 2012-11-21 | 北京安天电子设备有限公司 | Checking system and method for rapidly acquiring integrity of web server file |
CN106570425A (en) * | 2015-10-10 | 2017-04-19 | 北京奇虎科技有限公司 | Hard disk data encryption method and system |
CN106603614A (en) * | 2015-10-20 | 2017-04-26 | 北京国双科技有限公司 | File transmission method and device |
-
2018
- 2018-08-07 CN CN201810889979.0A patent/CN109104481B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050149720A1 (en) * | 2004-01-07 | 2005-07-07 | Shimon Gruper | Method for speeding up the pass time of an executable through a checkpoint |
CN1855059A (en) * | 2005-04-21 | 2006-11-01 | 中兴通讯股份有限公司 | Method for accessing data file of telecommunication apparatus |
CN101193284A (en) * | 2007-12-27 | 2008-06-04 | 北京中星微电子有限公司 | Validation method, system and device for transmission integrity of compressed file |
CN102790790A (en) * | 2011-10-21 | 2012-11-21 | 北京安天电子设备有限公司 | Checking system and method for rapidly acquiring integrity of web server file |
CN106570425A (en) * | 2015-10-10 | 2017-04-19 | 北京奇虎科技有限公司 | Hard disk data encryption method and system |
CN106603614A (en) * | 2015-10-20 | 2017-04-26 | 北京国双科技有限公司 | File transmission method and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109922142A (en) * | 2019-02-21 | 2019-06-21 | 阿里巴巴集团控股有限公司 | A kind of document down loading method, apparatus and system |
CN112099822A (en) * | 2020-08-26 | 2020-12-18 | 华人运通(江苏)技术有限公司 | File update reminding method, device, equipment and storage medium |
CN112099822B (en) * | 2020-08-26 | 2023-09-15 | 华人运通(江苏)技术有限公司 | File update reminding method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109104481B (en) | 2021-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190095059A1 (en) | Method and device for processing application icon and electronic apparatus | |
CN109636278A (en) | Material replenishing method, material goods compensator and terminal device | |
CN107357718A (en) | One kind structure method of testing and device | |
CN110225104A (en) | Data capture method, device and terminal device | |
CN110049456A (en) | A kind of method, device and mobile terminal showing Rich Media in mobile terminal | |
CN108804175A (en) | Multilingual adaptation method, mobile terminal and computer readable storage medium | |
US9986082B2 (en) | Interface device and method between electronic device and external device using ear jack of the electronic device | |
CN110059273A (en) | A kind of method showing Rich Media on mobile terminals and mobile terminal | |
CN114726947B (en) | Message display method, device, user terminal and readable storage medium | |
CN107613091A (en) | A kind of method and terminal for establishing communication | |
CN109151337A (en) | Recognition of face light compensation method, recognition of face light compensating apparatus and mobile terminal | |
CN109361994A (en) | Speaker control method, mobile terminal, and computer-readable storage medium | |
CN109491723A (en) | Application program running method, application program running device and mobile terminal | |
CN107894891A (en) | Program packaging method and device and program installation method and device | |
CN109976823A (en) | A kind of application program launching method, device and terminal device | |
CN107506494B (en) | file processing method, mobile terminal and computer readable storage medium | |
CN110244963A (en) | Data-updating method, device and terminal device | |
JP2017538207A (en) | Card addition method, apparatus, device, and computer storage medium | |
CN109104481A (en) | file integrity detection method, file integrity detection device and terminal device | |
CN109862399A (en) | It shows the method for rich media information, handle method, computer installation and the computer readable storage medium of rich media information | |
CN103067465A (en) | File sharing method and system | |
US8972533B1 (en) | Activating touch-sensitive keys utilizing configuration settings | |
CN113590243A (en) | Energy enterprise project creation method and device, computer equipment and medium | |
CN109445779A (en) | The rendering method and terminal device of multiple-language user interface | |
CN110442416B (en) | Method, electronic device and computer-readable medium for presenting information |
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 |