CN108234554A - A kind of cloud file editing method and device - Google Patents
A kind of cloud file editing method and device Download PDFInfo
- Publication number
- CN108234554A CN108234554A CN201611161304.1A CN201611161304A CN108234554A CN 108234554 A CN108234554 A CN 108234554A CN 201611161304 A CN201611161304 A CN 201611161304A CN 108234554 A CN108234554 A CN 108234554A
- Authority
- CN
- China
- Prior art keywords
- file
- target cloud
- cloud file
- target
- cloud
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0652—Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0656—Data buffering arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明实施例公开了一种云文件编辑方法及装置,方法包括:首先获得待编辑的目标云文件,并对该目标云文件的内容进行监听,当监听到目标云文件的内容发生变化时,上传内容发生变化后的目标云文件至云端。应用本发明实施例,通过对目标云文件的内容进行监听,若目标云文件的内容发生变化就上传目标云文件至云端,因此,不需要用户再通过手动的方式上传编辑后的云文件至云端,简化了云文件编辑的过程,节省编辑时间。
The embodiment of the present invention discloses a cloud file editing method and device. The method includes: first obtaining a target cloud file to be edited, and monitoring the content of the target cloud file, and when the content of the target cloud file is detected to be changed, Upload the changed target cloud file to the cloud. Applying the embodiment of the present invention, by monitoring the content of the target cloud file, if the content of the target cloud file changes, the target cloud file is uploaded to the cloud. Therefore, the user does not need to manually upload the edited cloud file to the cloud. , which simplifies the process of cloud file editing and saves editing time.
Description
技术领域technical field
本发明涉及计算机技术领域,特别涉及一种云文件编辑方法及装置。The invention relates to the field of computer technology, in particular to a cloud file editing method and device.
背景技术Background technique
云文件,顾名思义是指存储在云端的文件,也就是存储在非本地的文件,简单点说就是存储在网络中的文件,云文件不需要占用本地的存储空间,有效的节省了本地存储空间,但文件一旦上传至云端之后,若想对该文件进行编辑需要繁琐的过程,因此,如何更加简单快捷的对云文件进行编辑对相关云产品的推广有着极为重要的意义。Cloud files, as the name implies, refer to files stored in the cloud, that is, files stored not locally. Simply put, they are files stored on the network. Cloud files do not need to occupy local storage space, which effectively saves local storage space. However, once a file is uploaded to the cloud, editing the file requires a cumbersome process. Therefore, how to edit cloud files more simply and quickly is of great significance to the promotion of related cloud products.
目前,对云文件进行编辑的过程为:先将云文件下载至本地,然后通过本地的文件浏览器找到上述下载到本地的文件,之后对该文件进行编辑、保存,最后再通过手动选择的方式,将上述编辑后的文件上传至云端。通过上述方式虽然能够实现对云文件的编辑,但是在对云文件进行编辑的过程中,如何打开文件、何时上传文件均需要用户确定才能完成,这样对云文件进行编辑时,用户操作繁琐,另外,通常情况下,将云文件下载至本地后,该文件在本地存储的文件目录层级比较深,这种情况下,在本地找到上述文件并打开该文件时用户需要进行的多步操作才能完成,更加加剧了用户操作繁琐这一现象。At present, the process of editing cloud files is as follows: first download the cloud files to the local, then find the above-mentioned downloaded files through the local file browser, then edit and save the files, and finally select manually , upload the edited file above to the cloud. Although the cloud file can be edited through the above method, in the process of editing the cloud file, how to open the file and when to upload the file need to be determined by the user. In this way, when editing the cloud file, the user operation is cumbersome. In addition, usually, after the cloud file is downloaded to the local, the file directory level of the file stored locally is relatively deep. In this case, when the above file is found locally and the file is opened, the user needs to complete the multi-step operation. , which further exacerbates the phenomenon of cumbersome user operations.
发明内容Contents of the invention
本发明实施例的目的在于提供一种云文件编辑方法及装置,以简化云文件编辑的过程,进而节省编辑时间。The purpose of the embodiments of the present invention is to provide a cloud file editing method and device, so as to simplify the cloud file editing process and save editing time.
为达到上述目的,本发明实施例公开了一种云文件编辑方法,所述方法包括:In order to achieve the above purpose, the embodiment of the present invention discloses a cloud file editing method, the method comprising:
获得待编辑的目标云文件;Obtain the target cloud file to be edited;
监听所述目标云文件的内容是否发生变化;Monitoring whether the content of the target cloud file changes;
若为是,向云端上传内容变化后的所述目标云文件。If yes, upload the target cloud file after content change to the cloud.
优选的,所述获得待编辑的目标云文件,包括:Preferably, said obtaining the target cloud file to be edited includes:
判断本地硬盘或缓存空间中是否存在待编辑的目标云文件;Determine whether there is a target cloud file to be edited in the local hard disk or cache space;
若存在,从本地硬盘或缓存空间中直接获得所述目标云文件;If it exists, directly obtain the target cloud file from the local hard disk or cache space;
若不存在,从云端下载所述目标云文件。If it does not exist, download the target cloud file from the cloud.
优选的,所述从云端下载所述目标云文件,包括:Preferably, the downloading of the target cloud file from the cloud includes:
根据所述目标云文件的文件类型和文件大小,确定本地硬盘中用于存储所述目标云文件的本地存储路径,从所述云端下载所述目标云文件至所述本地存储路径下;或According to the file type and file size of the target cloud file, determine a local storage path for storing the target cloud file in the local hard disk, and download the target cloud file from the cloud to the local storage path; or
根据所述文件大小,分配用于存储所述目标云文件的缓存空间,从云端下载所述目标云文件,并存储至所述缓存空间。According to the size of the file, allocate a cache space for storing the target cloud file, download the target cloud file from the cloud, and store it in the cache space.
优选的,在向云端上传内容变化后的所述目标云文件完成的情况下,所述方法还包括:Preferably, when uploading the target cloud file after the content change to the cloud is completed, the method further includes:
删除所述本地存储路径下存储的所述目标云文件;或delete the target cloud file stored under the local storage path; or
删除所述缓存空间中存储的所述目标云文件。Deleting the target cloud file stored in the cache space.
优选的,在所述监听所述目标云文件的内容是否发生变化之前,所述方法还包括:Preferably, before the monitoring whether the content of the target cloud file changes, the method further includes:
在确定获得完整的所述目标云文件后,打开所述目标云文件。After it is determined that the complete target cloud file is obtained, the target cloud file is opened.
优选的,所述打开所述目标云文件,包括:Preferably, the opening of the target cloud file includes:
根据所述目标云文件的文件类型,匹配用于打开所述目标云文件的目标编辑器;According to the file type of the target cloud file, match the target editor for opening the target cloud file;
利用所述目标编辑器,打开所述目标云文件。Using the target editor, open the target cloud file.
优选的,所述监听所述目标云文件的内容是否发生变化,包括:Preferably, the monitoring whether the content of the target cloud file changes includes:
创建针对所述目标云文件的文件内容变化监听器;Create a file content change listener for the target cloud file;
利用所述文件内容变化监听器,监听所述目标云文件的内容是否发生变化。Using the file content change listener to monitor whether the content of the target cloud file changes.
优选的,所述向云端上传内容变化后的所述目标云文件,包括:Preferably, said uploading the target cloud file after the content change to the cloud includes:
上传内容变化后的所述目标云文件至所述目标云文件对应的云存储路径下,以更新所述云存储路径下存储的云文件。uploading the target cloud file whose content has changed to the cloud storage path corresponding to the target cloud file, so as to update the cloud file stored in the cloud storage path.
优选的,所述监听所述目标云文件的内容是否发生变化,包括:Preferably, the monitoring whether the content of the target cloud file changes includes:
对所述目标云文件进行监听;Monitor the target cloud file;
判断是否监听到针对所述目标云文件的预设事件,其中,所述预设事件为:用于反映云文件内容发生变化的事件;Judging whether a preset event for the target cloud file is monitored, wherein the preset event is: an event for reflecting a change in the content of the cloud file;
若为是,判定监听到所述目标云文件的内容发生变化。If yes, it is determined that the content of the target cloud file has been monitored to change.
优选的,在所述判断是否监听到针对所述目标云文件的预设事件之前,所述方法还包括:Preferably, before the judging whether a preset event for the target cloud file is monitored, the method further includes:
判断是否接收到针对所述目标云文件的编辑指令或保存指令;Judging whether an editing instruction or a saving instruction for the target cloud file is received;
若为是,执行所述判断是否监听到针对所述目标云文件的预设事件的步骤。If yes, execute the step of judging whether a preset event for the target cloud file is monitored.
优选的,在判定监听到针对所述目标云文件的预设事件的情况下,所述方法还包括:Preferably, when it is determined that a preset event for the target cloud file is monitored, the method further includes:
判断本次监听到所述预设事件与上一次监听到所述预设事件的时间间隔是否大于预设阈值;judging whether the time interval between listening to the preset event this time and listening to the preset event last time is greater than a preset threshold;
若为是,执行所述向云端上传内容变化后的所述目标云文件的步骤。If yes, execute the step of uploading the target cloud file after content change to the cloud.
为达到上述目的,本发明实施例还公开了一种云文件编辑装置,所述装置包括:In order to achieve the above purpose, the embodiment of the present invention also discloses a cloud file editing device, which includes:
获得模块,用于获得待编辑的目标云文件;Obtaining a module for obtaining the target cloud file to be edited;
监听模块,监听所述目标云文件的内容是否发生变化;A monitoring module, monitoring whether the content of the target cloud file changes;
上传模块,用于在所述监听模块监听到所述目标云文件的内容发生变化的情况下,向云端上传内容变化后的所述目标云文件。An uploading module, configured to upload the changed target cloud file to the cloud when the monitoring module detects that the content of the target cloud file has changed.
优选的,所述获得模块,包括:Preferably, the obtaining module includes:
第一判断子模块,用于判断本地硬盘或缓存空间中是否存在待编辑的目标云文件;The first judging submodule is used to judge whether there is a target cloud file to be edited in the local hard disk or cache space;
第一获得子模块,用于在所述第一判断子模块判定结果为是的情况下,从本地硬盘或缓存空间中直接获得所述目标云文件;The first obtaining submodule is used to directly obtain the target cloud file from the local hard disk or cache space when the judgment result of the first judging submodule is yes;
第二获得子模块,用于在所述第一判断子模块判定结果为否的情况下,从云端下载所述目标云文件。The second obtaining submodule is configured to download the target cloud file from the cloud when the determination result of the first determining submodule is negative.
优选的,所述第二获得子模块,具体用于:Preferably, the second obtaining submodule is specifically used for:
根据所述目标云文件的文件类型和文件大小,确定本地硬盘中用于存储所述目标云文件的本地存储路径,从所述云端下载所述目标云文件至所述本地存储路径下;或According to the file type and file size of the target cloud file, determine a local storage path for storing the target cloud file in the local hard disk, and download the target cloud file from the cloud to the local storage path; or
根据所述文件大小,分配用于存储所述目标云文件的缓存空间,从云端下载所述目标云文件,并存储至所述缓存空间。According to the size of the file, allocate a cache space for storing the target cloud file, download the target cloud file from the cloud, and store it in the cache space.
优选的,所述装置还包括:Preferably, the device also includes:
删除模块,用于在所述上传模块向云端上传内容变化后的所述目标云文件完成的情况下,删除所述本地存储路径下存储的所述目标云文件,或删除所述缓存空间中存储的所述目标云文件。A deletion module, configured to delete the target cloud file stored in the local storage path, or delete the target cloud file stored in the cache space when the upload module uploads the target cloud file with changed content to the cloud. The target cloud file for .
优选的,所述装置还包括:Preferably, the device also includes:
打开模块,用于在确定获得完整的所述目标云文件后,打开所述目标云文件。The opening module is configured to open the target cloud file after it is determined that the complete target cloud file is obtained.
优选的,所述打开模块,具体用于:Preferably, the opening module is specifically used for:
根据所述目标云文件的文件类型,匹配用于打开所述目标云文件的目标编辑器;According to the file type of the target cloud file, match the target editor for opening the target cloud file;
利用所述目标编辑器,打开所述目标云文件。Using the target editor, open the target cloud file.
优选的,所述监听模块,具体用于:Preferably, the monitoring module is specifically used for:
创建针对所述目标云文件的文件内容变化监听器;Create a file content change listener for the target cloud file;
利用所述文件内容变化监听器,监听所述目标云文件的内容是否发生变化。Using the file content change listener to monitor whether the content of the target cloud file changes.
优选的,所述上传模块,具体用于:Preferably, the upload module is specifically used for:
上传内容变化后的所述目标云文件至所述目标云文件对应的云存储路径下,以更新所述云存储路径下存储的云文件。uploading the target cloud file whose content has changed to the cloud storage path corresponding to the target cloud file, so as to update the cloud file stored in the cloud storage path.
优选的,所述监听模块,包括:Preferably, the monitoring module includes:
监听子模块,用于对所述目标云文件进行监听;A monitoring submodule, configured to monitor the target cloud file;
第二判断子模块,用于判断是否监听到针对所述目标云文件的预设事件,其中,所述预设事件为:用于反映云文件内容发生变化的事件;The second judging submodule is used to judge whether a preset event for the target cloud file is monitored, wherein the preset event is: an event used to reflect a change in the content of the cloud file;
若为是,判定监听到所述目标云文件的内容发生变化。If yes, it is determined that the content of the target cloud file has been monitored to change.
优选的,所述装置还包括:Preferably, the device also includes:
第一判断模块,用于判断是否接收到针对所述目标云文件的编辑指令或保存指令;A first judging module, configured to judge whether an editing instruction or a saving instruction for the target cloud file is received;
第一触发模块,用于在所述第一判断模块判断为是的情况下,触发所述第二判断子模块。The first triggering module is configured to trigger the second judging sub-module when the judgment of the first judging module is yes.
优选的,在判定监听到针对所述目标云文件的预设事件的情况下,所述装置还包括:Preferably, when it is determined that a preset event for the target cloud file is monitored, the device further includes:
第二判断模块,用于判断本次监听到所述预设事件与上一次监听到所述预设事件的时间间隔是否大于预设阈值;The second judging module is used to judge whether the time interval between listening to the preset event this time and listening to the preset event last time is greater than a preset threshold;
第二触发模块,用于在所述第二判断模块判断为是的情况下,触发所述上传模块。The second triggering module is configured to trigger the uploading module when the second judging module judges yes.
由上可见,本发明实施例提供的方案中,首先获得待编辑的目标云文件,并对该目标云文件的内容进行监听,当监听到目标云文件的内容发生变化时,上传内容发生变化后的目标云文件至云端。应用本发明实施例提供的方案,通过对目标云文件的内容进行监听,若目标云文件的内容发生变化就上传目标云文件至云端,因此,不需要用户再通过手动的方式上传编辑后的云文件至云端,简化了云文件编辑的过程,节省编辑时间。It can be seen from the above that in the solution provided by the embodiment of the present invention, the target cloud file to be edited is first obtained, and the content of the target cloud file is monitored. When the content of the target cloud file is monitored, the uploaded content changes. target cloud files to the cloud. Applying the solution provided by the embodiment of the present invention, by monitoring the content of the target cloud file, if the content of the target cloud file changes, the target cloud file will be uploaded to the cloud. Therefore, there is no need for the user to upload the edited cloud file manually. Files to the cloud simplifies the process of cloud file editing and saves editing time.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例提供的第一种云文件编辑方法的流程示意图;FIG. 1 is a schematic flow diagram of a first cloud file editing method provided by an embodiment of the present invention;
图2为本发明实施例提供的第二种云文件编辑方法的流程示意图Fig. 2 is a schematic flow chart of the second cloud file editing method provided by the embodiment of the present invention
图3为本发明实施例提供的第三种云文件编辑方法的流程示意图;3 is a schematic flow diagram of a third cloud file editing method provided by an embodiment of the present invention;
图4为本发明实施例提供的第四种云文件编辑方法的流程示意图;FIG. 4 is a schematic flow diagram of a fourth cloud file editing method provided by an embodiment of the present invention;
图5为本发明实施例提供的第一种云文件编辑装置的结构示意图;FIG. 5 is a schematic structural diagram of a first cloud file editing device provided by an embodiment of the present invention;
图6为本发明实施例提供的第二种云文件编辑装置的结构示意图;6 is a schematic structural diagram of a second cloud file editing device provided by an embodiment of the present invention;
图7为本发明实施例提供的第三种云文件编辑装置的结构示意图;7 is a schematic structural diagram of a third cloud file editing device provided by an embodiment of the present invention;
图8为本发明实施例提供的第四种云文件编辑装置的结构示意图。Fig. 8 is a schematic structural diagram of a fourth cloud file editing device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。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.
下面通过具体实施例,对本发明进行详细的说明。The present invention will be described in detail below through specific examples.
图1为本发明实施例提供的第一种云文件编辑方法的流程示意图,方法包括步骤:Fig. 1 is a schematic flow chart of the first cloud file editing method provided by the embodiment of the present invention, the method includes steps:
S101:获得待编辑的目标云文件。S101: Obtain a target cloud file to be edited.
为了清楚的对本发明实施例进行说明,首先介绍下云文件的概念,云文件,顾名思义就是存储在云端的文件,也就是存储在非本地的文件,简单点说就是存储在网络中的文件,云文件不需要占用本地的存储空间,有效的节省了本地存储空间。这里所说的文件可以但不限于是:文档、图片、语音、视频。存储在云端的这些文件便称之为云文件,在本发明实施例中,称需要编辑的云文件为目标云文件。In order to clearly explain the embodiment of the present invention, first introduce the concept of cloud files. Cloud files, as the name implies, are files stored in the cloud, that is, files stored in non-local. Simply put, they are files stored in the network. Files do not need to occupy local storage space, effectively saving local storage space. The files mentioned here can be but not limited to: documents, pictures, audio, and video. These files stored in the cloud are called cloud files, and in the embodiment of the present invention, the cloud files to be edited are called target cloud files.
本领域技术人员可以理解的是,在文件上传至云端的时候,上传的文件是存储在云端中的,与在本地硬盘中存储文件相类似的,在云端存储的云文也会对应有一个存储路径,通常我们称这个存储路径为云存储路径,通过该存储路径能够从云端直接找到该云文件。示例性的,假设当前用户确定需要编辑的云文件为“金山云产品手册(初稿).doc”,若该云文件对应的云存储路径为:http://ksyun.com/a/m/金山云产品手册(初稿),通过该云存储路径能够从云端唯一确定出云文件“金山云产品手册(初稿).doc”。在确定述该云文件之后,便依据该云存储路径从云端下载云文件“金山云产品手册(初稿).doc”至本地硬盘中。Those skilled in the art can understand that when a file is uploaded to the cloud, the uploaded file is stored in the cloud. Similar to storing files in a local hard disk, the cloud text stored in the cloud will also have a corresponding storage path, usually we call this storage path a cloud storage path, through which the cloud file can be found directly from the cloud. For example, suppose the current user determines that the cloud file to be edited is "Kingsoft Cloud Product Manual (Draft).doc", if the cloud storage path corresponding to the cloud file is: http://ksyun.com/a/m/Kingsoft Cloud product manual (first draft), through which the cloud storage path can uniquely determine the cloud file "Kingsoft Cloud Product Manual (first draft).doc" from the cloud. After confirming the cloud file, download the cloud file "Kingsoft Cloud Product Manual (Draft).doc" from the cloud to the local hard disk according to the cloud storage path.
考虑到用户工作、学习等方面的需求,可能之前从云端下载过目标云文件,这样用户的本地硬盘中可能已经存在该目标云文件,当然,为了节省本地硬盘空间,用户在使用完毕上述从云端下载的目标云文件后,删除了该文件,或者从来未从云端下载过上述文件,这种情况下,用户本地硬盘中未存储有该目标云文件。Considering the needs of the user for work, study, etc., the target cloud file may have been downloaded from the cloud before, so the target cloud file may already exist in the user's local hard disk. After downloading the target cloud file, the file is deleted, or the above-mentioned file has never been downloaded from the cloud. In this case, the target cloud file is not stored in the user's local hard disk.
本步骤获得待编辑的目标云文件,可以是获得目标云文件的文件类型、文件大小、文件的标识、存储路径,和/或目标云文件数据本身。Obtaining the target cloud file to be edited in this step may be obtaining the file type, file size, file identification, storage path of the target cloud file, and/or the target cloud file data itself.
鉴于上述情况,在本发明的一种实现方式中,如图2所示,为本发明实施例提供的第二种云文件编辑方法的流程示意图,在图2所提供的实施例中,获得待编辑的目标云文件的步骤S101,包括步骤:In view of the above, in one implementation of the present invention, as shown in FIG. 2 , it is a schematic flowchart of the second cloud file editing method provided by the embodiment of the present invention. In the embodiment provided in FIG. 2 , the to-be The step S101 of editing the target cloud file includes the steps of:
S1011:判断本地硬盘或缓存空间中是否存在待编辑的目标云文件。S1011: Determine whether there is a target cloud file to be edited in the local hard disk or cache space.
本领域技术人员可以理解的是,在云端存储的云文件都会有属性信息,属性信息可以包含文件:文件类型、文件大小、文件的标识等,对于云客户端来说,云客户端中可能会存储或缓存有文件列表,用户可以根据文件列表选中云文件,并对选中的云文件进行一系列的操作。其中,上述文件列表,可以是云客户端定期从云端获得的,或者是云客户端在连接云端时,从云端获得的,本申请并不对此进行限定。Those skilled in the art can understand that all cloud files stored in the cloud will have attribute information, and the attribute information can include files: file type, file size, file identification, etc. For cloud clients, there may be A file list is stored or cached, and the user can select a cloud file according to the file list, and perform a series of operations on the selected cloud file. Wherein, the above file list may be obtained by the cloud client from the cloud on a regular basis, or obtained by the cloud client from the cloud when connecting to the cloud, which is not limited in this application.
可以理解的是,文件类型可以理解为:用于表示文件所属类别的信息,如上所述文件的文件类型可以为:文档、图片、语音、视频等;文件大小即为存储该文件所占用的存储空间的大小;文件的标识可以理解为是文件的一种代号,事实上可以理解为是文件的索引,一般情况下能通过该文件索引直接找到该文件,最为简单常用的标识方式就是直接采用该文件的文件名作为文件的标识。It can be understood that the file type can be understood as: information used to indicate the category of the file. The file type of the above-mentioned file can be: document, picture, voice, video, etc.; the file size is the storage space occupied by the file. The size of the space; the identification of the file can be understood as a code name of the file, in fact, it can be understood as the index of the file. Generally, the file can be found directly through the file index. The simplest and most commonly used identification method is to directly use the The filename of the file serves as the file's identifier.
同样的,在本地硬盘或缓存空间中存储的文件也会有属性信息,属性信息可以包括:文件类型、文件大小、文件的标识以及本地存储路径等,文件在下载或上传的过程中,文件的标识在默认情况下通常是不发生变化的,因此,可以通过目标云文件对应的标识,在本地硬盘或缓存空间中查找是否已经存在目标云文件。而本地硬盘一般存储容量较大,可以存储有大量的文件,若全部查找一遍的话,需要耗费相当长的时间。Similarly, files stored in the local hard disk or cache space also have attribute information, which can include: file type, file size, file identification, and local storage path. The identifier usually does not change by default. Therefore, you can check whether the target cloud file already exists in the local hard disk or cache space through the identifier corresponding to the target cloud file. The local hard disk generally has a large storage capacity and can store a large number of files. If you search all of them, it will take a long time.
针对上述的现象,在本发明实施例所提供的方案中,云客户端在安装时都会默认的分配一个用于存储下载文件的本地存储路径,那么,在从云端下载目标云文件时,下载的目标云文件将直接存储至已分配的本地存储路径下或存储至缓存空间中,这样的话,如果需要对该目标云文件进行编辑的话,只需要在上述的本地存储路径下或缓存空间中通过该文件的标识进行查找即可,不需要再在整个本地硬盘中查找了,极大的缩小了查找范围,因此能够节省查找目标云文件的时间。In view of the above phenomenon, in the solution provided by the embodiment of the present invention, the cloud client will assign a default local storage path for storing downloaded files during installation. Then, when downloading the target cloud file from the cloud, the downloaded The target cloud file will be directly stored in the allocated local storage path or in the cache space. In this way, if you need to edit the target cloud file, you only need to pass the above-mentioned local storage path or cache space through the It is only necessary to search for the identification of the file, and there is no need to search in the entire local hard disk, which greatly reduces the search range, so it can save the time to search for the target cloud file.
值得一提的是,对于上述所说的本地硬盘实际上为本地存储空间的一种具体描述,对于手机端来说,本地硬盘可以为内置的手机内存或者是外插的SD卡、TF卡等存储结构,因此,本申请不对本地硬盘的具体结构做进一步限定。It is worth mentioning that the above-mentioned local hard disk is actually a specific description of local storage space. For the mobile phone, the local hard disk can be the built-in mobile phone memory or an external SD card, TF card, etc. Storage structure, therefore, this application does not further limit the specific structure of the local hard disk.
S1012:在所述步骤S1011判定为是的情况下,从本地硬盘或缓存空间中直接获得所述目标云文件。S1012: If the determination in step S1011 is yes, directly obtain the target cloud file from the local hard disk or cache space.
由上可知,通过目标云文件的标识在本地硬盘或缓存空间中进行查找,若在本地硬盘或缓存空间中查找到与目标云文件的标识相同的文件,则认为在本地硬盘或缓存空间中存在目标云文件,此时,为了节省存储空间,在本地硬盘或缓存空间中存在目标云文件的情况下,将不再进行下载目标云文件的操作,简化了操作步骤,缩短了获取目标云文件的时间。It can be seen from the above that the local hard disk or cache space is searched through the identification of the target cloud file. If the file with the same identification as the target cloud file is found in the local hard disk or cache space, it is considered to exist in the local hard disk or cache space. Target cloud file, at this time, in order to save storage space, if the target cloud file exists in the local hard disk or cache space, the operation of downloading the target cloud file will no longer be performed, which simplifies the operation steps and shortens the time to obtain the target cloud file. time.
示例性的,假设当前文件列表中有一个目标云文件,该目标云文件的文件名为“金山云产品手册(初稿).doc”,文件类型为文档、文件大小为1.1M、标识可以直接用文件名,即“金山云产品手册(初稿).doc”;在安装云客户端时分配的本地存储路径“D:\ProgramFiles\Kingsf\Download”下存储有文件名为“金山云产品手册(初稿).doc”的文件、该文件的文件类型为文档,其对应的标识为“金山云产品手册(初稿).doc”。那么,通过上述目标云文件的标识“金山云产品手册(初稿).doc”在本地存储路径“D:\Program Files\Kingsf\Download”下进行查找,由于文件在上传或下载的过程中,文件的标识不会发生改变,而在本地存储路径“D:\Program Files\Kingsf\Download”下存在文件标识与目标云文件的标识相同的文件,因此,可以确定在本地存储路径“D:\Program Files\Kingsf\Download”下存在目标云文件。Exemplarily, assume that there is a target cloud file in the current file list, the file name of the target cloud file is "Kingsoft Cloud Product Manual (Draft).doc", the file type is document, the file size is 1.1M, and the identification can be directly used The file name is "Kingsoft Cloud Product Manual (Draft).doc"; the local storage path "D:\Program Files\Kingsf\Download" allocated when installing the cloud client stores a file named "Kingsoft ).doc", the file type of the file is document, and its corresponding identifier is "Kingsoft Cloud Product Manual (Draft).doc". Then, search under the local storage path "D:\Program Files\Kingsf\Download" through the identification of the above target cloud file "Kingsoft Cloud Product Manual (Draft).doc". The ID of the target cloud file will not change, but there is a file with the same file ID as the target cloud file under the local storage path "D:\Program Files\Kingsf\Download". Therefore, it can be determined that the local storage path "D:\Program Files The target cloud file exists under Files\Kingsf\Download".
S1013:在所述步骤S1011判定为否的情况下,从云端下载所述目标云文件。S1013: If the determination in step S1011 is negative, download the target cloud file from the cloud.
通过目标云文件的标识在本地硬盘或缓存空间中查找,若没有查找到,则认为在本地硬盘或缓存空间中不存在目标云文件,此时需要从存储目标云文件的云端下载该目标云文件。Search the local hard disk or cache space through the identification of the target cloud file. If it is not found, it is considered that the target cloud file does not exist in the local hard disk or cache space. At this time, the target cloud file needs to be downloaded from the cloud where the target cloud file is stored. .
在实际的应用过程中,下载目标云文件可以分为如下两种情况,具体为:In the actual application process, downloading target cloud files can be divided into the following two situations, specifically:
第一种情况:根据所述目标云文件的文件类型和文件大小,确定本地硬盘中用于存储所述目标云文件的本地存储路径,从所述云端下载所述目标云文件至所述本地存储路径下。The first case: according to the file type and file size of the target cloud file, determine the local storage path for storing the target cloud file in the local hard disk, and download the target cloud file from the cloud to the local storage down the path.
本领域技术人员可以理解的是,下载目标云文件实际上就是对目标云文件传输的过程,也就是将目标云文件从一个地方复制到另一个地方的过程,因此,在下载目标云文件时,需要知晓从哪里下载目标云文件,下载后存储至什么地方,上述可知,存储在云端的云文件将对应一个云存储路径,因此,在云文件的属性信息中除了可以包括前述的文件类型、文件大小等信息,还可以包括云文件的云存储路径,这样可以根据属性信息中的云存储路径,将文件上传至云端,下载文件时,可以通过该云存储路径能够直接从云端找到对应的云文件。Those skilled in the art can understand that downloading the target cloud file is actually the process of transferring the target cloud file, that is, the process of copying the target cloud file from one place to another. Therefore, when downloading the target cloud file, It is necessary to know where to download the target cloud file and where to store it after downloading. As can be seen from the above, the cloud file stored in the cloud will correspond to a cloud storage path. Therefore, the attribute information of the cloud file can include the aforementioned file type, file The size and other information can also include the cloud storage path of the cloud file, so that the file can be uploaded to the cloud according to the cloud storage path in the attribute information, and when the file is downloaded, the corresponding cloud file can be found directly from the cloud through the cloud storage path .
就本发明实施例而言,目标云文件是从云端中下载的,而目标云文件的云存储路径是可以从文件的属性信息中知晓的,因此可以根据目标云文件对应的云存储路径从云端找到目标云文件。由于目标云文件是一种数据,而数据在存储时均需要占用相应的存储空间,因此,在从云端下载目标云文件时,需要在本地硬盘中为目标云文件确定一个存储位置,也就是确定用于存储目标云文件的本地存储路径。以电脑端为例,假设在安装云客户端时,在本地硬盘中预先创建一个文件夹“Download”,该文件夹对应的本地存储路径为“D:\Program Files\Kingsf\Download”,默认情况下,通过该云客户端下载的所有文件都会存储在该路径下,但是,为了方便对下载后的云文件进行管理,在上述的文件夹“Download”中,通常还会根据所下载目标云文件的文件类型以及目标云文件的文件大小,确定或建立与目标云文件对应的子文件夹,最终确定一个存储下载后的目标云文件的本地存储路径。As far as the embodiment of the present invention is concerned, the target cloud file is downloaded from the cloud, and the cloud storage path of the target cloud file can be known from the attribute information of the file, so it can be downloaded from the cloud according to the cloud storage path corresponding to the target cloud file. Locate the target cloud file. Since the target cloud file is a kind of data, and the data needs to occupy corresponding storage space when storing, therefore, when downloading the target cloud file from the cloud, it is necessary to determine a storage location for the target cloud file in the local hard disk, that is, to determine The local storage path used to store the target cloud file. Taking the computer as an example, suppose that when installing the cloud client, a folder "Download" is pre-created in the local hard disk, and the local storage path corresponding to this folder is "D:\Program Files\Kingsf\Download". Next, all the files downloaded through this cloud client will be stored in this path. However, in order to facilitate the management of the downloaded cloud files, in the above-mentioned folder "Download", usually the downloaded target cloud files The file type and the file size of the target cloud file, determine or establish a subfolder corresponding to the target cloud file, and finally determine a local storage path for storing the downloaded target cloud file.
示例性的:假设当前所要下载的目标云文件为“金山云产品手册(初稿).doc”,文件类型为文档、文件大小为1.1M,那么,可根据目标云文件的文件类型以及文件大小,在上述的文件夹“Download”中查找是否已经存在与目标云文件的文件类型“文档”对应的子文件夹“File”,如果文件夹“Download”中已经存在子文件夹“File”,可以将目标云文件直接下载至子文件夹“File”中,该子文件夹“File”对应的本地存储路径为“D:\Program Files\Kingsf\Download\File”,也就是说,最终确定的用于存储目标云文件的本地存储路径为“D:\Program Files\Kingsf\Download\File”。Exemplary: Assuming that the current target cloud file to be downloaded is "Kingsoft Cloud Product Manual (First Draft).doc", the file type is document, and the file size is 1.1M, then, according to the file type and file size of the target cloud file, In the above-mentioned folder "Download", check whether there is already a subfolder "File" corresponding to the file type "Document" of the target cloud file. If the subfolder "File" already exists in the folder "Download", you can add The target cloud file is directly downloaded to the subfolder "File", and the local storage path corresponding to the subfolder "File" is "D:\Program Files\Kingsf\Download\File", that is to say, the finalized The local storage path for storing target cloud files is "D:\Program Files\Kingsf\Download\File".
如果上述文件夹“Download”中不存在子文件夹“File”,那说明在文件夹“Download”还没有存储过该类型的文件,此时,可以直接在文件夹“Download”中新建一个子文件夹“File”,然后将目标云文件下载至子文件夹“File”中,该子文件夹“File”对应的本地存储路径为“D:\Program Files\Kingsf\Download\File”,也就是说,最终确定的用于存储目标云文件的本地存储路径为“D:\Program Files\Kingsf\Download\File”。If the subfolder "File" does not exist in the above folder "Download", it means that no file of this type has been stored in the folder "Download". At this time, you can directly create a new subfolder in the folder "Download". Folder "File", and then download the target cloud file to the subfolder "File", the local storage path corresponding to the subfolder "File" is "D:\Program Files\Kingsf\Download\File", that is to say , the final determined local storage path for storing the target cloud file is "D:\Program Files\Kingsf\Download\File".
如果在上述的过程中,目标云文件下载至本地存储路径为“D:\Program Files\Kingsf\Download\File”下时,本地存储路径对应的本地硬盘的D分区中已被存满,而目标文件还没有完全被下载下来,此时,云客户端可以向用户发出一个提示信息,用来告知用户本地硬盘已没有剩余存储空间,下载失败,此时用户可以通过删除本地硬盘中存储的某些文件来释放出足够的存储空间,进而满足当前下载目标云文件的需求,重新下载目标云文件。或者用户还可以通过外扩存储空间的方式来满足当前下载目标云文件的需求,外扩存储空间可以通过插接U盘、光盘、移动硬盘等方式实现。但需要保证外扩的存储空间不小于当前需要下载的目标云文件的文件大小。例如,当前需要下载的目标云文件的文件大小为1.1M,用户通过终端提供的外设通信接口插接了一个剩余存储空间大小为5GB的U盘,插接后终端会默认为其分配一个本地存储路径,例如分配的本地存储路径为“H:\”,此时云客户端可以向终端发送一个请求以获得外扩存储空间的本地存储路径“H:\”,获得该存储路径后,便可将目标云文件下载至外扩存储空间的本地存储路径“H:\”下,也就是说,最终确定的用于存储目标云文件的本地存储路径为“H:\”。If in the above process, when the target cloud file is downloaded to the local storage path "D:\Program Files\Kingsf\Download\File", the D partition of the local hard disk corresponding to the local storage path is full, and the target The file has not been completely downloaded. At this time, the cloud client can send a prompt message to the user to inform the user that the local hard disk has no remaining storage space and the download fails. At this time, the user can delete some files stored in the local hard disk. file to release enough storage space to meet the current demand for downloading the target cloud file, and re-download the target cloud file. Or users can also expand the storage space to meet the current demand for downloading target cloud files. The external expansion of storage space can be achieved by plugging in U disks, CDs, and mobile hard disks. However, it is necessary to ensure that the expanded storage space is not smaller than the file size of the target cloud file currently to be downloaded. For example, if the target cloud file to be downloaded currently has a file size of 1.1M, and the user plugs in a USB flash drive with a remaining storage space of 5GB through the peripheral communication interface provided by the terminal, the terminal will assign a local Storage path, for example, the allocated local storage path is "H:\". At this time, the cloud client can send a request to the terminal to obtain the local storage path "H:\" of the external storage space. After obtaining the storage path, it can The target cloud file can be downloaded to the local storage path "H:\" of the external storage space, that is to say, the final determined local storage path for storing the target cloud file is "H:\".
在确定出本地硬盘中用于存储所述目标云文件的本地存储路径之后,便可以从云端下载目标云文件了,将存储于云端的目标云文件下载至上述确定出的本地存储路径下。After the local storage path for storing the target cloud file in the local hard disk is determined, the target cloud file can be downloaded from the cloud, and the target cloud file stored in the cloud is downloaded to the determined local storage path.
需要说明的是,上述仅为本发明实施例的一种具体示例,对于不同的文件类型,建立的子文件仅文件夹的名称不同,例如,如果目标云文件的文件类型为图片的话,建立的子文件夹名称为“Picture”,相应的本地存储为“D:\Program Files\Kingsf\Download\Picture”;还例如,如果目标云文件的文件类型为语音的话,建立的子文件夹名称为“Music”,相应的本地存储为“D:\Program Files\Kingsf\Download\Music”。当然,上述的所有举例均为一种具体示例,并不构成对本申请目标云文件的文件类型的限定。It should be noted that the above is only a specific example of the embodiment of the present invention. For different file types, only the name of the folder of the created sub-file is different. For example, if the file type of the target cloud file is a picture, the created The name of the subfolder is "Picture", and the corresponding local storage is "D:\Program Files\Kingsf\Download\Picture"; for example, if the file type of the target cloud file is voice, the name of the created subfolder is " Music", the corresponding local storage is "D:\Program Files\Kingsf\Download\Music". Of course, all the examples above are specific examples, and do not constitute a limitation on the file type of the target cloud file in this application.
第二种情况:根据所述文件大小,分配用于存储所述目标云文件的缓存空间,从云端下载所述目标云文件,并存储至所述缓存空间。Case 2: according to the size of the file, allocate a cache space for storing the target cloud file, download the target cloud file from the cloud, and store it in the cache space.
上述可知的是,通常情况下,终端在运行客户端时,会提供用于存储运行数据的缓存空间,同样的,在运行云客户端时也会提供一个缓存空间,该缓存空间用于在暂存下载的云文件,为了不造成缓存空间的浪费,通常在存储下载的云文件时,需要考虑下载的云文件的文件大小,假设当前需要下载的目标云文件为“金山云产品手册(初稿).doc”,文件大小为1.1M,那么在分配缓存空间时,可以根据该目标云文件的文件大小1.1M来从内存中划分出一个大于等于1.1M的缓存空间,该缓存空间将存储从云端下载的目标云文件,当下载完成后便可从该缓存空间中获得目标云文件。It can be known from the above that, usually, when the terminal runs the client, it will provide a cache space for storing running data. Similarly, when running the cloud client, it will also provide a cache space, which is used for temporary To save the downloaded cloud file, in order not to waste the cache space, usually when storing the downloaded cloud file, the file size of the downloaded cloud file needs to be considered. Assume that the current target cloud file to be downloaded is "Kingsoft Cloud Product Manual (Draft) .doc” and the file size is 1.1M, then when allocating the cache space, a cache space greater than or equal to 1.1M can be allocated from the memory according to the file size of the target cloud file of 1.1M, and the cache space will be stored from the cloud The downloaded target cloud file, after the download is completed, the target cloud file can be obtained from the cache space.
可见,上述两种情况均能够获得目标云文件,因此,在本发明实施例中,并不对获得目标云文件的具体实现方式做明确限定。It can be seen that the target cloud file can be obtained in the above two cases, therefore, in the embodiment of the present invention, the specific implementation manner of obtaining the target cloud file is not explicitly limited.
S102:监听所述目标云文件的内容是否发生变化。S102: Monitor whether the content of the target cloud file changes.
当云客户端获得待编辑的云文件之后,便开始监听被打开的目标云文件的内容是否发生变化,需要说明的是,在本发明实施例提供的方案中,云客户端具有事件监听的功能。After the cloud client obtains the cloud file to be edited, it starts to monitor whether the content of the opened target cloud file changes. It should be noted that, in the solution provided by the embodiment of the present invention, the cloud client has the function of event monitoring .
但是通常情况下,服务端是具有事件监听的功能的,因此,考虑到客户端的开发成本以及运行成本,通常客户端可以调用服务端的监听功能。But usually, the server has the function of event monitoring. Therefore, considering the development cost and running cost of the client, the client can usually call the monitoring function of the server.
在实际应用中,监听所述目标云文件的内容是否发生变化,可以通过创建针对所述目标云文件的文件内容变化监听器;In practical applications, to monitor whether the content of the target cloud file changes, it is possible to create a file content change listener for the target cloud file;
利用所述文件内容变化监听器,监听所述目标云文件的内容是否发生变化。Using the file content change listener to monitor whether the content of the target cloud file changes.
以下以手机端为例对上述过程进行说明。The above process is described below by taking the mobile terminal as an example.
目前,对于搭载Android操作系统的手机端来说,在Android系统中会自带有文件内容变化监听器FileObserver,FileObserver能够监听到指定文件或文件夹的内容变化。对于文件来说,FileObserver能够监听多种类型的事件,例如,ACCESS:文件被访问、MODIFY:文件被修改、ATTRIB:文件属性被修改、CLOSE_WRITE:可写文件被关闭、CLOSE_NOWRITE:不可写文件被关闭、OPEN:文件被打开、MOVED_FROM:文件被移走、MOVED_TO:文件被移来、CREATE:创建新文件、DELETE:文件被删除、DELETE_SELF:自删除,即一个可执行文件在执行时删除自己、MOVE_SELF:自移动,即一个可执行文件在执行时移动自己、CLOSE:文件被关闭等。Currently, for mobile phones equipped with the Android operating system, the Android system will have a file content change listener FileObserver, and the FileObserver can monitor the content changes of specified files or folders. For files, FileObserver can monitor various types of events, for example, ACCESS: file is accessed, MODIFY: file is modified, ATTRIB: file attribute is modified, CLOSE_WRITE: writable file is closed, CLOSE_NOWRITE: non-writable file is closed , OPEN: the file is opened, MOVED_FROM: the file is removed, MOVED_TO: the file is moved, CREATE: create a new file, DELETE: the file is deleted, DELETE_SELF: self-delete, that is, an executable file deletes itself when it is executed, MOVE_SELF : Self-moving, that is, an executable file moves itself when it is executed, CLOSE: the file is closed, etc.
本领域技术人员可以理解的是,上述所说的文件内容变化监听器是由程序语言实现的,每监听一个事件都需要特定的代码实现,而对于目标云文件的文件类型不同以及操作目标云文件的侧重点不同,文件内容变化监听器监听事件类型也会有所差别,为了减少客户端运行时对服务端的压力,对于那些在目标云文件的编辑过程中不关心的事件,文件内容变化监听器可以不监听其对应的变化状态。例如,对于文档类型的文件来说,在监听的过程中只关心事件MODIFY:文件被修改、CLOSE_WRITE:可写文件被关闭和MOVED_TO:文件被移来,对于其它一些事件例如,ACCESS、DELETE等并不关心,所以文件内容变化监听器不用监听其对应的变化状态。因此,可以创建一个针对文档类型文件的文件内容变化监听器,创建的文件内容变化监听器所对应的代码与Android系统自带的FileObserver对应的代码有所不同,前者监听事件可以理解为是后者监听事件的子集。根据目标云文件的文件类型不同,可以创建针对该目标云文件的文件内容变化监听器。创建好文件内容变化监听器之后便开始监听目标云文件的内容是否发生变化。Those skilled in the art can understand that the above-mentioned file content change listener is implemented by a programming language, and each listening to an event requires specific code implementation, and the file type of the target cloud file is different and the operation of the target cloud file The types of events monitored by the file content change listener will also be different. In order to reduce the pressure on the server when the client is running, for those events that are not concerned during the editing process of the target cloud file, the file content change listener It is not necessary to monitor its corresponding change state. For example, for document-type files, only the event MODIFY is concerned during the listening process: the file is modified, CLOSE_WRITE: the writable file is closed and MOVED_TO: the file is moved, and for other events such as ACCESS, DELETE, etc. Don't care, so the file content change listener does not need to monitor its corresponding change status. Therefore, you can create a file content change listener for document type files. The code corresponding to the created file content change listener is different from the code corresponding to the FileObserver that comes with the Android system. The former listening event can be understood as the latter Listen for a subset of events. According to different file types of the target cloud file, a file content change listener for the target cloud file can be created. After the file content change listener is created, it starts to monitor whether the content of the target cloud file changes.
在本发明实施例提供的另一种具体实现方式中,监听所述目标云文件的内容是否发生变化,具体可以为:In another specific implementation manner provided by the embodiment of the present invention, monitoring whether the content of the target cloud file changes, specifically may be:
对所述目标云文件进行监听;Monitor the target cloud file;
判断是否监听到针对所述目标云文件的预设事件,其中,所述预设事件为:用于反映云文件内容发生变化的事件;Judging whether a preset event for the target cloud file is monitored, wherein the preset event is: an event for reflecting a change in the content of the cloud file;
若为是,判定监听到所述目标云文件的内容发生变化。If yes, it is determined that the content of the target cloud file has been monitored to change.
由上可知,当云客户端获得待编辑的云文件之后,便开始监听目标云文件的内容是否发生变化,由于目标云文件的文件类型不同以及操作目标云文件的侧重点不同,文件内容变化监听器监听事件的重点也有所不同,为了减少客户端运行时对服务端的压力,对于那些不关心的事件,文件内容变化监听器可以不用监听其变化状态。因此,在本发明实施例提供的方案中,针对不同类型的目标云文件可以预先设定不同的事件。例如,针对文档类型的目标云文件,可以预先设定事件:MODIFY、CLOSE_WRITE和MOVED_TO,这些预先设定的事件即为预设事件。文件内容变化监听器在对文档类型的目标云文件进行监听时,只需要监听这些预设事件,因为只需通过上述的这些预设事件就能够知晓目标云文件的内容是否发生变化,如果监听到上述的预设事件,那么,此时目标云文件的内容发生了变化,即目标云文件的内容被修改。It can be seen from the above that when the cloud client obtains the cloud file to be edited, it starts to monitor whether the content of the target cloud file changes. Since the file type of the target cloud file is different and the focus of operating the target cloud file is different, the file content change monitoring The focus of monitoring events is also different. In order to reduce the pressure on the server when the client is running, for those events that do not care, the file content change listener does not need to monitor its change status. Therefore, in the solutions provided by the embodiments of the present invention, different events may be preset for different types of target cloud files. For example, for the target cloud file of the document type, events may be preset: MODIFY, CLOSE_WRITE, and MOVED_TO, and these preset events are preset events. When the file content change listener monitors the target cloud file of the document type, it only needs to listen to these preset events, because it only needs to use the above preset events to know whether the content of the target cloud file has changed. For the above preset event, the content of the target cloud file changes at this time, that is, the content of the target cloud file is modified.
需要强调的是,上述所列举的预设事件为具体示例,并不限定于此。对于不同文件类型的目标云文件,预设事件可能也相应不同,本申请于此不做明确限定。It should be emphasized that the preset events listed above are specific examples and are not limited thereto. For target cloud files of different file types, the preset events may be correspondingly different, which is not specifically limited in this application.
S103:在所述步骤S102监听到所述目标云文件的内容发生变化的情况下,向云端上传内容变化后的所述目标云文件。S103: Upload the changed target cloud file to the cloud when the content of the target cloud file is detected to be changed in the step S102.
对于上述的步骤S102来说,当监听到所述目标云文件的内容发生变化时,也就意味着此时的目标云文件的内容此时已经发生了变化,即目标云文件的内容被修改,为了防止内容变化后的目标云文件的数据丢失,在判定目标云文件的内容发生变化的情况下,就将该内容变化后的目标云文件上传至云端。For the above step S102, when it is detected that the content of the target cloud file changes, it means that the content of the target cloud file has changed at this time, that is, the content of the target cloud file has been modified, In order to prevent the data loss of the target cloud file after content change, when it is determined that the content of the target cloud file changes, the target cloud file with content change is uploaded to the cloud.
实际应用中,向云端上传内容变化后的所述目标云文件,可以上传内容变化后的所述目标云文件至所述目标云文件对应的云存储路径下,以更新所述云存储路径下存储的云文件。In practical applications, upload the target cloud file with changed content to the cloud, and upload the target cloud file with changed content to the cloud storage path corresponding to the target cloud file, so as to update the storage in the cloud storage path. cloud files.
由上可知,文件在上传至云端时会对应一个云存储路径,并可以通过该云存储路径从云端直接找到该云文件,因此,通过目标云文件对应的云存储路径便可找到之前目标云文件在云端的存储位置,然后上传的内容变化后的目标云文件至上述存储位置下,以便更新之前的目标云文件。为了保证上传的内容变化后的目标云文件能够更新之前的目标云文件,可以直接将内容变化后的目标云文件上传至之前目标云文件的云存储路径下。这里所说的更新目标云文件事实上就是替换之前的存储在云端的目标云文件,具体来说就是,当内容变化后的目标云文件上传至之前目标云文件的云存储路径下时,由于上传的内容变化后的目标云文件与之前的目标云文件的标识相同,因此,可以将内容变化后的目标云文件替换之前的目标云文件。It can be seen from the above that when a file is uploaded to the cloud, it will correspond to a cloud storage path, and the cloud file can be directly found from the cloud through the cloud storage path. Therefore, the previous target cloud file can be found through the cloud storage path corresponding to the target cloud file In the storage location of the cloud, upload the target cloud file after the content change to the above storage location, so as to update the previous target cloud file. In order to ensure that the uploaded target cloud file with changed content can update the previous target cloud file, you can directly upload the target cloud file with changed content to the cloud storage path of the previous target cloud file. The updating target cloud file mentioned here is actually replacing the previous target cloud file stored in the cloud. Specifically, when the target cloud file after content change is uploaded to the cloud storage path of the previous target cloud file, due The identity of the target cloud file after the content change is the same as that of the previous target cloud file, therefore, the target cloud file after the content change can replace the previous target cloud file.
除了上述将内容变化后的目标云文件替换之前的目标云文件的方式之外,实际上还可以,在内容变化后的目标云文件上传至之前目标云文件的云存储路径下后,默认自动修改内容变化后的目标云文件的文件版本,以版本升级的形式体现已上传的内容变化后的目标云文件,最简单的可以通过修改已上传的内容变化后的目标云文件的文件名来实现。例如,之前的目标云文件的文件名为“金山云产品手册(初稿).doc”,那么,可以修改已上传的内容变化后的目标云文件的文件名为“金山云产品手册(初稿)(1).doc”,当然,上述的以修改文件名的方式体现已上传的内容变化的目标文件仅为本发明实施例提供的一种示例,本发明实施例并不对其做进一步限定。In addition to the above method of replacing the target cloud file with the changed target cloud file with the previous target cloud file, in fact, after the target cloud file with changed content is uploaded to the cloud storage path of the previous target cloud file, it will be automatically modified by default The file version of the target cloud file after the content change reflects the uploaded target cloud file after the content change in the form of version upgrade, which can be realized most simply by modifying the file name of the uploaded target cloud file after the content change. For example, the file name of the previous target cloud file is "Kingsoft Cloud Product Manual (Draft). 1).doc", of course, the above-mentioned target file that reflects the uploaded content changes by modifying the file name is only an example provided by the embodiment of the present invention, and the embodiment of the present invention does not further limit it.
由上可见,应用图1提供实施例,通过判断目标云文件是否在本地硬盘或缓存空间中存在,当判断本地硬盘或缓存空间中存在目标云文件时,通过目标云文件的本地存储路径找到该目标云文件,如果在本地硬盘或缓存空间中不存在目标云文件时,便从云端下载该目标云文件至本地或者是缓存空间,并对该目标云文件的内容进行监听,当监听到目标云文件的内容发生变化时,上传内容发生变化后的目标云文件至云端。应用本发明实施例,通过对目标云文件的内容进行监听,若目标云文件的内容发生变化就上传目标云文件至云端,因此,不需要用户再通过手动的方式上传编辑后的云文件至云端,简化了云文件编辑的过程,节省编辑时间。It can be seen from the above that the application of Figure 1 provides an embodiment, by judging whether the target cloud file exists in the local hard disk or cache space, when it is judged that there is a target cloud file in the local hard disk or cache space, find the target cloud file through the local storage path If the target cloud file does not exist in the local hard disk or cache space, the target cloud file will be downloaded from the cloud to the local or cache space, and the content of the target cloud file will be monitored. When the content of the file changes, the target cloud file after the content change is uploaded to the cloud. Applying the embodiment of the present invention, by monitoring the content of the target cloud file, if the content of the target cloud file changes, the target cloud file is uploaded to the cloud. Therefore, the user does not need to manually upload the edited cloud file to the cloud. , which simplifies the process of cloud file editing and saves editing time.
图3为本发明实施例提供的第三种云文件编辑方法的流程示意图,基于上述图1提供实施例,在所述监听所述目标云文件的内容是否发生变化之前,所述方法还包括如下步骤:Fig. 3 is a schematic flow diagram of the third cloud file editing method provided by the embodiment of the present invention. Based on the above-mentioned Fig. 1, an embodiment is provided. Before the monitoring of whether the content of the target cloud file changes, the method further includes the following step:
S104:在确定获得完整的所述目标云文件后,打开所述目标云文件。S104: After it is determined that the complete target cloud file is obtained, open the target cloud file.
由上述的步骤S101可以看出,获得目标云文件可以是本地硬盘中存储的与目标云文件相同的文件,也可以是从云端下载的目标云文件。但无论通过何种方式获得目标云文件,均需确保获得的目标云文件是完整的,这里所说的完整是指获得的目标云文件能够被打开;如若获取的目标云文件是不完整的,那后面在打开该目标云文件时可能会出错等异常而导致打开失败。确保获得的目标云文件是完整的,能够避免因获得的目标云文件不完整而使得后续打开目标文件出错的现象。It can be seen from the above step S101 that the obtained target cloud file may be the same file as the target cloud file stored in the local hard disk, or may be a target cloud file downloaded from the cloud. However, no matter what method is used to obtain the target cloud file, it is necessary to ensure that the obtained target cloud file is complete. The integrity mentioned here means that the obtained target cloud file can be opened; if the obtained target cloud file is incomplete, After that, when opening the target cloud file, there may be errors and other exceptions, resulting in failure to open. Ensuring that the obtained target cloud file is complete can avoid the phenomenon of subsequent opening of the target file due to the incomplete obtained target cloud file.
在确定获得到完整的目标云文件之后,打开获得的目标云文件,进行编辑等操作,在本发明实施例提供的一种具体实现方式中,打开所述目标云文件,可以通过如下步骤实现,具体为:After determining that the complete target cloud file has been obtained, open the obtained target cloud file and perform operations such as editing. In a specific implementation mode provided in an embodiment of the present invention, opening the target cloud file can be achieved through the following steps, Specifically:
根据所述目标云文件的文件类型,匹配用于打开所述目标云文件的目标编辑器;According to the file type of the target cloud file, match the target editor for opening the target cloud file;
利用所述目标编辑器,打开所述目标云文件。Using the target editor, open the target cloud file.
对于一个计算机、手机或者是其他形式的终端,除了安装云客户端(如,金山企业云盘)外,一般还会安装有许多常见应用的客户端,例如,WPS文档编辑器,Word文档编辑器,Photoshop图片编辑器等等,这些应用的客户端之间是相互独立的,但是,这些应用的客户端可以被相互调用。假设,当前云客户端为金山企业云盘,从金山企业云盘提供的文件列表中选择文件大小为1.1M的文档文件“金山云产品手册(初稿).doc”作为目标云文件,那么,最终获得的目标云文件为“金山云产品手册(初稿).doc”,文件类型为文档、文件大小为1.1M,那么金山企业云可以根据该文件类型“文档”找到能够打开该文件类型的编辑器,如果当前计算机或手机端的已安装WPS文档编辑器或者其他形式的Word文档编辑器,那么此时将WPS文档编辑器或者Word文档编辑器确定为目标编辑器,用于打开上述获得的目标云文件。如果当前计算机或手机端安装多个同一类型的编辑器,如同时安装了WPS文档编辑器和Word文档编辑器,那么在确定目标编辑器时,可以根据用户的喜好,将用户常用的编辑器作为目标编辑器,或者预先设置编辑器的调用顺序,这都是合理的。For a computer, mobile phone, or other form of terminal, in addition to installing a cloud client (such as Kingsoft Enterprise Cloud Disk), there are generally many common application clients installed, such as WPS document editor, Word document editor , Photoshop image editor, etc., the clients of these applications are independent of each other, but the clients of these applications can be called each other. Assuming that the current cloud client is Kingsoft Enterprise Cloud Disk, select the document file "Kingsoft Cloud Product Manual (Draft).doc" with a file size of 1.1M from the file list provided by Kingsoft Enterprise Cloud Disk as the target cloud file, then, finally The obtained target cloud file is "Kingsoft Cloud Product Manual (Draft).doc", the file type is document, and the file size is 1.1M, then Kingsoft Enterprise Cloud can find an editor that can open this file type according to the file type "document" , if the WPS document editor or other forms of Word document editors have been installed on the current computer or mobile phone, then determine the WPS document editor or Word document editor as the target editor at this time, and use it to open the target cloud file obtained above . If multiple editors of the same type are installed on the current computer or mobile phone, such as WPS document editor and Word document editor installed at the same time, then when determining the target editor, the user's favorite editor can be used as the editor according to the user's preference. It is reasonable to target the editor, or to pre-set the calling order of the editors.
在确定好目标编辑器之后,利用目标编辑器打开目标云文件,事实上在上述过程中所确定出的目标编辑器均作为第三方编辑器。虽然类似WPS文档编辑器这样的编辑器,其本身就是一款具有云存储功能的客户端,但目标云文件是通过金山企业云盘获得的,对于金山企业云盘来说,WPS文档编辑器也是第三方编辑器。After the target editor is determined, use the target editor to open the target cloud file. In fact, the target editors determined in the above process are all used as third-party editors. Although an editor like WPS Document Editor itself is a client with cloud storage function, the target cloud file is obtained through Kingsoft Enterprise Cloud Disk. For Kingsoft Enterprise Cloud Disk, WPS Document Editor is also Third-party editors.
还有一种情况是云客户端自身就是一个编辑器,例如,WPS文档编辑器,它是一个文档编辑器,同时还是一款具有云存储功能的客户端,这种情况下,如果WPS文档编辑器获得的目标云文件的文件类型为文档时,由于WPS文档编辑器本身就具有文档编辑器的功能,因此,在打开文档类型的目标云文件时,将不再选择其他形式的文档编辑器,可以直接选用WPS文档编辑器打开目标云文件。这样能够节省打开目标云文件的时间。但如果WPS文档编辑器获得的目标云文件的文件类型不是文档时,与上述调用第三方编辑器类似的,可以根据目标云文件的文件类型选择与该文件类型相匹配的第三方编辑器作为目标编辑器,然后利用选择出的目标编辑器打开目标云文件。Another situation is that the cloud client itself is an editor, for example, WPS document editor, which is a document editor and a client with cloud storage function, in this case, if WPS document editor When the file type of the obtained target cloud file is a document, since the WPS document editor itself has the function of a document editor, when opening the target cloud file of the document type, no other form of document editor will be selected, and you can Directly choose the WPS document editor to open the target cloud file. This saves time when opening target cloud files. However, if the file type of the target cloud file obtained by the WPS document editor is not a document, similar to calling a third-party editor above, you can select a third-party editor that matches the file type as the target according to the file type of the target cloud file editor, and then open the target cloud file with the selected target editor.
值得说明的是,上述仅用目标云文件的文档类型为文档来进行说明的,实际上,目标云文件的文件类型可以为其他任意形式,比如图片、语音、视频等,由于所打开目标云文件的文件类型不同,则被调用的第三方编辑器也不同,因此,本申请并不对第三方编辑器进行限定。It is worth noting that the above description only uses the document type of the target cloud file as a document. In fact, the file type of the target cloud file can be any other form, such as pictures, audio, video, etc., because the opened target cloud file If the file type is different, the third-party editor to be called is also different. Therefore, this application does not limit the third-party editor.
在通过上述两种方式打开目标云文件之后,云客户端通过文件内容变化监听器能够对打开后的目标云文件的具体内容进行监听,监听过程与上述相同,因此,本发明实施例就不再赘述。After the target cloud file is opened by the above two methods, the cloud client can monitor the specific content of the opened target cloud file through the file content change listener, and the monitoring process is the same as above. repeat.
需要说明的是,由于本发明具体实施例的监听方式是通过FileObserver实现对文件操作事件的监控,属于操作系统级别的事件监听,且是有针对性的监听某些重要事件,不同于应用程序对自身进程的监听,因此,支持使用任何第三方编辑器去编辑文件。It should be noted that, since the monitoring method of the specific embodiment of the present invention is to realize the monitoring of the file operation event through the FileObserver, it belongs to the event monitoring of the operating system level, and is to monitor some important events in a targeted manner, which is different from the monitoring of the event by the application program. The monitoring of its own process, therefore, supports the use of any third-party editor to edit files.
综上可见,应用图3提供实施例,通过在确定获得完整的所述目标云文件后,打开所述目标云文件,然后对打开后的目标云文件的内容进行监听,能够更加准确的获得目标云文件的状态变化,进而能够更加准确的将发生变化的目标云文件上传至云端。同时,在本发明实施例提供的方案中,可以通过调用第三方编辑器的方式能够打开任意文件类型的目标云文件,使得云客户端具有较强的易用性以及推广性。In summary, the application of Figure 3 provides an embodiment, by opening the target cloud file after determining to obtain the complete target cloud file, and then monitoring the contents of the opened target cloud file, the target cloud file can be obtained more accurately. The status of the cloud file changes, so that the changed target cloud file can be uploaded to the cloud more accurately. At the same time, in the solution provided by the embodiment of the present invention, the target cloud file of any file type can be opened by calling a third-party editor, so that the cloud client has strong usability and popularization.
图4为本发明实施例提供的第四种云文件编辑方法的流程示意图,基于上述图1提供实施例,在向云端上传内容变化后的所述目标云文件完成的情况下,所述方法还包括步骤:FIG. 4 is a schematic flow diagram of the fourth cloud file editing method provided by the embodiment of the present invention. The embodiment is provided based on the above-mentioned FIG. Include steps:
S105:删除所述本地存储路径下存储的所述目标云文件,或删除所述缓存空间中存储的所述目标云文件。S105: Delete the target cloud file stored in the local storage path, or delete the target cloud file stored in the cache space.
由上可知,在获得目标云文件时,若本地硬盘或者是缓存空间中不存在目标云文件,则需要从云端下载目标云文件,由上可知,从云端下载目标云文件的方式有两种,即下载目标云文件存储下载至本地硬盘,以及下载目标云文件至缓存空间中,可以想象的是,如果用户需要对大量的云文件进行编辑的话,那么本地硬盘或缓存空间中存储的云文件将越来越多,长此以往,本地硬盘或缓存空间中的剩余存储空间将越来越小,这将严重影响云客户端的运行速度,同时也无疑会增加服务端的负担。It can be seen from the above that when obtaining the target cloud file, if the target cloud file does not exist in the local hard disk or cache space, the target cloud file needs to be downloaded from the cloud. As can be seen from the above, there are two ways to download the target cloud file from the cloud. That is, the download target cloud file is stored and downloaded to the local hard disk, and the target cloud file is downloaded to the cache space. It is conceivable that if the user needs to edit a large number of cloud files, the cloud files stored in the local hard disk or cache space will be More and more, if things go on like this, the remaining storage space in the local hard disk or cache space will become smaller and smaller, which will seriously affect the running speed of the cloud client, and will undoubtedly increase the burden on the server.
考虑到上述情况,针对上述下载目标云文件的两种方式,可以在向云端上传内容变化后的所述目标云文件完成后,将存储在上述本地存储路径下目标云文件或者是存储在缓存空间中的目标文件删除,释放存储空间,可见,通过本发明实施例提供的方案,能够有效的释放存储空间,提高云客户端的运行速度,减少运行客户端对服务端的负担。Considering the above situation, for the above two ways of downloading the target cloud file, after uploading the target cloud file with changed content to the cloud is completed, the target cloud file stored in the above local storage path or stored in the cache space Delete the target file in and release the storage space. It can be seen that through the solution provided by the embodiment of the present invention, the storage space can be effectively released, the running speed of the cloud client can be improved, and the burden of running the client on the server can be reduced.
基于上述图3提供实施例,在所述判断是否监听到针对所述目标云文件的预设事件之前,所述方法还包括如下步骤:An embodiment is provided based on the above-mentioned FIG. 3 , and before the judgment whether to monitor a preset event for the target cloud file, the method further includes the following steps:
判断是否接收到针对所述目标云文件的编辑指令或保存指令;Judging whether an editing instruction or a saving instruction for the target cloud file is received;
若为是,执行所述判断是否监听到针对所述目标云文件的预设事件的步骤。If yes, execute the step of judging whether a preset event for the target cloud file is monitored.
由上述图3所提供的实施例可知,当目标云文件被与之匹配的目标编辑器打开之后,便开始监听被打开的目标云文件的内容是否发生变化,上述监听的过程是实时进行的,而实时的运行某个功能或代码会给服务端带来较大的运行压力,同时,对于处于打开并编辑状态的目标云文件来说,实际上只有在用户通过目标编辑器执行某种操作才会触发对应的事件,例如,编辑或保存操作,对于云客户端来说,当目标编辑器执行编辑或保存操作时,云客户端将对应的接收到目标编辑器发送的编辑指令或保存指令。只有在目标编辑器执行上述操作时才会生成某些事件,示例性的,通过目标编辑器WPS打开目标云文件“金山云产品手册(初稿).doc”后,增加或修改了其中的内容,此时若WPS执行保存操作,则对应生成MODIFY:文件被修改的事件。As can be seen from the embodiment provided in FIG. 3 above, when the target cloud file is opened by the matching target editor, it starts to monitor whether the content of the opened target cloud file changes. The above-mentioned process of monitoring is carried out in real time. However, running a certain function or code in real time will bring greater operating pressure to the server. At the same time, for the target cloud file in the open and edited state, in fact, only when the user performs some operation through the target editor Corresponding events will be triggered, for example, editing or saving operations. For the cloud client, when the target editor performs editing or saving operations, the cloud client will correspondingly receive the editing instruction or saving instruction sent by the target editor. Certain events will only be generated when the target editor performs the above operations. For example, after opening the target cloud file "Kingsoft Cloud Product Manual (Draft).doc" through the target editor WPS, the content in it is added or modified, At this time, if WPS executes the save operation, it will correspondingly generate MODIFY: the event that the file is modified.
考虑到上述两点,本发明实施例提供的方案中还包括,判断是否接收到针对所述目标云文件的编辑指令或保存指令;若为是,执行所述判断是否监听到针对所述目标云文件的预设事件的步骤。Considering the above two points, the solution provided by the embodiment of the present invention also includes judging whether an editing instruction or saving instruction for the target cloud file is received; The steps of the preset event for the file.
由上可见,在判断是否监听到针对所述目标云文件的预设事件之前,判断是否接收到针对所述目标云文件的编辑指令或保存指令,只有在接收到针对所述目标云文件的编辑指令或保存指令时,才进一步的判断是否监听到预设事件,不在需要实时的对打开的目标云文件进行监听,因此,应用本发明实施例能够减少服务端的运行压力。As can be seen from the above, before judging whether to listen to the preset event for the target cloud file, it is judged whether to receive an edit instruction or a save instruction for the target cloud file, only after receiving an edit instruction for the target cloud file Instruction or save instruction, it is further judged whether a preset event is monitored, and it is no longer necessary to monitor the opened target cloud file in real time. Therefore, the application of the embodiment of the present invention can reduce the operating pressure of the server.
进一步的,在上一实施例判定监听到针对所述目标云文件的预设事件的情况下,本发明实施例所提供的方案还包括步骤:Further, in the case that the previous embodiment determines that the preset event for the target cloud file is monitored, the solution provided by the embodiment of the present invention further includes the steps of:
判断本次监听到所述预设事件与上一次监听到所述预设事件的时间间隔是否大于预设阈值;judging whether the time interval between listening to the preset event this time and listening to the preset event last time is greater than a preset threshold;
若为是,执行所述向云端上传内容变化后的所述目标云文件的步骤。If yes, execute the step of uploading the target cloud file after content change to the cloud.
由上述实施例可知,只要目标编辑器执行编辑或保存操作,就需要执行判断是否监听到针对所述目标云文件的预设事件的步骤,如果被打开的目标云文件的内容发生了变化,那么,没次执行判断是否监听到针对所述目标云文件的预设事件的步骤,都会判定监听到所述目标云文件的内容发生变化,那么相应的每次都会上传一次内容变化的目标文件,由于上传文件至云端需要耗用网络带宽,那么频繁的上传文件至云端会严重占用网络带宽,造成网络拥堵,同时,对于云客户端来说,默认的云端存储空间是有限的,若重复上传文件至云端将浪费云端的存储空间。As can be seen from the above-mentioned embodiments, as long as the target editor executes editing or saving operations, it is necessary to perform the step of judging whether to monitor the preset event for the target cloud file. If the content of the opened target cloud file changes, then , every time the step of judging whether the preset event for the target cloud file is detected, it will be judged that the content of the target cloud file has changed, and the target file with the content change will be uploaded correspondingly every time, because Uploading files to the cloud consumes network bandwidth, so frequent uploading files to the cloud will seriously occupy network bandwidth and cause network congestion. At the same time, for cloud clients, the default cloud storage space is limited. If you repeatedly upload files to The cloud will waste storage space in the cloud.
综合考虑上述缺点,在上述判定监听到预设事件的情况下,判断本次监听到所述预设事件与上一次监听到所述预设事件的时间间隔是否大于预设阈值;只有在本次监听到所述预设事件与上一次监听到所述预设事件的时间间隔大于预设阈值的情况下,才向云端上传内容变化后的所述目标云文件。例如,预设阈值可以设定为800ms(毫秒),当本次监听到所述预设事件与上一次监听到所述预设事件的时间间隔大于800ms时,才会将内容变化后的目标云文件上传至云端,这样不仅能够防止因用户对目标编辑器的误操作造成的目标云文件重复上传,还能够节省网络带宽,同时节省云端的存储空间。Considering the above disadvantages comprehensively, in the case of the above-mentioned determination that the preset event is monitored, it is judged whether the time interval between the preset event being heard this time and the preset event being heard last time is greater than the preset threshold; only in this time The target cloud file whose content has changed is uploaded to the cloud only when the time interval between listening to the preset event and the last listening to the preset event is greater than a preset threshold. For example, the preset threshold can be set to 800ms (milliseconds). When the time interval between listening to the preset event this time and listening to the preset event last time is greater than 800ms, the target cloud after the content change will be The file is uploaded to the cloud, which not only prevents the repeated upload of the target cloud file caused by the user's misoperation of the target editor, but also saves network bandwidth and storage space in the cloud.
与图1方法实施例相对应的,图5为本发明实施例提供的第一种云文件编辑装置的结构示意图;所述装置包括:获得模块201、监听模块202和上传模块203。Corresponding to the method embodiment in FIG. 1 , FIG. 5 is a schematic structural diagram of a first cloud file editing device provided by an embodiment of the present invention; the device includes: an obtaining module 201 , a listening module 202 and an uploading module 203 .
获得模块201,用于获得待编辑的目标云文件。Obtaining module 201, configured to obtain the target cloud file to be edited.
进一步的,与图2所示的方法实施例相对应的,如图6所示,为本发明实施例提供的第二种云文件编辑装置的结构示意图,在图6所示的实施例中,所述获得模块201,包括:第一判断子模块2011、第一获得子模块2012和第二获得子模块2013。Further, corresponding to the method embodiment shown in FIG. 2 , as shown in FIG. 6 , it is a schematic structural diagram of a second cloud file editing device provided by an embodiment of the present invention. In the embodiment shown in FIG. 6 , The obtaining module 201 includes: a first judging submodule 2011 , a first obtaining submodule 2012 and a second obtaining submodule 2013 .
第一判断子模块2011,用于判断本地硬盘或缓存空间中是否存在待编辑的目标云文件;The first judging submodule 2011 is used to judge whether there is a target cloud file to be edited in the local hard disk or cache space;
第一获得子模块2012,用于在所述第一判断子模块2011判定结果为是的情况下,从本地硬盘或缓存空间中直接获得所述目标云文件;The first obtaining submodule 2012 is used to directly obtain the target cloud file from the local hard disk or cache space when the judgment result of the first judging submodule 2011 is yes;
第二获得子模块2013,用于在所述第一判断子模块2011判定结果为否的情况下,从云端下载所述目标云文件。The second obtaining submodule 2013 is configured to download the target cloud file from the cloud when the determination result of the first determining submodule 2011 is negative.
在实际应用中,上述第二获得子模块2013,具体用于:In practical applications, the above-mentioned second obtaining submodule 2013 is specifically used for:
根据所述目标云文件的文件类型和文件大小,确定本地硬盘中用于存储所述目标云文件的本地存储路径,从所述云端下载所述目标云文件至所述本地存储路径下;或According to the file type and file size of the target cloud file, determine a local storage path for storing the target cloud file in the local hard disk, and download the target cloud file from the cloud to the local storage path; or
根据所述文件大小,分配用于存储所述目标云文件的缓存空间,从云端下载所述目标云文件,并存储至所述缓存空间。According to the size of the file, allocate a cache space for storing the target cloud file, download the target cloud file from the cloud, and store it in the cache space.
监听模块202,监听所述目标云文件的内容是否发生变化。The monitoring module 202 monitors whether the content of the target cloud file changes.
实际应用中,所述监听模块202,具体用于:In practical applications, the monitoring module 202 is specifically used for:
创建针对所述目标云文件的文件内容变化监听器;Create a file content change listener for the target cloud file;
利用所述文件内容变化监听器,监听所述目标云文件的内容是否发生变化。Using the file content change listener to monitor whether the content of the target cloud file changes.
进一步的,监听模块202,包括:监听子模块和第二判断子模块(图中未示出)。Further, the monitoring module 202 includes: a monitoring submodule and a second judging submodule (not shown in the figure).
监听子模块,用于对所述目标云文件进行监听;A monitoring submodule, configured to monitor the target cloud file;
第二判断子模块,用于判断是否监听到针对所述目标云文件的预设事件,其中,所述预设事件为:用于反映云文件内容发生变化的事件;The second judging submodule is used to judge whether a preset event for the target cloud file is monitored, wherein the preset event is: an event used to reflect a change in the content of the cloud file;
若为是,判定监听到所述目标云文件的内容发生变化。If yes, it is determined that the content of the target cloud file has been monitored to change.
上传模块203,用于在所述监听模块监听到所述目标云文件的内容发生变化的情况下,向云端上传内容变化后的所述目标云文件。The uploading module 203 is configured to upload the changed target cloud file to the cloud when the listening module detects that the content of the target cloud file has changed.
实际应用中,上传模块203,具体用于:In practical applications, the upload module 203 is specifically used for:
上传内容变化后的所述目标云文件至所述目标云文件对应的云存储路径下,以更新所述云存储路径下存储的云文件。uploading the target cloud file whose content has changed to the cloud storage path corresponding to the target cloud file, so as to update the cloud file stored in the cloud storage path.
由上可见,应用图5提供的实施例,通过判断目标云文件是否在本地硬盘或缓存空间中存在,当判断本地硬盘或缓存空间中存在目标云文件时,通过目标云文件的本地存储路径找到该目标云文件,如果在本地硬盘或缓存空间中不存在目标云文件时,便从云端下载该目标云文件至本地或者是缓存空间,并对该目标云文件的内容进行监听,当监听到目标云文件的内容发生变化时,上传内容发生变化后的目标云文件至云端。应用本发明实施例,通过对目标云文件的内容进行监听,若目标云文件的内容发生变化就上传目标云文件至云端,因此,不需要用户再通过手动的方式上传编辑后的云文件至云端,简化了云文件编辑的过程,节省编辑时间。It can be seen from the above that by applying the embodiment provided in Figure 5, by judging whether the target cloud file exists in the local hard disk or cache space, when it is judged that the target cloud file exists in the local hard disk or cache space, find the target cloud file through the local storage path If the target cloud file does not exist in the local hard disk or cache space, the target cloud file will be downloaded from the cloud to the local or cache space, and the content of the target cloud file will be monitored. When the content of the cloud file changes, the target cloud file after the content change is uploaded to the cloud. Applying the embodiment of the present invention, by monitoring the content of the target cloud file, if the content of the target cloud file changes, the target cloud file is uploaded to the cloud. Therefore, the user does not need to manually upload the edited cloud file to the cloud. , which simplifies the process of cloud file editing and saves editing time.
与图3提供的方法实施例相对应的,如图7所示,为本发明实施例提供的第三种云文件编辑装置的结构示意图。在图5所提供装置的基础上,所述装置还包括:打开模块204。Corresponding to the method embodiment provided in FIG. 3 , FIG. 7 is a schematic structural diagram of a third cloud file editing device provided in an embodiment of the present invention. On the basis of the device provided in FIG. 5 , the device further includes: an opening module 204 .
打开模块204,用于在确定获得完整的所述目标云文件后,打开所述目标云文件。The opening module 204 is configured to open the target cloud file after it is determined that the complete target cloud file is obtained.
实际应用中,打开模块204,具体用于:In practical applications, open the module 204, specifically for:
根据所述目标云文件的文件类型,匹配用于打开所述目标云文件的目标编辑器;According to the file type of the target cloud file, match the target editor for opening the target cloud file;
利用所述目标编辑器,打开所述目标云文件。Using the target editor, open the target cloud file.
综上可见,应用图7提供的实施例,通过在确定获得完整的所述目标云文件后,打开所述目标云文件,然后对打开后的目标云文件的内容进行监听,能够更加准确的获得目标云文件的状态变化,进而能够更加准确的将发生变化的目标云文件上传至云端。同时,在本发明实施例提供的方案中,可以通过调用第三方编辑器的方式能够打开任意文件类型的目标云文件,使得云客户端具有较强的易用性以及推广性。In summary, applying the embodiment provided in FIG. 7, by opening the target cloud file after determining to obtain the complete target cloud file, and then monitoring the contents of the opened target cloud file, it is possible to more accurately obtain The status of the target cloud file changes, so that the changed target cloud file can be uploaded to the cloud more accurately. At the same time, in the solution provided by the embodiment of the present invention, the target cloud file of any file type can be opened by calling a third-party editor, so that the cloud client has strong usability and popularization.
与图4提供的方法实施例相对应的,如图8所示,为本发明实施例提供的第三种云文件编辑装置的结构示意图。在图5所提供装置的基础上,所述装置还包括:删除模块205。Corresponding to the method embodiment provided in FIG. 4 , FIG. 8 is a schematic structural diagram of a third cloud file editing device provided in an embodiment of the present invention. On the basis of the apparatus provided in FIG. 5 , the apparatus further includes: a deletion module 205 .
删除模块205,用于在所述上传模块203向云端上传内容变化后的所述目标云文件完成的情况下,删除所述本地存储路径下存储的所述目标云文件,或删除所述缓存空间中存储的所述目标云文件。The deletion module 205 is configured to delete the target cloud file stored in the local storage path, or delete the cache space when the upload module 203 uploads the target cloud file with changed content to the cloud. The target cloud file stored in .
应用本发明实施例所提供的装置,能够有效的释放存储空间,提高云客户端的运行速度,减少运行客户端对服务端的负担。By applying the device provided by the embodiment of the present invention, storage space can be effectively released, the running speed of the cloud client can be improved, and the burden of running the client on the server can be reduced.
基于上述图7提供的装置实施例,所述装置还包括:第一判断模块和第一触发模块(图中未示出)。Based on the device embodiment provided in FIG. 7 above, the device further includes: a first judging module and a first triggering module (not shown in the figure).
第一判断模块,用于判断是否接收到针对所述目标云文件的编辑指令或保存指令;A first judging module, configured to judge whether an editing instruction or a saving instruction for the target cloud file is received;
第一触发模块,用于在所述第一判断模块判断为是的情况下,触发所述第二判断子模块。The first triggering module is configured to trigger the second judging sub-module when the judgment of the first judging module is yes.
由上可见,在判断是否监听到针对所述目标云文件的预设事件之前,判断是否接收到针对所述目标云文件的编辑指令或保存指令,只有在接收到针对所述目标云文件的编辑指令或保存指令时,才进一步的判断是否监听到预设事件,不在需要实时的对打开的目标云文件进行监听,因此,应用本发明实施例能够减少服务端的运行压力。As can be seen from the above, before judging whether to listen to the preset event for the target cloud file, it is judged whether to receive an edit instruction or a save instruction for the target cloud file, only after receiving an edit instruction for the target cloud file Instruction or save instruction, it is further judged whether a preset event is monitored, and it is no longer necessary to monitor the opened target cloud file in real time. Therefore, the application of the embodiment of the present invention can reduce the operating pressure of the server.
进一步的,在上一装置实施例的基础上,装置还可以包括:第二判断模块和第二触发模块(图中未示出)。Further, on the basis of the previous device embodiment, the device may further include: a second judging module and a second triggering module (not shown in the figure).
第二判断模块,用于判断本次监听到所述预设事件与上一次监听到所述预设事件的时间间隔是否大于预设阈值;The second judging module is used to judge whether the time interval between listening to the preset event this time and listening to the preset event last time is greater than a preset threshold;
第二触发模块,用于在所述第二判断模块判断为是的情况下,触发所述上传模块。The second triggering module is configured to trigger the uploading module when the second judging module judges yes.
应用本发明实施例所提供的装置,不仅能够防止因用户对目标编辑器的误操作造成的目标云文件重复上传,还能够节省网络带宽,同时节省云端的存储空间。Applying the device provided by the embodiment of the present invention can not only prevent repeated uploading of the target cloud file caused by the user's misoperation of the target editor, but also save network bandwidth and cloud storage space.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or order between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant parts, please refer to part of the description of the method embodiment.
本领域普通技术人员可以理解实现上述方法实施方式中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质中,这里所称得的存储介质,如:ROM/RAM、磁碟、光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the implementation of the above method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, referred to herein as Storage media, such as: ROM/RAM, disk, CD, etc.
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.
Claims (22)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611161304.1A CN108234554B (en) | 2016-12-15 | 2016-12-15 | A cloud file editing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611161304.1A CN108234554B (en) | 2016-12-15 | 2016-12-15 | A cloud file editing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108234554A true CN108234554A (en) | 2018-06-29 |
CN108234554B CN108234554B (en) | 2021-05-25 |
Family
ID=62650477
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611161304.1A Active CN108234554B (en) | 2016-12-15 | 2016-12-15 | A cloud file editing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108234554B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857999A (en) * | 2018-12-30 | 2019-06-07 | 广东一一五科技股份有限公司 | A kind of document drafts store method, device, electronic equipment and storage medium |
CN111770120A (en) * | 2019-04-01 | 2020-10-13 | 江苏华章物流科技股份有限公司 | Real-time off-site backup method and storage medium of VS editor |
CN112040009A (en) * | 2020-09-28 | 2020-12-04 | 腾讯科技(深圳)有限公司 | Design draft uploading method, system, equipment and storage medium |
CN112367403A (en) * | 2020-11-13 | 2021-02-12 | 深圳市前海手绘科技文化有限公司 | Animation draft online storage optimization method and device |
CN112506859A (en) * | 2020-08-21 | 2021-03-16 | 海信视像科技股份有限公司 | Method for maintaining hard disk data and display device |
CN113221515A (en) * | 2021-05-31 | 2021-08-06 | 工银科技有限公司 | Online document editing method, device and system |
CN113688608A (en) * | 2021-08-18 | 2021-11-23 | 上海英方软件股份有限公司 | Method and system for online editing of cloud Office file |
CN114676028A (en) * | 2022-03-31 | 2022-06-28 | 湖南蓝海购企业策划有限公司 | Cloud system archiving method and device based on linkage triggering |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102508886A (en) * | 2011-10-19 | 2012-06-20 | 浙江大学 | Extensive makeup language (XML)-based method for synchronously updating increment of spatial data |
CN102982119A (en) * | 2012-11-12 | 2013-03-20 | 上海够快网络科技有限公司 | Editing method for online files |
CN103139263A (en) * | 2011-12-02 | 2013-06-05 | 潘燕辉 | Method of automatically realizing cloud storage |
CN103226603A (en) * | 2013-04-27 | 2013-07-31 | 南京信息工程大学 | File synchronization update method and system based on portable storage device |
CN103377208A (en) * | 2012-04-19 | 2013-10-30 | 北京智慧风云科技有限公司 | Method for updating files in cloud service file management system |
CN103902663A (en) * | 2014-03-10 | 2014-07-02 | 联想(北京)有限公司 | File synchronization method and device |
US20150112927A1 (en) * | 2013-10-22 | 2015-04-23 | Box, Inc. | Desktop application for accessing a cloud collaboration platform |
US9087092B2 (en) * | 2012-09-10 | 2015-07-21 | International Business Machines Corporation | Logging updates to monitored data sets in a storage |
US20150370827A1 (en) * | 2014-06-24 | 2015-12-24 | Panzura, Inc. | Synchronizing file updates between two cloud controllers of a distributed filesystem |
CN105306581A (en) * | 2015-11-11 | 2016-02-03 | 上海斐讯数据通信技术有限公司 | Router and cloud disk based data synchronization method |
CN105357307A (en) * | 2015-11-16 | 2016-02-24 | 浪潮软件集团有限公司 | A file online editing method, device and system |
US9396208B2 (en) * | 2012-06-27 | 2016-07-19 | International Business Machines Corporation | Selecting storage cloud for storage of entity files from plurality of storage clouds |
US9953036B2 (en) * | 2013-01-09 | 2018-04-24 | Box, Inc. | File system monitoring in a system which incrementally updates clients with events that occurred in a cloud-based collaboration platform |
-
2016
- 2016-12-15 CN CN201611161304.1A patent/CN108234554B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102508886A (en) * | 2011-10-19 | 2012-06-20 | 浙江大学 | Extensive makeup language (XML)-based method for synchronously updating increment of spatial data |
CN103139263A (en) * | 2011-12-02 | 2013-06-05 | 潘燕辉 | Method of automatically realizing cloud storage |
CN103377208A (en) * | 2012-04-19 | 2013-10-30 | 北京智慧风云科技有限公司 | Method for updating files in cloud service file management system |
US9396208B2 (en) * | 2012-06-27 | 2016-07-19 | International Business Machines Corporation | Selecting storage cloud for storage of entity files from plurality of storage clouds |
US9087092B2 (en) * | 2012-09-10 | 2015-07-21 | International Business Machines Corporation | Logging updates to monitored data sets in a storage |
CN102982119A (en) * | 2012-11-12 | 2013-03-20 | 上海够快网络科技有限公司 | Editing method for online files |
US9953036B2 (en) * | 2013-01-09 | 2018-04-24 | Box, Inc. | File system monitoring in a system which incrementally updates clients with events that occurred in a cloud-based collaboration platform |
CN103226603A (en) * | 2013-04-27 | 2013-07-31 | 南京信息工程大学 | File synchronization update method and system based on portable storage device |
US20150112927A1 (en) * | 2013-10-22 | 2015-04-23 | Box, Inc. | Desktop application for accessing a cloud collaboration platform |
CN103902663A (en) * | 2014-03-10 | 2014-07-02 | 联想(北京)有限公司 | File synchronization method and device |
US20150370827A1 (en) * | 2014-06-24 | 2015-12-24 | Panzura, Inc. | Synchronizing file updates between two cloud controllers of a distributed filesystem |
CN105306581A (en) * | 2015-11-11 | 2016-02-03 | 上海斐讯数据通信技术有限公司 | Router and cloud disk based data synchronization method |
CN105357307A (en) * | 2015-11-16 | 2016-02-24 | 浪潮软件集团有限公司 | A file online editing method, device and system |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109857999A (en) * | 2018-12-30 | 2019-06-07 | 广东一一五科技股份有限公司 | A kind of document drafts store method, device, electronic equipment and storage medium |
CN111770120A (en) * | 2019-04-01 | 2020-10-13 | 江苏华章物流科技股份有限公司 | Real-time off-site backup method and storage medium of VS editor |
CN112506859A (en) * | 2020-08-21 | 2021-03-16 | 海信视像科技股份有限公司 | Method for maintaining hard disk data and display device |
CN112506859B (en) * | 2020-08-21 | 2023-02-28 | 海信视像科技股份有限公司 | Method for maintaining hard disk data and display device |
CN112040009A (en) * | 2020-09-28 | 2020-12-04 | 腾讯科技(深圳)有限公司 | Design draft uploading method, system, equipment and storage medium |
CN112040009B (en) * | 2020-09-28 | 2024-01-09 | 腾讯科技(深圳)有限公司 | Design draft uploading method, system, equipment and storage medium |
CN112367403A (en) * | 2020-11-13 | 2021-02-12 | 深圳市前海手绘科技文化有限公司 | Animation draft online storage optimization method and device |
CN112367403B (en) * | 2020-11-13 | 2023-08-22 | 深圳市前海手绘科技文化有限公司 | Online preservation and optimization method and device for animation draft |
CN113221515A (en) * | 2021-05-31 | 2021-08-06 | 工银科技有限公司 | Online document editing method, device and system |
CN113688608A (en) * | 2021-08-18 | 2021-11-23 | 上海英方软件股份有限公司 | Method and system for online editing of cloud Office file |
CN114676028A (en) * | 2022-03-31 | 2022-06-28 | 湖南蓝海购企业策划有限公司 | Cloud system archiving method and device based on linkage triggering |
Also Published As
Publication number | Publication date |
---|---|
CN108234554B (en) | 2021-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108234554B (en) | A cloud file editing method and device | |
EP1942424B1 (en) | Background data transmission between media device and host device | |
AU2008205032B2 (en) | Data backup for mobile device | |
CN103092665B (en) | Immediate updating device and immediate updating method | |
EP1942425A1 (en) | Data synchronization with host device in accordance with synchronization preferences | |
US10877885B2 (en) | Electronic device data operation method and electronic device for improved electronic device storage | |
WO2008086253A2 (en) | Background data transmission between media device and host device | |
CN102073526B (en) | Software transfer installation method and system for mobile terminal | |
AU2008205028A1 (en) | Prioritized data synchronization with host device | |
CN102609304B (en) | Management method for internal third-party applications of Android mobile phone | |
CN108563440A (en) | The automatic adding method of List Controller code, device and readable storage medium storing program for executing | |
CN105205142A (en) | Method, device and mobile terminal for saving log file | |
CN105373595A (en) | Data automatic sorting storage method and terminal | |
CN101043555A (en) | Prompting tone updating method, system and voice playing equipment thereof | |
CN107562568B (en) | File backup method and device | |
WO2018102226A1 (en) | File system streams support and usage | |
WO2016070655A1 (en) | Information backup method, device, server and terminal | |
CN103218118A (en) | File processing method and system under multi-level directory and mobile terminal | |
CN104750572B (en) | A kind of data back up method, device and mobile terminal | |
CN111949287B (en) | Software upgrading method and device | |
CN116305227A (en) | Data processing method, device, terminal equipment and medium | |
CN103973772B (en) | File read/write method and device | |
CN118170732A (en) | Mobile phone storage partition management method, system, device and readable storage medium | |
CN105955851A (en) | System file burning method and device applied to mobile terminal | |
CN101631046A (en) | Method and device of automatic upgrade of one board |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |