File management method, device and equipment and computer readable storage medium

The file management client on the terminal supports the network file system protocol or the server message block protocol, which solves the problem of low file management efficiency in the B/S architecture, realizes rapid file management and improves file storage security.

CN120256395APending Publication Date: 2025-07-04BOE TECHNOLOGY GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510329892.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-19
Publication Date
2025-07-04

AI Technical Summary

Technical Problem

File management methods based on B/S architecture are slower to upload and download files due to the use of HTTP protocol, which makes file management less efficient.

Method used

The file management client on the terminal supports the network file system protocol or the server message block protocol, determines the intercommunication information of the first protocol, and performs file management operations through these protocols when communication is possible.

Benefits of technology

Improves the speed and efficiency of file management, especially through the rapid transmission of network file system protocols or server message block protocols, simplifies file management operations and improves the security of file storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120256395A_ABST
    Figure CN120256395A_ABST
Patent Text Reader

Abstract

The invention discloses a file management method, device and equipment and a computer readable storage medium, and belongs to the technical field of computers. The method is applied to a file management client side on a terminal, the terminal supports a first protocol, the first protocol is a network file system protocol or a server message block protocol, and the method comprises the steps that in response to login operation, file information is obtained from a server, and the file information indicates files stored by the server; determining intercommunication information of a first protocol, wherein the intercommunication information of the first protocol is used for indicating whether the file management client and the server can communicate through the first protocol; the method comprises the following steps: displaying file information and protocol information of a first protocol in a first page based on the fact that a file management client and a server can communicate through the first protocol; in response to a file management operation in the first page, file management is performed on files stored in the server through the first protocol. According to the method, the file management speed can be increased, and the file management efficiency is higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of computer technologies, and particularly to a file management method, apparatus, device, and computer-readable storage medium. Background Art

[0002] With the continuous development of computer technologies, the B / S (Browser / Server) architecture has emerged as the times require. With its unique advantages, the B / S architecture provides a new file management method, that is, a file management method based on the B / S architecture. Users do not need to install a client on a local device and can upload files to or download files from a server at any time and place just through a browser.

[0003] However, in the file management method based on the B / S architecture, when uploading or downloading files, the HTTP (Hyper Text Transfer Protocol) is used, which results in slow upload and download speeds of files and thus low efficiency of file management. Summary of the Invention

[0004] Embodiments of the present application provide a file management method, apparatus, device, and computer-readable storage medium, which can be used to solve the problem of low efficiency of file management in related technologies. The technical solutions are as follows:

[0005] On the one hand, embodiments of the present application provide a file management method, which is applied to a file management client on a terminal. The terminal supports a first protocol, and the first protocol is a Network File System (NFS) protocol or a Server Message Block (SMB) protocol. The method includes:

[0006] In response to a login operation, obtain file information from a server, where the file information indicates files stored in the server;

[0007] Determine interoperability information of the first protocol, where the interoperability information of the first protocol is used to indicate whether the file management client and the server can communicate through the first protocol;

[0008] Based on the fact that the file management client and the server can communicate through the first protocol, display the file information and protocol information of the first protocol in a first page;

[0009] In response to a file management operation in the first page, perform file management on files stored in the server through the first protocol.

[0010] In a possible implementation manner, the obtaining file information from a server in response to a login operation includes:

[0011] In response to a login operation, send a fetch request to the server, where the fetch request includes object information of a reference object, and the reference object is the object that logs in to the file management client;

[0012] Receive file information returned by the server based on the fetch request, where the file information is information of files that the reference object can access among the files stored by the server.

[0013] In a possible implementation, the sending a fetch request to the server in response to a login operation includes:

[0014] In response to a login operation, send the fetch request to the server via the Hypertext Transfer Protocol.

[0015] In a possible implementation, the determining interoperability information of the first protocol includes:

[0016] Obtain a first protocol address of the server via the Hypertext Transfer Protocol, where the first protocol address includes the Internet Protocol address of the server, a target port, and a directory path where files are stored in the server, and the target port is used to support the first protocol;

[0017] When the Internet Protocol address of the server is reachable, the target port is open, and the directory path exists in the server, determine that the interoperability information of the first protocol is first information, and the first information indicates that the file management client and the server can communicate via the first protocol;

[0018] When at least one of the Internet Protocol address of the server being reachable, the target port being open, and the directory path existing in the server is not satisfied, determine that the interoperability information of the first protocol is second information, and the second information indicates that the file management client and the server cannot communicate via the first protocol.

[0019] In a possible implementation, the method further includes:

[0020] In response to the protocol information of the first protocol being triggered, display a protocol switching interface, where the protocol switching interface displays protocol information of a second protocol and interoperability information of the second protocol, the second protocol is a protocol different from the first protocol among the Network File System protocol and the Server Message Block protocol, and the interoperability information of the second protocol is used to indicate whether the file management client and the server can communicate via the second protocol;

[0021] In response to the triggering of the protocol information of the second protocol, and the interworking information of the second protocol indicating that the file management client and the server can communicate through the second protocol, display the protocol information of the second protocol on the first page;

[0022] In response to a file management operation on the first page, perform file management on the files stored in the server through the second protocol.

[0023] In a possible implementation, a detection control for the second protocol is further displayed on the protocol switching interface, and the detection control for the second protocol is used to detect the interworking information of the second protocol;

[0024] The method further includes:

[0025] In response to the triggering of the detection control for the second protocol, determine the interworking information of the second protocol;

[0026] In the case where the determined interworking information of the second protocol is inconsistent with the interworking information of the second protocol displayed on the protocol switching interface, update the interworking information of the second protocol displayed on the protocol switching interface.

[0027] In a possible implementation, the method further includes:

[0028] Based on the fact that the file management client and the server cannot communicate through the first protocol, determine the interworking information of the second protocol. The second protocol is a protocol different from the first protocol among the network file system protocol and the server message block protocol, and the interworking information of the second protocol is used to indicate whether the file management client and the server can communicate through the second protocol;

[0029] Based on the fact that the file management client and the server can communicate through the second protocol, display the file information and the protocol information of the second protocol on the first page;

[0030] In response to a file management operation on the first page, perform file management on the files stored in the server through the second protocol.

[0031] In a possible implementation, the method further includes:

[0032] Based on the fact that the file management client and the server cannot communicate through the second protocol, display the file information and the protocol information of the hypertext transfer protocol on the first page;

[0033] In response to a file management operation in the first page, file management is performed on the files stored in the server through the Hypertext Transfer Protocol.

[0034] In a possible implementation, the file management operation includes at least one of a file upload operation, a file download operation, a file deletion operation, and a file search operation.

[0035] In a possible implementation, the performing file management on the files stored in the server in response to a file management operation in the first page through the first protocol includes:

[0036] In response to a file management operation in the first page and when the reference object has the permissions corresponding to the file management operation, file management is performed on the files stored in the server through the first protocol, where the reference object is the object logged in to the file management client.

[0037] On the other hand, an embodiment of the present application provides a file management device, which is applied to a file management client on a terminal. The terminal supports a first protocol, and the first protocol is a Network File System protocol or a Server Message Block protocol. The device includes:

[0038] An obtaining module, configured to obtain file information from a server in response to a login operation, where the file information indicates the files stored in the server;

[0039] A determining module, configured to determine the interoperability information of the first protocol, where the interoperability information of the first protocol is used to indicate whether the file management client and the server can communicate through the first protocol;

[0040] A display module, configured to display the file information and the protocol information of the first protocol in a first page based on the fact that the file management client and the server can communicate through the first protocol;

[0041] An execution module, configured to perform file management on the files stored in the server through the first protocol in response to a file management operation in the first page.

[0042] In a possible implementation, the obtaining module is configured to send an obtaining request to the server in response to a login operation. The obtaining request includes the object information of a reference object, where the reference object is the object logged in to the file management client; and receive the file information returned by the server based on the obtaining request, where the file information is the information of the files that the reference object can access among the files stored in the server.

[0043] In a possible implementation, the obtaining module is configured to send the obtaining request to the server via the Hypertext Transfer Protocol in response to a login operation.

[0044] In a possible implementation, the determining module is configured to obtain a first protocol address of the server via the Hypertext Transfer Protocol, where the first protocol address includes the Internet Protocol address of the server, a target port, and a directory path of a file stored in the server, and the target port is used to support the first protocol;

