FTP (File Transfer Protocol) storage method of software compiled file, FTP server and client

By building an online database into the FTP server and automatically managing the storage period of software compiled files, the problem of excessive pressure on FTP server resources in the smart TV industry is solved, and the utilization of storage resources and server performance are improved.

CN119342290APending Publication Date: 2025-01-21TCL OVERSEAS ELECTRONIC (HUIZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411360367.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

In the smart TV industry, the amount of data of software compiled files is large, and storing them in FTP servers can easily lead to excessive resource pressure, affecting usage efficiency and reducing FTP server performance.

Method used

The built-in online database of the FTP server traverses the storage time of software compiled files through predetermined intervals to determine whether the storage period has been reached, and automatically removes expired files. At the same time, the real-time monitoring software compiles the files uploaded by the client and sets the storage period when uploading.

Benefits of technology

By automatically deleting temporary software, the storage pressure on the FTP server is reduced, the utilization of storage resources is improved, and server resource overload and frequent maintenance are avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119342290A_ABST
    Figure CN119342290A_ABST
Patent Text Reader

Abstract

The invention discloses an FTP storage method of a software compilation file, an FTP server and a client, and the FTP storage method applied to the FTP server comprises the following steps: monitoring the software compilation client in real time through connection, and storing the software compilation file to an online database when the client uploads the software compilation file, the software compiling file comprises a software compiling file and a corresponding storage period; traversing the stored time of each software compiling file in the online database according to a preset interval period; judging whether the stored time reaches a storage deadline corresponding to the software compiling file or not; and if the storage deadline is reached, removing the software compiling file from the online database.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart televisions, and in particular to an FTP storage method, an FTP server, and a client for software compilation files. Background Art

[0002] The TV movement is a small circuit board that integrates the main circuits and processors. It contains the main signal processing and control chips of the TV, which is the "brain" of the TV. Its functions include: image processing, audio processing, status control, storage and communication, etc.

[0003] In the smart TV industry, high-performance computers are needed to compile TV movement software. One version of TV movement software is usually around 2-3G. The computer may compile TV movement software from multiple manufacturers. In about a year, the amount of different software data in the computer can add up to dozens of T. In order to reduce the pressure on the computer's local storage, a large number of files corresponding to TV movement software (hereinafter referred to as software compilation files) are stored in FTP servers. FTP, which is called "File Transfer Protocol" in Chinese, is a standard protocol for file transfer in the network and is widely used. As a basic tool in network communication, FTP allows users to interact with the server through the client to upload, download and other file operations.

[0004] However, since the software compilation files for compiling TV movement software have a large amount of data, which may even be as large as dozens of T, if all are stored in the FTP server, it is easy to cause excessive pressure on the FTP server resources, resulting in reduced efficiency of the FTP server or even FTP server explosion, requiring frequent maintenance, which is very unintelligent.

[0005] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0006] The main purpose of this application is to provide an FTP storage method, FTP server and client for software compiled files, aiming to solve the technical problem in the prior art that storing software compiled files in an FTP server easily leads to excessive pressure on FTP server resources, affects usage efficiency and reduces FTP server performance.

[0007] To achieve the above purpose, the present application proposes an FTP storage method for software compilation files, which is applied to an FTP server. The FTP server has a built-in online database, and the online database is used to store software compilation files. The FTP storage method includes:

[0008] According to a predetermined interval period, traverse the storage time of each software compilation file in the online database;

[0009] For each software compilation file traversed, determine the storage time of the software compilation file and whether the storage period of the software compilation file has been reached;

[0010] If the storage time reaches the storage period, the software compilation file is removed from the online database.

[0011] Preferably, the above FTP storage method further includes:

[0012] When receiving an access request from the software compiling client, access the software compiling client and establish a connection between the software compiling client and the online database;

[0013] Compile the client by connecting to the real-time monitoring software;

[0014] When monitoring the software compilation client uploading the software compilation file, the software compilation file is saved to the online database and the storage period of the software compilation file is added.

[0015] Preferably, before the step of determining the storage time of the software compiled file and whether the storage period of the software compiled file has been reached, the FTP storage method further comprises:

[0016] Determine whether the stored time reaches the subsequent reminder time of the software compilation file;

[0017] If the stored time reaches the succession reminder time corresponding to the software compilation file, a succession reminder message is sent to the user mailbox corresponding to the software compilation client, and the succession reminder message is used to remind the user to send the succession change information;

