[go: up one dir, main page]

CN106210001A - remote file access method, server, client and system - Google Patents

remote file access method, server, client and system Download PDF

Info

Publication number
CN106210001A
CN106210001A CN201610508836.1A CN201610508836A CN106210001A CN 106210001 A CN106210001 A CN 106210001A CN 201610508836 A CN201610508836 A CN 201610508836A CN 106210001 A CN106210001 A CN 106210001A
Authority
CN
China
Prior art keywords
file
user
server
matching code
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610508836.1A
Other languages
Chinese (zh)
Inventor
郭庆伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shirui Electronics Co Ltd
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 Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shirui Electronics Co Ltd
Priority to CN201610508836.1A priority Critical patent/CN106210001A/en
Publication of CN106210001A publication Critical patent/CN106210001A/en
Priority to PCT/CN2016/113327 priority patent/WO2018000785A1/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

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

The invention discloses a remote file access method and a server for executing the method, wherein the method comprises the steps of obtaining a file matching code sent by a client under the condition that a user does not log in; searching a file with a file matching code sent by the client in a file library; and sending the file content of the searched file to the client for the user to access. Correspondingly, the invention also provides another remote file access method, a client for executing the method and a remote file access system comprising the server and the client. The invention can make the operation of the user more convenient when accessing the remote file and improve the access efficiency.

Description

远程文件访问方法、服务器、客户端与系统Remote file access method, server, client and system

技术领域technical field

本发明涉及计算机技术领域,尤其涉及一种远程文件访问方法、服务器、客户端与系统。The invention relates to the field of computer technology, in particular to a remote file access method, server, client and system.

背景技术Background technique

随着互联网技术的迅速发展,人们可以通过服务器来存储自己的一些资源,减少客户端存储的压力,并且可以通过不同的客户端进行访问,大大减少了访问资源时的空间限制,使得在访问资源时更加便利。With the rapid development of Internet technology, people can store some of their own resources through the server, reduce the pressure on client storage, and can access through different clients, greatly reducing the space restrictions when accessing resources, making access to resources more convenient.

例如,用户在登录到客户端A后,通过客户端A将编辑好的文件上传到服务器中,之后用户想要在客户端B中对刚刚上传到服务器的文件进行访问,则用户可以登录到客户端B,通过客户端B获取服务器中的相应文件进行访问。For example, after a user logs in to client A, he uploads the edited file to the server through client A, and then the user wants to access the file just uploaded to the server in client B, then the user can log in to the client Client B obtains the corresponding file in the server through Client B to access it.

可见,用户想要访问服务器中的文件就必须要先登录到客户端。登录的方式一般有两种,一是通过人工输入账号和密码进行登录,二是通过特定的物理设备如U盘锁进行登录。U盘锁的原理是将账号和密码预先写在了U盘锁里,插入U盘锁后会从中读取账号和密码代替手工输入。It can be seen that if the user wants to access the files in the server, he must first log in to the client. There are generally two ways to log in, one is to log in by manually entering an account number 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, and after inserting the U disk lock, the account number and password will be read from it instead of manual input.

但是,通过人工输入账号和密码进行登录,这个过程比较繁琐,并且用户需要同时输入账号和密码导致很容易出错;U盘锁等物理设备存在容易忘记携带的问题。因此,无论是哪一种方式,在需要访问服务器上的文件时都是很不便利,效率很低的。However, the process of manually entering the account number and password to log in is cumbersome, and the user needs to enter the account number and password at the same time, which is easy to make mistakes; physical devices such as U disk locks have the problem that they are easy to forget to carry. Therefore, no matter which way it is, it is very inconvenient and inefficient when it is necessary to access files on the server.

发明内容Contents of the invention

本发明提出一种远程文件访问方法、服务器、客户端与系统,能够使得用户在访问远程文件时操作更加简便,提高访问的效率。The invention provides a remote file access method, server, client and system, which can make the user's operation easier when accessing remote files and improve access efficiency.

本发明的第一实施方式提供一种远程文件访问方法,包括:The first embodiment of the present invention provides a remote file access method, including:

获取客户端在用户未登录的状态下发送的文件匹配码;Obtain the file matching code sent by the client when the user is not logged in;

在文件库中查找具有所述客户端所发送的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件具有的文件匹配码均不相同;Searching for a file with the file matching code sent by the client in the file library; wherein, the files stored in the file library each have a file matching code, and each file has a different file matching code;

将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。The file content of the found file is sent to the client for the user to perform an access operation.

作为更优选地,所述远程文件访问方法还包括:As more preferably, the remote file access method also includes:

获取客户端在用户已登录的状态下上传的文件并存储到文件库中;Obtain the files uploaded by the client when the user is logged in and store them in the file library;

为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。Generate a file matching code for a file newly uploaded by the user, and update the file configuration table; wherein, the file configuration table is used to record the file name of each file in the file library and the file matching code of each file.

作为更优选地,所述文件配置表中还记载了每个文件的索引号;As more preferably, the index number of each file is also recorded in the file configuration table;

所述在文件库中查找具有所述客户端所发送的文件匹配码的文件,具体包括:The searching for the file with the file matching code sent by the client in the file library specifically includes:

在所述文件配置表中查找所述客户端所发送的文件匹配码对应的文件的索引号;Find the index number of the file corresponding to the file matching code sent by the client in the file configuration table;

根据查找到的索引号在所述文件库中查找相应的文件。The corresponding file is searched in the file library according to the found index number.

作为更优选地,所述将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作,具体包括:As more preferably, the file content of the found file is sent to the client for the user to perform an access operation, specifically including:

将查找到的文件的缩略信息发送给所述客户端;Send the thumbnail information of the found file to the client;

在获取到所述客户端对所述缩略信息的确认消息时,将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。When the confirmation message of the thumbnail information from the client is obtained, the file content of the found file is sent to the client for the user to perform an access operation.

作为更优选地,在所述生成用户新上传的文件的文件匹配码,并更新文件配置表之后还包括:As more preferably, after the file matching code of the file newly uploaded by the user is generated, and the file configuration table is updated, it also includes:

将用户新上传的文件的文件名及对应的文件匹配码发送给与所述用户绑定的移动设备,使得所述移动设备在接收到所述文件的文件名和对应的文件匹配码之后,更新存储在所述移动设备上的用户文件对照表;其中,所述用户文件对照表记载了所述用户存储在所述文件库的所有文件的文件名及对应的文件匹配码。Send the file name of the file newly uploaded by the user and the corresponding file matching code to the mobile device bound to the user, so that the mobile device updates the stored file after receiving the file name of the file and the corresponding file matching code. A user file comparison table on the mobile device; wherein, the user file comparison table records the file names and corresponding file matching codes of all files stored by the user in the file library.

通过用户随身携带的移动设备来存储所述用户文件对照表,不用用户记住每个文件的文件匹配码,以及为了让用户准确无误地获取需要的文件内容。The user's file comparison table is stored by the mobile device carried by the user, so that the user does not need to remember the file matching code of each file, and in order to allow the user to accurately obtain the required file content.

作为更优选地,所述远程文件访问方法还包括:As more preferably, the remote file access method also includes:

获取所述客户端在用户登录后发送的对用户的指定文件的删除指令;Obtaining a deletion instruction to the user's specified file sent by the client after the user logs in;

根据所述删除指令删除所述指定文件,并更新所述文件配置表;delete the specified file according to the delete instruction, and update the file configuration table;

将被删除了的文件的文件名及对应的文件匹配码发送给所述移动设备,通知所述移动设备对所述用户文件对照表进行同步删除的操作。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 a synchronous deletion operation on the user file comparison table.

作为更优选地,用户新上传的文件的文件名及对应的文件匹配码显示在所述用户文件对照表的最前端。More preferably, the file name of the file newly uploaded by the user and the corresponding file matching code are displayed at the forefront of the user file comparison table.

作为更优选地,所述移动设备为与所述用户绑定的手机号码所对应的手机。More preferably, the mobile device is a mobile phone corresponding to the mobile phone number bound to the user.

作为更优选地,在所述将查找到的文件的文件内容发送给所述客户端之后,还包括:As more preferably, after the file content of the found file is sent to the client, it also includes:

获取所述客户端发送的对所述文件的修改内容;Obtain the modified content of the file sent by the client;

根据所述修改内容更新存储在所述文件库上的所述文件。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:

匹配码获取模块,用于获取客户端在用户未登录的状态下发送的文件匹配码;The matching code acquisition module is used to obtain the file matching code sent by the client when the user is not logged in;

文件查找模块,用于在文件库中查找具有所述客户端所发送的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件所配置的文件匹配码均不相同;A file search module, configured to search for a file with the file matching code sent by the client in the file library; wherein, the files stored in the file library each have a file matching code, and each file is configured with a file matching code The file matching codes are all different;

文件内容发送模块,用于将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。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.

作为更优选地,所述服务器还包括:As more preferably, the server also includes:

文件获取模块,用于获取客户端在用户已登录的状态下上传的文件并存储到文件库中;The file obtaining module is used to obtain the files uploaded by the client when the user is logged in and store them in the file library;

匹配码配置模块,用于为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。A matching code configuration module, configured to generate a file matching code for a file newly uploaded by a user, and update a file configuration table; wherein, the file configuration table is used to record the file name of each file in the file library and each file Has a file matching code.

作为更优选地,所述文件配置表中还记载了每个文件的索引号;As more preferably, the index number of each file is also recorded in the file configuration table;

所述文件查找模块具体包括:The file search module specifically includes:

索引号查找单元,用于在所述文件配置表中查找所述客户端所发送的文件匹配码对应的文件的索引号;an index number search unit, configured to search the file configuration table for the index number of the file corresponding to the file matching code sent by the client;

文件查找单元,用于根据查找到的索引号在所述文件库中查找相应的文件。A file searching unit, configured to search the corresponding file in the file library according to the found index number.

作为更优选地,所述文件内容发送模块具体包括:As more preferably, the file content sending module specifically includes:

