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
- content
- 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; CALCULATING OR 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; CALCULATING OR 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)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a kind of cloud file editing methods and device, method to include:Target cloud file to be edited is obtained first, and the content of the target cloud file is monitored, and when the content for listening to target cloud file changes, uploads the target cloud file after content changes to high in the clouds.Using the embodiment of the present invention, it is monitored by the content to target cloud file, if the content of target cloud file, which changes, just uploads target cloud file to high in the clouds, therefore, it does not need to user and edited cloud file is uploaded to high in the clouds by manually mode again, the process of cloud Document Editing is simplified, saves edit session.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of cloud file editing method and device.
Background technology
Cloud file, as the term suggests refer to store file beyond the clouds, that is, be stored in file non-indigenous, simply
The file being just stored in network, cloud file do not need to occupy local memory space, effectively save and sky is locally stored
Between, but file is once uploaded to after high in the clouds, if wanting to need cumbersome process into edlin to this document, therefore, how more
Simple and fast has particularly important meaning into edlin to cloud file to the popularization of related cloud product.
At present, it is to the process of cloud file into edlin:First by cloud file download to local, then pass through local file
Browser finds above-mentioned locally downloading file, later to this document into edlin, preserve, finally again by manually selecting
Above-mentioned edited file is uploaded to high in the clouds by mode.Although can realize the editor to cloud file through the above way,
During to cloud file into edlin, how to open file, when upper transmitting file is required to user determines to complete, this
Sample to cloud file into edlin when, user's operation is cumbersome, in addition, it is generally the case that after cloud file download to local, this document
It is deep in the document directory hierarchy being locally stored, in this case, used when locally finding above-mentioned file and opening this document
Family needs many more manipulations carried out that could complete, and more exacerbates this cumbersome phenomenon of user's operation.
Invention content
The embodiment of the present invention is designed to provide a kind of cloud file editing method and device, to simplify cloud Document Editing
Process, and then save edit session.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of cloud file editing method, the method includes:
Obtain target cloud file to be edited;
Whether the content for monitoring the target cloud file changes;
If it is, the target cloud file after high in the clouds upload content change.
Preferably, it is described to obtain target cloud file to be edited, including:
Judge to whether there is target cloud file to be edited in local hard drive or spatial cache;
If in the presence of the target cloud file is directly obtained from local hard drive or spatial cache;
If being not present, the target cloud file is downloaded from high in the clouds.
Preferably, it is described to download the target cloud file from high in the clouds, including:
According to the file type and file size of the target cloud file, determine to be used to store the target in local hard drive
Path is locally stored in cloud file, and downloading the target cloud file from the high in the clouds is locally stored to described under path;Or
According to the file size, the spatial cache for storing the target cloud file is distributed, from described in the download of high in the clouds
Target cloud file, and store to the spatial cache.
Preferably, in the case where the target cloud file after uploading content change to high in the clouds is completed, the method is also
Including:
The target cloud file stored under path is locally stored described in deletion;Or
Delete the target cloud file stored in the spatial cache.
Preferably, before whether the content for monitoring the target cloud file changes, the method further includes:
After determining to obtain the complete target cloud file, the target cloud file is opened.
Preferably, it is described to open the target cloud file, including:
According to the file type of the target cloud file, matching is used to open the target editing machine of the target cloud file;
Using the target editing machine, the target cloud file is opened.
Preferably, whether the content for monitoring the target cloud file changes, including:
Create the file content variation monitor for the target cloud file;
Change monitor using the file content, whether the content for monitoring the target cloud file changes.
Preferably, the target cloud file after the content change to high in the clouds upload, including:
It uploads under the target cloud file to the corresponding cloud storage path of the target cloud file after content change, with more
The cloud file stored under the new cloud storage path.
Preferably, whether the content for monitoring the target cloud file changes, including:
The target cloud file is monitored;
Judge whether to listen to the predeterminable event for the target cloud file, wherein, the predeterminable event is:For anti-
Reflect the changed event of cloud file content;
If it is, the content that judgement listens to the target cloud file changes.
Preferably, it is described judge whether to listen to the predeterminable event for the target cloud file before, the method
It further includes:
Judge whether to receive for the edit instruction of the target cloud file or preservation instruction;
If it is, the step of judging whether to listen to the predeterminable event for the target cloud file described in performing.
Preferably, in the case where judgement is listened to for the predeterminable event of the target cloud file, the method is also wrapped
It includes:
Judge that this listens to the predeterminable event and whether the last time interval for listening to the predeterminable event is big
In predetermined threshold value;
If it is, the step of performing the target cloud file after the content change to high in the clouds upload.
In order to achieve the above objectives, the embodiment of the invention also discloses a kind of cloud document edit device, described device includes:
Module is obtained, for obtaining target cloud file to be edited;
Module is monitored, whether the content for monitoring the target cloud file changes;
Uploading module, for listening to the changed situation of content of the target cloud file in the monitoring module
Under, the target cloud file after high in the clouds upload content change.
Preferably, the acquisition module, including:
First judging submodule, for judging in local hard drive or spatial cache with the presence or absence of target cloud text to be edited
Part;
First obtains submodule, in first judging submodule judgement result in the case of being, from local hard
The target cloud file is directly obtained in disk or spatial cache;
Second obtains submodule, in the case of being no in first judging submodule judgement result, under high in the clouds
Carry the target cloud file.
Preferably, described second submodule is obtained, be specifically used for:
According to the file type and file size of the target cloud file, determine to be used to store the target in local hard drive
Path is locally stored in cloud file, and downloading the target cloud file from the high in the clouds is locally stored to described under path;Or
According to the file size, the spatial cache for storing the target cloud file is distributed, from described in the download of high in the clouds
Target cloud file, and store to the spatial cache.
Preferably, described device further includes:
Removing module is completed for the target cloud file after the uploading module uploads content change to high in the clouds
In the case of, the target cloud file stored under path is locally stored described in deletion or deletes what is stored in the spatial cache
The target cloud file.
Preferably, described device further includes:
Module is opened, for after determining to obtain the complete target cloud file, opening the target cloud file.
Preferably, the opening module, is specifically used for:
According to the file type of the target cloud file, matching is used to open the target editing machine of the target cloud file;
Using the target editing machine, the target cloud file is opened.
Preferably, the monitoring module, is specifically used for:
Create the file content variation monitor for the target cloud file;
Change monitor using the file content, whether the content for monitoring the target cloud file changes.
Preferably, the uploading module, is specifically used for:
It uploads under the target cloud file to the corresponding cloud storage path of the target cloud file after content change, with more
The cloud file stored under the new cloud storage path.
Preferably, the monitoring module, including:
Submodule is monitored, for monitoring the target cloud file;
Second judgment submodule, for judging whether to listen to the predeterminable event for the target cloud file, wherein, institute
Stating predeterminable event is:For reflecting the changed event of cloud file content;
If it is, the content that judgement listens to the target cloud file changes.
Preferably, described device further includes:
First judgment module refers to for judging whether to receive for the edit instruction of the target cloud file or preservation
It enables;
First trigger module, in the case of being judged as YES in first judgment module, triggering described second judges
Submodule.
Preferably, in the case where judgement is listened to for the predeterminable event of the target cloud file, described device is also wrapped
It includes:
Second judgment module listens to the predeterminable event for judging that this listens to the predeterminable event with the last time
Time interval whether be more than predetermined threshold value;
Second trigger module in the case of being judged as YES in second judgment module, triggers the uploading module.
Therefore in scheme provided in an embodiment of the present invention, target cloud file to be edited is obtained first, and to the mesh
The content of mark cloud file is monitored, when the content for listening to target cloud file changes, after upload content changes
Target cloud file to high in the clouds.Using scheme provided in an embodiment of the present invention, monitored by the content to target cloud file,
If the content of target cloud file, which changes, just uploads target cloud file to high in the clouds, it therefore, there is no need to user again by manually
Mode uploads edited cloud file to high in the clouds, simplifies the process of cloud Document Editing, saves edit session.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow diagram of the first cloud file editing method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of second of cloud file editing method provided in an embodiment of the present invention
Fig. 3 is the flow diagram of the third cloud file editing method provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of the 4th kind of cloud file editing method provided in an embodiment of the present invention;
Fig. 5 is the structure diagram of the first cloud document edit device provided in an embodiment of the present invention;
Fig. 6 is the structure diagram of second of cloud document edit device provided in an embodiment of the present invention;
Fig. 7 is the structure diagram of the third cloud document edit device provided in an embodiment of the present invention;
Fig. 8 is the structure diagram of the 4th kind of cloud document edit device provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
Below by specific embodiment, the present invention will be described in detail.
Fig. 1 is the flow diagram of the first cloud file editing method provided in an embodiment of the present invention, and method includes step:
S101:Obtain target cloud file to be edited.
In order to clearly be illustrated to the embodiment of the present invention, the concept of lower cloud file, cloud file, Gu Mingsi are introduced first
Justice is just stored in the file in high in the clouds, that is, be stored in file non-indigenous, the text being simply just stored in network
Part, cloud file do not need to occupy local memory space, effectively save local storage space.File mentioned here can be with
But it is not limited to:Document, picture, voice, video.These files of storage beyond the clouds are just referred to as cloud file, of the invention real
It applies in example, it is referred to as target cloud file to need the cloud file edited.
It will be appreciated by persons skilled in the art that when file is uploaded to high in the clouds, the file of upload is stored in
In high in the clouds, in local hard drive storage file it is similar, the cloud text stored beyond the clouds can also correspond to there are one storage road
Diameter, our usual this store path is referred to as cloud storage path, and cloud text can be directly found from high in the clouds by the store path
Part.Illustratively, it is assumed that active user determines the cloud file for needing to edit as " Kingsoft cloud product manual (first draft) .doc ", if should
The corresponding cloud storage path of cloud file is:http://ksyun.com/a/m/ Kingsoft cloud product manual (first draft), is deposited by the cloud
Storage path can uniquely determine out cloud file " Kingsoft cloud product manual (first draft) .doc " from high in the clouds.Determine to state the cloud file it
Afterwards, it is just downloaded in cloud file " Kingsoft cloud product manual (first draft) .doc " to local hard drive from high in the clouds according to the cloud storage path.
In view of the demand of user job, study etc., may target cloud file be downloaded from high in the clouds before, used in this way
The target cloud file may be had existed in the local hard drive at family, certainly, in order to save local hard drive space, user is using
Bi Shangshu deletes this document or never downloaded above-mentioned file from high in the clouds after the target cloud file that high in the clouds is downloaded, this
In the case of kind, the target cloud file is not stored in user's local hard drive.
This step obtains target cloud file to be edited, can be the file type for obtaining target cloud file, file size,
Mark, store path and/or the target cloud file data of file are in itself.
In view of the foregoing, in a kind of realization method of the present invention, as shown in Fig. 2, being provided in an embodiment of the present invention
The flow diagram of second of cloud file editing method in the embodiment provided in Fig. 2, obtains target cloud file to be edited
Step S101, including step:
S1011:Judge to whether there is target cloud file to be edited in local hard drive or spatial cache.
It will be appreciated by persons skilled in the art that the cloud file stored beyond the clouds can all have attribute information, attribute information
File can be included:File type, file size, mark of file etc., may in cloud client for cloud client
Listed files is stored or is cached with, user can choose cloud file according to listed files, and the cloud file to choosing carries out a system
The operation of row.Wherein, above-mentioned listed files can be that cloud client is periodically obtained from high in the clouds or cloud client is even
It when connecing high in the clouds, is obtained from high in the clouds, the application is defined not to this.
It is understood that file type can be understood as:It is literary as described above for representing the information of file generic
The file type of part can be:Document, picture, voice, video etc.;File size is to store the occupied storage sky of this document
Between size;The mark of file can be understood as a kind of code name of file, in fact can be understood as the index of file, and one
As in the case of can be indexed by this document and directly find this document, common identification means the simplest are exactly directly to use this article
Mark of the filename of part as file.
Likewise, the file stored in local hard drive or spatial cache also has attribute information, attribute information can wrap
It includes:File type, file size, the mark of file and path etc. is locally stored, file is during download or upload, text
The mark of part is not typically changed in default situations, therefore, can be by the corresponding mark of target cloud file, at this
It searches whether to have existed target cloud file in ground hard disk or spatial cache.And the general memory capacity of local hard drive is larger, it can be with
A large amount of file is stored with, if if all searching one time, needing to expend for quite a long time.
For it is above-mentioned the phenomenon that, in the scheme provided in the embodiment of the present invention, cloud client can all be given tacit consent to when mounted
Distribution one for store download file path is locally stored, then, when downloading target cloud file from high in the clouds, download
Target cloud file will be stored directly to allocated and be locally stored under path or store into spatial cache, in this case, if
Need to the target cloud file into if edlin, it is only necessary to it is above-mentioned path is locally stored under or spatial cache in by this
The mark of file is searched, and is not needed to search in entire local hard drive again, is greatly reduced seeking scope, because
This can save the time for searching target cloud file.
It is noted that one kind that above-mentioned described local hard drive is actually local storage space is specifically retouched
It states, for mobile phone terminal, local hard drive can be the built-in mobile phone EMS memory either storages knot such as SD card, TF card of extrapolation
Structure, therefore, the application do not do further restriction to the concrete structure of local hard drive.
S1012:In the case where the step S1011 is judged to being, directly obtained from local hard drive or spatial cache
The target cloud file.
From the foregoing, it will be observed that it is searched in local hard drive or spatial cache by the mark of target cloud file, if in local
The file identical with the mark of target cloud file is found in hard disk or spatial cache, then it is assumed that in local hard drive or spatial cache
In there are target cloud file, at this point, in order to save memory space, there are target cloud files in local hard drive or spatial cache
In the case of, will no longer be downloaded the operation of target cloud file, simplify operating procedure, shorten obtain target cloud file when
Between.
Illustratively, it is assumed that there are one target cloud file, the entitled " gold of file of the target cloud file in current file list
Mountain cloud product manual (first draft) .doc ", file type be document, file size 1.1M, mark can directly use filename, i.e.,
" Kingsoft cloud product manual (first draft) .doc ";That is distributed when installing cloud client is locally stored path " D:\Program
File, this document of file entitled " Kingsoft cloud product manual (first draft) .doc " are stored under Files Kingsf Download "
File type for document, it is corresponding to be identified as " Kingsoft cloud product manual (first draft) .doc ".So, pass through above-mentioned target cloud
Path " D is being locally stored in the mark " Kingsoft cloud product manual (first draft) .doc " of file:\Program Files\Kingsf\
It is searched under Download ", since file is during upload or download, the mark of file will not change, and
Path " D is locally stored:Program Files Kingsf there are file identifications and the mark of target cloud file under Download "
Sensible same file, hence, it can be determined that path " D is locally stored:Program Files Kingsf under Download "
There are target cloud files.
S1013:The step S1011 be determined as it is no in the case of, download the target cloud file from high in the clouds.
It is searched in local hard drive or spatial cache by the mark of target cloud file, if not finding, then it is assumed that
There is no target cloud files in local hard drive or spatial cache, need to download the target from the high in the clouds of storage target cloud file at this time
Cloud file.
In practical application process, the following two kinds situation can be divided by downloading target cloud file, specially:
The first situation:According to the file type and file size of the target cloud file, determine to be used in local hard drive
Store the target cloud file is locally stored path, and download the target cloud file from the high in the clouds is locally stored road to described
Under diameter.
It will be appreciated by persons skilled in the art that it is actually what target cloud file was transmitted to download target cloud file
Process, that is, target cloud file is copied to the process of another place from a place, therefore, downloading target cloud file
When, need to know wherefrom to download target cloud file, stored after download to where, it is above-mentioned it is found that storage cloud beyond the clouds
File will a corresponding cloud storage path, therefore, in the attribute information of cloud file in addition to can include aforementioned file type,
The information such as file size can also include the cloud storage path of cloud file, in this way can be according to the cloud storage road in attribute information
File is uploaded to high in the clouds, when downloading file, directly can find corresponding cloud from high in the clouds by the cloud storage path by diameter
File.
For the embodiment of the present invention, target cloud file is downloaded from high in the clouds, and the cloud storage road of target cloud file
Diameter is can to know from the attribute information of file, therefore can be according to the corresponding cloud storage path of target cloud file from high in the clouds
Find target cloud file.Since target cloud file is a kind of data, and data are required to occupy corresponding storage sky in storage
Between, therefore, when downloading target cloud file from high in the clouds, need to determine a storage position for target cloud file in local hard drive
It puts, that is, determines that path is locally stored for store target cloud file.By taking computer end as an example, it is assumed that in installation cloud client
When, a file " Download " is pre-created in local hard drive, " D is in the corresponding path that is locally stored of this document folder:\
Program Files Kingsf Download " under default situations, can be deposited by the All Files of the cloud client downloads
Storage is under the path, still, the cloud file after download is managed for convenience, in above-mentioned file " Download "
In, usually it can also determine or establish according to the file type of downloaded target cloud file and the file size of target cloud file
Sub-folder corresponding with target cloud file, finally determine the target cloud file after a storage download is locally stored path.
Illustratively:Assuming that the current target cloud file to be downloaded is " Kingsoft cloud product manual (first draft) .doc ", text
Part type is document, file size 1.1M, then, it can be according to the file type and file size of target cloud file, upper
It searches whether to have existed Ziwen corresponding with the file type of target cloud file " document " in the file " Download " stated
Part presss from both sides " File ", can be direct by target cloud file if having existed sub-folder " File " in file " Download "
It is downloaded in sub-folder " File ", " D is in the corresponding path that is locally stored of the sub-folder " File ":\Program Files\
Kingsf Download File ", that is to say, that it is finally determining to be for storing the path that is locally stored of target cloud file
“D:\Program Files\Kingsf\Download\File”。
If there is no sub-folders " File " in above-mentioned file " Download ", that explanation is in file
" Download " is there are no the file for storing the type, at this point it is possible to create one directly in file " Download "
Sub-folder " File ", then by target cloud file download to sub-folder " File ", the sub-folder " File " is corresponding
Path is locally stored as " D:Program Files Kingsf Download File ", that is to say, that it is finally determining to be used for
Path is locally stored as " D in storage target cloud file:\Program Files\Kingsf\Download\File”.
If during above-mentioned, target cloud file download is " D to path is locally stored:\Program Files\
Kingsf Download under File " when, be locally stored in the D subregions of the corresponding local hard drive in path and be filled with, and target
File is downloaded completely not yet, at this point, cloud client can issue the user with a prompt message, for informing user
Local hard drive is without residual memory space, failed download, at this time user can by delete stored in local hard drive it is certain
File releases enough memory spaces, and then meets current the needs of downloading target cloud file, re-downloads target cloud text
Part.Or user can also meet current the needs of downloading target cloud file by way of extending out memory space, extend out and deposit
Storage space can be realized by modes such as grafting USB flash disk, CD, mobile hard disks.But the memory space for ensureing to extend out is needed to be not less than
Currently need the file size of target cloud file downloaded.For example, the file size for currently needing the target downloaded cloud file is
1.1M, one residual memory space size of peripheral communication interface grafting that user is provided by terminal are the USB flash disk of 5GB, grafting
Terminal can be defaulted as its distribution and path is locally stored afterwards, such as the path that is locally stored of distribution is " H:", cloud client at this time
End a request can be sent to terminal with obtain extend out memory space path " H is locally stored:", obtain the store path
Afterwards, path " H can be locally stored to extend out memory space in target cloud file download:" under, that is to say, that it is final to determine
Path is locally stored as " H for store target cloud file:\”.
It, can be from cloud for storing being locally stored after path of the target cloud file in local hard drive is determined
End download target cloud file, by the target cloud file download for being stored in high in the clouds to it is above-mentioned determine be locally stored under path.
It should be noted that above are only a kind of specific example of the embodiment of the present invention, for different file types, build
The title of vertical subfile only file is different, for example, if the file type of target cloud file is picture, the son of foundation
Folder name is known as " Picture ", is locally stored accordingly as " D:\Program Files\Kingsf\Download\
Picture”;Further for example, if the file type of target cloud file is voice, the sub-folder of foundation is entitled
" Music " is locally stored accordingly as " D:\Program Files\Kingsf\Download\Music”.Certainly, it is above-mentioned
All citings are a kind of specific example, do not form the restriction of the file type to the application target cloud file.
The second situation:According to the file size, the spatial cache for storing the target cloud file is distributed, from cloud
The target cloud file is downloaded at end, and is stored to the spatial cache.
It is above-mentioned it will be appreciated that, it is generally the case that terminal can provide a store for the slow of operation data when running client
Space is deposited, likewise, can also provide a spatial cache when running cloud client, which is used in temporary download
Cloud file in order not to cause the waste of spatial cache, usually in the cloud file that storage is downloaded, needs the cloud file for considering to download
File size, it is assumed that currently need the target cloud file downloaded for " Kingsoft cloud product manual (first draft) .doc ", file size
For 1.1M, then when distributing spatial cache, can be divided from memory according to the file size 1.1M of the target cloud file
Go out a spatial cache for being more than or equal to 1.1M, which will store the target cloud file downloaded from high in the clouds, when having downloaded
Target cloud file can be obtained from the spatial cache after.
As it can be seen that above-mentioned two situations can obtain target cloud file, therefore, in embodiments of the present invention, not to obtaining
The specific implementation of target cloud file is done and is clearly limited.
S102:Whether the content for monitoring the target cloud file changes.
After cloud client obtains cloud file to be edited, the content of target cloud file for just beginning listening for being opened is
It is no to change, it should be noted that in scheme provided in an embodiment of the present invention, cloud client has the work(of action listener
Energy.
But under normal conditions, server-side is that have the function of action listener, accordingly, it is considered to client exploitation into
This and operating cost, usual client can call the monitor function of server-side.
In practical applications, whether the content for monitoring the target cloud file changes, can be by establishment for institute
State the file content variation monitor of target cloud file;
Change monitor using the file content, whether the content for monitoring the target cloud file changes.
The above process is illustrated by taking mobile phone terminal as an example below.
At present, for the mobile phone terminal for carrying Android operation system, file can be come in android system
Content change monitor FileObserver, FileObserver can listen to the content change of specified file or file.
For file, FileObserver can monitor a plurality of types of events, for example, ACCESS:File is accessed,
MODIFY:File is changed, ATTRIB:File attribute is changed, CLOSE_WRITE:Can written document be closed, CLOSE_
NOWRITE:Can not written document be closed, OPEN:File is opened, MOVED_FROM:File is removed, MOVED_TO:File
By in-migration, CREATE:Create new file, DELETE:File is deleted, DELETE_SELF:From deletion, i.e., one executable text
Part delete when being executed oneself, MOVE_SELF:From movement, i.e. an executable file move when being executed oneself, CLOSE:Text
Part is closed.
It will be appreciated by persons skilled in the art that above-mentioned described file content variation monitor is by program language reality
Existing, it often monitors an event and specific code is required for realize, and for the file type difference of target cloud file and behaviour
The emphasis for making target cloud file is different, file content variation monitor monitor event type also can difference, in order to reduce
To the pressure of server-side when client is run, for those in the editing process of target cloud file unconcerned event, file
Content change monitor can be not listening to its corresponding variable condition.For example, for the file of Doctype, in monitoring
It is only concerned event MODIFY in the process:File is changed, CLOSE_WRITE:Can written document be closed and MOVED_TO:File quilt
In-migration, for some other event for example, ACCESS, DELETE etc. are not relevant for, so file content variation monitor does not have to
Monitor its corresponding variable condition.Therefore, a file content variation monitor for Doctype file, wound can be created
The code code corresponding with the FileObserver that android system carries corresponding to file content variation monitor built has
Institute is different, the former monitoring event can be understood as the subset that the latter monitors event.According to the file type of target cloud file not
Together, the file content that can be created for the target cloud file changes monitor.File content is created to change after monitor
Whether the content for just beginning listening for target cloud file changes.
In another specific implementation provided in an embodiment of the present invention, monitor the target cloud file content whether
It changes, is specifically as follows:
The target cloud file is monitored;
Judge whether to listen to the predeterminable event for the target cloud file, wherein, the predeterminable event is:For anti-
Reflect the changed event of cloud file content;
If it is, the content that judgement listens to the target cloud file changes.
From the foregoing, it will be observed that after cloud client obtains cloud file to be edited, the content of target cloud file is just begun listening for
Whether change, since the file type of target cloud file is different and the emphasis of operation target cloud file is different, file
The emphasis that content change monitor monitors event is also different, right in order to reduce to the pressure of server-side when client is run
In those unconcerned events, file content variation monitor can not have to monitor its variable condition.Therefore, implement in the present invention
In the scheme that example provides, different events can be preset for different types of target cloud file.For example, for document class
The target cloud file of type, can preset event:MODIFY, CLOSE_WRITE and MOVED_TO, these preset things
Part is predeterminable event.File content changes monitor when the target cloud file to Doctype is monitored, it is only necessary to supervise
These predeterminable events are listened, because only need to just understand that whether the content of target cloud file is sent out by these above-mentioned predeterminable events
Changing, if listening to above-mentioned predeterminable event, then, the content of target cloud file is changed at this time, i.e. target cloud
The content of file is changed.
It is emphasized that above-mentioned cited predeterminable event is specific example, it's not limited to that.For different files
The target cloud file of type, predeterminable event may be also corresponding different, and the application does not do in this and clearly limits.
S103:The step S102 listen to the target cloud file content change in the case of, to high in the clouds
Upload the target cloud file after content change.
For above-mentioned step S102, when the content for listening to the target cloud file changes, also just anticipate
The content that taste target cloud file at this time has occurred that variation at this time, i.e. the content of target cloud file is changed, in order to anti-
The only loss of data of the target cloud file after content change, in the case where the content of judgement target cloud file changes, just
Target cloud file after the content change is uploaded to high in the clouds.
In practical application, the target cloud file after high in the clouds upload content change, after content change being uploaded
Under the target cloud file to the corresponding cloud storage path of the target cloud file, to update what is stored under the cloud storage path
Cloud file.
From the foregoing, it will be observed that file can correspond to a cloud storage path when being uploaded to high in the clouds, and the cloud storage road can be passed through
Diameter directly finds the cloud file from high in the clouds, therefore, target before being found by the corresponding cloud storage path of target cloud file
The storage location of cloud file beyond the clouds, under the target cloud file to above-mentioned storage location after the content change then uploaded, so as to
Target cloud file before update.In order to ensure upload content change after target cloud file can update before target cloud
File, before can directly the target cloud file after content change be uploaded under the cloud storage path of target cloud file.Here
Described more fresh target cloud file is in fact exactly the target cloud file of storage beyond the clouds before replacing it, and is exactly specifically,
When before the target cloud file after content change being uploaded under the cloud storage path of target cloud file, since the content of upload becomes
Target cloud file after change is identical with the mark of target cloud file before, therefore, can be by the target cloud text after content change
Part replace it before target cloud file.
Other than the mode of the target cloud file before the above-mentioned target cloud file by after content change replaces it, actually
It is also possible that the target cloud file after content change be uploaded to before target cloud file cloud storage path under after, acquiescence is automatic
The FileVersion of the target cloud file after content change is changed, after the content change uploaded is embodied in the form of edition upgrading
Target cloud file, it is simplest to be realized by changing the filename of the target cloud file after the content change that upload.
For example, the file of target cloud file before is entitled " Kingsoft cloud product manual (first draft) .doc ", then, it can change and upload
Content change after target cloud file file it is entitled " Kingsoft cloud product manual (first draft) (1) .doc ", certainly, it is above-mentioned with
The file destination that the mode of modification filename embodies the content change uploaded is only a kind of example provided in an embodiment of the present invention,
The embodiment of the present invention does not do it further restriction.
Therefore application drawing 1 provides embodiment, by judging target cloud file whether in local hard drive or spatial cache
Middle presence, when judging that road is locally stored by target cloud file there are during target cloud file in local hard drive or spatial cache
Diameter finds the target cloud file, if target cloud file is not present in local hard drive or spatial cache, is just downloaded from high in the clouds
The target cloud file is to local either spatial cache, and monitoring the content of the target cloud file, when listening to target
When the content of cloud file changes, the target cloud file after content changes is uploaded to high in the clouds.Using the embodiment of the present invention,
It is monitored by the content to target cloud file, if the content of target cloud file, which changes, just uploads target cloud file to cloud
End, therefore, there is no need to user and uploads edited cloud file to high in the clouds by manually mode again, simplify cloud Document Editing
Process saves edit session.
Fig. 3 is the flow diagram of the third cloud file editing method provided in an embodiment of the present invention, is carried based on above-mentioned Fig. 1
For embodiment, before whether the content for monitoring the target cloud file changes, the method further includes following step
Suddenly:
S104:After determining to obtain the complete target cloud file, the target cloud file is opened.
It can be seen from above-mentioned step S101 obtain target cloud file can be stored in local hard drive with target cloud
The identical file of file or the target cloud file downloaded from high in the clouds.But no matter by which kind of mode obtain target cloud text
Part, the target cloud file for being both needed to ensure to obtain are complete, and the complete target cloud file for referring to obtain mentioned here can be by
It opens;If the target cloud file obtained is incomplete, may malfunction when opening the target cloud file behind that etc. different
Often cause to open and fail.The target cloud file for ensuring to obtain is complete, can be avoided because the target cloud file of acquisition is endless
It is whole and cause follow-up the phenomenon that opening file destination error.
After determining to acquire complete target cloud file, the target cloud file of acquisition is opened, into operations such as edlins,
In a kind of specific implementation provided in an embodiment of the present invention, the target cloud file is opened, it can be real as follows
It is existing, specially:
According to the file type of the target cloud file, matching is used to open the target editing machine of the target cloud file;
Using the target editing machine, the target cloud file is opened.
For the terminal of a computer, mobile phone either other forms, in addition to installation cloud client (e.g., Kingsoft enterprise
Cloud disk) outside, the client there are many common application generally can be also installed, for example, WPS document editors, Word document editing machine,
Photoshop picture editors etc., these application client between be independent from each other, still, these application client
It can mutually be called at end.It is assumed that current cloud client is Kingsoft enterprise cloud disk, the listed files provided from Kingsoft enterprise cloud disk
Middle select file size is the document files " Kingsoft cloud product manual (first draft) .doc " of 1.1M as target cloud file, then,
The target cloud file finally obtained is " Kingsoft cloud product manual (first draft) .doc ", and file type is document, file size is
1.1M, then Kingsoft enterprise's cloud can find the editing machine that can open this document type according to this document type " document ", such as
Fruit current computer or mobile phone terminal have installed WPS document editors or the Word document editing machine of other forms, then this
When WPS document editors or Word document editing machine be determined as target editing machine, be used to open the target cloud of above-mentioned acquisition
File.If current computer or mobile phone terminal install multiple same type of editing machines, such as it is mounted with WPS document editors simultaneously
With Word document editing machine, then, can be according to the hobby of user, by the common editing machine of user when determining target editing machine
As target editing machine or pre-set editing machine calling sequence, this is all reasonable.
After target editing machine is determined, target cloud file is opened using target editing machine, in fact in the above process
Middle determined target editing machine is used as third party's editing machine.Although editing machine as similar WPS document editors,
It is inherently a to there is the client of cloud storage, but target cloud file is examined and seized by Kingsoft enterprise's cloud, for
For Kingsoft enterprise cloud disk, WPS document editors are also third party's editing machine.
Also a kind of situation is that cloud client itself is exactly an editing machine, for example, WPS document editors, it is one
Document editor, at the same it is still a there is the client of cloud storage, in this case, if WPS document editors obtain
When the file type of the target cloud file obtained is document, since WPS document editors inherently have the function of document editor,
Therefore, in the target cloud file for opening Doctype, the document editor of not reselection other forms can be selected directly
WPS document editors open target cloud file.The time for opening target cloud file can be saved in this way.But if WPS documents are compiled
When the file type for collecting the target cloud file that device obtains is not document, Ke Yigen similar with above-mentioned calling third party editing machine
It is selected according to the file type of target cloud file with third party's editing machine of this document type matching as target editing machine, then
Target cloud file is opened using the target editing machine selected.
What deserves to be explained is above-mentioned illustrate only with the Doctype of target cloud file is document, in fact, mesh
The file type for marking cloud file can be any other form, such as picture, voice, video etc., since opened target cloud is literary
The file type of part is different, then called third party's editing machine is also different, therefore, the application not to third party's editing machine into
Row limits.
After target cloud file is opened by above two mode, cloud client changes monitor energy by file content
Enough that the particular content of target cloud file after opening is monitored, snoop procedure is same as described above, therefore, the embodiment of the present invention
Just repeat no more.
It should be noted that since the listening mode of the specific embodiment of the invention is to be realized by FileObserver to text
The monitoring of part action event belongs to the other action listener of operating system grade, and is targetedly to monitor certain critical events, no
Monitoring of the application program to own process is same as, therefore, supports to remove editing files using any third party's editing machine.
To sum up, application drawing 3 provides embodiment, by after determining to obtain the complete target cloud file, opening
Then the target cloud file monitors the content of the target cloud file after opening, can more accurately obtain target
The state change of cloud file, and then can more changed target cloud file be uploaded to high in the clouds.Meanwhile at this
In the scheme that inventive embodiments provide, the mesh of arbitrary file type can be opened by way of calling third party's editing machine
Mark cloud file so that cloud client has stronger ease for use and generalization.
Fig. 4 is the flow diagram of the 4th kind of cloud file editing method provided in an embodiment of the present invention, is carried based on above-mentioned Fig. 1
For embodiment, in the case where the target cloud file after uploading content change to high in the clouds is completed, the method further includes step
Suddenly:
S105:The target cloud file stored under path is locally stored described in deletion or deletes in the spatial cache
The target cloud file of storage.
From the foregoing, it will be observed that when obtaining target cloud file, if there is no target cloud texts in local hard drive either spatial cache
Part, then need from high in the clouds download target cloud file, from the foregoing, it will be observed that from high in the clouds download target cloud file mode there are two types of, i.e., under
It carries target cloud file storage to be downloaded to local hard drive and download in target cloud file to spatial cache, it is conceivable that such as
Fruit user is needed to a large amount of cloud file into if edlin, then the cloud file stored in local hard drive or spatial cache will be more
Come more, if things go on like this, the residual memory space in local hard drive or spatial cache will be less and less, this will seriously affect cloud visitor
The speed of service at family end, while also can undoubtedly increase the burden of server-side.
In view of the above situation, for the two ways of above-mentioned download target cloud file, content can uploaded to high in the clouds
After the completion of the target cloud file after variation, it will be stored in and above-mentioned target cloud file under path is locally stored or is stored in
File destination in spatial cache is deleted, and discharges memory space, it is seen then that the scheme provided through the embodiment of the present invention, Neng Gouyou
The release memory space of effect improves the speed of service of cloud client, reduces burden of the operation client to server-side.
Embodiment is provided based on above-mentioned Fig. 3, judges whether to listen to the default thing for the target cloud file described
Before part, the method further includes following steps:
Judge whether to receive for the edit instruction of the target cloud file or preservation instruction;
If it is, the step of judging whether to listen to the predeterminable event for the target cloud file described in performing.
By above-mentioned Fig. 3 embodiments provided it is found that when target cloud file opens it by matching target editing machine
Afterwards, whether the content of target cloud file for just beginning listening for being opened changes, and the process of above-mentioned monitoring carries out in real time,
And larger operating pressure can be brought to server-side by running some function or code in real time, meanwhile, for being in opening and compiling
For the target cloud file for the state of collecting, correspondence can just be triggered by actually only performing certain operation by target editing machine in user
Event, for example, editor or preserve operation, for cloud client, when target editing machine executive editor or preserve operation when,
Cloud client is by the corresponding edit instruction for receiving the transmission of target editing machine or preserves instruction.Only performed in target editing machine
Certain events can be just generated during aforesaid operations, illustratively, opening target cloud file by target editing machine WPS, " Kingsoft cloud produces
After product handbook (first draft) .doc ", increase or have modified content therein, if WPS performs preservation operation, corresponding generation at this time
MODIFY:The event that file is changed.
It in view of above-mentioned 2 points, is further included in scheme provided in an embodiment of the present invention, judges whether to receive for described
The edit instruction of target cloud file preserves instruction;If it is, judge whether to listen to for target cloud text described in performing
The step of predeterminable event of part.
Therefore before judging whether to listen to the predeterminable event for the target cloud file, judge whether to connect
It receives for the edit instruction of the target cloud file or preservation instruction, is only receiving the volume for the target cloud file
When collecting instruction or preserving instruction, just further judge whether to listen to predeterminable event, not need in real time to open mesh
Mark cloud file is monitored, and therefore, the operating pressure of server-side can be reduced using the embodiment of the present invention.
Further, in the case where the judgement of a upper embodiment is listened to for the predeterminable event of the target cloud file,
The scheme that the embodiment of the present invention is provided further includes step:
Judge that this listens to the predeterminable event and whether the last time interval for listening to the predeterminable event is big
In predetermined threshold value;
If it is, the step of performing the target cloud file after the content change to high in the clouds upload.
As long as by above-described embodiment it is found that target editing machine executive editor or preservation operation, it is necessary to which execution judges whether
The step of listening to the predeterminable event for the target cloud file, if the content of target cloud file being opened is become
Change, then, do not have the step of time execution judges whether to listen to the predeterminable event for the target cloud file, can all judge to monitor
Content to the target cloud file changes, then the corresponding file destination that can upload a content change every time,
Since upper transmitting file to high in the clouds needs to consume network bandwidth, then frequently upper transmitting file to high in the clouds can seriously occupy Netowrk tape
Width causes network congestion, meanwhile, for cloud client, the cloud storage space of acquiescence is limited, if repeating to upload text
The memory space that part will waste high in the clouds to high in the clouds.
Consider disadvantages mentioned above, in the case where above-mentioned judgement listens to predeterminable event, it is described to judge that this is listened to
Whether predeterminable event is more than predetermined threshold value with the last time interval for listening to the predeterminable event;Only listened at this
In the case that the predeterminable event is more than predetermined threshold value with the last time interval for listening to the predeterminable event, just to high in the clouds
Upload the target cloud file after content change.For example, predetermined threshold value can be set as 800ms (millisecond), when this monitoring
It, just can be by content change when being more than 800ms with the last time interval for listening to the predeterminable event to the predeterminable event
Target cloud file afterwards is uploaded to high in the clouds, can not only prevent the target caused by user is the maloperation of target editing machine in this way
Cloud file repeats to upload, additionally it is possible to save network bandwidth, while save the memory space in high in the clouds.
Corresponding with Fig. 1 embodiments of the method, Fig. 5 is the first cloud document edit device provided in an embodiment of the present invention
Structure diagram;Described device includes:It obtains module 201, monitor module 202 and uploading module 203.
Module 201 is obtained, for obtaining target cloud file to be edited.
Further, it is corresponding with embodiment of the method shown in Fig. 2, as shown in fig. 6, being provided in an embodiment of the present invention
The structure diagram of second of cloud document edit device, in the embodiment shown in fig. 6, the acquisition module 201, including:The
One judging submodule 2011, first obtains submodule 2012 and second and obtains submodule 2013.
First judging submodule 2011, for judging to whether there is target cloud to be edited in local hard drive or spatial cache
File;
First obtains submodule 2012, in first judging submodule 2011 judgement result in the case of being,
The target cloud file is directly obtained from local hard drive or spatial cache;
Second obtains submodule 2013, in the case of being no in first judging submodule 2011 judgement result,
The target cloud file is downloaded from high in the clouds.
In practical applications, above-mentioned second submodule 2013 is obtained, be specifically used for:
According to the file type and file size of the target cloud file, determine to be used to store the target in local hard drive
Path is locally stored in cloud file, and downloading the target cloud file from the high in the clouds is locally stored to described under path;Or
According to the file size, the spatial cache for storing the target cloud file is distributed, from described in the download of high in the clouds
Target cloud file, and store to the spatial cache.
Module 202 is monitored, whether the content for monitoring the target cloud file changes.
In practical application, the monitoring module 202 is specifically used for:
Create the file content variation monitor for the target cloud file;
Change monitor using the file content, whether the content for monitoring the target cloud file changes.
Further, module 202 is monitored, including:Monitor submodule and second judgment submodule (not shown).
Submodule is monitored, for monitoring the target cloud file;
Second judgment submodule, for judging whether to listen to the predeterminable event for the target cloud file, wherein, institute
Stating predeterminable event is:For reflecting the changed event of cloud file content;
If it is, the content that judgement listens to the target cloud file changes.
Uploading module 203, for listening to the changed feelings of content of the target cloud file in the monitoring module
Under condition, the target cloud file after high in the clouds upload content change.
In practical application, uploading module 203 is specifically used for:
It uploads under the target cloud file to the corresponding cloud storage path of the target cloud file after content change, with more
The cloud file stored under the new cloud storage path.
Therefore the embodiment that application drawing 5 provides, by judging whether target cloud file is empty in local hard drive or caching
Between middle presence, when judging to pass through being locally stored for target cloud file there are during target cloud file in local hard drive or spatial cache
The target cloud file is found in path, if target cloud file is not present in local hard drive or spatial cache, just under high in the clouds
The target cloud file is carried to local either spatial cache, and monitoring the content of the target cloud file, when listening to mesh
When the content of mark cloud file changes, the target cloud file after content changes is uploaded to high in the clouds.Implement using the present invention
Example, is monitored by the content to target cloud file, if the content of target cloud file, which changes, just uploads target cloud file
To high in the clouds, it therefore, there is no need to user and edited cloud file uploaded to high in the clouds by manually mode again, simplify cloud file volume
The process collected saves edit session.
The embodiment of the method provided with Fig. 3 is corresponding, as shown in fig. 7, for the third cloud provided in an embodiment of the present invention
The structure diagram of document edit device.On the basis of Fig. 5 provides device, described device further includes:Open module 204.
Module 204 is opened, for after determining to obtain the complete target cloud file, opening the target cloud file.
In practical application, module 204 is opened, is specifically used for:
According to the file type of the target cloud file, matching is used to open the target editing machine of the target cloud file;
Using the target editing machine, the target cloud file is opened.
To sum up, the embodiment that application drawing 7 provides, by after determining to obtain the complete target cloud file, beating
The target cloud file is opened, then the content of the target cloud file after opening is monitored, can more accurately obtain mesh
The state change of cloud file is marked, and then can more changed target cloud file be uploaded to high in the clouds.Meanwhile
In scheme provided in an embodiment of the present invention, arbitrary file type can be opened by way of calling third party's editing machine
Target cloud file so that cloud client has stronger ease for use and generalization.
The embodiment of the method provided with Fig. 4 is corresponding, as shown in figure 8, for the third cloud provided in an embodiment of the present invention
The structure diagram of document edit device.On the basis of Fig. 5 provides device, described device further includes:Removing module 205.
Removing module 205, for the target cloud file after the uploading module 203 uploads content change to high in the clouds
The target cloud file stored under path is locally stored in the case of completion, described in deletion or deletes in the spatial cache
The target cloud file of storage.
The device provided using the embodiment of the present invention can effectively discharge memory space, improve the fortune of cloud client
Scanning frequency degree reduces burden of the operation client to server-side.
Based on the device embodiment that above-mentioned Fig. 7 is provided, described device further includes:First judgment module and the first trigger module
(not shown).
First judgment module refers to for judging whether to receive for the edit instruction of the target cloud file or preservation
It enables;
First trigger module, in the case of being judged as YES in first judgment module, triggering described second judges
Submodule.
Therefore before judging whether to listen to the predeterminable event for the target cloud file, judge whether to connect
It receives for the edit instruction of the target cloud file or preservation instruction, is only receiving the volume for the target cloud file
When collecting instruction or preserving instruction, just further judge whether to listen to predeterminable event, not need in real time to open mesh
Mark cloud file is monitored, and therefore, the operating pressure of server-side can be reduced using the embodiment of the present invention.
Further, on the basis of a upper device embodiment, device can also include:Second judgment module and second touches
Send out module (not shown).
Second judgment module listens to the predeterminable event for judging that this listens to the predeterminable event with the last time
Time interval whether be more than predetermined threshold value;
Second trigger module in the case of being judged as YES in second judgment module, triggers the uploading module.
The device provided using the embodiment of the present invention can not only prevent from making the maloperation of target editing machine because of user
Into target cloud file repeat upload, additionally it is possible to save network bandwidth, while save the memory space in high in the clouds.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any this practical relationship or sequence.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those
Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
Also there are other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is described using relevant mode, identical similar portion between each embodiment
Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for device reality
For applying example, since it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
One of ordinary skill in the art will appreciate that all or part of step in realization above method embodiment is can
It is completed with instructing relevant hardware by program, the program can be stored in computer read/write memory medium,
The storage medium designated herein obtained, such as:ROM/RAM, magnetic disc, CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (22)
1. a kind of cloud file editing method, which is characterized in that the method includes:
Obtain target cloud file to be edited;
Whether the content for monitoring the target cloud file changes;
If it is, the target cloud file after high in the clouds upload content change.
2. according to the method described in claim 1, it is characterized in that, described obtain target cloud file to be edited, including:
Judge to whether there is target cloud file to be edited in local hard drive or spatial cache;
If in the presence of the target cloud file is directly obtained from local hard drive or spatial cache;
If being not present, the target cloud file is downloaded from high in the clouds.
3. according to the method described in claim 2, it is characterized in that, described download the target cloud file from high in the clouds, including:
According to the file type and file size of the target cloud file, determine literary for storing the target cloud in local hard drive
Path is locally stored in part, and downloading the target cloud file from the high in the clouds is locally stored to described under path;Or
According to the file size, the spatial cache for storing the target cloud file is distributed, the target is downloaded from high in the clouds
Cloud file, and store to the spatial cache.
4. according to the method described in claim 3, it is characterized in that, the target cloud after content change is uploaded to high in the clouds is literary
In the case that part is completed, the method further includes:
The target cloud file stored under path is locally stored described in deletion;Or
Delete the target cloud file stored in the spatial cache.
5. according to the method described in claim 1, it is characterized in that, whether sent out in the content for monitoring the target cloud file
Before changing, the method further includes:
After determining to obtain the complete target cloud file, the target cloud file is opened.
6. according to the method described in claim 5, it is characterized in that, described open the target cloud file, including:
According to the file type of the target cloud file, matching is used to open the target editing machine of the target cloud file;
Using the target editing machine, the target cloud file is opened.
7. according to the method described in claim 1, it is characterized in that, whether the content for monitoring the target cloud file occurs
Variation, including:
Create the file content variation monitor for the target cloud file;
Change monitor using the file content, whether the content for monitoring the target cloud file changes.
8. according to the method described in claim 1, it is characterized in that, it is described to high in the clouds upload content change after the target cloud
File, including:
It uploads under the target cloud file to the corresponding cloud storage path of the target cloud file after content change, to update
State the cloud file stored under cloud storage path.
9. according to the method described in any one of claim 1-8, which is characterized in that described to monitor the interior of the target cloud file
Whether appearance changes, including:
The target cloud file is monitored;
Judge whether to listen to the predeterminable event for the target cloud file, wherein, the predeterminable event is:For reflecting cloud
The changed event of file content;
If it is, the content that judgement listens to the target cloud file changes.
10. according to the method described in claim 9, it is characterized in that, judge whether to listen to for the target cloud described
Before the predeterminable event of file, the method further includes:
Judge whether to receive for the edit instruction of the target cloud file or preservation instruction;
If it is, the step of judging whether to listen to the predeterminable event for the target cloud file described in performing.
11. it according to the method described in claim 9, it is characterized in that, is listened in judgement for the pre- of the target cloud file
If in the case of event, the method further includes:
Judge that this listens to whether the predeterminable event is more than in advance with the last time interval for listening to the predeterminable event
If threshold value;
If it is, the step of performing the target cloud file after the content change to high in the clouds upload.
12. a kind of cloud document edit device, which is characterized in that described device includes:
Module is obtained, for obtaining target cloud file to be edited;
Module is monitored, whether the content for monitoring the target cloud file changes;
Uploading module, in the case that the content for listening to the target cloud file in the monitoring module changes, to
High in the clouds uploads the target cloud file after content change.
13. device according to claim 12, which is characterized in that the acquisition module, including:
First judging submodule, for judging to whether there is target cloud file to be edited in local hard drive or spatial cache;
First obtains submodule, in first judging submodule judgement result in the case of being, from local hard drive or
The target cloud file is directly obtained in spatial cache;
Second obtains submodule, and in the case of being no in first judging submodule judgement result, institute is downloaded from high in the clouds
State target cloud file.
14. device according to claim 13, which is characterized in that described second obtains submodule, is specifically used for:
According to the file type and file size of the target cloud file, determine literary for storing the target cloud in local hard drive
Path is locally stored in part, and downloading the target cloud file from the high in the clouds is locally stored to described under path;Or
According to the file size, the spatial cache for storing the target cloud file is distributed, the target is downloaded from high in the clouds
Cloud file, and store to the spatial cache.
15. device according to claim 14, which is characterized in that described device further includes:
Removing module, situation about being completed for the target cloud file after the uploading module uploads content change to high in the clouds
Under, the target cloud file stored under path is locally stored described in deletion or is stored in the deletion spatial cache described
Target cloud file.
16. device according to claim 12, which is characterized in that described device further includes:
Module is opened, for after determining to obtain the complete target cloud file, opening the target cloud file.
17. device according to claim 16, which is characterized in that the opening module is specifically used for:
After determining to obtain the complete target cloud file, according to the file type of the target cloud file, matching is used to beat
Open the target editing machine of the target cloud file;
Using the target editing machine, the target cloud file is opened.
18. device according to claim 12, which is characterized in that the monitoring module is specifically used for:
Create the file content variation monitor for the target cloud file;
Change monitor using the file content, whether the content for monitoring the target cloud file changes.
19. device according to claim 12, which is characterized in that the uploading module is specifically used for:
It uploads under the target cloud file to the corresponding cloud storage path of the target cloud file after content change, to update
State the cloud file stored under cloud storage path.
20. according to the device described in any one of claim 12-19, which is characterized in that the monitoring module, including:
Submodule is monitored, for monitoring the target cloud file;
Second judgment submodule, for judging whether to listen to the predeterminable event for the target cloud file, wherein, it is described pre-
If event is:For reflecting the changed event of cloud file content;
If it is, the content that judgement listens to the target cloud file changes.
21. device according to claim 20, which is characterized in that described device further includes:
First judgment module, for judging whether to receive for the edit instruction of the target cloud file or preservation instruction;
First trigger module, in the case of being judged as YES in first judgment module, triggering described second judges submodule
Block.
22. device according to claim 20, which is characterized in that listened in judgement for the pre- of the target cloud file
If in the case of event, described device further includes:
Second judgment module, for judge this listen to the predeterminable event with it is last listen to the predeterminable event when
Between be spaced whether be more than predetermined threshold value;
Second trigger module in the case of being judged as YES in second judgment module, triggers the uploading module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611161304.1A CN108234554B (en) | 2016-12-15 | 2016-12-15 | 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 | 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 | 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 remote backup method of VS editor and storage medium |
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 | 浪潮软件集团有限公司 | 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 | 浪潮软件集团有限公司 | 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 remote backup method of VS editor and storage medium |
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 |
---|---|---|
CN108234554A (en) | A kind of cloud file editing method and device | |
CN110336871A (en) | A kind of document handling method, device, storage medium and electronic equipment | |
JP4955677B2 (en) | Move data from a file on a storage volume to an alternate location to free up space | |
KR101146159B1 (en) | Layered user interface | |
CN105677250B (en) | The update method and updating device of object data in object storage system | |
CA2829221C (en) | Local storage linked to networked storage system | |
CN103186391B (en) | Browser upgrade method and system and a kind of upgrade server | |
CN103067466B (en) | A kind of client and method realizing file synchronization storage | |
US9104686B2 (en) | System and method for host management of discardable objects | |
EP1902394B1 (en) | Moving data from file on storage volume to alternate location to free space | |
CN103092665A (en) | Immediate updating device and immediate updating method | |
CN111209460A (en) | Data acquisition system and method based on script crawler framework | |
CN109471843B (en) | Metadata caching method, system and related device | |
CN109189772A (en) | File management method and system for no file system storage medium | |
CN108900897A (en) | A kind of multimedia data processing method, device and relevant device | |
CN103002048A (en) | System and method for achieving file synchronous storage | |
CN113238997A (en) | Cloud data operation method for terminal equipment, storage medium and terminal equipment | |
US7505986B2 (en) | Moving data from file on storage volume to alternate location to free space | |
CN113590027B (en) | Data storage method, data acquisition method, system, device and medium | |
CN112749144B (en) | System and method for storing persistent file based on blockchain | |
US7873681B2 (en) | Moving data from file on storage volume to alternate location to free space | |
CN110474793A (en) | A kind of upgrade method and device of the network equipment | |
CN103841178A (en) | Method and system of in-band management of network attached storage environment | |
CN102819570A (en) | Data access method, device and system | |
CN108197323A (en) | Applied to distributed system map data processing method |
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 |