[0018] Determine whether the succession change information of the user's mailbox has been received;

[0019] If the succession period change information is received, the storage period is changed to the succession period according to the succession period change information.

[0020] Preferably, after the above step of determining whether the succession period change information of the user mailbox is received, the FTP storage method includes:

[0021] If no subsequent period change information is received, the file level and file type of the software compilation file are extracted;

[0022] According to the file level, determine whether the software compilation file needs to be renewed;

[0023] If the software compilation file needs to be renewed, the same type of file is searched from the online database according to the file type of the software compilation file;

[0024] When the same type of files are found, the content relevance between the software compilation file and the same type of files is analyzed according to the semantic algorithm model;

[0025] According to the content relevance, set the successor period of the software compilation file and change the storage period of the software compilation file to the successor period;

[0026] If the software compilation file does not expire, the step of determining whether the storage time has reached the storage deadline is executed.

[0027] Preferably, the step of removing the software compilation file from the online database if the storage time reaches the storage period includes:

[0028] Move the software compilation files from the online database to the recycle bin of the FTP server;

[0029] Send file deletion notification to the user's mailbox;

[0030] Determine whether file retrieval information is received from the user's mailbox within a predetermined period from the time the file deletion notification is sent, wherein the file retrieval information includes a subsequent period;

[0031] If the file retrieval information is received within the scheduled period, the software compilation file is moved back from the recycle bin to the online database, and the storage period is changed to the subsequent period in the file retrieval information;

[0032] If no file retrieval information is received within the predetermined period, the software compilation file is deleted from the Recycle Bin.

[0033] Preferably, the step of deleting the software compilation file from the recycle bin includes:

[0034] Use the pre-made key to encrypt the software compilation file in the recycle bin, and back up the encrypted software compilation file to the cloud server;

[0035] Delete the software compilation file from the Recycle Bin;

[0036] When receiving the user's file retrieval information, the link address of the cloud server and the pre-made key are sent to the user's mailbox to enable the user to retrieve the software compilation file.

[0037] To achieve the above purpose, the present application also provides an FTP storage method for software compilation files, which is applied to a software compilation client. The FTP storage method includes:

[0038] Access the FTP server according to the FTP protocol and establish a connection with the online database in the FTP server;

[0039] Select the software compilation file to be uploaded and set the storage period of the software compilation file;

[0040] Upload the software compilation files and storage period to the online database of the FTP server through the connection;

[0041] Determine whether the user's mailbox receives the renewal reminder information sent by the FTP server. The renewal reminder information is used to remind the user to perform renewal operations;

[0042] If a subsequent operation is received from the user, the subsequent change information is compiled according to the subsequent operation and sent to the FTP server.

[0043] Preferably, in the above FTP storage method applied to the software compilation client, the step of selecting the uploaded software compilation file and setting the storage period of the software compilation file includes:

[0044] Determining whether a time limit setting instruction from a user is received within a predetermined operation time;

[0045] If a time limit setting instruction is received, the storage period of the software compilation file is set according to the time limit setting instruction;

[0046] If the deadline setting instruction is not received, obtaining the file level and file type of the software compilation file;

[0047] Set the storage period for software compilation files according to their file level and file type.

[0048] In addition, to achieve the above-mentioned purpose, the present application also provides an FTP server, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the FTP storage method provided by any of the above-mentioned technical solutions.

[0049] In addition, to achieve the above-mentioned purpose, the present application also provides a software compilation client, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the FTP storage method provided by any of the above-mentioned technical solutions are implemented.

[0050] One or more technical solutions proposed in this application have at least the following technical effects:

[0051] By accessing the software compilation client, a connection is established between the software compilation client and the online database, so that the FTP server can monitor the software compilation files uploaded by the software compilation client in real time through the connection, and store them in the online database; wherein, the software compilation file includes the software compilation file and the storage period corresponding to the software compilation file. In addition, the FTP server will traverse the storage time of each software compilation file in the online database according to a predetermined interval period, and for each software compilation file traversed, it is determined whether the storage time has reached the storage period corresponding to the software compilation file, and when the storage period corresponding to the software compilation file is reached, the software compilation file is removed from the online database. In summary, through the above method, the FTP server can automatically delete the software compilation files in the online database regularly, effectively delete temporary software, and improve the utilization rate of the storage resources of the FTP server. Through the above scheme, it is possible to solve the technical problem that the storage of software compilation files in the FTP server in the prior art easily leads to excessive pressure on the resources of the FTP server, affects the use efficiency, and reduces the performance of the FTP server. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0053] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0054] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0055] Figure 2 A flowchart of a first FTP storage method for software compilation files provided in an embodiment of the present application;

[0056] Figure 3 A flowchart of a file uploading method provided in an embodiment of the present application;

[0057] Figure 4 A flowchart of a method for reminding a period of a succession provided in an embodiment of the present application;

[0058] Figure 5 A flowchart of a file succession method provided in an embodiment of the present application;

[0059] Figure 6 A flowchart of a method for removing a software compiled file provided in an embodiment of the present application;

[0060] Figure 7 yes Figure 6 A schematic flow chart of a method for deleting a software compilation file from a recycle bin provided by the illustrated embodiment;

[0061] Figure 8 It is a flow chart of the second software compilation FTP storage method provided in the embodiment of the present application;

[0062] Fig. 9 yes Figure 8 A flowchart of a method for uploading files and setting storage periods provided by the illustrated embodiment;

[0063] Fig.10 It is a flowchart of a file deletion and retrieval method provided by an embodiment of the present application;

[0064] Fig.11 It is a flowchart of an FTP storage method applied to an FTP server provided in an embodiment of the present application;

[0065] Fig.12 It is a flowchart of an FTP storage method applied to a software compilation client provided in an embodiment of the present application;

[0066] Fig.13 It is a structural diagram of an FTP server provided in an embodiment of the present application.

[0067] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0068] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0069] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0070] The existing technology has the following technical problems: In the compilation of the movement software of TV sweat, in order to reduce the pressure of the local storage of the computer, a large number of software compilation files are stored in the FTP server. However, since the software compilation files for compiling the movement software of TV are large in data volume, which may even be as high as dozens of TB, if all are stored in the FTP server, it is easy to cause excessive pressure on the resources of the FTP server, resulting in reduced efficiency of the FTP server or even explosion of the FTP server, which requires frequent maintenance, so it is very unintelligent.

[0071] To solve the technical problem that the storage of the above-mentioned software compiled files in the FTP server easily leads to excessive pressure on the resources of the FTP server, affects the efficiency of use, and reduces the performance of the FTP server. The following embodiment of the present application provides a solution, by writing the storage period in the uploaded software compiled files, and periodically polling whether the storage time of each software compiled file has reached the storage period according to a predetermined interval period. When the storage time reaches the storage period, the software compiled file is removed from the online database, thereby reducing the storage pressure of the FTP server, and can automatically delete temporary software to improve the utilization rate of the FTP server. In summary, through the above scheme, it is possible to solve the technical problem in the prior art that a large number of software compiled files are stored in the FTP server, which easily leads to excessive pressure on the resources of the FTP server, affects the efficiency of use, and reduces the performance of the FTP server.

[0072] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device that can realize the above functions, a computer-readable storage medium, etc.

[0073] In order to better understand the above technical solution, the exemplary embodiments of the present application will be described in more detail with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments shown here. On the contrary, these embodiments are provided to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0074] To achieve the above technical objectives, see Figure 1 , Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application. The application scenario includes an FTP server 1 and a software compilation client 2; the FTP server 1 and the software compilation client 2 are both associated using the FTP storage protocol. The software compilation client 2 can compile the software of the TV movement to obtain a software compilation file. Since the software compilation file of the TV movement is usually a system file with a large amount of data, the software compilation file generated by the software compilation client 2 usually needs to be uploaded to the FTP server 1 for storage, wherein the FTP server 1 includes an online database 101, and even the storage resources of the online database 101 are limited.

[0075] In order to solve the technical problem that the resource pressure of the FTP server is too large, which affects the efficiency of use and reduces the performance of the FTP server, the FTP storage solution provided in the following embodiment of the present application is formed. By establishing an FTP intelligent storage solution, the expansion development is carried out based on the FileZilla open source solution, and the corresponding user mailbox extension is added on the basis of the original FTP / SFTP protocol, and the automatic deletion extension of the uploaded file expiration is added; at the same time, the expiration date setting function of the uploaded file is added to the Filezilla client interface, and the user mailbox modification function and the automatic email reminder function are added.

[0076] See Figure 2 , Figure 2 FIG. 1 is a flow chart of a method for storing software compiled files via FTP provided in an embodiment of the present application. Figure 2 As shown in the figure, the FTP storage method of the software compiled file is applied to the FTP server, and the FTP server has a built-in online database; the FTP storage method includes:

[0077] S110: According to the predetermined interval period, the storage time of each software compilation file in the online database is traversed. Since the files uploaded by the software compilation client are software compilation files, such files may take several days or even last month to be uploaded to the online database of the FTP server, and the upload frequency is low, so the predetermined interval period here can be set in days, for example, traversing once a day.

[0078] S120: for each software compilation file traversed, determine whether the storage time of the software compilation file reaches the storage period corresponding to the software compilation file. If the specific software compilation file is a version, its storage period can be set in months, and the longest time can even be up to 1 year; if it is temporary software, its storage period can be set to a few days.

[0079] S130: If the storage time reaches the storage period, remove the software compilation file from the online database.

[0080] In summary, the technical solution provided by the embodiment of the present application establishes a connection between the software compilation client and the online database by accessing the software compilation client, so that the FTP server can monitor the software compilation file uploaded by the software compilation client in real time through the connection, and store it in the online database; wherein, the software compilation file includes the software compilation file and the storage period. In addition, the FTP server will traverse the storage time of each software compilation file in the online database according to a predetermined interval period, determine whether the storage time has reached the storage period, and remove the software compilation file from the online database when the storage period is reached. In summary, through the above method, the FTP server can automatically delete the software compilation files in the online database regularly, effectively delete temporary software, and improve the utilization rate of the storage resources of the FTP server. Through the above scheme, it is possible to solve the technical problem that the storage of software compilation files in the FTP server in the prior art easily leads to excessive pressure on the resources of the FTP server, affects the efficiency of use, and reduces the performance of the FTP server.

[0081] In addition, the software compilation file of the FTP server is uploaded from the software compilation client. To implement the above method, Figure 3 As shown, the FTP storage method for software compilation files provided in the above embodiment of the present application also includes:

[0082] S210: Access the software compiling client and establish a connection between the software compiling client and the online database. In the embodiment of the present application, a connection needs to be established between the software compiling client and the FTP server. Fig.10 As shown, it is necessary to expand the user structure, set the user name, user password, user mailbox, user phone number and user upload record. After creating the user structure, the above information is stored in the online database of the FTP server, thereby establishing a connection between the software compilation client and the online database. In addition, the FTP server is provided with a corresponding communication interface, through which the software compilation client is connected.

[0083] S220: Compile the client by connecting to the real-time monitoring software.

[0084] S230: When the software compilation client is monitored to upload the software compilation file, the software compilation file is stored in the online database, and the storage period of the software compilation file is added. Among them, the software compilation client also needs to upload the storage period corresponding to the software compilation file when uploading the software compilation file. If the storage period is not uploaded, the storage period can be specified by the FTP server. Specifically, the FTP server of the embodiment of the present application monitors the software compilation client through the corresponding communication interface, and when the software compilation client uploads the software compilation file, the software compilation file is stored in the online database.

[0085] In addition, in order to reduce the situation where important files are deleted after expiration, it is necessary to ask the user whether to renew the expiration. Figure 4 As shown, the above method further includes, before the step S140: determining whether the stored time has reached the storage period corresponding to the software compilation file:

[0086] S201: Determine whether the stored time has reached the succession reminder time corresponding to the software compilation file, wherein the succession reminder time is a predetermined time before the storage deadline corresponding to the software compilation file. The embodiment of the present application can be set to a predetermined time before the storage deadline, for example: for file A, if the storage deadline is July 4, set the first 3 days as the succession reminder time, that is, a succession reminder is made on July 1; for file B, if the storage deadline is May 10, set the first 5 days as the succession reminder time, that is, a succession reminder is made on May 5. When the stored time reaches the succession reminder time of the software compilation file, the user is prompted whether to continue.

[0087] S202: If the stored time reaches the subsequent reminder time corresponding to the software compilation file, a subsequent reminder message is sent to the user mailbox of the software compilation client, and the subsequent reminder message is used to remind the user to send the subsequent change information. Fig.10 In the embodiment of the present application, a user mailbox is pre-set, and the mailbox address is stored in the online database of the FTP server. Therefore, when the succession reminder time arrives, the succession reminder information can be sent through the user mailbox.

[0088] S203: Determine whether the renewal period change information of the user mailbox is received. The renewal period change information includes the time of the renewal period after expiration, for example, the renewal period is 3 days.

[0089] S204: If the succession period change information is received, the storage period is changed to the succession period according to the succession period change information.

[0090] The technical solution provided by the embodiment of the present application sends a renewal reminder message to the user mailbox of the software compilation client when the stored time reaches the renewal reminder time, so as to remind the user whether to renew the storage period. Then, it is determined whether the renewal change message sent by the user mailbox is received. When the renewal change message is received, the storage period is changed to the corresponding renewal period according to the renewal change message. In the above manner, the software compilation file can be renewed, reducing the problem of accidental deletion of important software compilation files when they expire.

[0091] In addition, if no subsequent change information is received before the storage period expires, the software compilation file may be deleted. If the software compilation file is very important, its deletion may cause irreparable losses.

[0092] In order to reduce the occurrence of such situations, specifically, as a preferred embodiment, as Figure 5 As shown, the software compiled file includes the file level and file type of the software compiled file; after the above step S203: determining whether the succession change information of the user mailbox is received, the method includes:

[0093] S301: If no succession change information is received, extracting the file level and file type of the software compiled file from the software compiled file.

[0094] S302: Determine whether the software compilation file is renewed according to the file level. Renewal refers to increasing the storage period of the software compilation file in the database. For example, if the software compilation file is uploaded on August 1, the initial storage deadline is August 30, and the storage period is 30 days. After the renewal, the deadline is increased by 30 days, then the storage period of the software compilation file is increased to 60 days, and the storage deadline is changed to September 29.

[0095] If the software compilation file does not expire, the software compilation file will be removed from the online database when the storage time reaches the storage limit. The storage time here is the time the file has been stored in the online database. For example, if today is August 30, and the upload date of file A is August 1, then the storage time of file A is 30 days.

[0096] S303: If the software compiled file is expired, searching for files of the same type from an online database according to the file type of the software compiled file.

[0097] S304: When files of the same type are found, the content relevance between the software compiled file and the files of the same type is analyzed according to the semantic algorithm model.

[0098] The content relevance here refers to the content relevance between two or more software compilation files, as well as the degree of such relevance, such as the similarity of themes, the degree of keyword repetition, whether the projects involved are the same, etc.

[0099] Because files of the same type are likely to be associated in terms of content data, they are likely to be associated files under a project or theme. If there is a content association, the above-mentioned software compilation files need to be used in conjunction. If the files expire and are deleted, it may affect the progress of the project. To avoid the above situation, it is necessary to query files of the same type or project from the online database, and then use a semantic algorithm model, such as an NLP algorithm model, to analyze the content association between the software compilation file and the above-mentioned files of the same type or project. Here, keywords can be used to query the content association of files of the same type.

[0100] S305: Setting a succession period for the software compilation file according to the content relevance, and changing the storage period of the software compilation file to the succession period.

[0101] The technical solution provided by the embodiment of the present application extracts the file level and file type of the software compiled file from the software compiled file. If the file level is high, then even if the succession change information is not received, the software compiled file needs to be continued. At this time, if the software compiled file is continued, then the succession period of the file needs to be set. Specifically, according to the file type of the software compiled file, the same type of files are searched from the online database. Because there is a high probability that files of the same type have an association in content data and need to be used in coordination, files of the same type are queried from the online database, and then the content association between the software compiled file and the files of the same type is analyzed through a semantic algorithm model, such as an NLP algorithm model. Here, keywords can be used to query the content association of files of the same type. Then, the succession period of the software compiled file is set according to the content association, and the above storage period is changed to the succession period. Here, according to the content association, the step of setting the succession period of the software compiled file can determine the range of the content association. If the range of the content association is high, the succession period of the software compiled file is set to the same as the file with the highest storage period among the files of the same type.

[0102] In the embodiment of the present application, there may be a situation where the user regrets deleting the file when it expires. If the software compilation file is deleted directly from the online database, the user may never be able to retrieve the file. In order to avoid such a situation, as a preferred embodiment, Figure 6 As shown, the above step S150: if the storage time reaches the storage period, the step of removing the software compilation file from the online database includes:

[0103] S151: Move the software compilation file from the online database to the recycle bin of the FTP server.

[0104] S152: Send a file deletion notification to the user's mailbox.

[0105] S153: Determine whether file retrieval information is received from the user's mailbox within a predetermined period from the time the file deletion notification is sent; wherein the file retrieval information includes a subsequent period corresponding to the software compilation file.

[0106] S154: If the file retrieval information is received within the predetermined period, the software compilation file is moved back from the recycle bin to the online database, and the period is changed to the subsequent period in the file retrieval information.

[0107] S155: If the file retrieval information is not received within the predetermined period, the software compilation file is deleted from the recycle bin.

[0108] The technical solution provided by the embodiment of the present application is to remove the software compilation file from the online database to the recycle bin of the FTP server, thus giving the user a certain period of time to retrieve the software compilation file. If the file retrieval information is received from the user's mailbox within the predetermined period, the software compilation file is moved back from the recycle bin to the above-mentioned online database, and the successor period is first updated. The successor period can be obtained from the above-mentioned file retrieval information, or an email is sent to the user to confirm the successor period. By setting up a recycle bin in the above manner, it helps users to retrieve software compilation files within a predetermined period, which can avoid the situation where the file is permanently deleted upon expiration and cannot be retrieved.

[0109] In addition, as a preferred embodiment, Figure 7 As shown, the above step S155: deleting the software compilation file from the recycle bin includes:

[0110] S1551: Encrypt the software compilation file in the recycle bin using the pre-made key, and back up the encrypted software compilation file to the cloud server.

[0111] S1552: Delete the software compilation file from the recycle bin.

[0112] S1553: When receiving the file retrieval information from the user, the link address of the cloud server and the pre-made key are sent to the user's mailbox, so that the user can retrieve the above software compilation file.

[0113] The technical solution provided by the embodiment of the present application uses a pre-made key to encrypt the software compiled file in the recycle bin, and then backs up the encrypted file to the cloud server, so that the FTP server can back up the software compiled file while reducing its own resource usage, thereby avoiding permanent deletion of the software compiled file and avoiding the user's subsequent expiration deletion. Therefore, when the user sends the file retrieval information again, the above-mentioned pre-made key and link address can be sent to the user's mailbox, which is convenient for the user to retrieve the software compiled file from the cloud server.

[0114] In summary, the above-mentioned software compiled file bag FTP storage method of the present application is applied to the FTP server, which can automatically and periodically clean up overdue files in the database, reduce the resource maintenance of the FTP server, and reduce the investment cost of FTP storage.

[0115] In addition, to achieve the purpose of this application, Figure 8 As shown, the present application also provides a second FTP storage method for software compilation files, which is applied to a software compilation client. The FTP storage method includes:

[0116] S401: Accessing the FTP server and establishing a connection with an online database in the FTP server;

[0117] S402: Select the uploaded software compilation file and set the storage period corresponding to the software compilation file;

[0118] S403: Packing the software compilation file and the storage period into compilation file information, and uploading the compilation file information to the online database of the FTP server through the connection;

[0119] S404: Using the user mailbox to receive the renewal reminder information sent by the FTP server;

[0120] S405: When receiving the user's subsequent operation, compile the subsequent change information according to the user's subsequent operation and send it to the FTP server.

[0121] The technical solution provided by the embodiment of the present application is to connect the software compilation client to the FTP server, so that the connection between the software compilation client and the online database of the FTP server can be established. The way to establish the connection includes connecting through the corresponding interface of the FTP protocol, and setting the user structure extension information, including user name, user password and user mailbox and other information to the online database, so as to establish the connection between the two. When the software compilation file is uploaded, a storage period setting prompt will pop up, so that the user can package the software compilation file and the storage period into a software compilation file, and upload the software compilation file to the FTP server through the above connection. When the software compilation file is about to reach the file deletion period, the user mailbox will receive the subsequent period reminder information issued by the FTP server, and the subsequent period reminder information will be displayed at this time, the user's subsequent period operation will be received, and the subsequent period change information will be set according to the subsequent period period corresponding to the user's subsequent period operation, and then the subsequent period change information will be sent to the FTP server. Through the above method, the software compilation file can be automatically deleted when it expires, reducing the storage pressure of the online database of the FTP server. At the same time, the subsequent period change information is written according to the user's subsequent period operation and sent to the FTP server, which can avoid the situation where important software compilation files are accidentally deleted when they expire.

[0122] Specifically, as a preferred embodiment, Fig. 9 As shown, the above step S402: the step of selecting the uploaded software compilation file and setting the storage period of the software compilation file includes:

[0123] S4021: Determine whether a deadline setting instruction from the user is received within the scheduled operation time.

[0124] S4022: If a deadline setting instruction is received, the storage deadline of the software compilation file is set according to the deadline setting instruction.

[0125] S4023: If no deadline setting instruction is received, the file level and file type of the software compilation file are obtained.

[0126] S4024: Setting a storage period for the software compilation file according to the file level and file type of the software compilation file.

[0127] The technical solution provided in the embodiment of the present application sets the storage period of the software compiled file according to the period setting instruction when receiving the period setting instruction, so that the manual setting of the storage period can be realized. In addition, if the period setting instruction is not received, the file level and file type of the software compiled file are obtained, and the storage period of the software compiled file is set according to the file level and file type. For example: different file levels correspond to different period ranges. Within the period range, the specific number of days is set by the file type, so that the storage period of the software compiled file can be specifically set. The automatic setting of the storage period can be realized in the above manner.

[0128] In addition, as a preferred embodiment, Fig.10 As shown, the above method also includes:

[0129] S501: Obtaining a file deletion notification from the FTP server using the user's mailbox;

[0130] S502: Determine whether a file retrieval instruction from the user is received within a predetermined period of time from the file deletion notification;

[0131] S503: If a file retrieval instruction is received, file retrieval information is compiled according to the file retrieval instruction and sent to the FTP server via the user mailbox, wherein the file retrieval information includes the renewal period of the software compilation file.

[0132] The FTP storage method adopted in the embodiment of the present application uses the user's mailbox to obtain the file deletion notification of the FTP server, and then receives the user's file retrieval instruction within a predetermined period, retrieves the information according to the file retrieval instruction and sends it to the FTP server via the user's email. In this way, it is convenient for the user to retrieve the file from the recycle bin and avoid the problem of important software compilation files being accidentally deleted.

[0133] Also, see Fig.11 , Fig.11 FIG. 1 is a flow chart of an FTP storage method applied to an FTP server provided in an embodiment of the present application. Fig.11 As shown, the FTP storage method includes:

[0134] S501: FTP server control process.

[0135] S502: User creation: The user creates a user structure extension in the database, including user name, user password, user email, user phone number, and user upload records.

[0136] S503: monitor upload, monitor whether the software compiles the client to upload information; if so, execute step S504.

[0137] S504: Save the uploaded information.

[0138] S505: Traverse the uploaded information, where the uploaded information includes the storage period of the file.

[0139] S506: Reminder n days before expiration.

[0140] S507: Receive user renewal.

[0141] S508: The expiration value has been changed in the subsequent period.

[0142] S509: Delete when the unrenewed period expires.

[0143] S510: Email reminding the user that the message has been deleted.

[0144] S511: Determine whether to accept the user's retrieval within the 3-day regret period.

[0145] S512: If the user does not retrieve it, completely delete it from the recycle bin.

[0146] S513: If the user retrieves it, retrieve it from the recycle bin and continue to execute the above step S508.

[0147] Also, see Fig.12 , Fig.12 FIG. 1 is a flow chart of an FTP storage method applied to a software compilation client provided in an embodiment of the present application. Fig.12 As shown, the FTP storage method includes:

[0148] S601: FTP client control process.

[0149] S602: User logs in.

[0150] S603: Select file to upload.

[0151] S604: A file expiration selection pops up.

[0152] S605: Set a deadline.

[0153] S606: Email reminder n days before expiration.

[0154] S607: Check whether the user mailbox is empty.

[0155] S608: Fill in the user's email address.

[0156] S609: If there is any email, upload it to the FTP server.

[0157] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the FTP storage method of the software compilation files of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0158] In addition, to achieve the above-mentioned purpose, the present application also provides an FTP server, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the FTP storage method provided in any of the above-mentioned embodiments.

[0159] In addition, to achieve the above-mentioned purpose, the present application also provides a software compilation client, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, the steps of the FTP storage method provided in any of the above-mentioned embodiments are implemented.

[0160] Reference below Fig.13 , which shows a structural diagram of an FTP server suitable for implementing an embodiment of the present application. Fig.13 The FTP server shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0161] like Fig.13 As shown, the FTP server can include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the FPT server are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can run an FTP server to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a model building device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have instead.

[0162] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0163] The FTP server provided by the present application adopts the FTP storage method of the software compilation file in the above embodiment, which can solve the technical problem that the existing technical method easily leads to excessive storage pressure of FTP server resources, affects the use efficiency, and reduces the storage performance. Compared with the prior art, the beneficial effects of the FTP server prediction device provided by the present application are the same as the beneficial effects of the FTP storage method provided by the above embodiment, and the other technical features in the server are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0164] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0165] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