缩略信息发送单元,用于将查找到的文件的缩略信息发送给所述客户端;a thumbnail information sending unit, configured to send the thumbnail information of the found file to the client;

文件内容发送单元,用于在获取到所述客户端对所述缩略信息的确认消息时,将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。The file content sending unit is configured to send the file content of the found file to the client for the user to perform an access operation when the client confirms the thumbnail information.

作为更优选地,所述服务器还包括:As more preferably, the server also includes:

匹配码发送模块,用于在生成用户新上传的文件匹配码后,将所述文件的文件名及对应的文件匹配码发送给与所述用户绑定的移动设备,使得所述移动设备在接收到所述文件的文件名和对应的文件匹配码之后,更新存储在所述移动设备上的用户文件对照表;其中,所述用户文件对照表记载了所述用户存储在所述文件库的所有文件的文件名及对应的文件匹配码。The matching code sending module is used to send the file name of the file and the corresponding file matching code to the mobile device bound to the user after generating the file matching code newly uploaded by the user, so that the mobile device receives After obtaining the file name of the file and the corresponding file matching code, update the user file comparison table stored on the mobile device; wherein, the user file comparison table records all files stored by the user in the file library The file name and the corresponding file matching code.

作为更优选地,所述服务器还包括:As more preferably, the server also includes:

删除指令获取模块,用于获取所述客户端在用户登录后发送的对用户的指定文件的删除指令;A deletion instruction acquisition module, configured to acquire a deletion instruction to the user's specified file sent by the client after the user logs in;

文件删除模块,用于根据所述删除指令删除所述指定文件,并更新所述文件配置表;A file deletion module, configured to delete the specified file according to the deletion instruction, and update the file configuration table;

同步删除通知模块,用于将被删除了的文件的文件名及对应的文件匹配码发送给所述移动设备,通知所述移动设备对所述用户文件对照表进行同步删除的操作。The synchronous deletion notification module is used 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 a synchronous deletion operation on the user file comparison table.

作为更优选地,用户新上传的文件的文件名及对应的文件匹配码显示在所述用户文件对照表的最前端。More preferably, the file name of the file newly uploaded by the user and the corresponding file matching code are displayed at the forefront of the user file comparison table.

作为更优选地,所述移动设备为与所述用户绑定的手机号码所对应的手机。More preferably, the mobile device is a mobile phone corresponding to the mobile phone number bound to the user.

作为更优选地,所述服务器还包括:As more preferably, the server also includes:

修改内容获取模块,用于在所述将查找到的文件的文件内容发送给所述客户端之后获取所述客户端发送的对所述文件的修改内容;A modified content acquisition module, configured to obtain the modified content of the file sent by the client after the file content of the found file is sent to the client;

文件修改模块,用于根据所述修改内容更新存储在所述文件库上的所述文件。A file modification module, configured to update the file stored on the file library according to the modified content.

本发明的第三实施方式还提供一种远程文件访问方法,包括:The third embodiment of the present invention also provides a remote file access method, including:

在用户未登录的状态下获取用户输入的文件匹配码;Obtain the file matching code entered by the user when the user is not logged in;

将用户输入的文件匹配码发送给服务器,以使所述服务器在文件库中查找具有所述用户输入的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件具有的文件匹配码均不相同;Sending the file matching code input by the user to the server, so that the server searches for the file with the file matching code input by the user in the file library; wherein, the files stored in the file library each have a file matching code , and each file has a different file matching code;

获取所述服务器查找到的文件的文件内容以供用户进行访问操作。The file content of the file found by the server is obtained for the user to perform an access operation.

作为更优选地,所述远程文件访问方法还包括:As more preferably, the remote file access method also includes:

在用户登录后将用户的文件上传到所述服务器的文件库,以使所述服务器为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。After the user logs in, upload the user's file to the file library of the server, so that the server generates a file matching code for the file newly uploaded by the user, and updates the file configuration table; wherein, the file configuration table is used to record all The file name of each file in the file repository is matched with the file matching code that each file has.

作为更优选地,所述文件配置表中还记载了每个文件的索引号;As more preferably, the index number of each file is also recorded in the file configuration table;

所述将用户输入的文件匹配码发送给服务器,以使所述服务器在文件库中查找具有所述用户输入的文件匹配码的文件,具体为:The sending the file matching code input by the user to the server, so that the server searches for the file with the file matching code input by the user in the file library, specifically:

将所述用户输入的文件匹配码发送给服务器,以使所述服务器在所述文件配置表中查找所述用户输入的文件匹配码对应的文件的索引号,并根据查找到的索引号在所述文件库中查找相应的文件。Sending the file matching code input by the user to the server, so that the server searches the file configuration table for the index number of the file corresponding to the file matching code input by the user, and according to the found index number in the Find the corresponding file in the mentioned file library.

作为更优选地,在所述获取所述服务器查找到的文件的文件内容之前,还包括:As more preferably, before obtaining the file content of the file found by the server, it also includes:

获取所述服务器发送的关于查找到的文件的缩略信息;Obtain the thumbnail information about the found file sent by the server;

将所述用户对所述缩略信息的确认消息发送给所述服务器,以使所述服务器返回查找到的文件的文件内容。Sending a confirmation message of the user to the thumbnail information to the server, so that the server returns the file content of the found file.

作为更优选地,所述远程文件访问方法还包括:As more preferably, the remote file access method also includes:

在用户登录后向服务器发送对所述用户的指定文件的删除指令,以使所述服务器根据所述删除指令删除所述指定文件,并更新所述文件配置表。After the user logs in, send a deletion instruction for the user's specified file to the server, so that the server deletes the specified file according to the deletion instruction, and updates the file configuration table.

作为更优选地,在所述获取所述服务器查找到的文件的文件内容之后,还包括:As more preferably, after obtaining the file content of the file found by the server, it further includes:

检测所述用户是否对所述文件进行了修改;detecting whether the user has modified the file;

当检测到所述用户对所述文件进行了修改时,将对所述文件的修改内容发送给所述服务器,以使所述服务器根据更新存储在所述文件库上的所述文件。When it is detected that the user has modified the file, the modified content of the file is sent to the server, so that the server updates the file stored in the file library accordingly.

作为更优选地,所述检测所述用户是否对所述文件进行了修改,具体包括:As more preferably, the detecting whether the user has modified the file specifically includes:

计算缓存在本地的文件的文件内容的MD5值,并与存储在服务器上的相同文件的文件内容的MD5值进行对比;Calculate the MD5 value of the file content of the file cached locally, and compare it with the MD5 value of the file content of the same file stored on the server;

当两者不相同时,判定所述用户对所述文件进行了修改。When the two are different, it is determined that the user has modified the file.

本发明的第四实施方式还提供一种客户端,包括:The fourth embodiment of the present invention also provides a client, including:

匹配码输入模块,用于在用户未登录的状态下获取用户输入的文件匹配码;The matching code input module is used to obtain the file matching code input by the user when the user is not logged in;

匹配码发送模块,用于将用户输入的文件匹配码发送给服务器,以使所述服务器在文件库中查找具有所述用户输入的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件具有的文件匹配码均不相同;A matching code sending module, configured to send the file matching code input by the user to the server, so that the server searches the file library for a file with the file matching code input by the user; wherein, the file 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 used to obtain the file content of the file found by the server for the user to access.

作为更优选地,所述客户端还包括:As more preferably, the client also includes:

文件上传模块,用于在用户登录后将用户的文件上传到所述服务器的文件库,以使所述服务器为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。The file upload module is used to upload the user's file to the file library of the server after the user logs in, so that the server generates a file matching code for the file newly uploaded by the user, and updates the file configuration table; wherein, the file The configuration table is used to record the file name of each file in the file library and the file matching code of each file.

作为更优选地,所述文件配置表中还记载了每个文件的索引号;As more preferably, the index number of each file is also recorded in the file configuration table;

所述匹配码发送模块具体用于:The matching code sending module is specifically used for:

将所述用户输入的文件匹配码发送给服务器,以使所述服务器在所述文件配置表中查找所述用户输入的文件匹配码对应的文件的索引号,并根据查找到的索引号在所述文件库中查找相应的文件。Sending the file matching code input by the user to the server, so that the server searches the file configuration table for the index number of the file corresponding to the file matching code input by the user, and according to the found index number in the Find the corresponding file in the mentioned file library.

作为更优选地,所述客户端还包括:As more preferably, the client also includes:

缩略信息获取模块,用于在所述获取所述服务器查找到的文件的文件内容之前,获取所述服务器发送的关于查找到的文件的缩略信息;A thumbnail information acquiring module, configured to acquire thumbnail information about the found file sent by the server before acquiring the file content of the file found by the server;

确认消息发送模块,用于将所述用户对所述缩略信息的确认消息发送给所述服务器,以使所述服务器返回查找到的文件的文件内容。A confirmation message sending module, configured to send the user's confirmation message for the thumbnail information to the server, so that the server returns the file content of the found file.

作为更优选地,所述客户端还包括:As more preferably, the client also includes:

删除指令发送模块,用于在用户登录后向服务器发送对所述用户的指定文件的删除指令,以使所述服务器根据所述删除指令删除所述指定文件,并更新所述文件配置表。A deletion instruction sending module, configured to send a deletion instruction for the user's specified file 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.

作为更优选地,所述客户端还包括:As more preferably, the client also includes:

修改检测模块,用于检测所述用户是否对所述文件进行了修改;A modification detection module, configured to detect whether the user has modified the file;

修改内容发送模块,用于当检测到所述用户对所述文件进行了修改时,将对所述文件的修改内容发送给所述服务器,以使所述服务器根据更新存储在所述文件库上的所述文件。A modified content sending module, configured to send the modified content of the file to the server when it is detected that the user has modified the file, so that the server stores the modified content on the file library according to the update of the said file.

作为更优选地,所述修改检测模块具体包括:As more preferably, the modification detection module specifically includes:

MD5计算单元,用于计算缓存在本地的文件的文件内容的MD5值,并与存储在服务器上的相同文件的文件内容的MD5值进行对比;The MD5 calculation unit is used to calculate the MD5 value of the file content of the locally cached file, and compare it with the MD5 value of the file content of the same file stored on the server;

判定单元,用于缓存在本地的文件与存储在服务器上的相同的文件两者的文件内容的MD5值不相同时,判定所述用户对所述文件进行了修改。The determining unit is configured to determine that the user has modified the file when the MD5 values of the file contents of the file cached locally and the same file stored on the server are different.

本发明的第五实施方式提供一种远程文件访问系统,包括上述第二实施方式的服务器以及上述第四方式所述的客户端。A fifth embodiment of the present invention provides a remote file access system, including the server in the second embodiment above and the client in the fourth embodiment above.

相比于现有技术,本发明的有益效果在于:本发明提供一种远程文件访问方法与执行该方法的服务器,方法包括获取客户端在用户未登录的状态下发送的文件匹配码;在文件库中查找具有所述客户端所发送的文件匹配码的文件;将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。服务器的文件库中的文件分别具有一个文件匹配码,用户可以在未登陆的情况下,通过客户端向服务器发送需要获取的文件的文件匹配码,服务器根据所述文件匹配码从文件库中查找所述需要获取的文件。即用户可以通过免登录的方式通过输入一个文件匹配码即可对服务器的文件进行访问,使得用户在访问远程文件时操作更加简便,提高访问的效率。相应的本发明提供另一种远程文件访问方法与执行该方法的客户端,以及包括所述服务器和客户端的远程文件访问系统。Compared with the prior art, the beneficial effect of the present invention is that: the present invention provides a remote file access method and a server for executing the method, the method includes obtaining the file matching code sent by the client in the state that the user is not logged in; Find the file with the file matching code sent by the client in the library; send the file content of the found file to the client for the user to access. The files in the file library of the server each have a file matching code. 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 searches the file from the file library according to the file matching code. Documents that need to be obtained. That is, users can access files on the server by entering a file matching code in a login-free manner, which makes the operation easier for users when accessing remote files and improves access efficiency. Correspondingly, the present invention provides another remote file access method, a client executing the method, and a remote file access system including the server and the client.

附图说明Description of drawings

图1是本发明第一实施例的第一方面提供的远程文件访问方法的流程示意图;FIG. 1 is a schematic flowchart of a remote file access method provided by the first aspect of the first embodiment of the present invention;

图2是图1中的步骤S12的流程示意图;Fig. 2 is a schematic flow chart of step S12 in Fig. 1;

图3是图1中的步骤S13的流程示意图;Fig. 3 is a schematic flow chart of step S13 in Fig. 1;

图4是本发明第一实施例的第二方面提供的服务器1的结构框图;FIG. 4 is a structural block diagram of the server 1 provided by the second aspect of the first embodiment of the present invention;

图5是图4中的文件查找模块12的结构框图;Fig. 5 is a structural block diagram of the file search module 12 in Fig. 4;

图6是图4中的文件内容发送模块13的结构框图;Fig. 6 is a structural block diagram of the file content sending module 13 in Fig. 4;

图7是本发明第二实施例的第一方面提供的远程文件访问方法的流程示意图;Fig. 7 is a schematic flowchart of the remote file access method provided by the first aspect of the second embodiment of the present invention;

图8是本发明第二实施例的第一方面提供的客户端的结构框图;Fig. 8 is a structural block diagram of the client provided by the first aspect of the second embodiment of the present invention;

图9是本发明第三实施例提供的远程文件访问系统的结构框图。Fig. 9 is a structural block diagram of the remote file access system provided by the third embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

参见图1,是本发明第一实施例的第一方面提供的远程文件访问方法的流程示意图,该方法通过服务器执行,包括以下步骤:Referring to FIG. 1 , it is a schematic flowchart of the remote file access method provided by the first aspect of the first embodiment of the present invention. The method is executed by a server and includes the following steps:

S11,获取客户端在用户未登录的状态下发送的文件匹配码;S11, acquiring the file matching code sent by the client in a state where the user is not logged in;

S12,在文件库中查找具有所述客户端所发送的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件具有的文件匹配码均不相同;S12. Search the file library for a file with the file matching code sent by the client; wherein, the files stored in the file library each have a file matching code, and each file has a file matching code that is different from the file matching code. same;

S13,将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。S13. Send the file content of the found file to the client for the user to perform an access operation.

由于服务器的文件库中的文件分别具有一个文件匹配码,并且用户可以在未登陆的情况下,通过客户端向服务器发送需要获取的文件的文件匹配码,服务器根据所述文件匹配码从文件库中查找所述需要获取的文件。即用户可以通过免登录的方式通过输入一个文件匹配码即可对服务器的文件进行访问,使得用户在访问远程文件时操作更加简便,提高访问的效率。Since the files in the file library of the server have a file matching code respectively, 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 will retrieve the file matching code from the file library according to the file matching code. Find the files that need to be obtained in the above. That is, users can access files on the server by entering a file matching code in a login-free manner, which makes the operation easier for users when accessing remote files and improves access efficiency.

作为对本实施例的第一方面的进一步改进,所述远程文件访问方法还包括:As a further improvement to the first aspect of this embodiment, the remote file access method further includes:

获取客户端在用户已登录的状态下上传的文件并存储到文件库中;Obtain the files uploaded by the client when the user is logged in and store them in the file library;

为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。Generate a file matching code for a file newly uploaded by the user, and update the file configuration table; wherein, the file configuration table is used to record the file name of each file in the file library and the file matching code of each file.

其中,用户登录的方式可以是账号和密码配合的方式,也可以是通过特定的物理设备如U盘锁的方式。生成文件匹配码可以通过随机生成的方式,为了保证每个文件具有的文件匹配码不相同,需要生成所述文件配置表中没有记录过的文件匹配码。Wherein, the way for the user to log in may be a way of combining an account number and a password, or a way of using a specific physical device such as a U disk lock. The file matching code can be generated randomly. In order to ensure that each file has a different file matching code, it is necessary to generate a file matching code that has not been recorded in the file configuration table.

作为对本实施例的第一方面的进一步改进,所述文件配置表中还记载了每个文件的索引号;As a further improvement to the first aspect of this embodiment, the file configuration table also records the index number of each file;

如图2所示,其是图1中的步骤S12的流程示意图,所述S12具体包括:As shown in Figure 2, it is a schematic flow chart of step S12 in Figure 1, and said S12 specifically includes:

S121,在所述文件配置表中查找所述客户端所发送的文件匹配码对应的文件的索引号;S121. Search the file configuration table for the index number of the file corresponding to the file matching code sent by the client;

S122,根据查找到的索引号在所述文件库中查找相应的文件。S122. Search for a corresponding file in the file library according to the found index number.

所述索引号相当于文件的ID,作为文件的唯一标识。由于可能会存在文件名相同的文件,例如不同文件类型,在查找时可能会把相同文件名但文件类型不同的文件也找出来,而通过索引号与文件匹配码进行对应,可以确保查找到的文件就是用户需要的文件。The index number is equivalent to the ID of the file and serves as the 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 also be found during the search, and the index number and the file matching code are matched to ensure that the searched Files are files that users need.

如图3所示,其是图1中的步骤S13的流程示意图。作为对本实施例的第一方面的进一步改进,所述S13具体包括:As shown in FIG. 3 , it is a schematic flowchart of step S13 in FIG. 1 . As a further improvement to the first aspect of this embodiment, the S13 specifically includes:

S131,将查找到的文件的缩略信息发送给所述客户端;S131. Send the thumbnail information of the found file to the client;

S132,在获取到所述客户端对所述缩略信息的确认消息时,将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。S132. Send the file content of the found file to the client for the user to perform an access operation when the client confirms the thumbnail information.

用户可能会由于输入了错误的文件匹配码导致服务器返回了不需要的文件内容,这样会增加了不必要的流量消费。为了避免这种状况,服务器可以先向客户端发送查找到的文件的缩略信息,等用户确认后再返回完整的文件内容。其中,所述缩略信息可以为文件内容的部分内容如摘要或者一张缩略图。The user may cause the server to return unnecessary file content due to inputting a wrong file matching code, which will increase unnecessary traffic consumption. In order to avoid this situation, the server can first send the thumbnail information of the found file to the client, and return the complete file content after the user confirms. Wherein, the thumbnail information may be part of the content of the file, such as a summary or a thumbnail.

作为对本实施例的进一步改进,在所述生成用户新上传的文件的文件匹配码,并更新文件配置表之后还包括:As a further improvement to this embodiment, after generating the file matching code of the file newly uploaded by the user and updating the file configuration table, it also includes:

将用户新上传的文件的文件名及对应的文件匹配码发送给与所述用户绑定的移动设备,使得所述移动设备在接收到所述文件的文件名和对应的文件匹配码之后,更新存储在所述移动设备上的用户文件对照表;其中,所述用户文件对照表记载了所述用户存储在所述文件库的所有文件的文件名及对应的文件匹配码。Send the file name of the file newly uploaded by the user and the corresponding file matching code to the mobile device bound to the user, so that the mobile device updates the stored file after receiving the file name of the file and the corresponding file matching code. A user file comparison table on the mobile device; wherein, the user file comparison table records the file names and corresponding file matching codes of all files stored by the user in the file library.

用户可能上传了较多的文件到服务器,为了不用用户记住每个文件的文件匹配码,以及为了让用户准确无误地获取需要的文件内容,可以通过用户随身携带的移动设备来存储所述用户文件对照表,用户在访问指定的文件时可以先查看所述用户文件对照表,找到需要的文件匹配码再输入到客户端中。The user may have uploaded more files to the server. In order not to require the user to remember the file matching code of each file, and to allow the user to obtain the required file content accurately, the user's mobile device can be used to store the user's The file comparison table, when the user accesses the specified file, he can first check the user file comparison table, find the required file matching code and then input it into the client.

其中,所述移动设备优选为与所述用户绑定的手机号码所对应的手机。目前,手机作为一种生活必需品,忘记携带的概率要大大低于U盘锁等物理设备。Wherein, the mobile device is preferably a mobile phone corresponding to the mobile phone number bound to the user. At present, mobile phones are a kind of necessities of life, and the probability of forgetting to carry them is much lower than that of physical devices such as U disk locks.

作为对本实施例的第一方面的进一步改进,所述远程文件访问方法还包括:As a further improvement to the first aspect of this embodiment, the remote file access method further includes:

获取所述客户端在用户登录后发送的对用户的指定文件的删除指令;Obtaining a deletion instruction to the user's specified file sent by the client after the user logs in;

根据所述删除指令删除所述指定文件,并更新所述文件配置表;delete the specified file according to the delete instruction, and update the file configuration table;

将被删除了的文件的文件名及对应的文件匹配码发送给所述移动设备,通知所述移动设备对所述用户文件对照表进行同步删除的操作。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 a synchronous deletion operation on the user file comparison table.

当用户删除了服务器上的一个文件时,需要对所述文件配置表进行更新,删除对应的索引号以及文件匹配码,同时也要通知所述移动设备对所述文件对照表进行同步删除的操作,以保证所述文件配置表和所述文件对照表记录的信息是最新的。When a user deletes a file on the server, the file configuration table needs to be updated, the corresponding index number and file matching code are deleted, and the mobile device is also notified to perform synchronous deletion of the file comparison table , to ensure that the information recorded in the file configuration table and the file comparison table is up-to-date.

作为对本实施例的第一方面的进一步改进,用户新上传的文件的文件名及对应的文件匹配码显示在所述用户文件对照表的最前端。即用户文件对照表显示的文件名和对应的文件匹配码按照用户上传的先后顺序,将最新的信息放在最前端,方便用户查看。As a further improvement to the first aspect of this embodiment, the file name of the file newly uploaded by the user and the corresponding file matching code are displayed at the front of the user file comparison table. That is, the file names and corresponding file matching codes displayed in the user file comparison table will put the latest information at the forefront according to the sequence uploaded by the user, which is convenient for the user to view.

作为对本实施例的第一方面的进一步改进,在S13后还包括:As a further improvement to the first aspect of this embodiment, it also includes after S13:

获取所述客户端发送的对所述文件的修改内容;Obtain the modified content of the file sent by the client;

根据所述修改内容更新存储在所述文件库上的所述文件。The file stored on the file library is updated according to the modified content.

其中,所述修改内容包括增加的内容以及删除的内容。因此,在通过输入文件匹配码的方式获取文件内容的情况下,用户不仅是可以查看文件内容,还可以对其进行修改,并且将修改内容与服务器的文件内容进行合并以更新所述文件。Wherein, the modified content includes added content and deleted content. Therefore, in the case of obtaining the file content 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.

相应地,本发明的第一实施例的第二方面还提供一种服务器。Correspondingly, the second aspect of the first embodiment of the present invention further provides a server.

如图4所示,其是本发明第一实施例的第二方面提供的服务器1的结构框图,包括:As shown in Figure 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:

匹配码获取模块11,用于获取客户端在用户未登录的状态下发送的文件匹配码;Matching code acquisition module 11, used to obtain the file matching code sent by the client in a state where the user is not logged in;

文件查找模块12,用于在文件库中查找具有所述客户端所发送的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件所配置的文件匹配码均不相同;The file searching module 12 is used to search the file with the file matching code sent by the client in the file library; wherein, the files stored in the file library respectively have a file matching code, and each file is configured with The matching codes of the files are all different;

文件内容发送模块13,用于将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。The file content sending module 13 is configured to send the file content of the found file to the client for the user to access.

作为对本实施例的第二方面的进一步改进,所述服务器还包括:As a further improvement to the second aspect of this embodiment, the server further includes:

文件获取模块,用于获取客户端在用户已登录的状态下上传的文件并存储到文件库中;The file obtaining module is used to obtain the files uploaded by the client when the user is logged in and store them in the file library;

匹配码配置模块,用于为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。A matching code configuration module, configured to generate a file matching code for a file newly uploaded by a user, and update a file configuration table; wherein, the file configuration table is used to record the file name of each file in the file library and each file Has a file matching code.

作为对本实施例的第二方面的进一步改进,所述文件配置表中还记载了每个文件的索引号;As a further improvement to the second aspect of this embodiment, the file configuration table also records the index number of each file;

如图5所示,其是图4中的文件查找模块12的结构框图,所述文件查找模块12包括:As shown in Fig. 5, it is the structural block diagram of the file search module 12 among Fig. 4, and described file search module 12 comprises:

索引号查找单元121,用于在所述文件配置表中查找所述客户端所发送的文件匹配码对应的文件的索引号;An index number search unit 121, configured to search the file configuration table for the index number of the file corresponding to the file matching code sent by the client;

文件查找单元122,用于根据查找到的索引号在所述文件库中查找相应的文件。A file search unit 122, configured to search for a corresponding file in the file library according to the searched index number.

如图6所示,其是图4中的文件内容发送模块13的结构框图。作为对本实施例的第二方面的进一步改进,所述文件内容发送模块13具体包括:As shown in FIG. 6 , it is a structural block diagram of the file content sending module 13 in FIG. 4 . As a further improvement to the second aspect of this embodiment, the file content sending module 13 specifically includes:

缩略信息发送单元131,用于将查找到的文件的缩略信息发送给所述客户端;a thumbnail information sending unit 131, configured to send the thumbnail information of the found file to the client;

文件内容发送单元132,用于在获取到所述客户端对所述缩略信息的确认消息时,将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。The file content sending unit 132 is configured to send the file content of the found file to the client for the user to perform an access operation when the client confirms the thumbnail information.

作为对本实施例的第二方面的进一步改进,所述服务器还包括:As a further improvement to the second aspect of this embodiment, the server further includes:

匹配码发送模块,用于在生成用户新上传的文件匹配码后,将所述文件的文件名及对应的文件匹配码发送给与所述用户绑定的移动设备,使得所述移动设备在接收到所述文件的文件名和对应的文件匹配码之后,更新存储在所述移动设备上的用户文件对照表;其中,所述用户文件对照表记载了所述用户存储在所述文件库的所有文件的文件名及对应的文件匹配码。The matching code sending module is used to send the file name of the file and the corresponding file matching code to the mobile device bound to the user after generating the file matching code newly uploaded by the user, so that the mobile device receives After obtaining the file name of the file and the corresponding file matching code, update the user file comparison table stored on the mobile device; wherein, the user file comparison table records all files stored by the user in the file library The file name and the corresponding file matching code.

作为对本实施例的第二方面的进一步改进,所述服务器还包括:As a further improvement to the second aspect of this embodiment, the server further includes:

删除指令获取模块,用于获取所述客户端在用户登录后发送的对用户的指定文件的删除指令;A deletion instruction acquisition module, configured to acquire a deletion instruction to the user's specified file sent by the client after the user logs in;

文件删除模块,用于根据所述删除指令删除所述指定文件,并更新所述文件配置表;A file deletion module, configured to delete the specified file according to the deletion instruction, and update the file configuration table;

同步删除通知模块,用于将被删除了的文件的文件名及对应的文件匹配码发送给所述移动设备,通知所述移动设备对所述用户文件对照表进行同步删除的操作。The synchronous deletion notification module is used 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 a synchronous deletion operation on the user file comparison table.

作为对本实施例的第二方面的进一步改进,用户新上传的文件的文件名及对应的文件匹配码显示在所述用户文件对照表的最前端。As a further improvement to the second aspect of this embodiment, the file name and the corresponding file matching code of the file newly uploaded by the user are displayed at the front of the user file comparison table.

作为对本实施例的第二方面的进一步改进,所述移动设备为与所述用户绑定的手机号码所对应的手机。As a further improvement to the second aspect of this embodiment, the mobile device is a mobile phone corresponding to the mobile phone number bound to the user.

作为对本实施例的第二方面的进一步改进,所述服务器还包括:As a further improvement to the second aspect of this embodiment, the server further includes:

修改内容获取模块,用于在所述将查找到的文件的文件内容发送给所述客户端之后获取所述客户端发送的对所述文件的修改内容;A modified content acquisition module, configured to obtain the modified content of the file sent by the client after the file content of the found file is sent to the client;

文件修改模块,用于根据所述修改内容更新存储在所述文件库上的所述文件。A file modification module, configured to update the file stored on the file library according to the modified content.

需要说明的是,本发明第一实施例的第二方面所提供的服务器用于执行本发明第一实施例的第一方面所提供的远程文件访问方法的流程步骤,两者的工作原理和有益效果一一对应,因而不再赘述。It should be noted that the server provided by the second aspect of the first embodiment of the present invention is used to execute the process steps of the remote file access method provided by the first aspect of the first embodiment of the present invention, the working principles and benefits of both The effects are one-to-one correspondence, so I won’t repeat them here.

同时,本发明第二实施例的第一方面还提供一种远程文件访问方法,由客户端执行。参见图7,其是本发明第二实施例的第一方面提供的远程文件访问方法的流程示意图,包括:At the same time, the first aspect of the second embodiment of the present invention also provides a remote file access method executed by the client. Referring to FIG. 7 , it is a schematic flowchart of the remote file access method provided by the first aspect of the second embodiment of the present invention, including:

S21,在用户未登录的状态下获取用户输入的文件匹配码;S21. Obtain the file matching code input by the user when the user is not logged in;

S22,将用户输入的文件匹配码发送给服务器,以使所述服务器在文件库中查找具有所述用户输入的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件具有的文件匹配码均不相同;S22. Send the file matching code input by the user to the server, so that the server searches the file library for a file with the file matching code input by the user; wherein, the files stored in the file library each have a file Match code, and each file has a different file match code;

S23,获取所述服务器查找到的文件的文件内容以供用户进行访问操作。S23. Obtain the file content of the file found by the server for the user to perform an access operation.

