WO2019047976A1 - Network file management method, terminal and computer readable storage medium - Google Patents

Network file management method, terminal and computer readable storage medium Download PDF

Info

Publication number
WO2019047976A1
WO2019047976A1 PCT/CN2018/105059 CN2018105059W WO2019047976A1 WO 2019047976 A1 WO2019047976 A1 WO 2019047976A1 CN 2018105059 W CN2018105059 W CN 2018105059W WO 2019047976 A1 WO2019047976 A1 WO 2019047976A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
network
local terminal
remote server
management method
Prior art date
Application number
PCT/CN2018/105059
Other languages
French (fr)
Chinese (zh)
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 WO2019047976A1 publication Critical patent/WO2019047976A1/en

Links

Images

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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/188Virtual file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/188Virtual file systems
    • G06F16/192Implementing virtual folder structures
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/75Indicating network or usage conditions on the user display

Abstract

Provided is a network file management method, a terminal and a computer readable storage medium. Said method comprises: acquiring, by means of a communication link between a local terminal and a remote server, a file storage attribute, such as the directory, of a network file on the remote server; constructing and displaying a virtual file system corresponding to the file storage attribute, the operation manner of the virtual file system matching the file operation manner of a local terminal; monitoring the user's management operation on the virtual file system; and performing, by means of the communication link, management on the network file according to the management operation.

Description

网络文件管理方法、终端及计算机可读存储介质Network file management method, terminal and computer readable storage medium 技术领域Technical field
本公开涉及(但不限于)云存储领域。The present disclosure relates to, but is not limited to, the field of cloud storage.
背景技术Background technique
随着云存储技术的快速发展,运营商通过远程服务器为用户提供了云盘服务,用户可以将一些文件存储在云盘中,以实现多设备共享文件以及节省本地存储空间等效果。With the rapid development of cloud storage technology, operators provide cloud disk services to users through remote servers. Users can store some files in the cloud disk to achieve multi-device sharing of files and save local storage space.
在实际应用中,用户在通过网页或者客户端登录云盘后,需要按照云盘运营商所提供的云盘操作方式操作云盘内的网络文件。不同的云盘运营商所提供的云盘操作方式也不尽相同,因此,不同的云盘操作方式往往会导致用户使用不便,例如用户需要阅读云盘使用说明,然后学习如何操作等,降低了用户的使用体验。In the actual application, after logging in to the cloud disk through the web page or the client, the user needs to operate the network file in the cloud disk according to the cloud disk operation mode provided by the cloud disk operator. The cloud disk operators provided by different cloud disk operators operate in different ways. Therefore, different cloud disk operation modes often cause inconvenience to users. For example, users need to read the cloud disk usage instructions, and then learn how to operate, etc., which is reduced. User experience.
发明内容Summary of the invention
根据本公开实施例,提供一种网络文件管理方法,包括:通过本地终端与远程服务器的通信链接,获取网络文件在远程服务器上的文件存储属性;构建并显示与文件存储属性对应的虚拟文件系统,虚拟文件系统的操作方式与本地终端的文件操作方式匹配;监测用户在虚拟文件系统的管理操作;以及通过通信链接,根据管理操作对网络文件进行管理。According to an embodiment of the present disclosure, a network file management method is provided, including: obtaining, by a communication link between a local terminal and a remote server, a file storage attribute of a network file on a remote server; and constructing and displaying a virtual file system corresponding to the file storage attribute. The operation mode of the virtual file system is matched with the file operation mode of the local terminal; the management operation of the user in the virtual file system is monitored; and the network file is managed according to the management operation through the communication link.
根据本公开实施例,提供一种网络文件管理终端,包括处理器、存储器及通信总线,其中,通信总线用于实现处理器和存储器之间的连接通信,处理器执行存储器中存储的一个或者多个程序时,处理器执行根据本公开的网络文件管理方法。According to an embodiment of the present disclosure, there is provided a network file management terminal including a processor, a memory, and a communication bus, wherein the communication bus is used to implement connection communication between the processor and the memory, and the processor executes one or more stored in the memory At the time of the program, the processor executes the network file management method according to the present disclosure.
本公开实施例还提供一种计算机可读存储介质,其上存储有一个或者多个程序,所述一个或者多个程序被一个或者多个处理器执行时,所述一个或者多个处理器执行根据本公开的网络文件管理方法。Embodiments of the present disclosure also provide a computer readable storage medium having stored thereon one or more programs, the one or more programs being executed by one or more processors, the one or more processors executing A network file management method according to the present disclosure.
附图说明DRAWINGS
附图用来提供对本公开技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本公开的技术方案,并不构成对本公开技术方案的限制。在附图中:The drawings are used to provide a further understanding of the technical solutions of the present disclosure, and constitute a part of the specification, and the embodiments of the present application are used to explain the technical solutions of the present disclosure, and do not constitute a limitation of the technical solutions of the present disclosure. In the drawing:
图1示出了相关技术中的云盘的常见的界面图;FIG. 1 shows a common interface diagram of a cloud disk in the related art;
图2为根据本公开实施例的网络文件管理方法的流程图;2 is a flowchart of a network file management method according to an embodiment of the present disclosure;
图3为根据本公开实施例的虚拟文件系统的示意图;3 is a schematic diagram of a virtual file system in accordance with an embodiment of the present disclosure;
图4为根据本公开实施例的虚拟文件系统的另一示意图;4 is another schematic diagram of a virtual file system in accordance with an embodiment of the present disclosure;
图5为根据本公开实施例的网络文件管理终端的结构示意图;FIG. 5 is a schematic structural diagram of a network file management terminal according to an embodiment of the present disclosure; FIG.
图6为根据本公开实施例的网络文件管理终端的网络架构示意图;6 is a schematic diagram of a network architecture of a network file management terminal according to an embodiment of the present disclosure;
图7为根据本公开实施例的网络文件管理方法的流程图;FIG. 7 is a flowchart of a network file management method according to an embodiment of the present disclosure; FIG.
图8为根据本公开实施例的云盘登录流程图;FIG. 8 is a flowchart of a cloud disk login according to an embodiment of the present disclosure; FIG.
图9为根据本公开实施例的打开文件操作的流程图;9 is a flowchart of an open file operation in accordance with an embodiment of the present disclosure;
图10为根据本公开实施例的更新文件操作的流程图;以及FIG. 10 is a flowchart of an update file operation according to an embodiment of the present disclosure;
图11为根据本公开实施例的删除文件操作的流程图。11 is a flow chart of a delete file operation in accordance with an embodiment of the present disclosure.
具体实施方式Detailed ways
为了使本公开的目的、技术方案及优点更加清楚明白,下面通过具体实施方式结合附图对本公开实施例作进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本公开,并不用于限定本公开。The embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are merely illustrative of the disclosure and are not intended to limit the disclosure.
图1示出了相关技术中的云盘的常见的界面图。FIG. 1 shows a common interface diagram of a cloud disk in the related art.
如图1所示,在文件管理界面,仅显示对应层次的文件/文件夹列表,例如,在用户进入云盘的初始界面,仅显示文件夹1、文件夹2及文件3。针对文件夹1及文件夹2内的子文件/文件夹,即便用户将鼠标移动到文件夹1的图标上方,也不会显示,用户需要打开文件夹1或文件夹2之后,才能看到其内的子文件/文件夹。对于存储空间信息而言,在初始界面完全不会显示,需要用户打开特定的查询选项进行查询。As shown in FIG. 1 , in the file management interface, only the file/folder list of the corresponding layer is displayed. For example, only the folder 1, the folder 2, and the file 3 are displayed when the user enters the initial interface of the cloud disk. For the subfiles/folders in folder 1 and folder 2, even if the user moves the mouse over the icon of folder 1, it will not be displayed. Users need to open folder 1 or folder 2 to see it. Subfiles/folders within. For storage space information, the initial interface is not displayed at all, and the user needs to open a specific query option for query.
图2为根据本公开实施例的网络文件管理方法的流程图。2 is a flow chart of a network file management method in accordance with an embodiment of the present disclosure.
为了降低用户管理网络文件的操作难度,提出了本公开的网络文件管理方法。参见图1,根据本公开实施例的网络文件管理方法可以包括步骤S101至S104。In order to reduce the operational difficulty of the user managing the network file, the network file management method of the present disclosure is proposed. Referring to FIG. 1, a network file management method according to an embodiment of the present disclosure may include steps S101 to S104.
在步骤S101,通过本地终端与远程服务器的通信链接,获取网络文件在远程服务器上的文件存储属性。In step S101, the file storage attribute of the network file on the remote server is obtained through a communication link between the local terminal and the remote server.
在本公开的一些实施例中,文件存储属性包括网络文件在远程服务器上的文件目录结构、文件列表、文件属性以及存储空间信息。文件目录结构具体的是指文件与文件夹之间的包含关系、文件之间的引用关系等,其通常采用文件树的方式来体现。文件列表则是所有文件以及文件夹的列表。文件属性则包括各文件或者文件夹的大小、创建时间、更新时间、文件类型等信息。存储空间信息是云盘运营商等远程服务器为用户分配的存储空间大小、已用存储空间大小和剩余空间大小等。In some embodiments of the present disclosure, the file storage attributes include a file directory structure, a file list, file attributes, and storage space information of the network file on the remote server. The file directory structure specifically refers to the inclusion relationship between the file and the folder, the reference relationship between the files, and the like, and is usually embodied by a file tree. The file list is a list of all files and folders. File attributes include information such as the size, creation time, update time, and file type of each file or folder. The storage space information is the storage space allocated by the remote server such as the cloud disk operator, the size of the used storage space, and the remaining space size.
在步骤S102,构建并显示与文件存储属性对应的虚拟文件系统,虚拟文件系统的操作方式与本地终端的文件操作方式匹配。In step S102, a virtual file system corresponding to the file storage attribute is constructed and displayed, and the operation mode of the virtual file system matches the file operation mode of the local terminal.
在本公开一个实施例中,构建虚拟文件系统可以包括:获取本地终端的文件操作方式中的存储空间显示方式和文件信息显示方式;使用存储空间显示方式显示所述存储空间信息;以及使用文件信息显示方式显示文件目录结构、文件列表、文件属性。In an embodiment of the present disclosure, the constructing the virtual file system may include: acquiring a storage space display manner and a file information display manner in a file operation mode of the local terminal; displaying the storage space information by using the storage space display manner; and using the file information. The display mode displays the file directory structure, file list, and file attributes.
本地终端的文件操作方式与本地终端的操作系统相关,下文以本地终端的操作系统为Windows系统为例进行说明。可以预见的是,其他操作系统的实现与其相似,因此不再赘述。The file operation mode of the local terminal is related to the operating system of the local terminal. The following is an example of the operating system of the local terminal as the Windows system. It is foreseeable that the implementation of other operating systems is similar, so it will not be described again.
在Windows系统中,存储空间显示方式是在磁盘显示界面显示总空间大小、占用空间大小以及剩余空间大小,而文件信息显示方式是采用列表的方式显示文件或者文件夹,并且当用户将鼠标移动到某个文件夹时,会显示其内部的文件夹/文件的属性及列表。In the Windows system, the storage space display mode is to display the total space size, the occupied space size, and the remaining space size on the disk display interface, and the file information display manner is to display the file or folder in a list manner, and when the user moves the mouse to When a folder is displayed, the properties and lists of its internal folders/files are displayed.
图3为根据本公开实施例的虚拟文件系统的示意图。3 is a schematic diagram of a virtual file system in accordance with an embodiment of the present disclosure.
如图3所示,在本实施例中,将云盘虚拟为一个磁盘E,并单独显示。用户将鼠标移动到磁盘E的位置时,将显示总空间大小、已用 空间大小和剩余空间大小等信息。在其他实施例中,也可以将云盘虚拟为一个文件夹,该方式与虚拟为一个磁盘的方式实质上相同,不再赘述。As shown in FIG. 3, in this embodiment, the cloud disk is virtualized as a disk E and displayed separately. When the user moves the mouse to the position of disk E, information such as the total space size, the used space size, and the remaining space size are displayed. In other embodiments, the cloud disk can also be virtualized as a folder, which is substantially the same as the mode of virtual disk, and will not be described again.
图4为根据本公开实施例的虚拟文件系统的另一示意图。4 is another schematic diagram of a virtual file system in accordance with an embodiment of the present disclosure.
如图4所示,在本实施例中,采用列表的方式显示文件夹1、文件夹2和文件3。当用户将鼠标移动到文件夹1时,会显示其内部的文件夹/文件的属性及列表,例如,显示文件4和文件5的名称、大小、修改日期等。As shown in FIG. 4, in the present embodiment, the folder 1, the folder 2, and the file 3 are displayed in a list manner. When the user moves the mouse to the folder 1, the attributes and lists of the folders/files inside thereof are displayed, for example, the names, sizes, modification dates, and the like of the files 4 and 5 are displayed.
回到图2,在步骤S103,监测用户在虚拟文件系统的管理操作。Returning to Fig. 2, in step S103, the user's management operation in the virtual file system is monitored.
在本公开中,管理操作包括常规的用户操作,并且可以是用户双击某个文件以打开对应文件的操作,通过delete按键删除某个文件的操作,上传新文件的操作,替换某个文件的操作,以及更新某个文件的操作等等。下文将分别针对不同的操作进行说明。In the present disclosure, the management operation includes a normal user operation, and may be an operation in which a user double-clicks a file to open a corresponding file, an operation of deleting a file by a delete key, an operation of uploading a new file, and an operation of replacing a file. , as well as the operation of updating a file, and so on. The following will explain the different operations separately.
在步骤S104,通过通信链接,根据管理操作对网络文件进行管理。In step S104, the network file is managed according to the management operation through the communication link.
在一些实施例中,管理操作可以包括打开操作,并且步骤S104可以包括:确定打开操作对应的第一文件;在本地终端缓存中查找第一文件;若查找到第一文件,则打开第一文件;以及若未查找到第一文件,则通过通信链接,从远程服务器下载第一文件,并打开下载的第一文件。In some embodiments, the management operation may include an opening operation, and step S104 may include: determining a first file corresponding to the opening operation; searching for the first file in the local terminal cache; opening the first file if the first file is found And if the first file is not found, the first file is downloaded from the remote server via the communication link, and the downloaded first file is opened.
步骤S104在从远程服务器下载第一文件之后还可以包括:判断本地终端缓存的剩余空间是否大于第一文件的大小;若本地终端缓存的剩余空间大于第一文件的大小,则将第一文件缓存在本地终端缓存中;若本地终端缓存的剩余空间不大于第一文件的大小,则删除本地终端缓存中时间戳最早的文件,直至本地终端缓存的剩余空间大于第一文件的大小,然后将第一文件缓存在本地终端缓存中。After the downloading the first file from the remote server, the step S104 may further include: determining whether the remaining space of the local terminal cache is greater than the size of the first file; if the remaining space of the local terminal cache is greater than the size of the first file, the first file is cached. In the local terminal cache; if the remaining space of the local terminal cache is not larger than the size of the first file, delete the file with the oldest timestamp in the local terminal cache until the remaining space of the local terminal cache is larger than the size of the first file, and then A file is cached in the local terminal cache.
根据本公开实施例,引入缓存机制将网络文件从服务器下载并进行缓存,这样用户可以直接对缓存的文件进行打开及编辑等操作。与相关技术中终端将用户的操作实时传输至服务器、服务器响应用户操作而完成对文件的编辑等方式相比,根据本公开实施例可以实时响 应用户操作,而不需要服务器响应,这样用户编辑速度更快,同时可以采用用户习惯的方式进行编辑等操作,便于用户进行管理。According to an embodiment of the present disclosure, a caching mechanism is introduced to download and cache a network file from a server, so that the user can directly open and edit the cached file. Compared with the related art, the terminal transmits the user's operation to the server in real time, and the server completes the editing of the file in response to the user operation, and the user can respond to the user operation in real time according to the embodiment of the present disclosure without requiring the server response, so that the user edits the speed. It is faster and can be edited in a way that users are accustomed to, which is convenient for users to manage.
在一些实施例中,管理操作可以包括更新操作时,并且步骤S104可以包括:确定更新操作对应的第二文件;以及采用增量更新的方式将第二文件的更新内容同步至远程服务器。In some embodiments, the management operation may include an update operation, and step S104 may include: determining a second file corresponding to the update operation; and synchronizing the update content of the second file to the remote server in an incremental update manner.
可以按照预设规则对第二文件进行分块处理。预设规则例如可以是数据块的大小(如10KB),这样将第二文件分割是多个大小为10KB的数据块。可以计算本地终端中的第二文件的各数据块的校验值以及远程服务器中的第二文件的各数据块的校验值,并依次比较各数据块的校验值,以确定校验值不同的数据块。可以将本地终端中的第二文件中校验值不同的数据块作为更新内容,对远程服务器中的第二文件对应的数据块进行更新。The second file may be subjected to blocking processing according to a preset rule. The preset rule may be, for example, the size of the data block (for example, 10 KB), so that the second file is divided into a plurality of data blocks having a size of 10 KB. The check value of each data block of the second file in the local terminal and the check value of each data block of the second file in the remote server may be calculated, and the check values of each data block are sequentially compared to determine the check value. Different data blocks. The data block with different check values in the second file in the local terminal may be used as the update content, and the data block corresponding to the second file in the remote server may be updated.
在一些实施例中,管理操作可以包括删除操作,并且步骤S104可以包括:确定删除操作对应的第三文件;通过通信链接,在远程服务器中删除第三文件;以及删除文件存储属性中与第三文件的相关信息。In some embodiments, the management operation may include a delete operation, and step S104 may include: determining a third file corresponding to the delete operation; deleting the third file in the remote server by the communication link; and deleting the file storage attribute and the third Information about the file.
在一些实施例中,管理操作可以包括替换操作,并且步骤S104可以包括:确定替换操作对应的第四文件;通过通信链接,从远程服务器下载第四文件;通过通信链接,在远程服务器中删除第四文件;在本地终端中对第四文件进行操作,生成第五文件;以及通过通信链接,将第五文件发送至远程服务器中。In some embodiments, the management operation may include a replacement operation, and step S104 may include: determining a fourth file corresponding to the replacement operation; downloading the fourth file from the remote server through the communication link; deleting the second server in the remote server through the communication link Four files; operating the fourth file in the local terminal to generate a fifth file; and transmitting the fifth file to the remote server through the communication link.
以上实施例对如何实现用户的管理操作进行了描述,可以预见的是这些操作通过组合等方式可以实现更复杂的管理操作,其具体实现方式不再赘述。The foregoing embodiment describes how to implement the management operation of the user. It is foreseeable that these operations can implement more complicated management operations by combining, and the specific implementation manners are not described herein.
在一些实施例中,为了保证虚拟文件系统是根据网络文件在远程服务器上的文件存储属性构建的,在获取网络文件在远程服务器上的文件存储属性之后,并且在构建虚拟文件系统之前,可以将文件存储属性缓存在本地终端缓存,并且采用增量同步的方式,将本地终端缓存中缓存的文件存储属性,同步为网络文件在远程服务器上的文件存储属性。在此情况下,构建虚拟文件系统的步骤包括:根据本地终 端缓存中缓存的文件存储属性,构建虚拟文件系统。In some embodiments, in order to ensure that the virtual file system is built according to the file storage attribute of the network file on the remote server, after obtaining the file storage attribute of the network file on the remote server, and before constructing the virtual file system, The file storage attribute is cached in the local terminal cache, and the file storage attribute cached in the local terminal cache is synchronized to the file storage attribute of the network file on the remote server by means of incremental synchronization. In this case, the step of building a virtual file system includes building a virtual file system based on the file storage attributes cached in the local terminal cache.
在一些实施例中,类似于上述更新操作,可以按照预设规则对文件存储属性进行分块处理,并且计算本地终端缓存中的文件存储属性的各数据块的校验值以及网络文件在远程服务器上的文件存储属性的各数据块的校验值。可以依次比较各数据块的校验值,以确定校验值不同的数据块,并且将网络文件在远程服务器上的文件存储属性中校验值不同的数据块作为同步内容,对本地终端缓存中的文件存储属性对应的数据块进行更新。In some embodiments, similar to the above update operation, the file storage attribute may be subjected to block processing according to a preset rule, and the check value of each data block of the file storage attribute in the local terminal cache and the network file may be calculated on the remote server. The checksum value of each data block of the file storage attribute. The check value of each data block may be sequentially compared to determine a data block with different check values, and the data block with different check value in the file storage attribute of the network file on the remote server is used as the synchronization content, and is cached in the local terminal. The data block corresponding to the file storage attribute is updated.
本公开所涉及的本地终端包括各种具备网络通信作用的设备,例如,电脑、平板、手机、机顶盒等等。The local terminal involved in the present disclosure includes various devices having network communication functions, such as a computer, a tablet, a mobile phone, a set top box, and the like.
根据本公开实施例提供的网络文件管理方法,首先通过本地终端与远程服务器的通信链接获取网络文件在远程服务器上的目录等文件存储属性,然后构建操作方式与本地终端的文件操作方式匹配的虚拟文件系统,并通过该虚拟文件系统来显示文件存储属性。在此基础上,用户可以使用本地终端的文件操作方式在虚拟文件系统上对网络文件进行管理操作,然后基于本地终端与远程服务器的通信链接,对存储在远程服务器上的网络文件进行管理。这样在整个过程中,用户仅需要按照常规的操作方式进行操作即可,而不需要学习各种云盘的操作方式,从而解决了由于需要学习云盘操作方式导致用户操作不便的问题,提高了用户的使用体验。同时,根据本公开实施例,仅需要在客户端进行虚拟文件系统的构建及显示,而不需要云盘运营商等对远程服务器进行修改,从而可以兼容各种不同的云盘业务。According to the network file management method provided by the embodiment of the present disclosure, first, a file storage attribute such as a directory of a network file on a remote server is obtained through a communication link between the local terminal and the remote server, and then a virtual operation mode is matched with a file operation mode of the local terminal. File system and display file storage properties through the virtual file system. On this basis, the user can manage the network file on the virtual file system by using the file operation mode of the local terminal, and then manage the network file stored on the remote server based on the communication link between the local terminal and the remote server. In this way, the user only needs to operate according to the normal operation mode, and does not need to learn the operation modes of various cloud disks, thereby solving the problem that the user operation is inconvenient due to the need to learn the operation mode of the cloud disk, and the problem is improved. User experience. In the meantime, according to the embodiment of the present disclosure, only the virtual file system needs to be constructed and displayed on the client, and the remote server is not required to be modified by the cloud disk operator or the like, so that it can be compatible with various cloud disk services.
图5为根据本公开实施例的网络文件管理终端的结构示意图。FIG. 5 is a schematic structural diagram of a network file management terminal according to an embodiment of the present disclosure.
参见图5,根据本公开实施例的网络文件管理终端可以包括处理器21、存储器22及通信总线23。Referring to FIG. 5, a network file management terminal according to an embodiment of the present disclosure may include a processor 21, a memory 22, and a communication bus 23.
通信总线23用于实现处理器21和存储器22之间的连接通信。The communication bus 23 is used to implement connection communication between the processor 21 and the memory 22.
当处理器21执行存储器22中存储的一个或者多个程序,处理器21可以执行根据本公开各实施例的网络文件管理方法。When the processor 21 executes one or more programs stored in the memory 22, the processor 21 can execute a network file management method according to various embodiments of the present disclosure.
本公开还提供了一种计算机可读存储介质,其上存储有一个或者多个程序,所述一个或者多个程序被一个或多个处理器执行时,可 以执行根据本公开各实施例的网络文件管理方法。The present disclosure also provides a computer readable storage medium having stored thereon one or more programs that, when executed by one or more processors, can execute a network in accordance with embodiments of the present disclosure File management method.
图6为根据本公开实施例的网络文件管理终端的网络架构示意图。FIG. 6 is a schematic diagram of a network architecture of a network file management terminal according to an embodiment of the present disclosure.
如图6所示,最底层是物理层硬件,包括有线网络、无线网络等通信模块提供的连接方式;在物理层硬件之上是TCP/IP协议层;在TCP/IP之上则是应用层协议,例如HTTP(Hypertext Transfer Protocol,超文本传输协议),REST(Representational State Transfer,表述性状态转移)接口属于HTTP协议。通用接口隐藏了不同协议层、不同设备、不同操作系统之间的区别,为应用程序提供统一的文件访问接口,应用程序使用通用接口来实现不同的应用。As shown in Figure 6, the bottom layer is the physical layer hardware, including the connection mode provided by the communication module such as wired network and wireless network; the TCP/IP protocol layer is above the physical layer hardware; and the application layer is above TCP/IP. Protocols such as HTTP (Hypertext Transfer Protocol) and REST (Representational State Transfer) interfaces belong to the HTTP protocol. The common interface hides the differences between different protocol layers, different devices, and different operating systems, providing a unified file access interface for applications, and applications use common interfaces to implement different applications.
图7为根据本公开实施例的网络文件管理方法的流程图。FIG. 7 is a flowchart of a network file management method according to an embodiment of the present disclosure.
如图7所示,根据本公开实施例的网络文件管理方法可以包括步骤S401至S404。As shown in FIG. 7, the network file management method according to an embodiment of the present disclosure may include steps S401 to S404.
在步骤S401,获取网络文件的文件存储属性,并构建本地虚拟文件系统。In step S401, the file storage attribute of the network file is acquired, and a local virtual file system is constructed.
图8为根据本公开实施例的云盘登录流程图。FIG. 8 is a flow chart of a cloud disk login according to an embodiment of the present disclosure.
如图8所示,云盘登录可以包括步骤S501至S504。As shown in FIG. 8, the cloud disk login may include steps S501 to S504.
在步骤S501,用户使用账号密码等登录云盘。In step S501, the user logs in to the cloud disk using an account password or the like.
根据用户选择的云盘运营商,打开云盘登录界面,然后根据用户输入的账号和密码等发起登录,在验证通过后,云盘登录成功。According to the cloud disk operator selected by the user, the cloud disk login interface is opened, and then the login is initiated according to the account and password input by the user. After the verification is passed, the cloud disk login is successful.
使用云盘的用户名和密码登录云盘空间,可以获取到一个令牌(TOKEN)值并将其保存在应用程序中。这个TOKEN值用于后续的所有接口,便于服务器进行鉴权判断。Log in to the cloud disk space using the username and password of the cloud disk, you can get a token (TOKEN) value and save it in the application. This TOKEN value is used for all subsequent interfaces, which is convenient for the server to perform authentication judgment.
在步骤S502,获取云盘的存储信息和网络文件的文件信息。In step S502, the storage information of the cloud disk and the file information of the network file are acquired.
可以获取云盘的总空间大小、已用空间大小和剩余空间大小等存储信息,以及网络文件的目录结构、文件列表以及文件属性等文件信息。You can obtain storage information such as the total space size of the cloud disk, the used space size, and the remaining space size, as well as file information such as the directory structure, file list, and file attributes of the network file.
登录成功后,可以使用REST接口获取云盘的空间存储信息,并使用REST接口获取服务器上的目录结构,并将获取的信息保存在应用程序本地内存中。After the login is successful, you can use the REST interface to obtain the space storage information of the cloud disk, and use the REST interface to obtain the directory structure on the server and save the obtained information in the application local memory.
在步骤S503,构建本地终端的虚拟文件系统。In step S503, a virtual file system of the local terminal is constructed.
例如,可以在Windows系统上创建一个新的文件系统,作为与云盘对应的虚拟文件系统,其界面为虚拟文件系统的显示界面,如图3或图4所示,该虚拟文件系统与本地终端的操作系统展示信息的方式可以完全相同。For example, a new file system can be created on the Windows system as a virtual file system corresponding to the cloud disk, and the interface thereof is a display interface of the virtual file system, as shown in FIG. 3 or FIG. 4, the virtual file system and the local terminal. The way the operating system displays information can be identical.
Dokan库是一个帮助程序员在Windows系统上建立用户级文件系统的程序库。下面以通过Dokan库建立虚拟文件系统为例进行说明。Dokan库包含一个用户模式的动态链接库(DLL)文件(dokan.dll)以及一个内核模式文件系统驱动程序(dokan.sys)。Dokan文件系统驱动程序一旦安装,就可以在Windows系统上创建和普通文件系统一样的文件系统。使用Dokan库创建的文件系统的应用程序称为文件系统应用程序。来自用户程序的文件操作请求(例如:创建文件、读取文件、写入文件等)将被发送到Windows输入/输出子系统(其运行在内核模式),随后文件操作请求将被发送到Dokan文件系统驱动程序(dokan.sys)。通过使用Dokan用户模式的动态链接库文件(dokan.dll)提供的函数,文件系统应用程序能够向文件系统驱动程序注册回调函数(callback function)。文件系统驱动程序在收到文件中操作请求后可以调用注册的回调函数例程来响应文件操作请求,并且回调函数例程的处理结果将返回给用户程序。例如:当Windows资源管理器请求创建一个目录时,文件操作请求“OpenDirectory”将被发送到Dokan文件系统驱动程序(dokan.sys),然后驱动程序将调用文件系统应用程序提供的与“OpenDirectory”请求对应的回调函数例程。函数例程的处理结果作为“OpenDirectory”请求的响应返回给Windows资源浏览器。可以将Dokan文件系统驱动程序(dokan.sys)看作是位于用户程序和文件系统程序之间的代理程序。The Dokan library is a library that helps programmers build user-level file systems on Windows systems. The following is an example of establishing a virtual file system through the Dokan library. The Dokan library contains a user-mode dynamic link library (DLL) file (dokan.dll) and a kernel mode file system driver (dokan.sys). Once the Dokan file system driver is installed, you can create the same file system on the Windows system as the normal file system. An application that uses a file system created by the Dokan library is called a file system application. File operation requests from the user program (eg, create files, read files, write files, etc.) will be sent to the Windows input/output subsystem (which runs in kernel mode), and then file operation requests will be sent to the Dokan file. System driver (dokan.sys). By using the functions provided by the Dokan user mode dynamic link library file (dokan.dll), the file system application can register a callback function with the file system driver. After receiving the operation request in the file, the file system driver can call the registered callback function routine to respond to the file operation request, and the processing result of the callback function routine is returned to the user program. For example, when Windows Explorer requests to create a directory, the file operation request "OpenDirectory" will be sent to the Dokan file system driver (dokan.sys), and then the driver will call the file system application to provide the "OpenDirectory" request. Corresponding callback function routines. The result of the function routine is returned to the Windows Explorer as a response to the "OpenDirectory" request. The Dokan file system driver (dokan.sys) can be thought of as an agent between the user program and the file system program.
在S504,配置虚拟文件系统,并展示。At S504, the virtual file system is configured and displayed.
继续上面的示例,可以使用Dokan文件系统,将云盘服务器上目录结构、文件列表以及文件属性等信息映射为本地Windows系统下的某个盘符,以供用户可以浏览操作各种文件。Continuing with the above example, the Dokan file system can be used to map information such as the directory structure, file list, and file attributes on the cloud disk server to a drive letter under the local Windows system, so that the user can browse various files.
Dokan文件系统可以监测本地Windows操作系统下文件的增、删、改等操作,这些操作可以形成为接口,应用程序在这些接口中实现和后台服务器的业务对接,可以使用的是HTTP协议的REST接口对接这些业务。The Dokan file system can monitor the addition, deletion, and modification of files in the local Windows operating system. These operations can be formed as interfaces. The application can implement the service connection with the background server in these interfaces. The REST interface of the HTTP protocol can be used. Docking these businesses.
例如,如图3所示,在建立虚拟文件系统之后(例如,磁盘E),可以对磁盘E进行初始化,然后将云盘的存储信息配置为磁盘E的存储属性,并且将网络文件的文件信息写入磁盘E,如图4所示。For example, as shown in FIG. 3, after the virtual file system is established (for example, disk E), the disk E can be initialized, then the storage information of the cloud disk is configured as the storage attribute of the disk E, and the file information of the network file is Write to disk E, as shown in Figure 4.
回到图7,在步骤S402,配置并启用本地终端缓存。Returning to Figure 7, in step S402, the local terminal cache is configured and enabled.
本地应用程序可以开辟一块内存空间用于缓存文件内容,同时需要设定一个阈值,超过该阈值时,需要将最先进入的文件内容内存空间释放掉。在实际应用中,对于小文件(比如小于20MB的文件)会进行频繁的编辑操作,而对于大文件一般只是进行读操作,因此内存空间无需开辟的很大。对于大文件,可以利用Dokan文件系统直接读取文件内容,以有效地降低网络负荷。The local application can open up a memory space for caching the contents of the file, and also needs to set a threshold. When the threshold is exceeded, the memory space of the first file content needs to be released. In practical applications, small files (such as files smaller than 20MB) will be frequently edited, while for large files, only read operations are performed, so the memory space does not need to be greatly developed. For large files, the Dokan file system can be used to directly read the file contents to effectively reduce the network load.
在步骤S403,配置并启用增量同步算法。In step S403, the incremental synchronization algorithm is configured and enabled.
在网络条件较差的情况下,为了解决同步问题,需要减少网络传输的开销,因此,可以使用增量同步的机制,即,差异同步算法,并且在网络传输的内容只是差异部分,而不是全部内容。In the case of poor network conditions, in order to solve the synchronization problem, it is necessary to reduce the overhead of network transmission. Therefore, the mechanism of incremental synchronization, that is, the differential synchronization algorithm, can be used, and the content transmitted in the network is only a difference part, not all. content.
对于文件存储属性在远程服务器与本地终端缓存之间的同步,可以在后台设置一个同步线程,并且每间隔预定的时间周期对缓冲区中的内容和服务器进行同步。For the synchronization of the file storage attribute between the remote server and the local terminal cache, a synchronization thread can be set in the background, and the content in the buffer and the server are synchronized every predetermined time period.
可以在客户端上将文件分为多个数据块,对于每个数据块计算一个MD5(Message Digest Algorithm 5,消息摘要算法第五版)值作为强校验值以及校验和作为弱校验值,并发给服务器。The file can be divided into multiple data blocks on the client, and an MD5 (Message Digest Algorithm 5) value is calculated as a strong check value and a checksum as a weak check value for each data block. And send it to the server.
服务器将对应文件按同样块大小进行分块,并计算每个数据块的MD5值和校验和,并且对于每个数据块查看是否与客户端发送的某个校验和一致,如果服务器文件中的数据块的校验和与客户端发送的某个校验和一致,则表明服务器文件中的该数据块内容与对应的客户端中的文件的数据块内容很可能是一致的,但由于校验和强度不够,因此再匹配MD5值,如果两个数据块的MD5值也是匹配的,则确认两 个数据块的内容是一致的,服务器可以向客户端发送匹配的段号。对于那些不能匹配的数据块,服务器向客户端发送该数据块的原始内容。The server divides the corresponding file into blocks of the same block size, and calculates the MD5 value and checksum of each data block, and checks whether each data block is consistent with a certain checksum sent by the client, if it is in the server file. The checksum of the data block is consistent with a checksum sent by the client, indicating that the content of the data block in the server file is likely to be consistent with the data block content of the file in the corresponding client, but due to the school The checksum strength is not enough, so the MD5 value is matched again. If the MD5 values of the two data blocks are also matched, it is confirmed that the contents of the two data blocks are consistent, and the server can send the matching segment number to the client. For those data blocks that cannot be matched, the server sends the original content of the data block to the client.
客户端得到服务器发送的匹配信息,可以构造与服务器文件一致的复本,对于匹配的数据块,直接拷贝客户端文件中对应的数据块的内容,对于不匹配的数据块,则复制服务器发送的数据块的内容。The client obtains the matching information sent by the server, and can construct a replica that is consistent with the server file. For the matched data block, directly copy the content of the corresponding data block in the client file, and for the unmatched data block, the replication server sends the The content of the data block.
在步骤S404,监测并执行用户的管理操作。At step S404, the management operation of the user is monitored and executed.
下面参考图9至图11对各种用户的管理操作的执行进行说明。The execution of management operations of various users will be described below with reference to FIGS. 9 to 11.
图9为根据本公开实施例的打开文件操作的流程图。9 is a flow diagram of an open file operation in accordance with an embodiment of the present disclosure.
如图9所示,根据本公开实施例的打开文件操作可以包括:确定打开操作对应的第一文件;在本地终端缓存中查找所述第一文件;若查找到所述第一文件,则打开所述第一文件;以及若未查找到所述第一文件,则通过所述通信链接,从所述远程服务器下载所述第一文件,并打开下载的所述第一文件。As shown in FIG. 9, the opening file operation according to an embodiment of the present disclosure may include: determining a first file corresponding to the opening operation; searching for the first file in the local terminal cache; and opening the first file if the first file is found The first file; and if the first file is not found, downloading the first file from the remote server through the communication link, and opening the downloaded first file.
例如,用户可以在资源管理器中双击某个网络文件(即,第一文件)以执行打开操作(步骤S601)。首先判断本地缓存中是否已经缓存有该网络文件(步骤S602),如果已经缓存了该网络文件,直接从缓存中读取该网络文件的内容(步骤S603);否则,可以使用REST接口从服务器下载该网络文件(步骤S604)。For example, the user can double-click a certain network file (ie, the first file) in the resource manager to perform an opening operation (step S601). First, it is determined whether the network file has been cached in the local cache (step S602). If the network file has been cached, the content of the network file is directly read from the cache (step S603); otherwise, the REST interface can be used to download from the server. The network file (step S604).
在从远程服务器下载了网络文件之后,可以判述本地终端缓存的剩余空间是否大于该网络文件的大小(步骤S605)。如果本地终端缓存的剩余空间大于该网络文件的大小,则将该网络文件缓存在所述本地终端缓存中(步骤S607);如果本地终端缓存的剩余空间不大于该网络文件的大小,则删除本地终端缓存中时间戳最早的文件(步骤S606),直至本地终端缓存的剩余空间大于该网络文件的大小,然后将该网络文件缓存在本地终端缓存中(步骤S607)。After downloading the network file from the remote server, it may be judged whether the remaining space of the local terminal cache is larger than the size of the network file (step S605). If the remaining space of the local terminal cache is larger than the size of the network file, the network file is cached in the local terminal cache (step S607); if the remaining space of the local terminal cache is not greater than the size of the network file, the local is deleted. The file with the oldest timestamp in the terminal cache (step S606) until the remaining space of the local terminal cache is larger than the size of the network file, and then the network file is cached in the local terminal cache (step S607).
图10为根据本公开实施例的更新文件操作的流程图。FIG. 10 is a flowchart of an update file operation in accordance with an embodiment of the present disclosure.
如图10所示,根据本公开实施例的更新文件操作可以包括:确定更新操作对应的第二文件;以及采用增量更新的方式将第二文件的更新内容同步至远程服务器。As shown in FIG. 10, the update file operation according to an embodiment of the present disclosure may include: determining a second file corresponding to the update operation; and synchronizing the updated content of the second file to the remote server in an incremental update manner.
当用户对打开的文件进行编辑等操作之后,需要将编辑后的文 件(即,第二文件)上传到云盘,即,远程服务器(步骤S701),可以采用增量更新的方式将编辑后的文件的更新内容同步至云盘。After the user performs an operation such as editing the opened file, the edited file (ie, the second file) needs to be uploaded to the cloud disk, that is, the remote server (step S701), and the edited The updated content of the file is synced to the cloud disk.
可以按照预设规则对第二文件进行分块处理,并且计算本地终端中的第二文件的各数据块的校验值以及远程服务器中的第二文件的各数据块的校验值。可以依次比较各数据块的校验值,以确定校验值不同的数据块,并且可以将本地终端中的第二文件中校验值不同的数据块作为更新内容,对远程服务器中的第二文件对应的数据块进行更新。The second file may be subjected to blocking processing according to a preset rule, and a check value of each data block of the second file in the local terminal and a check value of each data block of the second file in the remote server may be calculated. The check values of the data blocks may be sequentially compared to determine data blocks with different check values, and the data blocks with different check values in the second file in the local terminal may be used as the update content, and the second in the remote server. The data block corresponding to the file is updated.
将待更新的文件分为若干数据块,并计算每一数据块的强校验值和弱校验值。将这些信息(即,每一数据块的强校验值和弱校验值)通过REST接口发送给服务器(步骤S702)。服务器收到这些信息后,将对应的文件按照相同的数据块大小进行分块,并计算每个数据块的强校验值和弱校验值(步骤S703)。服务器循环检测每一数据块的信息并与发送来的每一数据块的信息进行比较(步骤S704)。首先比较弱校验值是否相同(步骤S705),如果弱校验值不相同,则判定该数据块为待更新的数据块(步骤S706);如果弱校验值相同,则继续比较强校验值是否相同(步骤S707),如果强校验值不相同,则判定该数据块为待更新的数据块(步骤S706);如果强校验值也相同,则表明该数据块无需更新(步骤S708)。判断所有数据块是否比较完毕(步骤S709),并且在所有数据块都比较完毕时,对所有待更新的数据块进行更新(步骤S710)。The file to be updated is divided into several data blocks, and the strong check value and the weak check value of each data block are calculated. The information (i.e., the strong check value and the weak check value of each data block) is transmitted to the server through the REST interface (step S702). After receiving the information, the server divides the corresponding file into blocks according to the same data block size, and calculates a strong check value and a weak check value of each data block (step S703). The server cyclically detects the information of each data block and compares it with the information of each of the transmitted data blocks (step S704). First, it is compared whether the weak check values are the same (step S705). If the weak check values are not the same, it is determined that the data block is a data block to be updated (step S706); if the weak check values are the same, the strong check is continued. Whether the values are the same (step S707), if the strong check values are not the same, it is determined that the data block is a data block to be updated (step S706); if the strong check value is also the same, it indicates that the data block does not need to be updated (step S708) ). It is judged whether or not all the data blocks are compared (step S709), and when all the data blocks are compared, all the data blocks to be updated are updated (step S710).
图11为根据本公开实施例的删除文件操作的流程图。11 is a flow chart of a delete file operation in accordance with an embodiment of the present disclosure.
如图11所示,根据本公开实施例的删除文件操作可以包括:确定删除操作对应的第三文件;通过通信链接,在远程服务器中删除第三文件;以及删除文件存储属性中与第三文件的相关信息。As shown in FIG. 11, the deleting a file operation according to an embodiment of the present disclosure may include: determining a third file corresponding to the deletion operation; deleting the third file in the remote server by using the communication link; and deleting the file storage attribute and the third file Related information.
如果用户要删除虚拟文件系统中的文件(即,第三文件),实际上就是要删除云盘(即,远程服务器)中的文件。首先获得要删除的文件(步骤S801),然后调用REST接口删除文件(步骤S802)。判断REST接口的返回值(步骤S803),如果REST接口返回删除成功,则更新本地缓存,并将本地缓存中的该文件的信息删除(步骤 S804);如果REST接口返回删除失败,则可以不进行任何操作。最后,向用户报告删除结果(步骤S805)。If the user wants to delete a file (ie, a third file) in the virtual file system, it is actually to delete the file in the cloud disk (ie, the remote server). First, the file to be deleted is obtained (step S801), and then the REST interface is called to delete the file (step S802). Determining the return value of the REST interface (step S803), if the REST interface returns the deletion succeeds, updating the local cache, and deleting the information of the file in the local cache (step S804); if the REST interface returns the deletion failure, the information may not be performed Any operation. Finally, the deletion result is reported to the user (step S805).
如果用户需要执行替换文件的操作,则可以下载远程文件到本地,删除远程文件,修改本地文件,并把修改后本地文件重新上传到服务器。If the user needs to perform the operation of replacing the file, the remote file can be downloaded to the local, the remote file is deleted, the local file is modified, and the modified local file is re-uploaded to the server.
根据本公开实施例提供的网络文件管理方法、终端及计算机可读存储介质,用户可以按照常规的操作方式(即,本地终端的文件操作方式)进行操作,而不需要学习各种云盘的操作方式,便于用户操作,提高了用户的使用体验。同时,根据本公开实施例,仅需要在客户端进行虚拟文件系统的构建及显示,而不需要云盘运营商等对远程服务器进行修改,从而可以兼容各种云盘业务。According to the network file management method, the terminal, and the computer readable storage medium provided by the embodiments of the present disclosure, the user can operate according to a conventional operation mode (ie, a file operation mode of the local terminal) without learning the operations of various cloud disks. The method is convenient for the user to operate and improves the user experience. In the meantime, according to the embodiment of the present disclosure, only the virtual file system needs to be constructed and displayed on the client, and the cloud server operator or the like is not required to modify the remote server, so that the cloud disk service can be compatible.
本领域的技术人员应该明白,上述本公开实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在计算机存储介质(ROM/RAM、磁碟、光盘)中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。所以,本公开不限制于任何特定的硬件和软件结合。Those skilled in the art will appreciate that the various modules or steps of the above-described embodiments of the present disclosure may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices. Alternatively, they may be implemented by program code executable by a computing device such that they may be stored in a computer storage medium (ROM/RAM, diskette, optical disk) by a computing device, and in some cases The steps shown or described may be performed in a different order than that herein, or they may be separately fabricated into individual integrated circuit modules, or a plurality of the modules or steps may be implemented as a single integrated circuit module. Therefore, the present disclosure is not limited to any specific combination of hardware and software.
以上内容是结合具体的实施方式对本公开实施例所作的进一步详细说明,不能认定本公开的具体实施只局限于这些说明。对于本公开所属技术领域的普通技术人员来说,在不脱离本公开构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本公开的保护范围。The above content is a further detailed description of the embodiments of the present disclosure in conjunction with the specific embodiments, and the specific implementation of the present disclosure is not limited to the description. It is to be understood by those skilled in the art that the present invention may be construed as being limited to the scope of the present disclosure.

Claims (12)

  1. 一种网络文件管理方法,包括:A network file management method includes:
    通过本地终端与远程服务器的通信链接,获取网络文件在所述远程服务器上的文件存储属性;Obtaining, by a communication link between the local terminal and the remote server, a file storage attribute of the network file on the remote server;
    构建并显示与所述文件存储属性对应的虚拟文件系统,所述虚拟文件系统的操作方式与所述本地终端的文件操作方式匹配;Constructing and displaying a virtual file system corresponding to the file storage attribute, where the operation mode of the virtual file system matches the file operation mode of the local terminal;
    监测用户在所述虚拟文件系统的管理操作;以及Monitoring user management operations on the virtual file system;
    通过所述通信链接,根据所述管理操作对所述网络文件进行管理。The network file is managed according to the management operation through the communication link.
  2. 如权利要求1所述的网络文件管理方法,其中,所述管理操作包括打开操作,并且根据所述打开操作对所述网络文件进行管理的步骤包括:The network file management method according to claim 1, wherein said management operation comprises an open operation, and said step of managing said network file according to said open operation comprises:
    确定所述打开操作对应的第一文件;Determining a first file corresponding to the opening operation;
    在本地终端缓存中查找所述第一文件;Finding the first file in a local terminal cache;
    若查找到所述第一文件,则打开所述第一文件;以及Opening the first file if the first file is found;
    若未查找到所述第一文件,则通过所述通信链接,从所述远程服务器下载所述第一文件,并打开下载的所述第一文件。If the first file is not found, the first file is downloaded from the remote server through the communication link, and the downloaded first file is opened.
  3. 如权利要求2所述的网络文件管理方法,其中,在从所述远程服务器下载所述第一文件之后,根据所述打开操作对所述网络文件进行管理的步骤还包括:The network file management method according to claim 2, wherein after the downloading the first file from the remote server, the step of managing the network file according to the opening operation further comprises:
    判断所述本地终端缓存的剩余空间是否大于所述第一文件的大小;Determining whether a remaining space of the local terminal cache is greater than a size of the first file;
    若所述本地终端缓存的剩余空间大于所述第一文件的大小,则将所述第一文件缓存在所述本地终端缓存中;If the remaining space of the local terminal cache is greater than the size of the first file, cache the first file in the local terminal cache;
    若所述本地终端缓存的剩余空间不大于所述第一文件的大小,则删除所述本地终端缓存中时间戳最早的文件,直至所述本地终端缓存的剩余空间大于所述第一文件的大小,然后将所述第一文件缓存在 所述本地终端缓存中。If the remaining space of the local terminal cache is not greater than the size of the first file, delete the file with the oldest timestamp in the local terminal cache until the remaining space of the local terminal cache is greater than the size of the first file. And then caching the first file in the local terminal cache.
  4. 如权利要求1所述的网络文件管理方法,其中,所述管理操作包括更新操作,并且根据所述更新操作对所述网络文件进行管理的步骤包括:The network file management method according to claim 1, wherein said management operation includes an update operation, and said step of managing said network file according to said update operation comprises:
    确定所述更新操作对应的第二文件;以及Determining a second file corresponding to the update operation;
    采用增量更新的方式将所述第二文件的更新内容同步至所述远程服务器。The updated content of the second file is synchronized to the remote server in an incremental update manner.
  5. 如权利要求4所述的网络文件管理方法,其中,采用增量更新的方式将所述第二文件的更新内容同步至所述远程服务器的步骤包括:The network file management method according to claim 4, wherein the step of synchronizing the updated content of the second file to the remote server by means of incremental update comprises:
    按照预设规则对所述第二文件进行分块处理;Performing block processing on the second file according to a preset rule;
    计算所述本地终端中的第二文件的各数据块的校验值以及所述远程服务器中的第二文件的各数据块的校验值;Calculating a check value of each data block of the second file in the local terminal and a check value of each data block of the second file in the remote server;
    依次比较各数据块的校验值,以确定校验值不同的数据块;以及Comparing the check values of the data blocks in turn to determine data blocks having different check values;
    将所述本地终端中的第二文件中校验值不同的数据块作为更新内容,对所述远程服务器中的第二文件对应的数据块进行更新。A data block having a different check value in the second file in the local terminal is used as an update content, and a data block corresponding to the second file in the remote server is updated.
  6. 如权利要求1所述的网络文件管理方法,其中,所述管理操作包括删除操作,并且根据所述删除操作对所述网络文件进行管理的步骤包括:The network file management method according to claim 1, wherein the management operation includes a deletion operation, and the step of managing the network file according to the deletion operation comprises:
    确定所述删除操作对应的第三文件;Determining a third file corresponding to the deleting operation;
    通过所述通信链接,在所述远程服务器中删除所述第三文件;以及Deleting the third file in the remote server through the communication link;
    删除所述文件存储属性中与所述第三文件的相关信息。And deleting information related to the third file in the file storage attribute.
  7. 如权利要求1所述的网络文件管理方法,其中,所述管理操作包括替换操作,并且根据所述替换操作对所述网络文件进行管理的 步骤包括:The network file management method according to claim 1, wherein said management operation includes a replacement operation, and said step of managing said network file according to said replacement operation comprises:
    确定所述替换操作对应的第四文件;Determining a fourth file corresponding to the replacement operation;
    通过所述通信链接,从所述远程服务器下载所述第四文件;Downloading the fourth file from the remote server through the communication link;
    通过所述通信链接,在所述远程服务器中删除所述第四文件;Deleting the fourth file in the remote server by the communication link;
    在所述本地终端中对所述第四文件进行操作,生成第五文件;以及Performing operation on the fourth file in the local terminal to generate a fifth file;
    通过所述通信链接,将所述第五文件发送至所述远程服务器中。The fifth file is sent to the remote server via the communication link.
  8. 如权利要求1所述的网络文件管理方法,其中,在获取网络文件在所述远程服务器上的文件存储属性的步骤之后,并且在构建所述虚拟文件系统的步骤之前,所述方法还包括:The network file management method according to claim 1, wherein after the step of acquiring a file storage attribute of the network file on the remote server, and before the step of constructing the virtual file system, the method further comprises:
    将所述文件存储属性缓存在本地终端缓存;以及Caching the file storage attribute in a local terminal cache;
    采用增量同步的方式,将所述本地终端缓存中缓存的文件存储属性,同步为所述网络文件在所述远程服务器上的文件存储属性,Synchronizing the file storage attributes cached in the local terminal cache into file storage attributes of the network file on the remote server by using incremental synchronization.
    并且其中,构建所述虚拟文件系统的步骤包括:And wherein the step of constructing the virtual file system comprises:
    根据所述本地终端缓存中缓存的文件存储属性,构建所述虚拟文件系统。The virtual file system is constructed according to a file storage attribute cached in the local terminal cache.
  9. 如权利要求8所述的网络文件管理方法,其中,采用增量同步的方式,将所述本地终端缓存中缓存的文件存储属性,同步为所述网络文件在所述远程服务器上的文件存储属性的步骤包括:The network file management method according to claim 8, wherein the file storage attribute cached in the local terminal cache is synchronized to a file storage attribute of the network file on the remote server by means of incremental synchronization. The steps include:
    按照预设规则对所述文件存储属性进行分块处理;Performing block processing on the file storage attribute according to a preset rule;
    计算所述本地终端缓存中的文件存储属性的各数据块的校验值以及所述网络文件在所述远程服务器上的文件存储属性的各数据块的校验值;Calculating a check value of each data block of the file storage attribute in the local terminal cache and a check value of each data block of the file storage attribute of the network file on the remote server;
    依次比较各数据块的校验值,以确定校验值不同的数据块;以及Comparing the check values of the data blocks in turn to determine data blocks having different check values;
    将所述网络文件在所述远程服务器上的文件存储属性中校验值不同的数据块作为同步内容,对所述本地终端缓存中的所述文件存储属性对应的数据块进行更新。And updating, by the data file, a data block having different check values in a file storage attribute of the remote server as a synchronization content, and updating a data block corresponding to the file storage attribute in the local terminal cache.
  10. 如权利要求1至9任一项所述的网络文件管理方法,其中,所述文件存储属性包括所述网络文件在所述远程服务器上的文件目录结构、文件列表、文件属性以及存储空间信息,并且构建虚拟文件系统的步骤包括:The network file management method according to any one of claims 1 to 9, wherein the file storage attribute includes a file directory structure, a file list, a file attribute, and storage space information of the network file on the remote server, And the steps to build a virtual file system include:
    获取所述本地终端的文件操作方式中的存储空间显示方式和文件信息显示方式;Obtaining a storage space display manner and a file information display manner in a file operation mode of the local terminal;
    使用所述存储空间显示方式显示所述存储空间信息;以及Displaying the storage space information using the storage space display manner;
    使用所述文件信息显示方式显示所述文件目录结构、文件列表、文件属性。The file directory structure, the file list, and the file attributes are displayed by using the file information display manner.
  11. 一种网络文件管理终端,包括处理器、存储器及通信总线,其中,A network file management terminal includes a processor, a memory, and a communication bus, wherein
    所述通信总线用于实现所述处理器和所述存储器之间的连接通信,The communication bus is configured to implement connection communication between the processor and the memory,
    所述处理器执行所述存储器中存储的一个或者多个程序时,所述处理器执行根据权利要求1至10任一项所述的网络文件管理方法。The processor executes the network file management method according to any one of claims 1 to 10 when the processor executes one or more programs stored in the memory.
  12. 一种计算机可读存储介质,其上存储有一个或者多个程序,所述一个或者多个程序被一个或者多个处理器执行时,所述一个或者多个处理器执行根据权利要求1至10任一项所述的网络文件管理方法。A computer readable storage medium having stored thereon one or more programs, the one or more processors being executed by one or more processors, the one or more processors executing according to claims 1 to 10 A network file management method according to any of the preceding claims.
PCT/CN2018/105059 2017-09-11 2018-09-11 Network file management method, terminal and computer readable storage medium WO2019047976A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710813217.8A CN110069454A (en) 2017-09-11 2017-09-11 A kind of network file management method, terminal and computer readable storage medium
CN201710813217.8 2017-09-11

Publications (1)

Publication Number Publication Date
WO2019047976A1 true WO2019047976A1 (en) 2019-03-14

Family

ID=65633547

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/105059 WO2019047976A1 (en) 2017-09-11 2018-09-11 Network file management method, terminal and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN110069454A (en)
WO (1) WO2019047976A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110727487B (en) * 2019-09-02 2022-06-10 厦门鑫朗软件有限公司 Method for embedding network disk window into windows resource manager
CN111444139A (en) * 2020-03-24 2020-07-24 腾讯科技(深圳)有限公司 File management method, device, equipment and storage medium
CN111736777A (en) * 2020-06-28 2020-10-02 天津联想协同科技有限公司 Method and device for realizing virtual disk
CN112667565B (en) * 2020-12-30 2021-12-03 湖南博匠信息科技有限公司 Storage unit file management method and system based on FUSE
CN113238997A (en) * 2021-07-13 2021-08-10 云宏信息科技股份有限公司 Cloud data operation method for terminal equipment, storage medium and terminal equipment
CN117234410A (en) * 2022-06-08 2023-12-15 中兴通讯股份有限公司 Data file caching processing method and device, storage medium and electronic device
CN116010364B (en) * 2023-03-27 2023-08-04 天津联想协同科技有限公司 Method and device for updating network disk file state, network disk and storage medium
CN116566965B (en) * 2023-07-11 2023-09-26 山东英围特智能科技有限公司 Processing method of OFD large file
CN117312264B (en) * 2023-12-01 2024-02-20 中孚信息股份有限公司 File synchronization method, system, equipment and medium in virtual disk system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006116203A1 (en) * 2005-04-25 2006-11-02 Network Appliance, Inc. System and method for caching network file systems
CN102355502A (en) * 2011-10-13 2012-02-15 罗立群 Remote access method for remotely accessing storage system into desktop operation system
CN102662741A (en) * 2012-04-05 2012-09-12 华为技术有限公司 Method, device and system for realizing virtual desktop
CN103116618A (en) * 2013-01-28 2013-05-22 南开大学 Telefile system mirror image method and system based on lasting caching of client-side

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065104A (en) * 2011-01-10 2011-05-18 深信服网络科技(深圳)有限公司 Method, device and system for accessing off-site document
CN103731483B (en) * 2013-12-25 2017-05-03 侯金涛 Virtual file system based on cloud computing
CN103841113B (en) * 2014-03-20 2017-01-04 武汉理工大学 A kind of secure network file system based on user model file system
CN104462224A (en) * 2014-11-12 2015-03-25 成都卫士通信息产业股份有限公司 Cloud disc file online editing method
CN106559392A (en) * 2015-09-28 2017-04-05 北京神州泰岳软件股份有限公司 A kind of file sharing method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006116203A1 (en) * 2005-04-25 2006-11-02 Network Appliance, Inc. System and method for caching network file systems
CN102355502A (en) * 2011-10-13 2012-02-15 罗立群 Remote access method for remotely accessing storage system into desktop operation system
CN102662741A (en) * 2012-04-05 2012-09-12 华为技术有限公司 Method, device and system for realizing virtual desktop
CN103116618A (en) * 2013-01-28 2013-05-22 南开大学 Telefile system mirror image method and system based on lasting caching of client-side

Also Published As

Publication number Publication date
CN110069454A (en) 2019-07-30

Similar Documents

Publication Publication Date Title
WO2019047976A1 (en) Network file management method, terminal and computer readable storage medium
US10848557B2 (en) Server-side selective synchronization
US20220100494A1 (en) Providing access to a hybrid application offline
US11516288B2 (en) Synchronized content library
US10277673B2 (en) Local server for synced online content management system
US11372990B2 (en) Restricting access to content
US20150012861A1 (en) Syncing content clipboard
US10261996B2 (en) Content localization using fallback translations
US10210172B1 (en) File system integration and synchronization between client and server
US10348821B2 (en) Prioritizing structural operations and distributing changes in a synced online content management system
US11442752B2 (en) Central storage management interface supporting native user interface versions
US9075722B2 (en) Clustered and highly-available wide-area write-through file system cache
US10198449B2 (en) Creating unique content item identifiers
US11985192B2 (en) Synchronized content library
JP2023547439A (en) Intent tracking for asynchronous behavior

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 18853875

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 18853875

Country of ref document: EP

Kind code of ref document: A1