Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Newly increased file detection and downloading method and device for FTP (File Transfer Protocol) server

A FTP server and new file technology, applied in the field of mobile communication, can solve the problems of unconsidered, low detection efficiency, low efficiency, etc., and achieve the effect of reducing the number of judgments and improving the speed of judgment

Active Publication Date: 2017-07-28
TAIJI COMP
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The above method has the following defects: First: the applicable scene is limited
This patent application is aimed at the files in the specified FTP directory, and does not consider the scenario that the specified FTP directory contains subdirectories, which is especially common. In the scenario of containing subdirectories, there will be duplicate file names. This patent application The detection method that only records the file name and modification time cannot be applied
Second: possible missing files
The modification time of the FTP file obtained by the client through the FTP command "dir" can only be accurate to the minute. Even if the modification time of the specified FTP file is obtained through the FTP command "quote mdtm specifying the FTP file name" one by one, the modification time can only be accurate to the second. The second-to-second method needs to interact one by one and consumes a lot; if the file has a new modification within 1 second and the modification time obtained is unchanged, it will not be regarded as a new file. In this scenario, missed files will appear, and the file has Modification failed to download
Third: Low detection efficiency
[0006] The above algorithm has two main defects of low efficiency and inability to run continuously: first: the detection efficiency is low
During the detection, all the file attributes of the FTP server will be compared with the attributes of all records in the log file. When the FTP server has a large number of files and the local configuration file records a large number of records, the detection efficiency is low. lead to unavailability
Second: Unable to run continuously: the algorithm implementation method is to write the path address, file name, file modification time and file size and other attribute values ​​in the FTP into the log file to save after the file is successfully downloaded. No cleaning strategy for this log file is proposed. As the running time goes by, this log file will expand infinitely, which will have a performance impact on writing new records to the log file, and will also bring storage pressure to the client machine, which will eventually lead to inability to continue running

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Newly increased file detection and downloading method and device for FTP (File Transfer Protocol) server
  • Newly increased file detection and downloading method and device for FTP (File Transfer Protocol) server
  • Newly increased file detection and downloading method and device for FTP (File Transfer Protocol) server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0021] In order to solve the problems of low detection efficiency, possible missed detection of files, and inability to continue running in the prior art, the present invention provides a method and device for detecting and downloading newly added files on an FTP server. The present invention is described below in conjunction with the accompanying drawings and embodiments Further details. It should be understood that the specific e...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a newly increased file detection and downloading method and device for an FTP (File Transfer Protocol) server. The method comprises the steps of scanning an appointed directory, thereby obtaining an FTP object list under the appointed directory; when an FTP object in the FTP object list is a file, judging whether the file satisfies a preset first condition or not, wherein the first condition comprises one or more of the following conditions that a file size satisfies strategy setting, a file name satisfies regular filtering and the modification time of the file is not expired; and when the file satisfies the first condition, judging whether the modification time of the file is later than the newest downloading time of the directory in which the file is located or not, and when the modification time of the file is later than the newest downloading time of the directory in which the file is located, downloading the file. Through application of the technical scheme provided by the invention, the judgment times is reduced, and the integrated judgment speed is improved.

Description

technical field [0001] The invention relates to the field of mobile communication, in particular to a method and device for detecting and downloading newly added files of an FTP server. Background technique [0002] FTP is the English abbreviation of File Transfer Protocol (File Transfer Protocol). The FTP server is a computer that provides file storage and access services through FTP. Visitors can use the FTP client to remotely access the FTP server through the network and read the files stored in the FTP server. . The download logic of the scene where the FTP server file can be deleted is relatively simple, just download it if it exists, and delete the FTP server file if the download is successful; but in the scene where the FTP server cannot be deleted, there will be historical files piled up, and a new file detection method is required In order to quickly download effective new files. In order to allow many visitors to share files provided by the FTP server and avoid m...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08
CPCH04L67/06
Inventor 孙永亮赵平东
Owner TAIJI COMP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products