WO2018000785A1 - 远程文件访问方法、服务器、客户端与系统 - Google Patents

远程文件访问方法、服务器、客户端与系统 Download PDF

Info

Publication number
WO2018000785A1
WO2018000785A1 PCT/CN2016/113327 CN2016113327W WO2018000785A1 WO 2018000785 A1 WO2018000785 A1 WO 2018000785A1 CN 2016113327 W CN2016113327 W CN 2016113327W WO 2018000785 A1 WO2018000785 A1 WO 2018000785A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
user
server
matching code
client
Prior art date
Application number
PCT/CN2016/113327
Other languages
English (en)
French (fr)
Inventor
郭庆伟
Original Assignee
广州视睿电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州视睿电子科技有限公司 filed Critical 广州视睿电子科技有限公司
Publication of WO2018000785A1 publication Critical patent/WO2018000785A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a remote file access method, a server, a client, and a system.
  • the user After logging in to client A, the user uploads the edited file to the server through client A. After the user wants to access the file just uploaded to the server in client B, the user can log in to the client. End B, accessing the corresponding file in the server through client B for access. It can be seen that users who want to access files on the server must log in to the client first.
  • There are two ways to log in One is to log in by manually entering an account and password, and the other is to log in through a specific physical device such as a U disk lock. The principle of the U disk lock is to pre-write the account number and password in the U disk lock. After inserting the U disk lock, the account and password will be read from it instead of manual input.
  • the invention provides a remote file access method, a server, a client and a system, which can make the operation more convenient for the user to access the remote file and improve the access efficiency.
  • a first embodiment of the present invention provides a remote file access method, including:
  • the remote file access method further includes:
  • the file configuration table further records an index number of each file
  • the file content of the file to be searched is sent to the client for the user to perform the access operation, which specifically includes:
  • the file content of the found file is sent to the client for the user to perform an access operation.
  • the method further includes:
  • a user file comparison table on the mobile device; wherein the user file comparison table records file names of all files stored by the user in the file library and corresponding file matching codes.
  • the user file comparison table is stored by the mobile device carried by the user, without the user remembering the file matching code of each file, and in order to allow the user to accurately obtain the required file content.
  • the remote file access method further includes:
  • the file name of the newly uploaded file of the user and the corresponding file matching code are displayed at the forefront of the user file comparison table.
  • the mobile device is a mobile phone corresponding to the mobile phone number bound to the user.
  • the method further includes:
  • the file stored on the file library is updated according to the modified content.
  • a second embodiment of the present invention provides a server, including:
  • a matching code obtaining module configured to acquire a file matching code sent by the client in a state where the user is not logged in;
  • a file search module configured to search, in the file library, a file having a file matching code sent by the client; wherein the files stored in the file library respectively have a file matching code, and each file is configured File matching codes are not the same;
  • the file content sending module is configured to send the file content of the found file to the client for the user to perform an access operation.
  • the server further comprises:
  • a file obtaining module configured to acquire a file uploaded by the client in a state where the user has logged in, and store the file in the file library
  • a matching code configuration module configured to generate a file matching code for the newly uploaded file of the user, and update the file configuration table, where the file configuration table is used to record the file name and each file of each file in the file library. Have a file match code.
  • the file configuration table further records an index number of each file
  • the file search module specifically includes:
  • An index number searching unit configured to search, in the file configuration table, an index number of a file corresponding to the file matching code sent by the client;
  • a file search unit configured to search for a corresponding file in the file library according to the found index number.
  • the file content sending module specifically includes:
  • thumbnail information sending unit configured to send the abbreviated information of the found file to the client
  • a file content sending unit configured to: when obtaining the confirmation message of the thumbnail information by the client, send the file content of the found file to the client for the user to perform an access operation.
  • the server further comprises:
  • a matching code sending module configured to send the file name of the file and the corresponding file matching code to the mobile device bound to the user after the file matching code newly generated by the user is generated, so that the mobile device is receiving Updating a user file comparison table stored on the mobile device after the file name of the file and the corresponding file matching code; wherein the user file comparison table records all files stored by the user in the file library File name and corresponding file matching code.
  • the server further comprises:
  • a deletion instruction acquisition module configured to acquire a deletion instruction of the specified file sent by the client after the user logs in
  • a file deletion module configured to delete the specified file according to the deleting instruction, and update the file configuration table
  • the synchronization deletion notification module is configured to send the file name of the deleted file and the corresponding file matching code to the mobile device, and notify the mobile device to perform synchronous deletion on the user file comparison table.
  • the file name of the newly uploaded file of the user and the corresponding file matching code are displayed in the pair of user files. Look at the front of the table.
  • the mobile device is a mobile phone corresponding to the mobile phone number bound to the user.
  • the server further comprises:
  • a modified content obtaining module configured to acquire, after the file content of the file to be found is sent to the client, the modified content sent by the client to the file;
  • a file modification module configured to update the file stored on the file library according to the modified content.
  • a third embodiment of the present invention further provides a remote file access method, including:
  • the remote file access method further includes:
  • the file configuration table further records an index number of each file
  • the file matching code input by the user is sent to the server, so that the server searches for a file with the file matching code input by the user in the file library, specifically:
  • the method further includes:
  • the remote file access method further includes:
  • the method further includes:
  • the modified content of the file is sent to the server, so that the server updates the file stored on the file library according to the update.
  • the detecting whether the user has modified the file includes:
  • a fourth embodiment of the present invention further provides a client, including:
  • a matching code input module configured to acquire a file matching code input by the user when the user is not logged in
  • a matching code sending module configured to send a file matching code input by the user to the server, so that the server searches the file library for a file having the file matching code input by the user; wherein the file is stored in the file library
  • Each file has a file matching code, and each file has a different file matching code
  • the file content obtaining module is configured to obtain file content of the file found by the server for the user to perform an access operation.
  • the client further includes:
  • a file uploading module configured to upload a file of the user to the file library of the server after the user logs in, so that the server generates a file matching code for the newly uploaded file of the user, and updates the file configuration table; wherein the file is The configuration table is used to record the file name of each file in the file library and the file matching code that each file has.
  • the file configuration table further records an index number of each file
  • the matching code sending module is specifically configured to:
  • the client further includes:
  • thumbnail information obtaining module configured to acquire, after obtaining the file content of the file found by the server, the abbreviated information about the found file sent by the server;
  • the confirmation message sending module is configured to send the confirmation message of the user to the thumbnail information to the server, so that the server returns the file content of the found file.
  • the client further includes:
  • the deletion instruction sending module is configured to send a deletion instruction to the specified file of the user to the server after the user logs in, so that the server deletes the specified file according to the deletion instruction, and updates the file configuration table.
  • the client further includes:
  • Modifying a detection module configured to detect whether the user has modified the file
  • a modified content sending module configured to: when the user detects that the file is modified, send the modified content of the file to the server, so that the server is stored on the file library according to the update.
  • the file
  • the modification detection module specifically includes:
  • An MD5 calculation unit for calculating an MD5 value of a file content of a file cached locally and comparing it with an MD5 value of a file content of the same file stored on the server;
  • the determining unit determines that the file is modified by the user when the MD5 value of the file content of the cached local file and the same file stored on the server is different.
  • a fifth embodiment of the present invention provides a remote file access system including the server of the second embodiment described above and the client described in the fourth aspect.
  • the present invention provides a remote file access method and a server for executing the method, the method includes: acquiring a file matching code sent by a client in a state where the user is not logged in; The file is searched for in the library with the file matching code sent by the client; the file content of the found file is sent to the client for the user to perform the access operation.
  • the files in the file library of the server respectively have a file matching code, and the user can send the file matching code of the file to be obtained to the server through the client without logging in, and the server searches for the file according to the file matching code. The file that needs to be obtained.
  • the present invention provides another remote file access method and client that executes the method, as well as a remote file access system including the server and client.
  • FIG. 1 is a schematic flowchart of a remote file access method according to a first aspect of the first embodiment of the present invention
  • step S12 in FIG. 1 is a schematic flow chart of step S12 in FIG. 1;
  • step S13 in FIG. 1 is a schematic flow chart of step S13 in FIG. 1;
  • FIG. 4 is a structural block diagram of a server 1 according to a second aspect of the first embodiment of the present invention.
  • FIG. 5 is a structural block diagram of the file lookup module 12 of FIG. 4;
  • FIG. 6 is a structural block diagram of the file content transmitting module 13 of FIG. 4;
  • FIG. 7 is a schematic flowchart diagram of a remote file access method according to a first aspect of the second embodiment of the present invention.
  • FIG. 8 is a structural block diagram of a client provided by the first aspect of the second embodiment of the present invention.
  • FIG. 9 is a structural block diagram of a remote file access system according to a third embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a remote file access method provided by a first aspect of a first embodiment of the present invention. The method is performed by a server, and includes the following steps:
  • S11 Obtain a file matching code sent by the client in a state where the user is not logged in;
  • S12 Searching, in a file library, a file having a file matching code sent by the client; wherein, the files stored in the file library respectively have a file matching code, and each file has a file matching code. the same;
  • the server matches the code according to the file from the file library. Find the file you need to get. That is, the user can access the file of the server by inputting a file matching code by means of no-login, so that the user can operate the remote file more easily and improve the access efficiency.
  • the remote file access method further includes:
  • the mode of the user login may be a combination of an account and a password, or a specific physical device such as a U disk lock.
  • the generated file matching code can be generated in a random manner. In order to ensure that each file has a different file matching code, it is necessary to generate a file matching code that is not recorded in the file configuration table.
  • the file configuration table further records an index number of each file
  • step S12 in FIG. 1 it is a schematic flowchart of step S12 in FIG. 1, and the S12 specifically includes:
  • the index number is equivalent to the ID of the file as a unique identifier of the file. Since there may be files with the same file name, such as different file types, files with the same file name but different file types may be found during the search, and the index number is matched with the file matching code to ensure that the search is found.
  • the file is the file that the user needs.
  • step S13 specifically includes:
  • the server may first send the abbreviated information of the found file to the client, and then return the complete file content after the user confirms.
  • the thumbnail information may be part of the content of the file, such as a summary or a thumbnail.
  • the method further includes:
  • a user file comparison table on the mobile device; wherein the user file comparison table records file names of all files stored by the user in the file library and corresponding file matching codes.
  • the user may upload more files to the server, in order not to remember the file matching code of each file, and to enable the user to accurately obtain the required file content, the user may be stored by the mobile device carried by the user.
  • the file comparison table the user can first view the user file comparison table when accessing the specified file, find the required file matching code and input it into the client.
  • the mobile device is preferably a mobile phone corresponding to the mobile phone number bound to the user.
  • mobile phones are much less likely to be carried than physical devices such as U disk locks.
  • the remote file access method further includes:
  • the file configuration table needs to be updated, the corresponding index number and the file matching code are deleted, and the mobile device is also notified to perform synchronous deletion on the file comparison table. To ensure that the information recorded in the file configuration table and the file comparison table is up-to-date.
  • the file name of the newly uploaded file of the user and the corresponding file matching code are displayed at the forefront of the user file comparison table. That is, the file name displayed by the user file comparison table and the corresponding file matching code are placed at the forefront according to the order in which the user uploads, which is convenient for the user to view.
  • the method further includes:
  • the file stored on the file library is updated according to the modified content.
  • the modified content includes the added content and the deleted content. Therefore, in the case where the file content is acquired by inputting the file matching code, the user can not only view the file content but also modify it, and merge the modified content with the file content of the server to update the file.
  • the second aspect of the first embodiment of the present invention also provides a server.
  • FIG. 4 it is a structural block diagram of the server 1 provided by the second aspect of the first embodiment of the present invention, including:
  • the matching code obtaining module 11 is configured to obtain a file matching code sent by the client in a state that the user is not logged in;
  • the file search module 12 is configured to search, in the file library, the file having the file matching code sent by the client; wherein the files stored in the file library respectively have a file matching code, and each file is configured The file matching codes are different;
  • the file content sending module 13 is configured to send the file content of the found file to the client for the user to perform an access operation.
  • the server further includes:
  • a file obtaining module configured to acquire a file uploaded by the client in a state where the user has logged in, and store the file in the file library
  • a matching code configuration module configured to generate a file matching code for the newly uploaded file of the user, and update the file configuration table, where the file configuration table is used to record the file name and each file of each file in the file library. Have a file match code.
  • the file configuration table further records an index number of each file
  • the file search module 12 includes:
  • the index number searching unit 121 is configured to search, in the file configuration table, an index number of a file corresponding to the file matching code sent by the client;
  • the file searching unit 122 is configured to search for a corresponding file in the file library according to the found index number.
  • the file content sending module 13 specifically includes:
  • the abbreviated information sending unit 131 is configured to send the abbreviated information of the found file to the client;
  • the file content sending unit 132 is configured to: when obtaining the confirmation message of the thumbnail information by the client, send the file content of the found file to the client for the user to perform an access operation.
  • the server further includes:
  • a matching code sending module configured to: after generating a newly uploaded file matching code, the file name and corresponding file of the file
  • the file matching code is sent to the mobile device bound to the user, so that the mobile device updates the user file comparison table stored on the mobile device after receiving the file name of the file and the corresponding file matching code.
  • the user file comparison table records file names of all files stored by the user in the file library and corresponding file matching codes.
  • the server further includes:
  • a deletion instruction acquisition module configured to acquire a deletion instruction of the specified file sent by the client after the user logs in
  • a file deletion module configured to delete the specified file according to the deleting instruction, and update the file configuration table
  • the synchronization deletion notification module is configured to send the file name of the deleted file and the corresponding file matching code to the mobile device, and notify the mobile device to perform synchronous deletion on the user file comparison table.
  • the file name of the newly uploaded file of the user and the corresponding file matching code are displayed at the forefront of the user file comparison table.
  • the mobile device is a mobile phone corresponding to a mobile phone number bound to the user.
  • the server further includes:
  • a modified content obtaining module configured to acquire, after the file content of the file to be found is sent to the client, the modified content sent by the client to the file;
  • a file modification module configured to update the file stored on the file library according to the modified content.
  • server provided by the second aspect of the first embodiment of the present invention is configured to perform the process steps of the remote file access method provided by the first aspect of the first embodiment of the present invention.
  • the effects are one-to-one correspondence and will not be described again.
  • FIG. 7 is a schematic flowchart diagram of a remote file access method according to a first aspect of the second embodiment of the present invention, including:
  • the server Since the files in the file library of the server respectively have a file matching code, and the user can send the file matching code of the file to be obtained to the server through the client without logging in, the server matches the code according to the file from the file library. Find the file you need to get. That is, the user can enter a file matching code by means of no login. The server's files can be accessed, making it easier for users to access remote files and improve access efficiency.
  • the remote file access method further includes:
  • the mode of the user login may be a combination of an account and a password, or a specific physical device such as a U disk lock.
  • the generated file matching code can be generated in a random manner. In order to ensure that each file has a different file matching code, it is necessary to generate a file matching code that is not recorded in the file configuration table.
  • the file configuration table further records an index number of each file
  • the file matching code input by the user is sent to the server, so that the server searches for a file with the file matching code input by the user in the file library, specifically:
  • the index number is equivalent to the ID of the file as a unique identifier of the file. Since there may be files with the same file name, such as different file types, files with the same file name but different file types may be found during the search, and the index number is matched with the file matching code to ensure that the search is found.
  • the file is the file that the user needs.
  • the method before the obtaining the file content of the file found by the server, the method further includes:
  • the server may first send the abbreviated information of the found file to the client, and then return the complete file content after the user confirms.
  • the thumbnail information may be part of the content of the file, such as a summary or a thumbnail.
  • the remote file access method further includes:
  • the file configuration table needs to be updated, and the corresponding cable is deleted.
  • the quotation marks and the file matching code are used to ensure that the information recorded in the file configuration table is up to date.
  • the method further includes:
  • the modified content of the file is sent to the server, so that the server updates the file stored on the file library according to the update.
  • the modified content includes the added content and the deleted content. Therefore, in the case where the file content is acquired by inputting the file matching code, the user can not only view the file content but also modify it, and merge the modified content with the file content of the server to update the file.
  • the detecting whether the user has modified the file includes:
  • FIG. 8 is a structural block diagram of a client provided by a second aspect of the first embodiment of the present invention, including:
  • a matching code input module 21 configured to acquire a file matching code input by the user in a state that the user is not logged in;
  • a matching code sending module 22 configured to send a file matching code input by the user to the server, so that the server searches the file library for a file having the file matching code input by the user; wherein the file is stored in the file library
  • Each file has a file matching code, and each file has a different file matching code
  • the file content obtaining module 23 is configured to obtain file content of the file found by the server for the user to perform an access operation.
  • the client further includes:
  • a file uploading module configured to upload a file of the user to the file library of the server after the user logs in, so that the server generates a file matching code for the newly uploaded file of the user, and updates the file configuration table; wherein the file is The configuration table is used to record the file name of each file in the file library and the file matching code that each file has.
  • the file configuration table further records an index number of each file
  • the matching code sending module 22 is specifically configured to:
  • the client further includes:
  • thumbnail information obtaining module configured to acquire, after obtaining the file content of the file found by the server, the abbreviated information about the found file sent by the server;
  • the confirmation message sending module is configured to send the confirmation message of the user to the thumbnail information to the server, so that the server returns the file content of the found file.
  • the client further includes:
  • the deletion instruction sending module is configured to send a deletion instruction to the specified file of the user to the server after the user logs in, so that the server deletes the specified file according to the deletion instruction, and updates the file configuration table.
  • the client further includes:
  • Modifying a detection module configured to detect whether the user has modified the file
  • a modified content sending module configured to: when the user detects that the file is modified, send the modified content of the file to the server, so that the server is stored on the file library according to the update.
  • the file
  • the modification detection module specifically includes:
  • An MD5 calculation unit for calculating an MD5 value of a file content of a file cached locally and comparing it with an MD5 value of a file content of the same file stored on the server;
  • the determining unit determines that the file is modified by the user when the MD5 value of the file content of the cached local file and the same file stored on the server is different.
  • server provided by the second aspect of the second embodiment of the present invention is configured to perform the process steps of the remote file access method provided by the first aspect of the second embodiment of the present invention.
  • the effects are one-to-one correspondence and will not be described again.
  • the third embodiment of the present invention further provides a remote file access system, including the server 1 provided by the second aspect of the first embodiment and the client 2 provided by the second aspect of the second embodiment.
  • a remote file access system including the server 1 provided by the second aspect of the first embodiment and the client 2 provided by the second aspect of the second embodiment.
  • FIG. 9 it is a structural block diagram of a remote file access system according to a third embodiment of the present invention.
  • Step 1 The user registers for the first time and binds the mobile phone number. This phone number is used to receive file matching codes and file names in the future.
  • Step 2 The user logs in to his account at the preparation side.
  • Step 3 The user makes the courseware on the preparation side.
  • Step 4 After the user has created the courseware, save the courseware to the server.
  • Step 5 The server randomly generates a file matching code for the courseware, and establishes a mapping of the matching code between the file and the file. Shooting relationship.
  • Step 6 The server sends the generated file matching code and the courseware name to the user's mobile phone number.
  • the user binds the mobile phone number when registering, and logs in the account when making the courseware on the preparation side, so the file matching code can be accurately sent to the user's mobile phone.
  • Step 7 The user is ready to open the courseware at the lecture end.
  • Step 8 The user inputs a file matching code on the teaching end (the file matching code can be obtained from the mobile phone, and the teaching end uses the file matching code to find a specific courseware from the file configuration table in the server, and then opens the courseware on the teaching end.
  • the file matching code can be obtained from the mobile phone, and the teaching end uses the file matching code to find a specific courseware from the file configuration table in the server, and then opens the courseware on the teaching end.
  • Step 9 The user teaches at the lecture end.
  • Step 10 The user withdraws from the lecture at the lecture end.
  • Step 11 In step 9, if the user modifies the content of the courseware, in step 10, the teaching end detects whether the MD5 of the courseware content has changed, and if the change occurs, the changed courseware content is synchronously saved to the server.
  • the file configuration table does not change, and the courseware can be opened the next time the file matching code is used.
  • the first embodiment of the present invention provides a remote file access method and a server for executing the method, and the method includes: acquiring a file matching sent by a client in a state where the user is not logged in. a file; searching a file library for a file having a file matching code sent by the client; and sending the file content of the found file to the client for the user to perform an access operation.
  • the files in the file library of the server respectively have a file matching code, and the user can send the file matching code of the file to be obtained to the server through the client without logging in, and the server searches for the file according to the file matching code. The file that needs to be obtained.
  • a second embodiment of the present invention provides a remote file access method and a client for executing the method.
  • the third embodiment of the present invention provides a remote file access system including the server and the client.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种远程文件访问方法与执行该方法的服务器,方法包括获取客户端在用户未登录的状态下发送的文件匹配码;在文件库中查找具有所述客户端所发送的文件匹配码的文件;将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。相应的本发明还提供另一种远程文件访问方法与执行该方法的客户端,以及包括所述服务器和客户端的远程文件访问系统。通过本发明能够使得用户在访问远程文件时操作更加简便,提高访问的效率。

Description

远程文件访问方法、服务器、客户端与系统 技术领域
本发明涉及计算机技术领域,尤其涉及一种远程文件访问方法、服务器、客户端与系统。
背景技术
随着互联网技术的迅速发展,人们可以通过服务器来存储自己的一些资源,减少客户端存储的压力,并且可以通过不同的客户端进行访问,大大减少了访问资源时的空间限制,使得在访问资源时更加便利。
例如,用户在登录到客户端A后,通过客户端A将编辑好的文件上传到服务器中,之后用户想要在客户端B中对刚刚上传到服务器的文件进行访问,则用户可以登录到客户端B,通过客户端B获取服务器中的相应文件进行访问。可见,用户想要访问服务器中的文件就必须要先登录到客户端。登录的方式一般有两种,一是通过人工输入账号和密码进行登录,二是通过特定的物理设备如U盘锁进行登录。U盘锁的原理是将账号和密码预先写在了U盘锁里,插入U盘锁后会从中读取账号和密码代替手工输入。
但是,通过人工输入账号和密码进行登录,这个过程比较繁琐,并且用户需要同时输入账号和密码导致很容易出错;U盘锁等物理设备存在容易忘记携带的问题。因此,无论是哪一种方式,在需要访问服务器上的文件时都是很不便利,效率很低的。
发明内容
本发明提出一种远程文件访问方法、服务器、客户端与系统,能够使得用户在访问远程文件时操作更加简便,提高访问的效率。
本发明的第一实施方式提供一种远程文件访问方法,包括:
获取客户端在用户未登录的状态下发送的文件匹配码;
在文件库中查找具有所述客户端所发送的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件具有的文件匹配码均不相同;
将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。
作为更优选地,所述远程文件访问方法还包括:
获取客户端在用户已登录的状态下上传的文件并存储到文件库中;
为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于 记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。
作为更优选地,所述文件配置表中还记载了每个文件的索引号;
所述在文件库中查找具有所述客户端所发送的文件匹配码的文件,具体包括:
在所述文件配置表中查找所述客户端所发送的文件匹配码对应的文件的索引号;
根据查找到的索引号在所述文件库中查找相应的文件。
作为更优选地,所述将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作,具体包括:
将查找到的文件的缩略信息发送给所述客户端;
在获取到所述客户端对所述缩略信息的确认消息时,将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。
作为更优选地,在所述生成用户新上传的文件的文件匹配码,并更新文件配置表之后还包括:
将用户新上传的文件的文件名及对应的文件匹配码发送给与所述用户绑定的移动设备,使得所述移动设备在接收到所述文件的文件名和对应的文件匹配码之后,更新存储在所述移动设备上的用户文件对照表;其中,所述用户文件对照表记载了所述用户存储在所述文件库的所有文件的文件名及对应的文件匹配码。
通过用户随身携带的移动设备来存储所述用户文件对照表,不用用户记住每个文件的文件匹配码,以及为了让用户准确无误地获取需要的文件内容。
作为更优选地,所述远程文件访问方法还包括:
获取所述客户端在用户登录后发送的对用户的指定文件的删除指令;
根据所述删除指令删除所述指定文件,并更新所述文件配置表;
将被删除了的文件的文件名及对应的文件匹配码发送给所述移动设备,通知所述移动设备对所述用户文件对照表进行同步删除的操作。
作为更优选地,用户新上传的文件的文件名及对应的文件匹配码显示在所述用户文件对照表的最前端。
作为更优选地,所述移动设备为与所述用户绑定的手机号码所对应的手机。
作为更优选地,在所述将查找到的文件的文件内容发送给所述客户端之后,还包括:
获取所述客户端发送的对所述文件的修改内容;
根据所述修改内容更新存储在所述文件库上的所述文件。
本发明的第二实施方式提供一种服务器,包括:
匹配码获取模块,用于获取客户端在用户未登录的状态下发送的文件匹配码;
文件查找模块,用于在文件库中查找具有所述客户端所发送的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件所配置的文件匹配码均不相同;
文件内容发送模块,用于将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。
作为更优选地,所述服务器还包括:
文件获取模块,用于获取客户端在用户已登录的状态下上传的文件并存储到文件库中;
匹配码配置模块,用于为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。
作为更优选地,所述文件配置表中还记载了每个文件的索引号;
所述文件查找模块具体包括:
索引号查找单元,用于在所述文件配置表中查找所述客户端所发送的文件匹配码对应的文件的索引号;
文件查找单元,用于根据查找到的索引号在所述文件库中查找相应的文件。
作为更优选地,所述文件内容发送模块具体包括:
缩略信息发送单元,用于将查找到的文件的缩略信息发送给所述客户端;
文件内容发送单元,用于在获取到所述客户端对所述缩略信息的确认消息时,将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。
作为更优选地,所述服务器还包括:
匹配码发送模块,用于在生成用户新上传的文件匹配码后,将所述文件的文件名及对应的文件匹配码发送给与所述用户绑定的移动设备,使得所述移动设备在接收到所述文件的文件名和对应的文件匹配码之后,更新存储在所述移动设备上的用户文件对照表;其中,所述用户文件对照表记载了所述用户存储在所述文件库的所有文件的文件名及对应的文件匹配码。
作为更优选地,所述服务器还包括:
删除指令获取模块,用于获取所述客户端在用户登录后发送的对用户的指定文件的删除指令;
文件删除模块,用于根据所述删除指令删除所述指定文件,并更新所述文件配置表;
同步删除通知模块,用于将被删除了的文件的文件名及对应的文件匹配码发送给所述移动设备,通知所述移动设备对所述用户文件对照表进行同步删除的操作。
作为更优选地,用户新上传的文件的文件名及对应的文件匹配码显示在所述用户文件对 照表的最前端。
作为更优选地,所述移动设备为与所述用户绑定的手机号码所对应的手机。
作为更优选地,所述服务器还包括:
修改内容获取模块,用于在所述将查找到的文件的文件内容发送给所述客户端之后获取所述客户端发送的对所述文件的修改内容;
文件修改模块,用于根据所述修改内容更新存储在所述文件库上的所述文件。
本发明的第三实施方式还提供一种远程文件访问方法,包括:
在用户未登录的状态下获取用户输入的文件匹配码;
将用户输入的文件匹配码发送给服务器,以使所述服务器在文件库中查找具有所述用户输入的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件具有的文件匹配码均不相同;
获取所述服务器查找到的文件的文件内容以供用户进行访问操作。
作为更优选地,所述远程文件访问方法还包括:
在用户登录后将用户的文件上传到所述服务器的文件库,以使所述服务器为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。
作为更优选地,所述文件配置表中还记载了每个文件的索引号;
所述将用户输入的文件匹配码发送给服务器,以使所述服务器在文件库中查找具有所述用户输入的文件匹配码的文件,具体为:
将所述用户输入的文件匹配码发送给服务器,以使所述服务器在所述文件配置表中查找所述用户输入的文件匹配码对应的文件的索引号,并根据查找到的索引号在所述文件库中查找相应的文件。
作为更优选地,在所述获取所述服务器查找到的文件的文件内容之前,还包括:
获取所述服务器发送的关于查找到的文件的缩略信息;
将所述用户对所述缩略信息的确认消息发送给所述服务器,以使所述服务器返回查找到的文件的文件内容。
作为更优选地,所述远程文件访问方法还包括:
在用户登录后向服务器发送对所述用户的指定文件的删除指令,以使所述服务器根据所述删除指令删除所述指定文件,并更新所述文件配置表。
作为更优选地,在所述获取所述服务器查找到的文件的文件内容之后,还包括:
检测所述用户是否对所述文件进行了修改;
当检测到所述用户对所述文件进行了修改时,将对所述文件的修改内容发送给所述服务器,以使所述服务器根据更新存储在所述文件库上的所述文件。
作为更优选地,所述检测所述用户是否对所述文件进行了修改,具体包括:
计算缓存在本地的文件的文件内容的MD5值,并与存储在服务器上的相同文件的文件内容的MD5值进行对比;
当两者不相同时,判定所述用户对所述文件进行了修改。
本发明的第四实施方式还提供一种客户端,包括:
匹配码输入模块,用于在用户未登录的状态下获取用户输入的文件匹配码;
匹配码发送模块,用于将用户输入的文件匹配码发送给服务器,以使所述服务器在文件库中查找具有所述用户输入的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件具有的文件匹配码均不相同;
文件内容获取模块,用于获取所述服务器查找到的文件的文件内容以供用户进行访问操作。
作为更优选地,所述客户端还包括:
文件上传模块,用于在用户登录后将用户的文件上传到所述服务器的文件库,以使所述服务器为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。
作为更优选地,所述文件配置表中还记载了每个文件的索引号;
所述匹配码发送模块具体用于:
将所述用户输入的文件匹配码发送给服务器,以使所述服务器在所述文件配置表中查找所述用户输入的文件匹配码对应的文件的索引号,并根据查找到的索引号在所述文件库中查找相应的文件。
作为更优选地,所述客户端还包括:
缩略信息获取模块,用于在所述获取所述服务器查找到的文件的文件内容之前,获取所述服务器发送的关于查找到的文件的缩略信息;
确认消息发送模块,用于将所述用户对所述缩略信息的确认消息发送给所述服务器,以使所述服务器返回查找到的文件的文件内容。
作为更优选地,所述客户端还包括:
删除指令发送模块,用于在用户登录后向服务器发送对所述用户的指定文件的删除指令,以使所述服务器根据所述删除指令删除所述指定文件,并更新所述文件配置表。
作为更优选地,所述客户端还包括:
修改检测模块,用于检测所述用户是否对所述文件进行了修改;
修改内容发送模块,用于当检测到所述用户对所述文件进行了修改时,将对所述文件的修改内容发送给所述服务器,以使所述服务器根据更新存储在所述文件库上的所述文件。
作为更优选地,所述修改检测模块具体包括:
MD5计算单元,用于计算缓存在本地的文件的文件内容的MD5值,并与存储在服务器上的相同文件的文件内容的MD5值进行对比;
判定单元,用于缓存在本地的文件与存储在服务器上的相同的文件两者的文件内容的MD5值不相同时,判定所述用户对所述文件进行了修改。
本发明的第五实施方式提供一种远程文件访问系统,包括上述第二实施方式的服务器以及上述第四方式所述的客户端。
相比于现有技术,本发明的有益效果在于:本发明提供一种远程文件访问方法与执行该方法的服务器,方法包括获取客户端在用户未登录的状态下发送的文件匹配码;在文件库中查找具有所述客户端所发送的文件匹配码的文件;将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。服务器的文件库中的文件分别具有一个文件匹配码,用户可以在未登陆的情况下,通过客户端向服务器发送需要获取的文件的文件匹配码,服务器根据所述文件匹配码从文件库中查找所述需要获取的文件。即用户可以通过免登录的方式通过输入一个文件匹配码即可对服务器的文件进行访问,使得用户在访问远程文件时操作更加简便,提高访问的效率。相应的本发明提供另一种远程文件访问方法与执行该方法的客户端,以及包括所述服务器和客户端的远程文件访问系统。
附图说明
图1是本发明第一实施例的第一方面提供的远程文件访问方法的流程示意图;
图2是图1中的步骤S12的流程示意图;
图3是图1中的步骤S13的流程示意图;
图4是本发明第一实施例的第二方面提供的服务器1的结构框图;
图5是图4中的文件查找模块12的结构框图;
图6是图4中的文件内容发送模块13的结构框图;
图7是本发明第二实施例的第一方面提供的远程文件访问方法的流程示意图;
图8是本发明第二实施例的第一方面提供的客户端的结构框图;
图9是本发明第三实施例提供的远程文件访问系统的结构框图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
参见图1,是本发明第一实施例的第一方面提供的远程文件访问方法的流程示意图,该方法通过服务器执行,包括以下步骤:
S11,获取客户端在用户未登录的状态下发送的文件匹配码;
S12,在文件库中查找具有所述客户端所发送的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件具有的文件匹配码均不相同;
S13,将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。
由于服务器的文件库中的文件分别具有一个文件匹配码,并且用户可以在未登陆的情况下,通过客户端向服务器发送需要获取的文件的文件匹配码,服务器根据所述文件匹配码从文件库中查找所述需要获取的文件。即用户可以通过免登录的方式通过输入一个文件匹配码即可对服务器的文件进行访问,使得用户在访问远程文件时操作更加简便,提高访问的效率。
作为对本实施例的第一方面的进一步改进,所述远程文件访问方法还包括:
获取客户端在用户已登录的状态下上传的文件并存储到文件库中;
为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。
其中,用户登录的方式可以是账号和密码配合的方式,也可以是通过特定的物理设备如U盘锁的方式。生成文件匹配码可以通过随机生成的方式,为了保证每个文件具有的文件匹配码不相同,需要生成所述文件配置表中没有记录过的文件匹配码。
作为对本实施例的第一方面的进一步改进,所述文件配置表中还记载了每个文件的索引号;
如图2所示,其是图1中的步骤S12的流程示意图,所述S12具体包括:
S121,在所述文件配置表中查找所述客户端所发送的文件匹配码对应的文件的索引号;
S122,根据查找到的索引号在所述文件库中查找相应的文件。
所述索引号相当于文件的ID,作为文件的唯一标识。由于可能会存在文件名相同的文件,例如不同文件类型,在查找时可能会把相同文件名但文件类型不同的文件也找出来,而通过索引号与文件匹配码进行对应,可以确保查找到的文件就是用户需要的文件。
如图3所示,其是图1中的步骤S13的流程示意图。作为对本实施例的第一方面的进一 步改进,所述S13具体包括:
S131,将查找到的文件的缩略信息发送给所述客户端;
S132,在获取到所述客户端对所述缩略信息的确认消息时,将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。
用户可能会由于输入了错误的文件匹配码导致服务器返回了不需要的文件内容,这样会增加了不必要的流量消费。为了避免这种状况,服务器可以先向客户端发送查找到的文件的缩略信息,等用户确认后再返回完整的文件内容。其中,所述缩略信息可以为文件内容的部分内容如摘要或者一张缩略图。
作为对本实施例的进一步改进,在所述生成用户新上传的文件的文件匹配码,并更新文件配置表之后还包括:
将用户新上传的文件的文件名及对应的文件匹配码发送给与所述用户绑定的移动设备,使得所述移动设备在接收到所述文件的文件名和对应的文件匹配码之后,更新存储在所述移动设备上的用户文件对照表;其中,所述用户文件对照表记载了所述用户存储在所述文件库的所有文件的文件名及对应的文件匹配码。
用户可能上传了较多的文件到服务器,为了不用用户记住每个文件的文件匹配码,以及为了让用户准确无误地获取需要的文件内容,可以通过用户随身携带的移动设备来存储所述用户文件对照表,用户在访问指定的文件时可以先查看所述用户文件对照表,找到需要的文件匹配码再输入到客户端中。
其中,所述移动设备优选为与所述用户绑定的手机号码所对应的手机。目前,手机作为一种生活必需品,忘记携带的概率要大大低于U盘锁等物理设备。
作为对本实施例的第一方面的进一步改进,所述远程文件访问方法还包括:
获取所述客户端在用户登录后发送的对用户的指定文件的删除指令;
根据所述删除指令删除所述指定文件,并更新所述文件配置表;
将被删除了的文件的文件名及对应的文件匹配码发送给所述移动设备,通知所述移动设备对所述用户文件对照表进行同步删除的操作。
当用户删除了服务器上的一个文件时,需要对所述文件配置表进行更新,删除对应的索引号以及文件匹配码,同时也要通知所述移动设备对所述文件对照表进行同步删除的操作,以保证所述文件配置表和所述文件对照表记录的信息是最新的。
作为对本实施例的第一方面的进一步改进,用户新上传的文件的文件名及对应的文件匹配码显示在所述用户文件对照表的最前端。即用户文件对照表显示的文件名和对应的文件匹配码按照用户上传的先后顺序,将最新的信息放在最前端,方便用户查看。
作为对本实施例的第一方面的进一步改进,在S13后还包括:
获取所述客户端发送的对所述文件的修改内容;
根据所述修改内容更新存储在所述文件库上的所述文件。
其中,所述修改内容包括增加的内容以及删除的内容。因此,在通过输入文件匹配码的方式获取文件内容的情况下,用户不仅是可以查看文件内容,还可以对其进行修改,并且将修改内容与服务器的文件内容进行合并以更新所述文件。
相应地,本发明的第一实施例的第二方面还提供一种服务器。
如图4所示,其是本发明第一实施例的第二方面提供的服务器1的结构框图,包括:
匹配码获取模块11,用于获取客户端在用户未登录的状态下发送的文件匹配码;
文件查找模块12,用于在文件库中查找具有所述客户端所发送的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件所配置的文件匹配码均不相同;
文件内容发送模块13,用于将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。
作为对本实施例的第二方面的进一步改进,所述服务器还包括:
文件获取模块,用于获取客户端在用户已登录的状态下上传的文件并存储到文件库中;
匹配码配置模块,用于为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。
作为对本实施例的第二方面的进一步改进,所述文件配置表中还记载了每个文件的索引号;
如图5所示,其是图4中的文件查找模块12的结构框图,所述文件查找模块12包括:
索引号查找单元121,用于在所述文件配置表中查找所述客户端所发送的文件匹配码对应的文件的索引号;
文件查找单元122,用于根据查找到的索引号在所述文件库中查找相应的文件。
如图6所示,其是图4中的文件内容发送模块13的结构框图。作为对本实施例的第二方面的进一步改进,所述文件内容发送模块13具体包括:
缩略信息发送单元131,用于将查找到的文件的缩略信息发送给所述客户端;
文件内容发送单元132,用于在获取到所述客户端对所述缩略信息的确认消息时,将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。
作为对本实施例的第二方面的进一步改进,所述服务器还包括:
匹配码发送模块,用于在生成用户新上传的文件匹配码后,将所述文件的文件名及对应 的文件匹配码发送给与所述用户绑定的移动设备,使得所述移动设备在接收到所述文件的文件名和对应的文件匹配码之后,更新存储在所述移动设备上的用户文件对照表;其中,所述用户文件对照表记载了所述用户存储在所述文件库的所有文件的文件名及对应的文件匹配码。
作为对本实施例的第二方面的进一步改进,所述服务器还包括:
删除指令获取模块,用于获取所述客户端在用户登录后发送的对用户的指定文件的删除指令;
文件删除模块,用于根据所述删除指令删除所述指定文件,并更新所述文件配置表;
同步删除通知模块,用于将被删除了的文件的文件名及对应的文件匹配码发送给所述移动设备,通知所述移动设备对所述用户文件对照表进行同步删除的操作。
作为对本实施例的第二方面的进一步改进,用户新上传的文件的文件名及对应的文件匹配码显示在所述用户文件对照表的最前端。
作为对本实施例的第二方面的进一步改进,所述移动设备为与所述用户绑定的手机号码所对应的手机。
作为对本实施例的第二方面的进一步改进,所述服务器还包括:
修改内容获取模块,用于在所述将查找到的文件的文件内容发送给所述客户端之后获取所述客户端发送的对所述文件的修改内容;
文件修改模块,用于根据所述修改内容更新存储在所述文件库上的所述文件。
需要说明的是,本发明第一实施例的第二方面所提供的服务器用于执行本发明第一实施例的第一方面所提供的远程文件访问方法的流程步骤,两者的工作原理和有益效果一一对应,因而不再赘述。
同时,本发明第二实施例的第一方面还提供一种远程文件访问方法,由客户端执行。参见图7,其是本发明第二实施例的第一方面提供的远程文件访问方法的流程示意图,包括:
S21,在用户未登录的状态下获取用户输入的文件匹配码;
S22,将用户输入的文件匹配码发送给服务器,以使所述服务器在文件库中查找具有所述用户输入的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件具有的文件匹配码均不相同;
S23,获取所述服务器查找到的文件的文件内容以供用户进行访问操作。
由于服务器的文件库中的文件分别具有一个文件匹配码,并且用户可以在未登陆的情况下,通过客户端向服务器发送需要获取的文件的文件匹配码,服务器根据所述文件匹配码从文件库中查找所述需要获取的文件。即用户可以通过免登录的方式通过输入一个文件匹配码 即可对服务器的文件进行访问,使得用户在访问远程文件时操作更加简便,提高访问的效率。
作为对本实施例的第一方面的进一步改进,所述远程文件访问方法还包括:
在用户登录后将用户的文件上传到所述服务器的文件库,以使所述服务器为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。
其中,用户登录的方式可以是账号和密码配合的方式,也可以是通过特定的物理设备如U盘锁的方式。生成文件匹配码可以通过随机生成的方式,为了保证每个文件具有的文件匹配码不相同,需要生成所述文件配置表中没有记录过的文件匹配码。
作为对本实施例的第一方面的进一步改进,所述文件配置表中还记载了每个文件的索引号;
所述将用户输入的文件匹配码发送给服务器,以使所述服务器在文件库中查找具有所述用户输入的文件匹配码的文件,具体为:
将所述用户输入的文件匹配码发送给服务器,以使所述服务器在所述文件配置表中查找所述用户输入的文件匹配码对应的文件的索引号,并根据查找到的索引号在所述文件库中查找相应的文件。
所述索引号相当于文件的ID,作为文件的唯一标识。由于可能会存在文件名相同的文件,例如不同文件类型,在查找时可能会把相同文件名但文件类型不同的文件也找出来,而通过索引号与文件匹配码进行对应,可以确保查找到的文件就是用户需要的文件。
作为对本实施例的第一方面的进一步改进,在所述获取所述服务器查找到的文件的文件内容之前,还包括:
获取所述服务器发送的关于查找到的文件的缩略信息;
将所述用户对所述缩略信息的确认消息发送给所述服务器,以使所述服务器返回查找到的文件的文件内容。
用户可能会由于输入了错误的文件匹配码导致服务器返回了不需要的文件内容,这样会增加了不必要的流量消费。为了避免这种状况,服务器可以先向客户端发送查找到的文件的缩略信息,等用户确认后再返回完整的文件内容。其中,所述缩略信息可以为文件内容的部分内容如摘要或者一张缩略图。
作为对本实施例的第一方面的进一步改进,所述远程文件访问方法还包括:
在用户登录后向服务器发送对所述用户的指定文件的删除指令,以使所述服务器根据所述删除指令删除所述指定文件,并更新所述文件配置表。
当用户删除了服务器上的一个文件时,需要对所述文件配置表进行更新,删除对应的索 引号以及文件匹配码,以保证所述文件配置表记录的信息是最新的。
作为对本实施例的第一方面的进一步改进,在所述获取所述服务器查找到的文件的文件内容之后,还包括:
检测所述用户是否对所述文件进行了修改;
当检测到所述用户对所述文件进行了修改时,将对所述文件的修改内容发送给所述服务器,以使所述服务器根据更新存储在所述文件库上的所述文件。
其中,所述修改内容包括增加的内容以及删除的内容。因此,在通过输入文件匹配码的方式获取文件内容的情况下,用户不仅是可以查看文件内容,还可以对其进行修改,并且将修改内容与服务器的文件内容进行合并以更新所述文件。
作为对本实施例的第一方面的进一步改进,所述检测所述用户是否对所述文件进行了修改,具体包括:
计算缓存在本地的文件的文件内容的MD5值,并与存储在服务器上的相同文件的文件内容的MD5值进行对比;
当两者不相同时,判定所述用户对所述文件进行了修改。
相应地,本发明的第二实施例的第二方面还提供一种客户端。参见图8,其是本发明第一实施例的第二方面提供的客户端的结构框图,包括:
匹配码输入模块21,用于在用户未登录的状态下获取用户输入的文件匹配码;
匹配码发送模块22,用于将用户输入的文件匹配码发送给服务器,以使所述服务器在文件库中查找具有所述用户输入的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件具有的文件匹配码均不相同;
文件内容获取模块23,用于获取所述服务器查找到的文件的文件内容以供用户进行访问操作。
作为对本实施例的第二方面的进一步改进,所述客户端还包括:
文件上传模块,用于在用户登录后将用户的文件上传到所述服务器的文件库,以使所述服务器为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。
作为对本实施例的第二方面的进一步改进,,所述文件配置表中还记载了每个文件的索引号;
所述匹配码发送模块22具体用于:
将所述用户输入的文件匹配码发送给服务器,以使所述服务器在所述文件配置表中查找所述用户输入的文件匹配码对应的文件的索引号,并根据查找到的索引号在所述文件库中查 找相应的文件。
作为对本实施例的第二方面的进一步改进,所述客户端还包括:
缩略信息获取模块,用于在所述获取所述服务器查找到的文件的文件内容之前,获取所述服务器发送的关于查找到的文件的缩略信息;
确认消息发送模块,用于将所述用户对所述缩略信息的确认消息发送给所述服务器,以使所述服务器返回查找到的文件的文件内容。
作为对本实施例的第二方面的进一步改进,所述客户端还包括:
删除指令发送模块,用于在用户登录后向服务器发送对所述用户的指定文件的删除指令,以使所述服务器根据所述删除指令删除所述指定文件,并更新所述文件配置表。
作为对本实施例的第二方面的进一步改进,所述客户端还包括:
修改检测模块,用于检测所述用户是否对所述文件进行了修改;
修改内容发送模块,用于当检测到所述用户对所述文件进行了修改时,将对所述文件的修改内容发送给所述服务器,以使所述服务器根据更新存储在所述文件库上的所述文件。
作为对本实施例的第二方面的进一步改进,所述修改检测模块具体包括:
MD5计算单元,用于计算缓存在本地的文件的文件内容的MD5值,并与存储在服务器上的相同文件的文件内容的MD5值进行对比;
判定单元,用于缓存在本地的文件与存储在服务器上的相同的文件两者的文件内容的MD5值不相同时,判定所述用户对所述文件进行了修改。
需要说明的是,本发明第二实施例的第二方面所提供的服务器用于执行本发明第二实施例的第一方面所提供的远程文件访问方法的流程步骤,两者的工作原理和有益效果一一对应,因而不再赘述。
另外,本发明第三实施例还提供一种远程文件访问系统,包括上述第一实施例的第二方面提供的服务器1以及若干个上述第二实施例的第二方面提供的客户端2。如图9所示,其是本发明第三实施例提供的远程文件访问系统的结构框图。
以下以用户为教师为例描述本实施例应用到备课和授课的一个完整工作过程,涉及到服务器、备课端以及授课端:
步骤1:用户首次注册,绑定手机号。该手机号用于后续接收文件匹配码和文件名。
步骤2:用户在备课端登录自己的账号。
步骤3:用户在备课端进行课件的制作。
步骤4:用户制作好课件后,保存课件至服务器。
步骤5:服务器为课件随机生成一个文件匹配码,建立所述文件与所述文件匹配码的映 射关系。
步骤6:服务器将生成的文件匹配码以及课件名称发送至用户的手机号。用户在注册时绑定了手机号,在备课端制作课件时登录了账号,因此可以将文件匹配码准确发送给用户的手机。
步骤7:用户在授课端准备打开课件。
步骤8:用户在授课端输入一个文件匹配码(可以从手机中获取该文件匹配码,授课端使用该文件匹配码从服务器中的文件配置表找到特定的课件,然后在授课端打开课件。
步骤9:用户在授课端进行授课。
步骤10:用户在授课端退出授课。
步骤11:在步骤9中,如果用户修改了课件的内容,则在步骤10中,授课端检测课件内容的MD5是否发了变化,若发生了变化,则将变化后的课件内容同步保存至服务器,文件配置表不发生变化,下次使用该文件匹配码还可以打开该课件。
相比于现有技术,本发明的有益效果在于:本发明第一实施例提供一种远程文件访问方法与执行该方法的服务器,方法包括获取客户端在用户未登录的状态下发送的文件匹配码;在文件库中查找具有所述客户端所发送的文件匹配码的文件;将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。服务器的文件库中的文件分别具有一个文件匹配码,用户可以在未登陆的情况下,通过客户端向服务器发送需要获取的文件的文件匹配码,服务器根据所述文件匹配码从文件库中查找所述需要获取的文件。即用户可以通过免登录的方式通过输入一个文件匹配码即可对服务器的文件进行访问,使得用户在访问远程文件时操作更加简便,提高访问的效率。相应的本发明第二实施例提供一种远程文件访问方法与执行该方法的客户端,本发明第三实施例提供一种包括所述服务器和客户端的远程文件访问系统。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。

Claims (33)

  1. 一种远程文件访问方法,其特征在于,包括:
    获取客户端在用户未登录的状态下发送的文件匹配码;
    在文件库中查找具有所述客户端所发送的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件具有的文件匹配码均不相同;
    将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。
  2. 如权利要求1所述的远程文件访问方法,其特征在于,还包括:
    获取客户端在用户已登录的状态下上传的文件并存储到文件库中;
    为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。
  3. 如权利要求2所述的远程文件访问方法,其特征在于,所述文件配置表中还记载了每个文件的索引号;
    所述在文件库中查找具有所述客户端所发送的文件匹配码的文件,具体包括:
    在所述文件配置表中查找所述客户端所发送的文件匹配码对应的文件的索引号;
    根据查找到的索引号在所述文件库中查找相应的文件。
  4. 如权利要求2或3所述的远程文件访问方法,其特征在于,所述将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作,具体包括:
    将查找到的文件的缩略信息发送给所述客户端;
    在获取到所述客户端对所述缩略信息的确认消息时,将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。
  5. 如权利要求2所述的远程文件访问方法,其特征在于,在所述生成用户新上传的文件的文件匹配码,并更新文件配置表之后还包括:
    将用户新上传的文件的文件名及对应的文件匹配码发送给与所述用户绑定的移动设备,使得所述移动设备在接收到所述文件的文件名和对应的文件匹配码之后,更新存储在所述移动设备上的用户文件对照表;其中,所述用户文件对照表记载了所述用户存储在所述文件库的所有文件的文件名及对应的文件匹配码。
  6. 如权利要求5所述的远程文件访问方法,其特征在于,所述远程文件访问方法还包括:
    获取所述客户端在用户登录后发送的对用户的指定文件的删除指令;
    根据所述删除指令删除所述指定文件,并更新所述文件配置表;
    将被删除了的文件的文件名及对应的文件匹配码发送给所述移动设备,通知所述移动设备对所述用户文件对照表进行同步删除的操作。
  7. 如权利要求5所述的远程文件访问方法,其特征在于,用户新上传的文件的文件名及对应的文件匹配码显示在所述用户文件对照表的最前端。
  8. 如权利要求5~7任一项所述的远程文件访问方法,其特征在于,所述移动设备为与所述用户绑定的手机号码所对应的手机。
  9. 如权利要求1所述的远程文件访问方法,其特征在于,在所述将查找到的文件的文件内容发送给所述客户端之后,还包括:
    获取所述客户端发送的对所述文件的修改内容;
    根据所述修改内容更新存储在所述文件库上的所述文件。
  10. 一种服务器,其特征在于,包括:
    匹配码获取模块,用于获取客户端在用户未登录的状态下发送的文件匹配码;
    文件查找模块,用于在文件库中查找具有所述客户端所发送的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件所配置的文件匹配码均不相同;
    文件内容发送模块,用于将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。
  11. 如权利要求10所述的服务器,其特征在于,所述服务器还包括:
    文件获取模块,用于获取客户端在用户已登录的状态下上传的文件并存储到文件库中;
    匹配码配置模块,用于为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。
  12. 如权利要求11所述的服务器,其特征在于,所述文件配置表中还记载了每个文件 的索引号;
    所述文件查找模块具体包括:
    索引号查找单元,用于在所述文件配置表中查找所述客户端所发送的文件匹配码对应的文件的索引号;
    文件查找单元,用于根据查找到的索引号在所述文件库中查找相应的文件。
  13. 如权利要求11或12所述的服务器,其特征在于,所述文件内容发送模块具体包括:
    缩略信息发送单元,用于将查找到的文件的缩略信息发送给所述客户端;
    文件内容发送单元,用于在获取到所述客户端对所述缩略信息的确认消息时,将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。
  14. 如权利要求11所述的服务器,其特征在于,所述服务器还包括:
    匹配码发送模块,用于在生成用户新上传的文件匹配码后,将所述文件的文件名及对应的文件匹配码发送给与所述用户绑定的移动设备,使得所述移动设备在接收到所述文件的文件名和对应的文件匹配码之后,更新存储在所述移动设备上的用户文件对照表;其中,所述用户文件对照表记载了所述用户存储在所述文件库的所有文件的文件名及对应的文件匹配码。
  15. 如权利要求14所述的服务器,其特征在于,所述服务器还包括:
    删除指令获取模块,用于获取所述客户端在用户登录后发送的对用户的指定文件的删除指令;
    文件删除模块,用于根据所述删除指令删除所述指定文件,并更新所述文件配置表;
    同步删除通知模块,用于将被删除了的文件的文件名及对应的文件匹配码发送给所述移动设备,通知所述移动设备对所述用户文件对照表进行同步删除的操作。
  16. 如权利要求14所述的服务器,其特征在于,用户新上传的文件的文件名及对应的文件匹配码显示在所述用户文件对照表的最前端。
  17. 如权利要求14~16任一项所述的服务器,其特征在于,所述移动设备为与所述用户绑定的手机号码所对应的手机。
  18. 如权利要求10所述的服务器,其特征在于,所述服务器还包括:
    修改内容获取模块,用于在所述将查找到的文件的文件内容发送给所述客户端之后获取所述客户端发送的对所述文件的修改内容;
    文件修改模块,用于根据所述修改内容更新存储在所述文件库上的所述文件。
  19. 一种远程文件访问方法,其特征在于,包括:
    在用户未登录的状态下获取用户输入的文件匹配码;
    将用户输入的文件匹配码发送给服务器,以使所述服务器在文件库中查找具有所述用户输入的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件具有的文件匹配码均不相同;
    获取所述服务器查找到的文件的文件内容以供用户进行访问操作。
  20. 如权利要求19所述的远程文件访问方法,其特征在于,所述远程文件访问方法还包括:
    在用户登录后将用户的文件上传到所述服务器的文件库,以使所述服务器为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。
  21. 如权利要求20所述的远程文件访问方法,其特征在于,所述文件配置表中还记载了每个文件的索引号;
    所述将用户输入的文件匹配码发送给服务器,以使所述服务器在文件库中查找具有所述用户输入的文件匹配码的文件,具体为:
    将所述用户输入的文件匹配码发送给服务器,以使所述服务器在所述文件配置表中查找所述用户输入的文件匹配码对应的文件的索引号,并根据查找到的索引号在所述文件库中查找相应的文件。
  22. 如权利要求20或21所述的远程文件访问方法,其特征在于,在所述获取所述服务器查找到的文件的文件内容之前,还包括:
    获取所述服务器发送的关于查找到的文件的缩略信息;
    将所述用户对所述缩略信息的确认消息发送给所述服务器,以使所述服务器返回查找到的文件的文件内容。
  23. 如权利要求20所述的远程文件访问方法,其特征在于,所述远程文件访问方法还 包括:
    在用户登录后向服务器发送对所述用户的指定文件的删除指令,以使所述服务器根据所述删除指令删除所述指定文件,并更新所述文件配置表。
  24. 如权利要求19所述的远程文件访问方法,其特征在于,在所述获取所述服务器查找到的文件的文件内容之后,还包括:
    检测所述用户是否对所述文件进行了修改;
    当检测到所述用户对所述文件进行了修改时,将对所述文件的修改内容发送给所述服务器,以使所述服务器根据更新存储在所述文件库上的所述文件。
  25. 如权利要求24所述的远程文件访问方法,其特征在于,所述检测所述用户是否对所述文件进行了修改,具体包括:
    计算缓存在本地的文件的文件内容的MD5值,并与存储在服务器上的相同文件的文件内容的MD5值进行对比;
    当两者不相同时,判定所述用户对所述文件进行了修改。
  26. 一种客户端,其特征在于,包括:
    匹配码输入模块,用于在用户未登录的状态下获取用户输入的文件匹配码;
    匹配码发送模块,用于将用户输入的文件匹配码发送给服务器,以使所述服务器在文件库中查找具有所述用户输入的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件具有的文件匹配码均不相同;
    文件内容获取模块,用于获取所述服务器查找到的文件的文件内容以供用户进行访问操作。
  27. 如权利要求26所述的客户端,其特征在于,所述客户端还包括:
    文件上传模块,用于在用户登录后将用户的文件上传到所述服务器的文件库,以使所述服务器为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。
  28. 如权利要求26所述的客户端,其特征在于,所述文件配置表中还记载了每个文件的索引号;
    所述匹配码发送模块具体用于:
    将所述用户输入的文件匹配码发送给服务器,以使所述服务器在所述文件配置表中查找所述用户输入的文件匹配码对应的文件的索引号,并根据查找到的索引号在所述文件库中查找相应的文件。
  29. 如权利要求27或28所述的客户端,其特征在于,所述客户端还包括:
    缩略信息获取模块,用于在所述获取所述服务器查找到的文件的文件内容之前,获取所述服务器发送的关于查找到的文件的缩略信息;
    确认消息发送模块,用于将所述用户对所述缩略信息的确认消息发送给所述服务器,以使所述服务器返回查找到的文件的文件内容。
  30. 如权利要求27所述的客户端,其特征在于,所述客户端还包括:
    删除指令发送模块,用于在用户登录后向服务器发送对所述用户的指定文件的删除指令,以使所述服务器根据所述删除指令删除所述指定文件,并更新所述文件配置表。
  31. 如权利要求27所述的客户端,其特征在于,所述客户端还包括:
    修改检测模块,用于检测所述用户是否对所述文件进行了修改;
    修改内容发送模块,用于当检测到所述用户对所述文件进行了修改时,将对所述文件的修改内容发送给所述服务器,以使所述服务器根据更新存储在所述文件库上的所述文件。
  32. 如权利要求31所述的客户端,其特征在于,所述修改检测模块具体包括:
    MD5计算单元,用于计算缓存在本地的文件的文件内容的MD5值,并与存储在服务器上的相同文件的文件内容的MD5值进行对比;
    判定单元,用于缓存在本地的文件与存储在服务器上的相同的文件两者的文件内容的MD5值不相同时,判定所述用户对所述文件进行了修改。
  33. 一种远程文件访问系统,其特征在于,包括如权利要求10~18任一项所述的服务器以及如权利要求26~32任一项所述的客户端。
PCT/CN2016/113327 2016-06-29 2016-12-30 远程文件访问方法、服务器、客户端与系统 WO2018000785A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610508836.1A CN106210001A (zh) 2016-06-29 2016-06-29 远程文件访问方法、服务器、客户端与系统
CN201610508836.1 2016-06-29

Publications (1)

Publication Number Publication Date
WO2018000785A1 true WO2018000785A1 (zh) 2018-01-04

Family

ID=57464138

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/113327 WO2018000785A1 (zh) 2016-06-29 2016-12-30 远程文件访问方法、服务器、客户端与系统

Country Status (2)

Country Link
CN (1) CN106210001A (zh)
WO (1) WO2018000785A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210001A (zh) * 2016-06-29 2016-12-07 广州视睿电子科技有限公司 远程文件访问方法、服务器、客户端与系统
CN113407025A (zh) * 2021-05-27 2021-09-17 广东职业技术学院 一种信息显示方法和系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307210A (zh) * 2011-01-13 2012-01-04 国云科技股份有限公司 一种数据下载系统及其数据管理和下载方法
US20130254840A1 (en) * 2012-03-26 2013-09-26 International Business Machines Corporation Providing multiple authentications to authenticate users with respect to a system and file systems offerred through the system
CN103391307A (zh) * 2012-05-11 2013-11-13 阿里巴巴集团控股有限公司 离线数据的离线透传和显示方法、装置及系统
CN104348919A (zh) * 2014-11-07 2015-02-11 北京奇虎科技有限公司 进行文件下载的方法、装置和浏览器
CN106210001A (zh) * 2016-06-29 2016-12-07 广州视睿电子科技有限公司 远程文件访问方法、服务器、客户端与系统

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170523B (zh) * 2007-12-05 2010-09-29 腾讯科技(深圳)有限公司 文件传输系统、方法以及文件中转决策服务器
CN101676902A (zh) * 2008-09-19 2010-03-24 众来科技股份有限公司 具有辨识分类搜寻储存功能的文件控管系统及方法
US20130046833A1 (en) * 2011-08-16 2013-02-21 Smith Micro Software, Inc. Method and System for Sending a Digital Invitation Requesting a Data Upload
CN103023684B (zh) * 2011-09-26 2017-04-26 腾讯科技(深圳)有限公司 网络信息管理的方法、装置和系统
CN103634406A (zh) * 2013-12-11 2014-03-12 北京荣之联科技股份有限公司 文件同步方法及其终端
CN105183393A (zh) * 2015-09-21 2015-12-23 上海维宏电子科技股份有限公司 基于磁盘缓存实现文件快速预览的方法
CN105187562A (zh) * 2015-09-30 2015-12-23 易士软件(上海)有限公司 操作远程文件的系统及方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307210A (zh) * 2011-01-13 2012-01-04 国云科技股份有限公司 一种数据下载系统及其数据管理和下载方法
US20130254840A1 (en) * 2012-03-26 2013-09-26 International Business Machines Corporation Providing multiple authentications to authenticate users with respect to a system and file systems offerred through the system
CN103391307A (zh) * 2012-05-11 2013-11-13 阿里巴巴集团控股有限公司 离线数据的离线透传和显示方法、装置及系统
CN104348919A (zh) * 2014-11-07 2015-02-11 北京奇虎科技有限公司 进行文件下载的方法、装置和浏览器
CN106210001A (zh) * 2016-06-29 2016-12-07 广州视睿电子科技有限公司 远程文件访问方法、服务器、客户端与系统

Also Published As

Publication number Publication date
CN106210001A (zh) 2016-12-07

Similar Documents

Publication Publication Date Title
CN106874389B (zh) 数据的迁移方法和装置
US20230018582A1 (en) Identifying relevant information within a document hosting system
US10089335B2 (en) Data lineage across multiple marketplaces
JP6128661B2 (ja) 主題ベースのバイタリティ
CN109739867B (zh) 一种工业元数据管理方法及系统
US8838679B2 (en) Providing state service for online application users
US9128964B2 (en) Selective mapping of integrated data
TWI535327B (zh) 通信帳號各客戶端之間數據同步方法、裝置及伺服器
KR20130107280A (ko) 디렉토리 리싱
WO2014000148A1 (zh) 一种资源获取方法及装置
WO2018022305A1 (en) Interchangeable retrieval of content
WO2018000785A1 (zh) 远程文件访问方法、服务器、客户端与系统
WO2018059430A1 (zh) 数据库搜索
WO2022057525A1 (zh) 一种数据找回方法、装置、电子设备及存储介质
WO2016101528A1 (zh) 内存数据库的数据处理方法及装置
WO2018001054A1 (zh) 一种云桌面数据的同步方法及装置
KR100637927B1 (ko) 다수 단말과 서버간의 데이터 동기화 방법
JP5224839B2 (ja) 文書管理システム、文書管理装置、文書管理方法及びプログラム
CN114928620B (zh) 用户信息同步方法、装置、设备、存储介质和程序产品
US20220070127A1 (en) Live database records in a chat platform
JP2014075083A (ja) サーバ装置、プログラム及び制御方法
CN108694219B (zh) 一种数据处理方法及装置
WO2012171165A1 (zh) 一种链接关系表管理方法以及相关装置
US11886231B2 (en) Functions for path traversals from seed input to output
CN116684282B (zh) 新增云端服务器初始化方法、装置和计算机设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16907172

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16907172

Country of ref document: EP

Kind code of ref document: A1