[0045] When the Internet Protocol address of the server is reachable, the target port is open, and the directory path exists in the server, determine that the intercommunication information of the first protocol is first information, and the first information indicates that the file management client and the server can communicate via the first protocol;

[0046] When at least one of the Internet Protocol address of the server being reachable, the target port being open, and the directory path existing in the server is not satisfied, determine that the intercommunication information of the first protocol is second information, and the second information indicates that the file management client and the server cannot communicate via the first protocol.

[0047] In a possible implementation, the display module is further configured to display a protocol switching interface in response to the protocol information of the first protocol being triggered. The protocol switching interface displays protocol information of a second protocol and intercommunication information of the second protocol. The second protocol is a protocol different from the first protocol among the Network File System protocol and the Server Message Block protocol, and the intercommunication information of the second protocol is used to indicate whether the file management client and the server can communicate via the second protocol;

[0048] In response to the protocol information of the second protocol being triggered and the intercommunication information of the second protocol indicating that the file management client and the server can communicate via the second protocol, display the protocol information of the second protocol on the first page;

[0049] The execution module is further configured to perform file management on the files stored in the server via the second protocol in response to a file management operation on the first page.

[0050] In a possible implementation, a detection control of the second protocol is further displayed on the protocol switching interface, and the detection control of the second protocol is used to detect the intercommunication information of the second protocol;

[0051] The determining module is further configured to determine the intercommunication information of the second protocol in response to the detection control of the second protocol being triggered.

[0052] The device further includes:

[0053] an update module, configured to update the interoperability information of the second protocol displayed in the protocol switching interface when the determined interoperability information of the second protocol is inconsistent with the interoperability information of the second protocol displayed in the protocol switching interface.

[0054] In a possible implementation, the determination module is further configured to determine the interoperability information of a second protocol based on the fact that the file management client and the server cannot communicate through the first protocol, where the second protocol is a protocol different from the first protocol among the network file system protocol and the server message block protocol, and the interoperability information of the second protocol is used to indicate whether the file management client and the server can communicate through the second protocol;

[0055] The display module is further configured to display the file information and the protocol information of the second protocol in the first page based on the fact that the file management client and the server can communicate through the second protocol;

[0056] The execution module is further configured to perform file management on the files stored in the server through the second protocol in response to a file management operation in the first page.

[0057] In a possible implementation, the display module is further configured to display the file information and the protocol information of the hypertext transfer protocol in the first page based on the fact that the file management client and the server cannot communicate through the second protocol;

[0058] The execution module is further configured to perform file management on the files stored in the server through the hypertext transfer protocol in response to a file management operation in the first page.

[0059] In a possible implementation, the file management operation includes at least one of a file upload operation, a file download operation, a file deletion operation, and a file search operation.

[0060] In a possible implementation, the execution module is configured to perform file management on the files stored in the server through the first protocol in response to a file management operation in the first page and when the reference object has the permission corresponding to the file management operation, where the reference object is the object logged in to the file management client.

[0061] On the other hand, an embodiment of the present application provides a terminal, which includes a processor and a memory. At least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor so that the terminal implements any one of the above-described file management methods.

[0062] On the other hand, a computer-readable storage medium is also provided. At least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor so that a terminal implements any one of the above-described file management methods.

[0063] On the other hand, a computer program or a computer program product is also provided. At least one computer instruction is stored in the computer program or the computer program product, and the at least one computer instruction is loaded and executed by a processor so that a terminal implements any one of the above file management methods.

[0064] The technical solution provided by the embodiment of the present application at least brings the following beneficial effects:

[0065] When the technical solution provided by the embodiment of the present application performs file management, the interoperability information of the first protocol is determined. When the interoperability information of the first protocol indicates that the file management client and the server can communicate through the first protocol, the files stored in the server are managed through the first protocol. Since the first protocol is a network file system protocol or a Server Message Block protocol, and the transmission speeds of the network file system protocol and the Server Message Block protocol are relatively fast, when the files stored in the server are managed through the first protocol, the speed of file management can be improved, and thus the efficiency of file management can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0067] Figure 1 It is a schematic diagram of an implementation environment of a file management method provided by an embodiment of the present application;

[0068] Figure 2 It is a flowchart of a file management method provided by an embodiment of the present application;

[0069] Figure 3 It is a schematic diagram of a login interface provided by an embodiment of the present application;

[0070] Figure 4It is a flowchart for determining the interworking information of the first protocol provided by an embodiment of the present application;

[0071] Figure 5 It is a schematic diagram of a first page provided by an embodiment of the present application;

[0072] Figure 6 It is a schematic diagram of another first page provided by an embodiment of the present application;

[0073] Figure 7 It is a schematic diagram of the transmission speed of files transmitted through each protocol provided by an embodiment of the present application;

[0074] Figure 8 It is a flowchart for uploading a file to a server through the first protocol provided by an embodiment of the present application;

[0075] Figure 9 It is a flowchart for downloading a file from a server through the first protocol provided by an embodiment of the present application;

[0076] Figure 10 It is a schematic diagram of yet another first page provided by an embodiment of the present application;

[0077] Figure 11 It is a flowchart for deleting a file from a server provided by an embodiment of the present application;

[0078] Figure 12 It is a flowchart for querying a file from a server provided by an embodiment of the present application;

[0079] Figure 13 It is a schematic diagram of a protocol switching interface provided by an embodiment of the present application;

[0080] Figure 14 It is a flowchart for a file management method provided by an embodiment of the present application;

[0081] Figure 15 It is a schematic structural diagram of a file management device provided by an embodiment of the present application;

[0082] Figure 16 It is a schematic structural diagram of a terminal provided by an embodiment of the present application;

[0083] Figure 17 It is a schematic structural diagram of a server provided by an embodiment of the present application. Detailed implementation manners

[0084] To make the objectives, technical solutions and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.

[0085] It should be noted that the terms "first", "second", etc. in this application are used to distinguish similar objects and do not necessarily describe a specific order or sequence. It should be understood that these terms can be interchanged under appropriate circumstances so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0086] Figure 1 is a schematic diagram of the implementation environment of a file management method provided by an embodiment of the present application. As Figure 1 shown, the implementation environment includes: a terminal 101 and a server 102.

[0087] Among them, a file management client 103 is installed in the terminal 101, and the file management client 103 is a client integrated with a browser. At least one of a Network File System (NFS) client and a Server Message Block (SMB) client is installed in the terminal 101. Therefore, the terminal 101 supports at least one of the NFS protocol and the SMB protocol. At least one of the NFS service and the SMB service is set up in the server 102. Therefore, the server 102 supports at least one of the NFS protocol and the SMB protocol. The NFS service or the SMB service is used to handle file upload and download.

[0088] Optionally, the terminal 101 also supports the Hyper Text Transfer Protocol (HTTP). A file management server (that is, a Java (a widely used high-level programming language) backend service) is also deployed in the server 102. Therefore, the server 102 also supports the Hyper Text Transfer Protocol. The file management server is used to manage users, roles, and permissions of the file sharing service. The server 102 is a server that provides services for the file management client 103 installed in the terminal 101, and the server 102 includes a shared storage directory, and shared files are stored in the shared storage directory. The file management method provided by the embodiment of the present application is implemented through the interaction between the file management client 103 installed on the terminal 101 and the server 102. The file management client 103 downloads files from the server 102 through a first protocol (NFS protocol or SMB protocol), or uploads files to the server 102. The file management client 103 queries files from the server 102 through the Hyper Text Transfer Protocol, or deletes files in the server 102.

[0089] Optionally, the terminal 101 can be any kind of electronic device product that can interact with users through one or more ways such as a keyboard, a touchpad, a remote control, voice interaction, or a handwriting device. For example, the terminal 101 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a PC (Personal Computer), a mobile phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a smart in-vehicle unit, a smart TV, etc.

[0090] The server 102 is a single server, or a server cluster composed of multiple servers, or any one of a cloud computing platform and a virtualization center. The embodiments of the present application do not limit this. The server 102 is directly or indirectly communicatively connected to the terminal 101 through a wired communication method or a wireless communication method. The server 102 has a data receiving function, a data processing function, and a data sending function. Of course, the server 102 may also have other functions. The embodiments of the present application do not limit this.

[0091] Those skilled in the art should understand that the above terminal 101 and server 102 are only for illustration. Other existing or future terminal or server that can be applied to the present application should also be included in the protection scope of the present application and are hereby incorporated by reference.

[0092] The embodiments of the present application provide a file management method, which can be applied to the above Figure 1 shown implementation environment. Taking the flowchart of a file management method provided by the embodiments of the present application shown Figure 2 as an example, this method can be executed by a file management client installed on the terminal 101. The terminal supports a first protocol, and the first protocol is a network file system protocol or a server message block protocol. As Figure 1 shown, this method includes the following steps 201 to step 204. Figure 2

[0093] In step 201, in response to a login operation, file information is obtained from the server, and the file information indicates the files stored in the server.

[0094] Among them, the file information can be a file name, or other information that can uniquely represent the corresponding file. The embodiments of the present application do not limit this.

[0095] ​In a possible implementation, the process of obtaining file information from a server in response to a login operation includes: in response to the login operation, sending a fetch request to the server, where the fetch request includes the object information of a reference object, and the reference object is the object that logs in to the file management client; receiving the file information returned by the server based on the fetch request, where the file information is the information of the files in the server that the reference object can access.

[0096] Among them, the object information of the reference object can be the object account of the reference object in the file management client, or other information that can uniquely represent the reference object. The embodiments of the present application do not limit this.

[0097] Since there are multiple files stored in the server, not all file reference objects can access them, that is, the reference object does not necessarily have access rights to all the files stored in the server. Therefore, after receiving the fetch request, the server only returns the information of the files that the reference object can access to the file management client to ensure the security of the files stored in the server.

[0098] Optionally, the server stores multiple files and the object information of the objects with access rights to each file. After receiving the fetch request, the server parses the fetch request to obtain the object information of the reference object, and determines the files that the reference object can access according to the object information of the reference object and the object information of the objects with access rights to each file.

[0099] Optionally, for any file in the server, if the object information with access rights to the file includes the object information of the reference object, then the reference object can access the file. Conversely, if the object information with access rights to the file does not include the object information of the reference object, then the reference object cannot access the file.

[0100] In a possible implementation, the terminal supports the Hypertext Transfer Protocol. The process of sending a fetch request to the server in response to a login operation includes: in response to the login operation, sending a fetch request to the server through the Hypertext Transfer Protocol. Similarly, the server supports the Hypertext Transfer Protocol. Therefore, the server returns the file information to the file management client through the Hypertext Transfer Protocol.

[0101] In a possible implementation, when the login operation is the first login, it is also necessary to obtain the object account and object password of the reference object. When the object account and object password of the reference object meet the login requirements, obtain the file information from the server.

[0102] In a possible implementation, when the login operation is the first login, the process of obtaining the object account and object password of the reference object includes: when the login operation is the first login, display a login interface, where a login account box and a login password box are displayed in the login interface. In response to the input operation in the login account box, obtain the object account of the reference object; in response to the input operation in the login password box, obtain the object password of the reference object.

[0103] Such as Figure 3 FIG. is a schematic diagram of a login interface provided by an embodiment of the present application. Among them, a login account box 301 and a login password box 302 are displayed.

[0104] In a possible implementation, the process of determining whether the object account and object password of the reference object meet the login requirements includes: sending the object account and object password of the reference object to the server; receiving the verification result returned by the server, where the verification result is used to indicate whether the object account and object password of the reference object meet the login requirements.

[0105] Optionally, the verification result includes a first result and a second result. The first result is used to indicate that the object account and object password of the reference object meet the login requirements, and the second result indicates that the object account and object password of the reference object do not meet the login requirements.

[0106] Optionally, after receiving the object account and object password of the reference object, the server determines the verification result according to the object account and object password of the reference object, and sends the verification result to the file management client. Among them, the process by which the server determines the verification result according to the object account and object password of the reference object includes: the object accounts that can log in to the file management client and the passwords corresponding to the object accounts that can log in to the file management client are stored in the server; when the object account that can log in to the file management client includes the object account of the reference object and the password corresponding to the object account of the reference object is the object password, determine that the verification result is the first result; when the object account that can log in to the file management client does not include the object account of the reference object, or when the object account that can log in to the file management client includes the object account of the reference object and the password corresponding to the object account of the reference object is not the object password, determine that the verification result is the second result.

[0107] Next, Table 1 below describes the network layer, advantages, disadvantages, and application scenarios of the Hypertext Transfer Protocol and the Network File System Protocol.

[0108] Table 1

[0109]

[0110]

[0111] In step 202, determine the interoperability information of the first protocol, where the interoperability information of the first protocol is used to indicate whether the file management client and the server can communicate through the first protocol.

[0112] In a possible implementation, the process of determining the interoperability information of the first protocol includes: obtaining the first protocol address of the server through the Hypertext Transfer Protocol. The first protocol address includes the Internet Protocol address of the server, the target port, and the directory path where files are stored in the server. The target port is used to support the first protocol. When the Internet Protocol address of the server is reachable, the target port is open, and there is a directory path in the server, determine that the interoperability information of the first protocol is the first information, where the first information indicates that the file management client and the server can communicate through the first protocol. When at least one of the conditions that the Internet Protocol address of the server is reachable, the target port is open, and there is a directory path in the server is not satisfied, determine that the interoperability information of the first protocol is the second information, where the second information indicates that the file management client and the server cannot communicate through the first protocol.

[0113] Optionally, the process of obtaining the first protocol address of the server through the Hypertext Transfer Protocol includes: sending a first protocol address acquisition request to the server through the Hypertext Transfer Protocol; the server returns the first protocol address of the server to the file management client through the Hypertext Transfer Protocol, so that the file management client can obtain the first protocol address of the server. Exemplarily, if the first protocol is the NFS protocol, the first protocol address of the server is 10.10.10.1: / 2049: / data1. Another example, if the first protocol is the SMB protocol, the first protocol address of the server is \\10.10.10.1:139\data2.

[0114] In a possible implementation, after obtaining the first protocol address of the server, the process of determining whether the Internet Protocol address of the server is reachable includes: determining whether the Internet Protocol address of the server is reachable through the ping command. The ping command is a command used to determine whether an Internet Protocol address is reachable.

[0115] The process of determining whether the target port is open includes: determining whether the target port is open through the telnet command. The telnet command is a command used to determine whether a port is open.

[0116] The process of determining whether there is a directory path in the server includes: determining the paths existing in the server through the Internet Protocol address of the server. When the paths existing in the server include the directory path, determine that there is a directory path in the server. When the paths existing in the server do not include the directory path, determine that there is no directory path in the server.

[0117] Optionally, the file management client includes a protocol recognition module for determining the interworking information of the first protocol. Optionally, the protocol recognition module is called to determine the interworking information of the first protocol. In response to the login operation, the protocol recognition module obtains the first protocol address of the server from the Java backend service of the server through the Hypertext Transfer Protocol; determines the interworking information of the first protocol based on the first protocol address of the server. As Figure 4 It is a flowchart for determining the interworking information of the first protocol provided by an embodiment of the present application.

[0118] It should be noted that in response to the login operation, the file information can be obtained from the server first, and then the interworking information of the first protocol can be determined, or the interworking information of the first protocol can be determined first, and then the file information can be obtained from the server. The embodiment of the present application does not limit the execution order of steps 201 and 202.

[0119] In step 203, based on the fact that the file management client and the server can communicate through the first protocol, the file information and the protocol information of the first protocol are displayed on the first page.

[0120] In a possible implementation manner, after the interworking information of the first protocol is determined in the above step 202, based on the interworking information of the first protocol being the first information, that is, the file management client and the server can communicate through the first protocol, the first page is displayed, and the file information and the protocol information of the first protocol are displayed on the first page. The protocol information of the first protocol is used to indicate that file management can be performed on the files stored in the server through the first protocol. The protocol information of the first protocol can be the protocol name of the first protocol.

[0121] In a possible implementation manner, based on the fact that the file management client and the server can communicate through the first protocol, the first page is displayed, and the folder information that the reference object can access and the protocol information of the first protocol are displayed on the first page, such as Figure 5 It is a schematic diagram of a first page provided by an embodiment of the present application. Among them, the folder information 501 that the reference object can access and the protocol information 502 of the first protocol are displayed.

[0122] When the reference object wants to access a certain folder, the reference object selects the folder information, and then the file information included in the folder is displayed on the first page. The folder information can be the folder name. Such as Figure 6 It is another schematic diagram of the first page provided by an embodiment of the present application. Among them, the file information 601 included in the folder that the reference object wants to access and the protocol information 602 of the first protocol are displayed.

[0123] In step 204, in response to a file management operation in the first page, file management is performed on the files stored in the server through the first protocol.

[0124] In this implementation manner, based on the file management operation of the reference object in the first page, file management can be performed on the files stored in the server through the first protocol. Since the first protocol is the NFS protocol or the SMB protocol, and the transmission speeds of the NFS protocol and the SMB protocol are both relatively fast, therefore, implementing file management through the first protocol can improve the speed of file management, and thus can improve file management efficiency.

[0125] Such as Figure 7 is a schematic diagram of the transmission speeds of files transmitted through various protocols provided by an embodiment of the present application. Among them, the transmission speed of transmitting files through the Hypertext Transfer Protocol is about 300 Mb (Mega bits); the transmission speed of transmitting files through the File Transfer Protocol (FTP) is about 600 Mb; the transmission speed of transmitting files through the Network File System protocol is about 1000 Mb.

[0126] In a possible implementation manner, in response to a file management operation in the first page, and when the reference object has the permission corresponding to the file management operation, file management is performed on the files stored in the server through the first protocol.

[0127] In this implementation manner, file management is implemented through the first protocol only when responding to the file management operation of the reference object in the first page and the reference object has the permission corresponding to the file management operation. This method can not only improve the speed of file management, but also improve the security of the files stored in the server.

[0128] Optionally, the file management operation includes at least one of a file upload operation, a file download operation, a file deletion operation, and a file query operation. The following describes four implementation manners of performing file management on the files stored in the server through the first protocol.

[0129] In the first possible implementation manner, when the file management operation is a file upload operation, a file upload control is further displayed on the first page. The file upload control is used to upload files to the server. Such as Figure 6 603 in is the file upload control. The process of performing file management on the files stored in the server through the first protocol in response to a file management operation in the first page includes: in response to a file upload operation in the first page, uploading a file to the server through the first protocol.

[0130] Optionally, in response to a file upload operation on the first page, the process of uploading a file to the server via the first protocol includes: in response to a trigger operation on the file upload control, displaying a second page, where the second page displays first file information, and the first file information is information of a file stored in the terminal; in response to a trigger operation on the second file information, receiving the file upload operation on the first page, and sending a file upload request to the server via the first protocol, where the file upload request includes object information of a reference object, and the file upload request is used to determine whether the reference object has the file upload permission; in the case of receiving information returned by the server via the first protocol indicating that the reference object has the file upload permission, uploading the file corresponding to the second file information to the server via the first protocol. Herein, the second file information is any one of the first file information.

[0131] Optionally, after receiving the file upload request, the server parses the file upload request to obtain the object information of the reference object. The process for the server to determine whether the reference object has the file upload permission includes: the server stores object information of objects having the file upload permission, and in the case where the object information of the reference object is included in the object information of the objects having the file upload permission, determining that the reference object has the file upload permission. In the case where the object information of the reference object is not included in the object information of the objects having the file upload permission, determining that the reference object does not have the file upload permission.

[0132] Optionally, in response to a file upload operation on the first page, the process of uploading a file to the server via the first protocol includes: in response to a trigger operation on the file upload control, displaying a second page, where the second page displays first file information, and the first file information is information of a file stored in the terminal; in response to a trigger operation on the second file information, receiving the file upload operation on the first page, and sending a file upload request to the server via the Hypertext Transfer Protocol, where the file upload request includes object information of a reference object, and the file upload request is used to determine whether the reference object has the file upload permission; in the case of receiving information returned by the server via the Hypertext Transfer Protocol indicating that the reference object has the file upload permission, uploading the file corresponding to the second file information to the server via the first protocol. Herein, the second file information is any one of the first file information.

[0133] As Figure 8 is a flowchart of uploading a file to the server via the first protocol provided by an embodiment of the present application. As Figure 8 shown, each step has been described in the above content and will not be elaborated herein.

[0134] In a possible implementation, after uploading the file corresponding to the second file information to the server, a file upload success message returned by the server may also be received, and the file upload success message is displayed. The file upload success message is used to indicate that the file corresponding to the second file information has been successfully uploaded.

[0135] Optionally, the server may return the file upload success message through the first protocol, or may also return the file upload success message through the Hypertext Transfer Protocol. The embodiments of the present application do not limit the manner in which the server returns the file upload success message.

[0136] In a possible implementation, after the server receives the file corresponding to the second file information uploaded by the file management client through the first protocol, the server may also generate a file upload log, which includes the second file information, the object information of the reference object, and the first time. The first time is the time when the file corresponding to the second file information is received. The file upload log is used to indicate that the reference object uploaded the file corresponding to the second file information to the server at the first time.

[0137] In a second possible implementation, in the case where the file management operation is a file download operation, a file download control is also displayed on the first page. The file download control is used to download a file from the server, such as Figure 6 604 in [the reference] is the file download control. In response to the file management operation on the first page, the process of performing file management on the files stored in the server through the first protocol includes: in response to the file download operation on the first page, downloading a file from the server through the first protocol.

[0138] Optionally, the process of downloading a file from the server through the first protocol in response to the file download operation on the first page includes: in response to a trigger operation on the third file information in the file information displayed on the first page and a trigger operation on the file download control, receiving the file download operation on the first page, and sending a file download request to the server through the first protocol. The file download request includes the third file information and the object information of the reference object; receiving the file corresponding to the third file information returned by the server through the first protocol when it is determined that the reference object has the file download permission.

[0139] In a possible implementation, after the server receives the file download request, it parses the file download request to obtain the third file information and the object information of the reference object; the object information of the objects with file download permissions is stored in the server; the server determines whether the reference object has the file download permission according to the object information of the reference object and the object information of the objects with file download permissions; when it is determined that the reference object has the file download permission, the file corresponding to the third file information is sent to the file management client through the first protocol.

[0140] Among them, the process by which the server determines whether the reference object has the file download permission according to the object information of the reference object and the object information of the object with the file download permission includes: when the object information of the reference object is included in the object information of the object with the file download permission, it is determined that the reference object has the file download permission. When the object information of the reference object is not included in the object information of the object with the file download permission, it is determined that the reference object does not have the file download permission.

[0141] Optionally, the process of downloading a file from the server through the first protocol in response to a file download operation on the first page includes: in response to a trigger operation on the third file information in the file information displayed on the first page and a trigger operation on the file download control, receiving the file download operation on the first page, sending a file download request to the server through the Hypertext Transfer Protocol, where the file download request includes the third file information and the object information of the reference object; receiving the file corresponding to the third file information returned by the server through the first protocol when it is determined that the reference object has the file download permission.

[0142] Such as Figure 9 is a flowchart of downloading a file from a server through the first protocol provided by an embodiment of the present application. Such as Figure 9 As shown, each step has been described in the above content and will not be elaborated here.

[0143] In a possible implementation manner, after receiving the file corresponding to the third file information returned by the server through the first protocol, a file download success message may also be displayed, and the file download success message is used to indicate that the file corresponding to the third file information has been downloaded successfully. In this way, the reference object can view the file corresponding to the third file information from the location where the file corresponding to the third file information is stored.

[0144] In a possible implementation manner, after the server sends the file corresponding to the third file information to the file management client through the first protocol, the server may also generate a file download log, which includes the third file information, the object information of the reference object, and a second time. The second time is the time when the file corresponding to the third file information is sent to the file management client. The file download log is used to indicate that the server sends the file corresponding to the third file information to the reference object at the second time.

[0145] In a third possible implementation manner, when the file management operation is a file deletion operation, file deletion controls corresponding to each file information are further displayed on the first page, and the file deletion control corresponding to any file information is used to delete the file corresponding to any file information from the server. In response to the file management operation on the first page, the process of performing file management on the files stored in the server through the first protocol includes: in response to the file deletion operation on the first page, deleting the file from the server through the first protocol.

[0146] Optionally, when displaying the file information on the first page, the file deletion control corresponding to the file information may be displayed at the position corresponding to the file information. Among them, the position corresponding to the file information may be on the right side of the file information or other positions of the file information, and the embodiments of the present application do not limit this. For example Figure 6 In 605 in it, it is the file deletion control corresponding to the file information "AAA".

[0147] Optionally, after the file information is displayed on the first page, the file deletion control corresponding to the file information may also be displayed when a viewing operation for the file information is received. The viewing operation for the file information refers to a right-click operation for the file information. For example Figure 10 It is a schematic diagram of another first page provided by the embodiments of the present application. File information is displayed therein. In response to the right-click operation for the file information "AAA", the file deletion control 1001 corresponding to the file information "AAA" is displayed.

[0148] Optionally, the process of deleting the file from the server through the first protocol in response to the file deletion operation on the first page includes: in response to the trigger operation for the file deletion control corresponding to the fourth file information among the file information displayed on the first page, receiving the file deletion operation on the first page, sending a file deletion request to the server through the first protocol, and the file deletion request includes the fourth file information and the object information of the reference object. The file deletion request is used for the server to delete the file corresponding to the fourth file information from the server when it is determined that the reference object has the file deletion permission.

[0149] In a possible implementation manner, after the server receives the file deletion request, it parses the file deletion request to obtain the fourth file information and the object information of the reference object; the object information with file deletion permission is stored in the server; the server determines whether the reference object has the file deletion permission according to the object information of the reference object and the object information with file deletion permission; when it is determined that the reference object has the file deletion permission, the file corresponding to the fourth file information is deleted from the server.

[0150] Among them, the process by which the server determines whether the reference object has the file deletion permission according to the object information of the reference object and the object information of the object with the file deletion permission includes: determining that the reference object has the file deletion permission when the object information of the reference object is included in the object information of the object with the file deletion permission; and determining that the reference object does not have the file deletion permission when the object information of the reference object is not included in the object information of the object with the file deletion permission.

[0151] Optionally, the process of deleting a file from the server in response to a file deletion operation on the first page through the first protocol includes: in response to a trigger operation on the file deletion control corresponding to the fourth file information in the file information displayed on the first page, receiving the file deletion operation on the first page, sending a file deletion request to the server through the Hypertext Transfer Protocol, where the file deletion request includes the fourth file information and the object information of the reference object. The file deletion request is used for the server to delete the file corresponding to the fourth file information from the server when it determines that the reference object has the file deletion permission.

[0152] Such as Figure 11 is a flowchart of deleting a file from the server provided by an embodiment of the present application. Such as Figure 11 As shown, each step has been described in the above content and will not be elaborated here.

[0153] In a possible implementation manner, after the server deletes the file corresponding to the fourth file information from the server, the server may further send a file deletion success message to the file management client, so that the file management client displays the file deletion success message, and further enables the reference object to know that the file corresponding to the fourth file information has been successfully deleted.

[0154] Optionally, the server sends the file deletion success message to the file management client through the first protocol, or sends the file deletion success message to the file management client through the Hypertext Transfer Protocol. The embodiment of the present application does not limit the manner in which the server sends the file deletion success message.

[0155] In a possible implementation manner, after the server deletes the file corresponding to the fourth file information, the server may further generate a file deletion log, where the file deletion log includes the fourth file information, the object information of the reference object, and the third time. The third time is the deletion time of the file corresponding to the fourth file information. The file deletion log is used to indicate that the reference object deleted the file corresponding to the fourth file information in the server at the third time.

[0156] In a fourth possible implementation manner, when the file management operation is a file query operation, a query box and a query control are further displayed on the first page. The query box and the query control are used to query files from the server. The query control can be superimposed on the query box or displayed separately. The embodiments of the present application do not limit this. For example Figure 6 606 in Figure 6 is the query box, and 607 is the query control. In response to the file management operation on the first page, the process of performing file management on the files stored in the server through the first protocol includes: in response to the file query operation on the first page, querying files from the server through the first protocol.

[0157] Optionally, the process of querying files from the server through the first protocol in response to the file query operation on the first page includes: in response to the input operation in the query box, obtaining query information; in response to the triggering operation on the query control, receiving the file query operation on the first page, and sending a file query request to the server through the first protocol. The file query request includes the query information and the object information of the reference object. The file query request is used for the server to return the fifth file information to the file management client through the first protocol when it is determined that the reference object has the file query permission. The fifth file information is determined based on the query information.

[0158] Optionally, after the server receives the file query request, parsing the file query request to obtain the query information and the object information of the reference object, the process of determining whether the reference object has the file query permission includes: the object information with file query permission is stored in the server. When the object information of the reference object is included in the object information with file query permission, it is determined that the reference object has the file query permission. When the object information of the reference object is not included in the object information with file query permission, it is determined that the reference object does not have the file query permission.

[0159] After the server determines that the reference object has the file query permission, the process of determining the fifth file information according to the query information includes: the server determines the matching degree between the file information of each file stored in the server and the query information, and uses the file information with the highest matching degree as the fifth file information.

[0160] Optionally, the server determines the feature vector corresponding to the file information of each file, determines the feature vector corresponding to the query information, and determines the matching degree between the query information and the file information of each file according to the feature vector corresponding to the query information and the feature vectors corresponding to the file information of each file.

[0161] Optionally, for any file, the dot product between the feature vector corresponding to the query information and the feature vector corresponding to the file information of any file is determined as the matching degree between the query information and the file information of any file.

[0162] Optionally, in response to a file query operation on the first page, the process of querying a file from the server through the first protocol includes: in response to an input operation in the query box, obtaining query information; in response to a trigger operation on the query control, receiving a file query operation on the first page, and sending a file query request to the server through the Hypertext Transfer Protocol. The file query request includes the query information and the object information of the reference object. The file query request is used for the server to return the fifth file information to the file management client through the Hypertext Transfer Protocol when it is determined that the reference object has the file query permission. The fifth file information is determined based on the query information.

[0163] As Figure 12 is a flowchart of querying a file from the server provided by an embodiment of the present application. As Figure 12 shown, each step has been described in the above content and will not be elaborated here.

[0164] In a possible implementation manner, after the file management client receives the fifth file information returned by the server, it may also display the fifth file information to facilitate the reference object to perform file management on the file corresponding to the fifth file information.

[0165] In a possible implementation manner, after the server sends the fifth file information to the file management client, the server may also generate a file query log, which includes the fifth file information, the object information of the reference object, and the fourth time. The fourth time is the time when the fifth file information is sent to the file management client. The file query log is used to indicate that the reference object has queried the fifth file information from the server at the fourth time.

[0166] In some embodiments, protocol information of a first protocol is displayed on a first page. When a reference object does not want to perform file management on files stored in a server through the first protocol, the reference object can manually switch the protocol and then perform file management on the files stored in the server through the switched protocol. This process includes: in response to the protocol information of the first protocol being triggered, displaying a protocol switching interface, where protocol information of a second protocol and interoperability information of the second protocol are displayed in the protocol switching interface. The second protocol is a protocol different from the first protocol among the Network File System protocol and the Server Message Block protocol. The interoperability information of the second protocol is used to indicate whether a file management client and the server can communicate through the second protocol; in response to the protocol information of the second protocol being triggered and the interoperability information of the second protocol indicating that the file management client and the server can communicate through the second protocol, displaying the protocol information of the second protocol on the first page; in response to a file management operation on the first page, performing file management on the files stored in the server through the second protocol.

[0167] Exemplarily, the first protocol is the NFS protocol and the second protocol is the SMB protocol, or the first protocol is the SMB protocol and the second protocol is the NFS protocol.

[0168] This embodiment provides a way for the reference object to manually switch the protocol, facilitating the manual switch by the reference object, and thus enabling file management on the files stored in the server through various protocols, making the file management method more flexible.

[0169] Such as Figure 13 is a schematic diagram of a protocol switching interface provided by an embodiment of the present application, where the protocol information "SMB" of the second protocol and the interoperability information "√" of the second protocol are displayed. The "√" indicates that the file management client and the server can communicate through the second protocol.

[0170] The process of performing file management on the files stored in the server through the second protocol in response to a file management operation on the first page is similar to the process of performing file management on the files stored in the server through the first protocol in response to a file management operation on the first page, and this embodiment of the present application will not elaborate further here.

[0171] In a possible implementation manner, protocol information of the first protocol and interoperability information of the first protocol are also displayed in the protocol switching interface. Such as Figure 13 "NFS" in

[0172] Optionally, protocol information of the Hypertext Transfer Protocol and interoperability information of the Hypertext Transfer Protocol are also displayed in the protocol switching interface. Such as Figure 13"HTTP" in it is the protocol information of the Hypertext Transfer Protocol, and the "√" displayed after "HTTP" is the interoperability information of the Hypertext Transfer Protocol. In response to a trigger operation for the protocol information of the Hypertext Transfer Protocol, the protocol information of the Hypertext Transfer Protocol is displayed on the first page; in response to a file management operation on the first page, file management is performed on the files stored in the server via the Hypertext Transfer Protocol. The process of performing file management on the files stored in the server via the Hypertext Transfer Protocol is similar to the process of performing file management on the files stored in the server via the first protocol as described above, and the embodiments of the present application will not elaborate on this here.

[0173] In a possible implementation manner, a detection control for a second protocol is further displayed on the protocol switching interface, and the detection control for the second protocol is used to detect the interoperability information of the second protocol, such as Figure 13 1301 in it is the detection control for the second protocol. In response to the detection control for the second protocol being triggered, the interoperability information of the second protocol is determined; in the case where the determined interoperability information of the second protocol is inconsistent with the interoperability information of the second protocol displayed on the protocol switching interface, the interoperability information of the second protocol displayed on the protocol switching interface is updated.

[0174] Among them, the process of determining the interoperability information of the second protocol is similar to the process of determining the interoperability information of the first protocol as described above, and the embodiments of the present application will not elaborate on this here.

[0175] In this implementation manner, since the interoperability information of the second protocol displayed on the protocol switching interface is not obtained by real-time detection and may be inaccurate, therefore, the reference object can also detect the interoperability information of the second protocol through the detection control to obtain accurate interoperability information.

[0176] Optionally, a detection control for the first protocol is further displayed on the protocol switching interface, and the detection control for the first protocol is used to detect the interoperability information of the first protocol, such as Figure 13 1302 in it is the detection control for the first protocol. In response to the detection control for the first protocol being triggered, the interoperability information of the first protocol is determined; in the case where the determined interoperability information of the first protocol is inconsistent with the interoperability information of the first protocol displayed on the protocol switching interface, the interoperability information of the first protocol displayed on the protocol switching interface is updated.

[0177] In a possible implementation, after determining the interoperability information of the first protocol in step 202 above, if the file management client and the server cannot communicate via the first protocol, then determine the interoperability information of the second protocol, where the second protocol is a protocol different from the first protocol among the Network File System (NFS) protocol and the Server Message Block (SMB) protocol, and the interoperability information of the second protocol is used to indicate whether the file management client and the server can communicate via the second protocol; based on the fact that the file management client and the server can communicate via the second protocol, display the file information and the protocol information of the second protocol on the first page; in response to a file management operation on the first page, perform file management on the files stored in the server via the second protocol.

[0178] In this implementation, since the second protocol is a protocol different from the first protocol among the NFS protocol and the SMB protocol, the second protocol is also a protocol with a fast transmission speed. Performing file management on the files stored in the server via the second protocol can also improve the speed of file management and enhance file management efficiency.

[0179] In another possible implementation, if the file management client and the server cannot communicate via the second protocol, display the file information and the protocol information of the Hypertext Transfer Protocol (HTTP) on the first page; in response to a file management operation on the first page, perform file management on the files stored in the server via the HTTP.

[0180] In this implementation, when the file management client and the server can neither communicate via the first protocol nor via the second protocol, then perform file management on the files stored in the server via the HTTP, which can ensure that file management on the files stored in the server can be carried out.

[0181] When performing file management using the above method, determine the interoperability information of the first protocol. When the interoperability information of the first protocol indicates that the file management client and the server can communicate via the first protocol, then perform file management on the files stored in the server via the first protocol. Since the first protocol is the NFS protocol or the SMB protocol, and the NFS protocol and the SMB protocol have a relatively fast transmission speed, therefore, when performing file management on the files stored in the server via the first protocol, the speed of file management can be improved, thereby enhancing file management efficiency.

[0182] Moreover, the file management client in the embodiments of the present application is a client integrated with a browser, which can provide an intuitive and easy-to-use first page for file management, simplifying file management operations.

[0183] In addition, when the reference object accesses the file management client in the embodiments of the present application, it accesses the files that the reference object can access, making the files stored in the server more secure. When the reference object performs file management, the reference object can only perform the corresponding file management operations under the permissions corresponding to the file management operations, further enhancing the security of the files stored in the server.

[0184] Figure 14 FIG. 4 is a flowchart of a file management method provided by an embodiment of the present application. This method is implemented by the interaction between the file management client in the terminal and the server, as Figure 14 shown. This method includes the following steps 1401 to 1409.

[0185] Step 1401, in response to a login operation, the file management client sends a fetch request to the server via the Hypertext Transfer Protocol.

[0186] In a possible implementation, the process of the file management client sending a fetch request to the server via the Hypertext Transfer Protocol in response to a login operation has been described in step 201 above and will not be elaborated here.

[0187] Step 1402, the server parses the fetch request to obtain the object information of the reference object.

[0188] Step 1403, the server determines the files that the reference object can access.

[0189] In a possible implementation, the process of the server determining the files that the reference object can access has been described in step 201 above and will not be elaborated here.

[0190] Step 1404, the server sends the file information of the files that the reference object can access to the file management client via the Hypertext Transfer Protocol.

[0191] Step 1405, the file management client sends a first protocol address fetch request to the server via the Hypertext Transfer Protocol.

[0192] Step 1406, the server sends the first protocol address of the server to the file management client via the Hypertext Transfer Protocol.

[0193] Step 1407, the file management client determines the interoperability information of the first protocol based on the first protocol address of the server.

[0194] In a possible implementation, the process of the file management client determining the interoperability information of the first protocol based on the first protocol address of the server has been described in step 202 above and will not be elaborated here.

[0195] Step 1408, when the file management client and the server can communicate via the first protocol, the file management client displays a first page, and the file information and the protocol information of the first protocol are displayed on the first page.

[0196] In a possible implementation, the process of the file management client displaying the first page has been described in step 203 above and will not be elaborated here.

[0197] Step 1409, in response to a file management operation on the first page, the file management client performs file management on the files stored in the server via the first protocol.

[0198] In a possible implementation, in response to a file management operation on the first page, the process of the file management client performing file management on the files stored in the server via the first protocol has been described in step 204 above and will not be elaborated here.

[0199] Figure 15 The following is a schematic structural diagram of a file management device provided by an embodiment of the present application. As Figure 15 shown, the device includes:

[0200] An obtaining module 1501, configured to obtain file information from the server in response to a login operation, where the file information indicates the files stored in the server;

[0201] A determining module 1502, configured to determine the interoperability information of the first protocol, where the interoperability information of the first protocol is used to indicate whether the file management client and the server can communicate via the first protocol;

[0202] A display module 1503, configured to display the file information and the protocol information of the first protocol on the first page based on the fact that the file management client and the server can communicate via the first protocol;

[0203] An execution module 1504, configured to perform file management on the files stored in the server via the first protocol in response to a file management operation on the first page.

[0204] In a possible implementation, the obtaining module 1501 is configured to send an obtaining request to the server in response to a login operation, where the obtaining request includes the object information of a reference object, and the reference object is the object that logs in to the file management client; and receive the file information returned by the server based on the obtaining request, where the file information is the information of the files that the reference object can access among the files stored in the server.

[0205] In a possible implementation, the obtaining module 1501 is configured to send an obtaining request to the server via the Hypertext Transfer Protocol in response to a login operation.

[0206] In a possible implementation, a determination module 1502 is configured to obtain a first protocol address of a server via the Hypertext Transfer Protocol. The first protocol address includes the Internet Protocol address of the server, a target port, and a directory path where files are stored in the server. The target port is used to support the first protocol.

[0207] When the Internet Protocol address of the server is reachable, the target port is open, and there is a directory path in the server, it is determined that the interoperability information of the first protocol is the first information, and the first information indicates that the file management client and the server can communicate via the first protocol.

[0208] When at least one of the conditions that the Internet Protocol address of the server is reachable, the target port is open, and there is a directory path in the server is not satisfied, it is determined that the interoperability information of the first protocol is the second information, and the second information indicates that the file management client and the server cannot communicate via the first protocol.

[0209] In a possible implementation, a display module 1503 is further configured to, in response to the protocol information of the first protocol being triggered, display a protocol switching interface. The protocol switching interface displays the protocol information of a second protocol and the interoperability information of the second protocol. The second protocol is a protocol different from the first protocol among the Network File System protocol and the Server Message Block protocol. The interoperability information of the second protocol is used to indicate whether the file management client and the server can communicate via the second protocol.

[0210] In response to the protocol information of the second protocol being triggered and the interoperability information of the second protocol indicating that the file management client and the server can communicate via the second protocol, the protocol information of the second protocol is displayed on the first page.

[0211] An execution module 1504 is further configured to, in response to a file management operation on the first page, perform file management on the files stored in the server via the second protocol.

[0212] In a possible implementation, a detection control for the second protocol is further displayed on the protocol switching interface. The detection control for the second protocol is used to detect the interoperability information of the second protocol.

[0213] The determination module 1502 is further configured to, in response to the detection control for the second protocol being triggered, determine the interoperability information of the second protocol.

[0214] The apparatus further includes:

[0215] An update module is configured to update the interoperability information of the second protocol displayed on the protocol switching interface when the determined interoperability information of the second protocol is inconsistent with the interoperability information of the second protocol displayed on the protocol switching interface.

[0216] In a possible implementation, the determination module 1502 is further configured to determine the interoperability information of a second protocol based on the fact that the file management client and the server cannot communicate through the first protocol. The second protocol is a protocol different from the first protocol among the network file system protocol and the server message block protocol. The interoperability information of the second protocol is used to indicate whether the file management client and the server can communicate through the second protocol.

[0217] The display module 1503 is further configured to display the file information and the protocol information of the second protocol in the first page based on the fact that the file management client and the server can communicate through the second protocol.

[0218] The execution module 1504 is further configured to perform file management on the files stored in the server through the second protocol in response to a file management operation in the first page.

[0219] In a possible implementation, the display module 1503 is further configured to display the file information and the protocol information of the hypertext transfer protocol in the first page based on the fact that the file management client and the server cannot communicate through the second protocol.

[0220] The execution module 1504 is further configured to perform file management on the files stored in the server through the hypertext transfer protocol in response to a file management operation in the first page.

[0221] In a possible implementation, the file management operation includes at least one of a file upload operation, a file download operation, a file deletion operation, and a file search operation.

[0222] In a possible implementation, the execution module 1504 is configured to perform file management on the files stored in the server through the first protocol in response to a file management operation in the first page and when the reference object has the permission corresponding to the file management operation. The reference object is the object that logs in to the file management client.

[0223] When the above device performs file management, it determines the interoperability information of the first protocol. When the interoperability information of the first protocol indicates that the file management client and the server can communicate through the first protocol, it performs file management on the files stored in the server through the first protocol. Since the first protocol is the network file system protocol or the server message block protocol, and the transmission speeds of the network file system protocol and the server message block protocol are relatively fast, when performing file management on the files stored in the server through the first protocol, the speed of file management can be improved, and thus the efficiency of file management can be improved.

[0224] It should be understood that when the above-provided device implements its functions, only the division of the above-mentioned functional modules is used for illustration. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device provided in the above embodiment and the method embodiment belong to the same concept. For the specific implementation process, please refer to the method embodiment and will not be elaborated here.

[0225] Figure 16 The block diagram of the terminal 1600 provided by an exemplary embodiment of the present application is shown. The terminal 1600 can be any electronic device product that can perform human-computer interaction with the user in one or more ways such as a keyboard, a touchpad, a remote control, voice interaction, or a handwriting device. For example, a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a tablet computer, a smart in-vehicle device, a smart TV, a smart speaker, a smart watch, etc.

[0226] Generally, the terminal 1600 includes a processor 1601 and a memory 1602.

[0227] The processor 1601 may include one or more processing cores, such as a 4-core processor or an 8-core processor. The processor 1601 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1601 may also include a main processor and a coprocessor. The main processor is a processor used to process data in the wake state, also known as the CPU (Central Processing Unit); the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 1601 may be integrated with a GPU (Graphics Processing Unit), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1601 may further include an AI (Artificial Intelligence) processor, and the AI processor is used to process computational operations related to machine learning.

[0228] The memory 1602 may include one or more computer-readable storage media, which may be non-transitory. The memory 1602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1602 is used to store at least one instruction for being executed by the processor 1601 to implement the file management method provided in the method embodiments of this application.

[0229] In some embodiments, the terminal 1600 may further optionally include: a peripheral device interface 1603 and at least one peripheral device. The processor 1601, the memory 1602, and the peripheral device interface 1603 may be connected through a bus or signal lines. Each peripheral device may be connected to the peripheral device interface 1603 through a bus, signal lines, or a circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 1604, a display screen 1605, a camera assembly 1606, an audio circuit 1607, and a power supply 1608.

[0230] The peripheral device interface 1603 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1601 and the memory 1602. In some embodiments, the processor 1601, the memory 1602, and the peripheral device interface 1603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1601, the memory 1602, and the peripheral device interface 1603 may be implemented on a separate chip or circuit board, and this embodiment does not limit this.

[0231] The radio frequency circuit 1604 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1604 communicates with a communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1604 converts an electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1604 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and so on. The radio frequency circuit 1604 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, generations of mobile communication networks (2G, 3G, 4G, and 5G), a wireless local area network, and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1604 may further include a circuit related to NFC (Near Field Communication), which is not limited in this application.

[0232] The display screen 1605 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1605 is a touch display screen, the display screen 1605 also has the ability to collect touch signals on or above the surface of the display screen 1605. The touch signal can be input to the processor 1601 as a control signal for processing. At this time, the display screen 1605 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 1605, which is set on the front panel of the terminal 1600; in other embodiments, there may be at least two display screens 1605, which are respectively set on different surfaces of the terminal 1600 or are in a foldable design; in other embodiments, the display screen 1605 may be a flexible display screen, which is set on a curved surface or a folding surface of the terminal 1600. Even, the display screen 1605 can be set into an irregular non-rectangular shape, that is, a special-shaped screen. The display screen 1605 can be prepared from materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0233] The camera assembly 1606 is used to collect images or videos. Optionally, the camera assembly 1606 includes a front camera and a rear camera. Generally, the front camera is disposed on the front panel of the terminal 1600, and the rear camera is disposed on the back of the terminal 1600. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth camera, a wide-angle camera, and a telephoto camera, so as to implement the background blurring function by fusing the main camera and the depth camera, implement panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions by fusing the main camera and the wide-angle camera. In some embodiments, the camera assembly 1606 may further include a flash. The flash may be a single-color temperature flash or a dual-color temperature flash. The dual-color temperature flash refers to the combination of a warm light flash and a cold light flash, and can be used for light compensation under different color temperatures.

[0234] The audio circuit 1607 may include a microphone and a speaker. The microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals and input them to the processor 1601 for processing, or input them to the radio frequency circuit 1604 to implement voice communication. For the purpose of stereo collection or noise reduction, there may be multiple microphones, which are respectively disposed at different parts of the terminal 1600. The microphone may also be an array microphone or an omnidirectional collection type microphone. The speaker is used to convert the electrical signal from the processor 1601 or the radio frequency circuit 1604 into sound waves. The speaker may be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for uses such as ranging. In some embodiments, the audio circuit 1607 may further include a headphone jack.

[0235] The power supply 1608 is used to supply power to each component in the terminal 1600. The power supply 1608 may be alternating current, direct current, a primary battery or a rechargeable battery. When the power supply 1608 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0236] In some embodiments, the terminal 1600 further includes one or more sensors 1609. The one or more sensors 1609 include but are not limited to: an acceleration sensor 1610, a gyroscope sensor 1611, a pressure sensor 1612, an optical sensor 1613, and a proximity sensor 1614.

[0237] The acceleration sensor 1610 can detect the magnitudes of accelerations on the three coordinate axes of the coordinate system established by the terminal 1600. For example, the acceleration sensor 1610 can be used to detect the components of the gravitational acceleration on the three coordinate axes. The processor 1601 can control the display screen 1605 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signals collected by the acceleration sensor 1610. The acceleration sensor 1610 can also be used for collecting game or user movement data.

[0238] The gyroscope sensor 1611 can detect the body orientation and rotation angle of the terminal 1600. The gyroscope sensor 1611 can cooperate with the acceleration sensor 1610 to collect the 3D actions of the user on the terminal 1600. Based on the data collected by the gyroscope sensor 1611, the processor 1601 can implement the following functions: motion sensing (such as changing the UI according to the user's tilting operation), image stabilization during shooting, game control, and inertial navigation.

[0239] The pressure sensor 1612 can be disposed on the side frame of the terminal 1600 and / or the lower layer of the display screen 1605. When the pressure sensor 1612 is disposed on the side frame of the terminal 1600, it can detect the holding signal of the user on the terminal 1600, and the processor 1601 can perform left / right hand recognition or quick operation according to the holding signal collected by the pressure sensor 1612. When the pressure sensor 1612 is disposed on the lower layer of the display screen 1605, the processor 1601 can control the operable controls on the UI interface according to the pressure operation of the user on the display screen 1605. The operable controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0240] The optical sensor 1613 is used to collect the ambient light intensity. In one embodiment, the processor 1601 can control the display brightness of the display screen 1605 according to the ambient light intensity collected by the optical sensor 1613. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1605 is increased; when the ambient light intensity is low, the display brightness of the display screen 1605 is decreased. In another embodiment, the processor 1601 can also dynamically adjust the shooting parameters of the camera module 1606 according to the ambient light intensity collected by the optical sensor 1613.

[0241] The proximity sensor 1614, also known as the distance sensor, is usually disposed on the front panel of the terminal 1600. The proximity sensor 1614 is used to collect the distance between the user and the front of the terminal 1600. In one embodiment, when the proximity sensor 1614 detects that the distance between the user and the front of the terminal 1600 is gradually decreasing, the processor 1601 controls the display screen 1605 to switch from the lit state to the off state; when the proximity sensor 1614 detects that the distance between the user and the front of the terminal 1600 is gradually increasing, the processor 1601 controls the display screen 1605 to switch from the off state to the lit state.

[0242] Those skilled in the art can understand that Figure 16 the structure shown in does not limit the terminal 1600, and may include more or fewer components than shown, or combine certain components, or adopt a different component arrangement.

[0243] Figure 17 FIG. is a schematic structural diagram of a server provided by an embodiment of the present application. The server 1700 may vary greatly due to different configurations or performances, and may include one or more processors (Central Processing Units, CPUs) 1701 and one or more memories 1702. Among them, at least one program code is stored in the one or more memories 1702, and the at least one program code is loaded and executed by the one or more processors 1701 to implement the file management method provided by each of the above method embodiments. Of course, the server 1700 may also have components such as a wired or wireless network interface, a keyboard, and an input / output interface for input / output. The server 1700 may also include other components for implementing the functions of the device, which will not be elaborated here.

[0244] In an exemplary embodiment, a computer-readable storage medium is further provided. At least one program code is stored in the storage medium, and the at least one program code is loaded and executed by a processor to enable a computer to implement any one of the above file management methods.

[0245] Optionally, the above computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0246] In an exemplary embodiment, a computer program or a computer program product is further provided. At least one computer instruction is stored in the computer program or the computer program product. The at least one computer instruction is loaded and executed by a processor to enable a computer to implement any one of the above file management methods.

[0247] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.), and signals involved in this application are all authorized by the user or fully authorized by all parties. The collection, use, and processing of relevant data need to comply with relevant laws, regulations, and standards in relevant countries and regions. For example, the object information involved in this application is obtained under sufficient authorization.

[0248] It should be understood that the term "a plurality of" mentioned herein refers to two or more. "And / or" describes the association relationship of associated objects and indicates that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.

[0249] The serial numbers of the embodiments of the present application above are only for description and do not represent the superiority or inferiority of the embodiments.

[0250] The above are only exemplary embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the principle of the present application shall be included in the protection scope of the present application.

Claims

1. A file management method, characterized in that, A file management client applied to a terminal, the terminal supporting a first protocol, the first protocol being a Network File System protocol or a Server Message Block protocol, the method comprising: In response to a login operation, obtaining file information from a server, the file information indicating files stored in the server; Determining interoperability information of the first protocol, the interoperability information of the first protocol being used to indicate whether the file management client and the server can communicate via the first protocol; Based on the file management client and the server being able to communicate via the first protocol, displaying the file information and the protocol information of the first protocol on a first page; In response to a file management operation on the first page, performing file management on the files stored in the server via the first protocol.

2. The method according to claim 1, characterized in that The obtaining file information from a server in response to a login operation includes: In response to a login operation, sending a fetch request to the server, the fetch request including object information of a reference object, the reference object being the object logging in to the file management client; Receiving the file information returned by the server based on the fetch request, the file information being information of files that the reference object can access among the files stored in the server.

3. The method according to claim 2, wherein The sending a fetch request to the server in response to a login operation includes: In response to a login operation, sending the fetch request to the server via the Hypertext Transfer Protocol.

4. The method according to any one of claims 1 to 3, characterized in that The determining interoperability information of the first protocol includes: Obtaining a first protocol address of the server via the Hypertext Transfer Protocol, the first protocol address including an Internet Protocol address of the server, a target port, and a directory path where files are stored in the server, the target port being used to support the first protocol; In the case where the Internet Protocol address of the server is reachable, the target port is open, and the directory path exists in the server, determining the interoperability information of the first protocol as first information, the first information indicating that the file management client and the server can communicate via the first protocol; In the case where at least one of the Internet Protocol address of the server being reachable, the target port being open, and the directory path existing in the server is not satisfied, determining the interoperability information of the first protocol as second information, the second information indicating that the file management client and the server cannot communicate via the first protocol.

5. The method according to any one of claims 1 to 3, characterized in that The method further includes: In response to the protocol information of the first protocol being triggered, displaying a protocol switching interface, the protocol switching interface displaying protocol information of a second protocol and interoperability information of the second protocol, the second protocol being a protocol different from the first protocol among the Network File System protocol and the Server Message Block protocol, the interoperability information of the second protocol being used to indicate whether the file management client and the server can communicate via the second protocol; In response to the triggering of the protocol information of the second protocol, and the interoperability information of the second protocol indicating that the file management client and the server can communicate through the second protocol, display the protocol information of the second protocol on the first page; In response to a file management operation on the first page, perform file management on the files stored in the server through the second protocol.

6. The method according to claim 5, wherein A detection control for the second protocol is further displayed in the protocol switching interface, and the detection control for the second protocol is used to detect the interoperability information of the second protocol; The method further includes: In response to the triggering of the detection control for the second protocol, determine the interoperability information of the second protocol; In the case where the determined interoperability information of the second protocol is inconsistent with the interoperability information of the second protocol displayed in the protocol switching interface, update the interoperability information of the second protocol displayed in the protocol switching interface.

7. The method according to any one of claims 1 to 3, characterized in that The method further includes: Based on the fact that the file management client and the server cannot communicate through the first protocol, determine the interoperability information of the second protocol, where the second protocol is a protocol different from the first protocol among the network file system protocol and the server message block protocol, and the interoperability information of the second protocol is used to indicate whether the file management client and the server can communicate through the second protocol; Based on the fact that the file management client and the server can communicate through the second protocol, display the file information and the protocol information of the second protocol on the first page; In response to a file management operation on the first page, perform file management on the files stored in the server through the second protocol.

8. The method according to claim 7, characterized in that, The method further includes: Based on the fact that the file management client and the server cannot communicate through the second protocol, display the file information and the protocol information of the hypertext transfer protocol on the first page; In response to a file management operation on the first page, perform file management on the files stored in the server through the hypertext transfer protocol.

9. The method according to any one of claims 1 to 3, characterized in that The file management operation includes at least one of a file upload operation, a file download operation, a file deletion operation, and a file search operation.

10. The method according to any one of claims 1 to 3, characterized in that The performing file management on the files stored in the server through the first protocol in response to a file management operation on the first page includes: In response to a file management operation on the first page, and when the reference object has the permission corresponding to the file management operation, perform file management on the files stored in the server through the first protocol, where the reference object is the object logged in to the file management client.

11. A file management device, characterized in that, Applied to a file management client on a terminal, the terminal supports a first protocol, and the first protocol is a network file system protocol or a server message block protocol. The device includes: An acquisition module, configured to obtain file information from a server in response to a login operation, where the file information indicates the files stored in the server; A determination module, configured to determine the interworking information of the first protocol, where the interworking information of the first protocol is used to indicate whether the file management client and the server can communicate through the first protocol; A display module, configured to display the file information and the protocol information of the first protocol on a first page based on the fact that the file management client and the server can communicate through the first protocol; An execution module, configured to perform file management on the files stored in the server through the first protocol in response to a file management operation on the first page.

12. A terminal, characterized in that, The terminal includes a processor and a memory, and at least one program code is stored in the memory and is loaded and executed by the processor so that the terminal implements the file management method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that, At least one program code is stored in the computer-readable storage medium and is loaded and executed by a processor so that a terminal implements the file management method according to any one of claims 1 to 10.

14. A computer program product, characterized in that, At least one computer instruction is stored in the computer program product and is loaded and executed by a processor so that a terminal implements the file management method according to any one of claims 1 to 10.