由于服务器的文件库中的文件分别具有一个文件匹配码,并且用户可以在未登陆的情况下,通过客户端向服务器发送需要获取的文件的文件匹配码,服务器根据所述文件匹配码从文件库中查找所述需要获取的文件。即用户可以通过免登录的方式通过输入一个文件匹配码即可对服务器的文件进行访问,使得用户在访问远程文件时操作更加简便,提高访问的效率。Since the files in the file library of the server have a file matching code respectively, 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 will retrieve the file matching code from the file library according to the file matching code. Find the files that need to be obtained in the above. That is, users can access files on the server by entering a file matching code in a login-free manner, which makes the operation easier for users when accessing remote files and improves access efficiency.

作为对本实施例的第一方面的进一步改进,所述远程文件访问方法还包括:As a further improvement to the first aspect of this embodiment, the remote file access method further includes:

在用户登录后将用户的文件上传到所述服务器的文件库,以使所述服务器为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。After the user logs in, upload the user's file to the file library of the server, so that the server generates a file matching code for the file newly uploaded by the user, and updates the file configuration table; wherein, the file configuration table is used to record all The file name of each file in the file repository is matched with the file matching code that each file has.

其中,用户登录的方式可以是账号和密码配合的方式,也可以是通过特定的物理设备如U盘锁的方式。生成文件匹配码可以通过随机生成的方式,为了保证每个文件具有的文件匹配码不相同,需要生成所述文件配置表中没有记录过的文件匹配码。Wherein, the way for the user to log in may be a way of combining an account number and a password, or a way of using a specific physical device such as a U disk lock. The file matching code can be generated randomly. In order to ensure that each file has a different file matching code, it is necessary to generate a file matching code that has not been recorded in the file configuration table.

作为对本实施例的第一方面的进一步改进,所述文件配置表中还记载了每个文件的索引号;As a further improvement to the first aspect of this embodiment, the file configuration table also records the index number of each file;

所述将用户输入的文件匹配码发送给服务器,以使所述服务器在文件库中查找具有所述用户输入的文件匹配码的文件,具体为:The sending the file matching code input by the user to the server, so that the server searches for the file with the file matching code input by the user in the file library, specifically:

将所述用户输入的文件匹配码发送给服务器,以使所述服务器在所述文件配置表中查找所述用户输入的文件匹配码对应的文件的索引号,并根据查找到的索引号在所述文件库中查找相应的文件。Sending the file matching code input by the user to the server, so that the server searches the file configuration table for the index number of the file corresponding to the file matching code input by the user, and according to the found index number in the Find the corresponding file in the mentioned file library.

所述索引号相当于文件的ID,作为文件的唯一标识。由于可能会存在文件名相同的文件,例如不同文件类型,在查找时可能会把相同文件名但文件类型不同的文件也找出来,而通过索引号与文件匹配码进行对应,可以确保查找到的文件就是用户需要的文件。The index number is equivalent to the ID of the file and serves as the 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 also be found during the search, and the index number and the file matching code are matched to ensure that the searched Files are files that users need.

作为对本实施例的第一方面的进一步改进,在所述获取所述服务器查找到的文件的文件内容之前,还包括:As a further improvement to the first aspect of this embodiment, before the acquisition of the file content of the file found by the server, the method further includes:

获取所述服务器发送的关于查找到的文件的缩略信息;Obtain the thumbnail information about the found file sent by the server;

将所述用户对所述缩略信息的确认消息发送给所述服务器,以使所述服务器返回查找到的文件的文件内容。Sending a 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 user may cause the server to return unnecessary file content due to inputting a wrong file matching code, which will increase unnecessary traffic consumption. In order to avoid this situation, the server can first send the thumbnail information of the found file to the client, and return the complete file content after the user confirms. Wherein, the thumbnail information may be part of the content of the file, such as a summary or a thumbnail.

作为对本实施例的第一方面的进一步改进,所述远程文件访问方法还包括:As a further improvement to the first aspect of this embodiment, the remote file access method further includes:

在用户登录后向服务器发送对所述用户的指定文件的删除指令,以使所述服务器根据所述删除指令删除所述指定文件,并更新所述文件配置表。After the user logs in, send a deletion instruction for the user's specified file to the server, so that the server deletes the specified file according to the deletion instruction, and updates the file configuration table.

当用户删除了服务器上的一个文件时,需要对所述文件配置表进行更新,删除对应的索引号以及文件匹配码,以保证所述文件配置表记录的信息是最新的。When a user deletes a file on the server, the file configuration table needs to be updated to delete the corresponding index number and file matching code, so as to ensure that the information recorded in the file configuration table is up-to-date.

作为对本实施例的第一方面的进一步改进,在所述获取所述服务器查找到的文件的文件内容之后,还包括:As a further improvement to the first aspect of this embodiment, after the acquisition of the file content of the file found by the server, it further includes:

检测所述用户是否对所述文件进行了修改;detecting whether the user has modified the file;

当检测到所述用户对所述文件进行了修改时,将对所述文件的修改内容发送给所述服务器,以使所述服务器根据更新存储在所述文件库上的所述文件。When it is detected that the user has modified the file, the modified content of the file is sent to the server, so that the server updates the file stored in the file library accordingly.

其中,所述修改内容包括增加的内容以及删除的内容。因此,在通过输入文件匹配码的方式获取文件内容的情况下,用户不仅是可以查看文件内容,还可以对其进行修改,并且将修改内容与服务器的文件内容进行合并以更新所述文件。Wherein, the modified content includes added content and deleted content. Therefore, in the case of obtaining the file content 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.

作为对本实施例的第一方面的进一步改进,所述检测所述用户是否对所述文件进行了修改,具体包括:As a further improvement to the first aspect of this embodiment, the detecting whether the user has modified the file specifically includes:

计算缓存在本地的文件的文件内容的MD5值,并与存储在服务器上的相同文件的文件内容的MD5值进行对比;Calculate the MD5 value of the file content of the file cached locally, and compare it with the MD5 value of the file content of the same file stored on the server;

当两者不相同时,判定所述用户对所述文件进行了修改。When the two are different, it is determined that the user has modified the file.

相应地,本发明的第二实施例的第二方面还提供一种客户端。参见图8,其是本发明第一实施例的第二方面提供的客户端的结构框图,包括:Correspondingly, the second aspect of the second embodiment of the present invention further provides a client. Referring to FIG. 8, it is a structural block diagram of the client provided by the second aspect of the first embodiment of the present invention, including:

匹配码输入模块21,用于在用户未登录的状态下获取用户输入的文件匹配码;The matching code input module 21 is used to obtain the file matching code input by the user when the user is not logged in;

匹配码发送模块22,用于将用户输入的文件匹配码发送给服务器,以使所述服务器在文件库中查找具有所述用户输入的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件具有的文件匹配码均不相同;The matching code sending module 22 is configured to send the file matching code input by the user to the server, so that the server searches for a file with the file matching code input by the user in the file library; wherein, the file is stored in the file library The files of each have a file matching code, and each file has a different file matching code;

文件内容获取模块23,用于获取所述服务器查找到的文件的文件内容以供用户进行访问操作。The file content obtaining module 23 is configured to obtain the file content of the file found by the server for the user to access.

作为对本实施例的第二方面的进一步改进,所述客户端还包括:As a further improvement to the second aspect of this embodiment, the client further includes:

文件上传模块,用于在用户登录后将用户的文件上传到所述服务器的文件库,以使所述服务器为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。The file upload module is used to upload the user's file to the file library of the server after the user logs in, so that the server generates a file matching code for the file newly uploaded by the user, and updates the file configuration table; wherein, the file The configuration table is used to record the file name of each file in the file library and the file matching code of each file.

作为对本实施例的第二方面的进一步改进,,所述文件配置表中还记载了每个文件的索引号;As a further improvement to the second aspect of this embodiment, the file configuration table also records the index number of each file;

所述匹配码发送模块22具体用于:The matching code sending module 22 is specifically used for:

将所述用户输入的文件匹配码发送给服务器,以使所述服务器在所述文件配置表中查找所述用户输入的文件匹配码对应的文件的索引号,并根据查找到的索引号在所述文件库中查找相应的文件。Sending the file matching code input by the user to the server, so that the server searches the file configuration table for the index number of the file corresponding to the file matching code input by the user, and according to the found index number in the Find the corresponding file in the mentioned file library.

作为对本实施例的第二方面的进一步改进,所述客户端还包括:As a further improvement to the second aspect of this embodiment, the client further includes:

缩略信息获取模块,用于在所述获取所述服务器查找到的文件的文件内容之前,获取所述服务器发送的关于查找到的文件的缩略信息;A thumbnail information acquiring module, configured to acquire thumbnail information about the found file sent by the server before acquiring the file content of the file found by the server;

确认消息发送模块,用于将所述用户对所述缩略信息的确认消息发送给所述服务器,以使所述服务器返回查找到的文件的文件内容。A confirmation message sending module, configured to send the user's confirmation message for the thumbnail information to the server, so that the server returns the file content of the found file.

作为对本实施例的第二方面的进一步改进,所述客户端还包括:As a further improvement to the second aspect of this embodiment, the client further includes:

删除指令发送模块,用于在用户登录后向服务器发送对所述用户的指定文件的删除指令,以使所述服务器根据所述删除指令删除所述指定文件,并更新所述文件配置表。A deletion instruction sending module, configured to send a deletion instruction for the user's specified file 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.

作为对本实施例的第二方面的进一步改进,所述客户端还包括:As a further improvement to the second aspect of this embodiment, the client further includes:

修改检测模块,用于检测所述用户是否对所述文件进行了修改;A modification detection module, configured to detect whether the user has modified the file;

修改内容发送模块,用于当检测到所述用户对所述文件进行了修改时,将对所述文件的修改内容发送给所述服务器,以使所述服务器根据更新存储在所述文件库上的所述文件。A modified content sending module, configured to send the modified content of the file to the server when it is detected that the user has modified the file, so that the server stores the modified content on the file library according to the update of the said file.