[0166] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes also be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs a specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.

[0167] The modules involved in the embodiments of the present application can be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.

[0168] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for storing software compilation files via FTP, characterized in that: Applied to an FTP server, the FTP server has a built-in online database, and the online database is used to store software compilation files; the FTP storage method includes: According to a predetermined interval period, traverse the storage time of each software compilation file in the online database; For each software compilation file traversed, determine the storage time of the software compilation file and whether the storage period of the software compilation file has been reached; If the stored time reaches the storage deadline, the software compilation file is removed from the online database.

2. The method according to claim 1, characterized in that The method further comprises: When receiving an access request from a software compiling client, accessing the software compiling client and establishing a connection between the software compiling client and the online database; Monitoring the software compiling client in real time through the connection; When the software compilation client is monitored to upload a software compilation file, the software compilation file is saved to the online database, and a storage period of the software compilation file is added.

3. The method according to claim 1, characterized in that Before the step of determining whether the storage time of the software compiled file has reached the storage period of the software compiled file, the method further includes: Determining whether the stored time reaches the subsequent reminder time of the software compilation file; If the stored time reaches the succession reminder time corresponding to the software compilation file, a succession reminder message is sent to the user mailbox corresponding to the software compilation client, wherein the succession reminder message is used to remind the user to send succession change information; Determining whether the succession change information of the user mailbox is received; If the succession period change information is received, the storage period is changed to the succession period according to the succession period change information.

4. The method according to claim 3, characterized in that After the step of determining whether the succession change information of the user mailbox is received, the method includes: If the subsequent period change information is not received, extracting the file level and file type of the software compilation file; According to the file level, determining whether the software compilation file needs to be renewed; If the software compiled file needs to be renewed, searching for files of the same type from the online database according to the file type of the software compiled file; When the same type of files are found, the content relevance between the software compilation file and the same type of files is analyzed according to the semantic algorithm model; According to the content relevance, setting a succession period for the software compiled file, and changing the storage period of the software compiled file to the succession period; If the software compilation file does not expire, a step of determining whether the stored time reaches the storage deadline is performed.

5. The method according to claim 3 or 4, characterized in that The step of removing the software compilation file from the online database if the stored time reaches the storage deadline comprises: Moving the software compilation file from the online database to the recycle bin of the FTP server; Sending a file deletion notification to the user's mailbox; Determining whether file retrieval information is received from the user's mailbox within a predetermined period from sending the file deletion notification, wherein the file retrieval information includes a subsequent period; If the file retrieval information is received within the predetermined period, the software compilation file is moved back from the recycle bin to the online database, and the storage period is changed to the subsequent period in the file retrieval information; If the file retrieval information is not received within the predetermined period, the software compilation file is deleted from the recycle bin.

6. The method according to claim 5, characterized in that The step of deleting the software compilation file from the recycle bin comprises: Encrypting the software compilation file in the recycle bin using a pre-made key, and backing up the encrypted software compilation file to a cloud server; Deleting the software compilation file from the recycle bin; When receiving the file retrieval information from the user, the link address and pre-made key of the cloud server are sent to the user's mailbox, so that the user can retrieve the software compilation file.

7. A method for storing software compilation files via FTP, characterized in that: Applied to a software compiling client, the FTP storage method includes: Access the FTP server according to the FTP protocol and establish a connection with the online database in the FTP server; Select the software compilation file to be uploaded and set the storage period of the software compilation file; Uploading the software compilation file and storage period to the online database of the FTP server through the connection; Determine whether the user mailbox receives the subsequent reminder information sent by the FTP server, wherein the subsequent reminder information is used to remind the user to perform the subsequent operation; If a subsequent operation of the user is received, the subsequent change information is compiled according to the subsequent operation and sent to the FTP server.

8. The method according to claim 7, characterized in that The step of selecting the uploaded software compilation file and setting the storage period of the software compilation file includes: Determining whether a time limit setting instruction from a user is received within a predetermined operation time; If the time limit setting instruction is received, setting the storage time limit of the software compiled file according to the time limit setting instruction; If the deadline setting instruction is not received, obtaining the file level and file type of the software compilation file; The storage period of the software compilation file is set according to the file level and file type of the software compilation file.

9. An FTP server, characterized in that: The FTP server comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the FTP storage method according to any one of claims 1 to 6.

10. A software compilation client, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the FTP storage method according to any one of claims 7 to 8.