作为对本实施例的第二方面的进一步改进,所述修改检测模块具体包括:As a further improvement to the second aspect of this embodiment, the modification detection module specifically includes:

MD5计算单元,用于计算缓存在本地的文件的文件内容的MD5值,并与存储在服务器上的相同文件的文件内容的MD5值进行对比;The MD5 calculation unit is used to calculate the MD5 value of the file content of the locally cached file, and compare it with the MD5 value of the file content of the same file stored on the server;

判定单元,用于缓存在本地的文件与存储在服务器上的相同的文件两者的文件内容的MD5值不相同时,判定所述用户对所述文件进行了修改。The determining unit is configured to determine that the user has modified the file when the MD5 values of the file contents of the file cached locally and the same file stored on the server are different.

需要说明的是,本发明第二实施例的第二方面所提供的服务器用于执行本发明第二实施例的第一方面所提供的远程文件访问方法的流程步骤,两者的工作原理和有益效果一一对应,因而不再赘述。It should be noted that the server provided by the second aspect of the second embodiment of the present invention is used to execute the process steps of the remote file access method provided by the first aspect of the second embodiment of the present invention, the working principles and benefits of both The effects are one-to-one correspondence, so I won’t repeat them here.

另外,本发明第三实施例还提供一种远程文件访问系统,包括上述第一实施例的第二方面提供的服务器1以及若干个上述第二实施例的第二方面提供的客户端2。如图9所示,其是本发明第三实施例提供的远程文件访问系统的结构框图。In addition, the third embodiment of the present invention also provides a remote file access system, including the server 1 provided in the second aspect of the first embodiment above and several clients 2 provided in the second aspect of the second embodiment above. As shown in FIG. 9 , it is a structural block diagram of the remote file access system provided by the third embodiment of the present invention.

以下以用户为教师为例描述本实施例应用到备课和授课的一个完整工作过程,涉及到服务器、备课端以及授课端:The following takes the user as a teacher as an example to describe a complete working process of this embodiment applied to lesson preparation and teaching, involving the server, lesson preparation terminal and teaching terminal:

步骤1:用户首次注册,绑定手机号。该手机号用于后续接收文件匹配码和文件名。Step 1: The user registers for the first time and binds a mobile phone number. The mobile phone number is used to receive the file matching code and file name later.

步骤2:用户在备课端登录自己的账号。Step 2: The user logs in his account on the lesson preparation terminal.

步骤3:用户在备课端进行课件的制作。Step 3: The user makes courseware on the lesson preparation terminal.

步骤4:用户制作好课件后,保存课件至服务器。Step 4: After the user makes the courseware, save the courseware to the server.

步骤5:服务器为课件随机生成一个文件匹配码,建立所述文件与所述文件匹配码的映射关系。Step 5: The server randomly generates a file matching code for the courseware, and establishes a mapping relationship between the file and the file matching code.

步骤6:服务器将生成的文件匹配码以及课件名称发送至用户的手机号。用户在注册时绑定了手机号,在备课端制作课件时登录了账号,因此可以将文件匹配码准确发送给用户的手机。Step 6: The server sends the generated file matching code and 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 courseware on the lesson preparation terminal, so the file matching code can be accurately sent to the user's mobile phone.

步骤7:用户在授课端准备打开课件。Step 7: The user prepares to open the courseware on the teaching end.

步骤8:用户在授课端输入一个文件匹配码(可以从手机中获取该文件匹配码,授课端使用该文件匹配码从服务器中的文件配置表找到特定的课件,然后在授课端打开课件。Step 8: The user enters 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 the specific courseware from the file configuration table in the server, and then opens the courseware on the teaching end.

步骤9:用户在授课端进行授课。Step 9: The user conducts lectures on the teaching terminal.

步骤10:用户在授课端退出授课。Step 10: The user exits the lecture on the teaching terminal.

步骤11:在步骤9中,如果用户修改了课件的内容,则在步骤10中,授课端检测课件内容的MD5是否发了变化,若发生了变化,则将变化后的课件内容同步保存至服务器,文件配置表不发生变化,下次使用该文件匹配码还可以打开该课件。Step 11: In step 9, if the user modifies the content of the courseware, then in step 10, the teaching end detects whether the MD5 of the courseware content has changed, and if there is a change, the changed courseware content will be saved to the server synchronously , the file configuration table does not change, and the courseware can still be opened by using the file matching code next time.

相比于现有技术,本发明的有益效果在于:本发明第一实施例提供一种远程文件访问方法与执行该方法的服务器,方法包括获取客户端在用户未登录的状态下发送的文件匹配码;在文件库中查找具有所述客户端所发送的文件匹配码的文件;将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。服务器的文件库中的文件分别具有一个文件匹配码,用户可以在未登陆的情况下,通过客户端向服务器发送需要获取的文件的文件匹配码,服务器根据所述文件匹配码从文件库中查找所述需要获取的文件。即用户可以通过免登录的方式通过输入一个文件匹配码即可对服务器的文件进行访问,使得用户在访问远程文件时操作更加简便,提高访问的效率。相应的本发明第二实施例提供一种远程文件访问方法与执行该方法的客户端,本发明第三实施例提供一种包括所述服务器和客户端的远程文件访问系统。Compared with the prior art, the beneficial effect of the present invention is that: the first embodiment of the present invention provides a remote file access method and a server executing the method, the method includes obtaining the matching file sent by the client when the user is not logged in. code; find the file with the file matching code sent by the client in the file library; send the file content of the found file to the client for the user to access. The files in the file library of the server each have a file matching code. 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 searches the file from the file library according to the file matching code. Documents that need to be obtained. That is, users can access files on the server by entering a file matching code in a login-free manner, which makes the operation easier for users when accessing remote files and improves access efficiency. Correspondingly, the second embodiment of the present invention provides a remote file access method and a client executing the method, and the third embodiment of the present invention provides a remote file access system including the server and the client.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(RandomAccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM) and the like.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。The above description is a preferred embodiment of the present invention, and it should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications are also considered Be the protection scope of the present invention.

Claims (33)

1.一种远程文件访问方法,其特征在于,包括:1. A remote file access method, characterized in that, comprising: 获取客户端在用户未登录的状态下发送的文件匹配码;Obtain the file matching code sent by the client when the user is not logged in; 在文件库中查找具有所述客户端所发送的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件具有的文件匹配码均不相同;Searching for a file with the file matching code sent by the client in the file library; wherein, the files stored in the file library each have a file matching code, and each file has a different file matching code; 将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。The file content of the found file is sent to the client for the user to perform an access operation. 2.如权利要求1所述的远程文件访问方法,其特征在于,还包括:2. The remote file access method according to claim 1, further comprising: 获取客户端在用户已登录的状态下上传的文件并存储到文件库中;Obtain the files uploaded by the client when the user is logged in and store them in the file library; 为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。Generate a file matching code for a file newly uploaded by the user, and update the file configuration table; wherein, the file configuration table is used to record the file name of each file in the file library and the file matching code of each file. 3.如权利要求2所述的远程文件访问方法,其特征在于,所述文件配置表中还记载了每个文件的索引号;3. The remote file access method according to claim 2, wherein the index number of each file is also recorded in the file configuration table; 所述在文件库中查找具有所述客户端所发送的文件匹配码的文件,具体包括:The searching for the file with the file matching code sent by the client in the file library specifically includes: 在所述文件配置表中查找所述客户端所发送的文件匹配码对应的文件的索引号;Find the index number of the file corresponding to the file matching code sent by the client in the file configuration table; 根据查找到的索引号在所述文件库中查找相应的文件。The corresponding file is searched in the file library according to the found index number. 4.如权利要求2或3所述的远程文件访问方法,其特征在于,所述将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作,具体包括:4. The remote file access method according to claim 2 or 3, wherein the sending the file content of the found file to the client for the user to perform an access operation specifically includes: 将查找到的文件的缩略信息发送给所述客户端;Send the thumbnail information of the found file to the client; 在获取到所述客户端对所述缩略信息的确认消息时,将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。When the confirmation message of the thumbnail information from the client is obtained, the file content of the found file is sent to the client for the user to perform an access operation. 5.如权利要求2所述的远程文件访问方法,其特征在于,在所述生成用户新上传的文件的文件匹配码,并更新文件配置表之后还包括:5. The remote file access method according to claim 2, further comprising: 将用户新上传的文件的文件名及对应的文件匹配码发送给与所述用户绑定的移动设备,使得所述移动设备在接收到所述文件的文件名和对应的文件匹配码之后,更新存储在所述移动设备上的用户文件对照表;其中,所述用户文件对照表记载了所述用户存储在所述文件库的所有文件的文件名及对应的文件匹配码。Send the file name of the file newly uploaded by the user and the corresponding file matching code to the mobile device bound to the user, so that the mobile device updates the stored file after receiving the file name of the file and the corresponding file matching code. A user file comparison table on the mobile device; wherein, the user file comparison table records the file names and corresponding file matching codes of all files stored by the user in the file library. 6.如权利要求5所述的远程文件访问方法,其特征在于,所述远程文件访问方法还包括:6. The remote file access method according to claim 5, wherein the remote file access method further comprises: 获取所述客户端在用户登录后发送的对用户的指定文件的删除指令;Obtaining a deletion instruction to the user's specified file sent by the client after the user logs in; 根据所述删除指令删除所述指定文件,并更新所述文件配置表;delete the specified file according to the delete instruction, and update the file configuration table; 将被删除了的文件的文件名及对应的文件匹配码发送给所述移动设备,通知所述移动设备对所述用户文件对照表进行同步删除的操作。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 a synchronous deletion operation on the user file comparison table. 7.如权利要求5所述的远程文件访问方法,其特征在于,用户新上传的文件的文件名及对应的文件匹配码显示在所述用户文件对照表的最前端。7. The remote file access method according to claim 5, wherein the file name of the file newly uploaded by the user and the corresponding file matching code are displayed at the forefront of the user file comparison table. 8.如权利要求5~7任一项所述的远程文件访问方法,其特征在于,所述移动设备为与所述用户绑定的手机号码所对应的手机。8. The remote file access method according to any one of claims 5-7, wherein the mobile device is a mobile phone corresponding to the mobile phone number bound to the user. 9.如权利要求1所述的远程文件访问方法,其特征在于,在所述将查找到的文件的文件内容发送给所述客户端之后,还包括:9. The remote file access method according to claim 1, further comprising: 获取所述客户端发送的对所述文件的修改内容;Obtain the modified content of the file sent by the client; 根据所述修改内容更新存储在所述文件库上的所述文件。The file stored on the file library is updated according to the modified content. 10.一种服务器,其特征在于,包括:10. A server, characterized in that, comprising: 匹配码获取模块,用于获取客户端在用户未登录的状态下发送的文件匹配码;The matching code acquisition module is used to obtain the file matching code sent by the client when the user is not logged in; 文件查找模块,用于在文件库中查找具有所述客户端所发送的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件所配置的文件匹配码均不相同;A file search module, configured to search for a file with the file matching code sent by the client in the file library; wherein, the files stored in the file library each have a file matching code, and each file is configured with a file matching code The file matching codes are all different; 文件内容发送模块,用于将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。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. 11.如权利要求10所述的服务器,其特征在于,所述服务器还包括:11. The server according to claim 10, further comprising: 文件获取模块,用于获取客户端在用户已登录的状态下上传的文件并存储到文件库中;The file obtaining module is used to obtain the files uploaded by the client when the user is logged in and store them in the file library; 匹配码配置模块,用于为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。A matching code configuration module, configured to generate a file matching code for a file newly uploaded by a user, and update a file configuration table; wherein, the file configuration table is used to record the file name of each file in the file library and each file Has a file matching code. 12.如权利要求11所述的服务器,其特征在于,所述文件配置表中还记载了每个文件的索引号;12. The server according to claim 11, wherein the index number of each file is also recorded in the file configuration table; 所述文件查找模块具体包括:The file search module specifically includes: 索引号查找单元,用于在所述文件配置表中查找所述客户端所发送的文件匹配码对应的文件的索引号;an index number search unit, configured to search the file configuration table for the index number of the file corresponding to the file matching code sent by the client; 文件查找单元,用于根据查找到的索引号在所述文件库中查找相应的文件。A file searching unit, configured to search the corresponding file in the file library according to the found index number. 13.如权利要求11或12所述的服务器,其特征在于,所述文件内容发送模块具体包括:13. The server according to claim 11 or 12, wherein the file content sending module specifically includes: 缩略信息发送单元,用于将查找到的文件的缩略信息发送给所述客户端;a thumbnail information sending unit, configured to send the thumbnail information of the found file to the client; 文件内容发送单元,用于在获取到所述客户端对所述缩略信息的确认消息时,将查找到的文件的文件内容发送给所述客户端以供用户进行访问操作。The file content sending unit is configured to send the file content of the found file to the client for the user to perform an access operation when the client confirms the thumbnail information. 14.如权利要求11所述的服务器,其特征在于,所述服务器还包括:14. The server according to claim 11, further comprising: 匹配码发送模块,用于在生成用户新上传的文件匹配码后,将所述文件的文件名及对应的文件匹配码发送给与所述用户绑定的移动设备,使得所述移动设备在接收到所述文件的文件名和对应的文件匹配码之后,更新存储在所述移动设备上的用户文件对照表;其中,所述用户文件对照表记载了所述用户存储在所述文件库的所有文件的文件名及对应的文件匹配码。The matching code sending module is used to send the file name of the file and the corresponding file matching code to the mobile device bound to the user after generating the file matching code newly uploaded by the user, so that the mobile device receives After obtaining the file name of the file and the corresponding file matching code, update the user file comparison table stored on the mobile device; wherein, the user file comparison table records all files stored by the user in the file library The file name and the corresponding file matching code. 15.如权利要求14所述的服务器,其特征在于,所述服务器还包括:15. The server according to claim 14, further comprising: 删除指令获取模块,用于获取所述客户端在用户登录后发送的对用户的指定文件的删除指令;A deletion instruction acquisition module, configured to acquire a deletion instruction to the user's specified file sent by the client after the user logs in; 文件删除模块,用于根据所述删除指令删除所述指定文件,并更新所述文件配置表;A file deletion module, configured to delete the specified file according to the deletion instruction, and update the file configuration table; 同步删除通知模块,用于将被删除了的文件的文件名及对应的文件匹配码发送给所述移动设备,通知所述移动设备对所述用户文件对照表进行同步删除的操作。The synchronous deletion notification module is used 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 a synchronous deletion operation on the user file comparison table. 16.如权利要求14所述的服务器,其特征在于,用户新上传的文件的文件名及对应的文件匹配码显示在所述用户文件对照表的最前端。16. The server according to claim 14, wherein the file name and the corresponding file matching code of the newly uploaded file by the user are displayed at the front of the user file comparison table. 17.如权利要求14~16任一项所述的服务器,其特征在于,所述移动设备为与所述用户绑定的手机号码所对应的手机。17. The server according to any one of claims 14-16, wherein the mobile device is a mobile phone corresponding to the mobile phone number bound to the user. 18.如权利要求10所述的服务器,其特征在于,所述服务器还包括:18. The server according to claim 10, further comprising: 修改内容获取模块,用于在所述将查找到的文件的文件内容发送给所述客户端之后获取所述客户端发送的对所述文件的修改内容;A modified content acquisition module, configured to obtain the modified content of the file sent by the client after the file content of the found file is sent to the client; 文件修改模块,用于根据所述修改内容更新存储在所述文件库上的所述文件。A file modification module, configured to update the file stored on the file library according to the modified content. 19.一种远程文件访问方法,其特征在于,包括:19. A method for remote file access, comprising: 在用户未登录的状态下获取用户输入的文件匹配码;Obtain the file matching code entered by the user when the user is not logged in; 将用户输入的文件匹配码发送给服务器,以使所述服务器在文件库中查找具有所述用户输入的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件具有的文件匹配码均不相同;Sending the file matching code input by the user to the server, so that the server searches for the file with the file matching code input by the user in the file library; wherein, the files stored in the file library each have a file matching code , and each file has a different file matching code; 获取所述服务器查找到的文件的文件内容以供用户进行访问操作。The file content of the file found by the server is obtained for the user to perform an access operation. 20.如权利要求19所述的远程文件访问方法,其特征在于,所述远程文件访问方法还包括:20. The remote file access method according to claim 19, wherein the remote file access method further comprises: 在用户登录后将用户的文件上传到所述服务器的文件库,以使所述服务器为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。After the user logs in, upload the user's file to the file library of the server, so that the server generates a file matching code for the file newly uploaded by the user, and updates the file configuration table; wherein, the file configuration table is used to record all The file name of each file in the file repository is matched with the file matching code that each file has. 21.如权利要求20所述的远程文件访问方法,其特征在于,所述文件配置表中还记载了每个文件的索引号;21. The remote file access method according to claim 20, wherein the index number of each file is also recorded in the file configuration table; 所述将用户输入的文件匹配码发送给服务器,以使所述服务器在文件库中查找具有所述用户输入的文件匹配码的文件,具体为:The sending the file matching code input by the user to the server, so that the server searches for the file with the file matching code input by the user in the file library, specifically: 将所述用户输入的文件匹配码发送给服务器,以使所述服务器在所述文件配置表中查找所述用户输入的文件匹配码对应的文件的索引号,并根据查找到的索引号在所述文件库中查找相应的文件。Sending the file matching code input by the user to the server, so that the server searches the file configuration table for the index number of the file corresponding to the file matching code input by the user, and according to the found index number in the Find the corresponding file in the mentioned file library. 22.如权利要求20或21所述的远程文件访问方法,其特征在于,在所述获取所述服务器查找到的文件的文件内容之前,还包括:22. The remote file access method according to claim 20 or 21, further comprising: before obtaining the file content of the file found by the server: 获取所述服务器发送的关于查找到的文件的缩略信息;Obtain the thumbnail information about the found file sent by the server; 将所述用户对所述缩略信息的确认消息发送给所述服务器,以使所述服务器返回查找到的文件的文件内容。Sending a confirmation message of the user to the thumbnail information to the server, so that the server returns the file content of the found file. 23.如权利要求20所述的远程文件访问方法,其特征在于,所述远程文件访问方法还包括:23. The remote file access method according to claim 20, wherein the remote file access method further comprises: 在用户登录后向服务器发送对所述用户的指定文件的删除指令,以使所述服务器根据所述删除指令删除所述指定文件,并更新所述文件配置表。After the user logs in, send a deletion instruction for the user's specified file to the server, so that the server deletes the specified file according to the deletion instruction, and updates the file configuration table. 24.如权利要求19所述的远程文件访问方法,其特征在于,在所述获取所述服务器查找到的文件的文件内容之后,还包括:24. The remote file access method according to claim 19, further comprising: after said obtaining the file content of the file found by said server: 检测所述用户是否对所述文件进行了修改;detecting whether the user has modified the file; 当检测到所述用户对所述文件进行了修改时,将对所述文件的修改内容发送给所述服务器,以使所述服务器根据更新存储在所述文件库上的所述文件。When it is detected that the user has modified the file, the modified content of the file is sent to the server, so that the server updates the file stored in the file library accordingly. 25.如权利要求24所述的远程文件访问方法,其特征在于,所述检测所述用户是否对所述文件进行了修改,具体包括:25. The remote file access method according to claim 24, wherein the detecting whether the user has modified the file specifically comprises: 计算缓存在本地的文件的文件内容的MD5值,并与存储在服务器上的相同文件的文件内容的MD5值进行对比;Calculate the MD5 value of the file content of the file cached locally, and compare it with the MD5 value of the file content of the same file stored on the server; 当两者不相同时,判定所述用户对所述文件进行了修改。When the two are different, it is determined that the user has modified the file. 26.一种客户端,其特征在于,包括:26. A client, characterized in that, comprising: 匹配码输入模块,用于在用户未登录的状态下获取用户输入的文件匹配码;The matching code input module is used to obtain the file matching code input by the user when the user is not logged in; 匹配码发送模块,用于将用户输入的文件匹配码发送给服务器,以使所述服务器在文件库中查找具有所述用户输入的文件匹配码的文件;其中,存储在所述文件库中的文件分别具有一个文件匹配码,且每个文件具有的文件匹配码均不相同;A matching code sending module, configured to send the file matching code input by the user to the server, so that the server searches the file library for a file with the file matching code input by the user; wherein, the file 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 used to obtain the file content of the file found by the server for the user to access. 27.如权利要求26所述的客户端,其特征在于,所述客户端还包括:27. The client according to claim 26, further comprising: 文件上传模块,用于在用户登录后将用户的文件上传到所述服务器的文件库,以使所述服务器为用户新上传的文件生成文件匹配码,并更新文件配置表;其中,所述文件配置表用于记载所述文件库中的每个文件的文件名与每个文件具有的文件匹配码。The file upload module is used to upload the user's file to the file library of the server after the user logs in, so that the server generates a file matching code for the file newly uploaded by the user, and updates the file configuration table; wherein, the file The configuration table is used to record the file name of each file in the file library and the file matching code of each file. 28.如权利要求26所述的客户端,其特征在于,所述文件配置表中还记载了每个文件的索引号;28. The client according to claim 26, wherein the file configuration table also records the index number of each file; 所述匹配码发送模块具体用于:The matching code sending module is specifically used for: 将所述用户输入的文件匹配码发送给服务器,以使所述服务器在所述文件配置表中查找所述用户输入的文件匹配码对应的文件的索引号,并根据查找到的索引号在所述文件库中查找相应的文件。Sending the file matching code input by the user to the server, so that the server searches the file configuration table for the index number of the file corresponding to the file matching code input by the user, and according to the found index number in the Find the corresponding file in the mentioned file library. 29.如权利要求27或28所述的客户端,其特征在于,所述客户端还包括:29. The client according to claim 27 or 28, wherein the client further comprises: 缩略信息获取模块,用于在所述获取所述服务器查找到的文件的文件内容之前,获取所述服务器发送的关于查找到的文件的缩略信息;A thumbnail information acquiring module, configured to acquire thumbnail information about the found file sent by the server before acquiring the file content of the file found by the server; 确认消息发送模块,用于将所述用户对所述缩略信息的确认消息发送给所述服务器,以使所述服务器返回查找到的文件的文件内容。A confirmation message sending module, configured to send the user's confirmation message for the thumbnail information to the server, so that the server returns the file content of the found file. 30.如权利要求27所述的客户端,其特征在于,所述客户端还包括:30. The client according to claim 27, further comprising: 删除指令发送模块,用于在用户登录后向服务器发送对所述用户的指定文件的删除指令,以使所述服务器根据所述删除指令删除所述指定文件,并更新所述文件配置表。A deletion instruction sending module, configured to send a deletion instruction for the user's specified file 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. 31.如权利要求27所述的客户端,其特征在于,所述客户端还包括:31. The client according to claim 27, further comprising: 修改检测模块,用于检测所述用户是否对所述文件进行了修改;A modification detection module, configured to detect whether the user has modified the file; 修改内容发送模块,用于当检测到所述用户对所述文件进行了修改时,将对所述文件的修改内容发送给所述服务器,以使所述服务器根据更新存储在所述文件库上的所述文件。A modified content sending module, configured to send the modified content of the file to the server when it is detected that the user has modified the file, so that the server stores the modified content on the file library according to the update of the said file. 32.如权利要求31所述的客户端,其特征在于,所述修改检测模块具体包括:32. The client according to claim 31, wherein the modification detection module specifically comprises: MD5计算单元,用于计算缓存在本地的文件的文件内容的MD5值,并与存储在服务器上的相同文件的文件内容的MD5值进行对比;The MD5 calculation unit is used to calculate the MD5 value of the file content of the locally cached file, and compare it with the MD5 value of the file content of the same file stored on the server; 判定单元,用于缓存在本地的文件与存储在服务器上的相同的文件两者的文件内容的MD5值不相同时,判定所述用户对所述文件进行了修改。The determining unit is configured to determine that the user has modified the file when the MD5 values of the file contents of the file cached locally and the same file stored on the server are different. 33.一种远程文件访问系统,其特征在于,包括如权利要求10~18任一项所述的服务器以及如权利要求26~32任一项所述的客户端。33. A remote file access system, comprising the server according to any one of claims 10-18 and the client according to any one of claims 26-32.
CN201610508836.1A 2016-06-29 2016-06-29 remote file access method, server, client and system Pending CN106210001A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610508836.1A CN106210001A (en) 2016-06-29 2016-06-29 remote file access method, server, client and system
PCT/CN2016/113327 WO2018000785A1 (en) 2016-06-29 2016-12-30 Method for remote file access, server, client terminal, and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610508836.1A CN106210001A (en) 2016-06-29 2016-06-29 remote file access method, server, client and system

Publications (1)

Publication Number Publication Date
CN106210001A true CN106210001A (en) 2016-12-07

Family

ID=57464138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610508836.1A Pending CN106210001A (en) 2016-06-29 2016-06-29 remote file access method, server, client and system

Country Status (2)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018000785A1 (en) * 2016-06-29 2018-01-04 广州视睿电子科技有限公司 Method for remote file access, server, client terminal, and system
CN113407025A (en) * 2021-05-27 2021-09-17 广东职业技术学院 Information display method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170523A (en) * 2007-12-05 2008-04-30 腾讯科技(深圳)有限公司 File transmission system, method and file forward decision server
CN101676902A (en) * 2008-09-19 2010-03-24 众来科技股份有限公司 File control and management system with functions of identification, classification, search and storage and method
US20130046833A1 (en) * 2011-08-16 2013-02-21 Smith Micro Software, Inc. Method and System for Sending a Digital Invitation Requesting a Data Upload
CN103023684A (en) * 2011-09-26 2013-04-03 腾讯科技(深圳)有限公司 Method, device and system for network information management
CN103634406A (en) * 2013-12-11 2014-03-12 北京荣之联科技股份有限公司 File synchronization method and terminal thereof
CN105183393A (en) * 2015-09-21 2015-12-23 上海维宏电子科技股份有限公司 Method for achieving rapid file previewing based on disk cache
CN105187562A (en) * 2015-09-30 2015-12-23 易士软件(上海)有限公司 System and method for operating remote file

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307210B (en) * 2011-01-13 2014-12-10 国云科技股份有限公司 Data downloading system and data management and downloading method thereof
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
CN103391307B (en) * 2012-05-11 2018-03-20 阿里巴巴集团控股有限公司 Offline transparent transmission and display methods, the apparatus and system of off-line data
CN104348919B (en) * 2014-11-07 2018-09-21 北京奇虎科技有限公司 Carry out the method, apparatus and browser of file download
CN106210001A (en) * 2016-06-29 2016-12-07 广州视睿电子科技有限公司 remote file access method, server, client and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170523A (en) * 2007-12-05 2008-04-30 腾讯科技(深圳)有限公司 File transmission system, method and file forward decision server
CN101676902A (en) * 2008-09-19 2010-03-24 众来科技股份有限公司 File control and management system with functions of identification, classification, search and storage and method
US20130046833A1 (en) * 2011-08-16 2013-02-21 Smith Micro Software, Inc. Method and System for Sending a Digital Invitation Requesting a Data Upload
CN103023684A (en) * 2011-09-26 2013-04-03 腾讯科技(深圳)有限公司 Method, device and system for network information management
CN103634406A (en) * 2013-12-11 2014-03-12 北京荣之联科技股份有限公司 File synchronization method and terminal thereof
CN105183393A (en) * 2015-09-21 2015-12-23 上海维宏电子科技股份有限公司 Method for achieving rapid file previewing based on disk cache
CN105187562A (en) * 2015-09-30 2015-12-23 易士软件(上海)有限公司 System and method for operating remote file

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018000785A1 (en) * 2016-06-29 2018-01-04 广州视睿电子科技有限公司 Method for remote file access, server, client terminal, and system
CN113407025A (en) * 2021-05-27 2021-09-17 广东职业技术学院 Information display method and system

Also Published As

Publication number Publication date
WO2018000785A1 (en) 2018-01-04

Similar Documents

Publication Publication Date Title
US12461925B2 (en) Identifying relevant information within a document hosting system
JP3899795B2 (en) File management system and method
JP6128661B2 (en) Theme-based vitality
CN105827683B (en) A kind of method, server and electronic equipment that data are synchronous
CN108197311B (en) Method, device, device and readable storage medium for aggregated display of housing data
CN114185952B (en) Data retrieval method, device, electronic device and storage medium
CN108595393A (en) A kind of automatic form filling method and device
WO2014000148A1 (en) Resource obtaining method and device
CN112860642A (en) Court trial data processing method, server and terminal
CN101354721A (en) Server, data processing device and data processing method therein
CN106210001A (en) remote file access method, server, client and system
WO2018059430A1 (en) Database searching
CN114065716B (en) Data collection method, device, computer equipment and storage medium
KR20230103997A (en) Project documents management method, project management server, and computer program therefor
JP6088781B2 (en) Server apparatus, program, and control method
JP2004145520A5 (en)
CN108182203A (en) Data checking method and device
CN111858627A (en) Academic degree and academic calendar query system and method based on block chain
JP6279969B2 (en) Communication device
CN101340463B (en) Method and device for determining network resource type
CN114547121A (en) Information detection method, device, electronic device and computer storage medium
CN114417431A (en) File archiving method and device
US20050132082A1 (en) System and method for resuming downloading from interruption points
JP2007183954A (en) Refinement method based on log content
CN108694219B (en) Data processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161207

RJ01 Rejection of invention patent application after publication