CN106991176A - File management method, device, equipment and storage medium - Google Patents
File management method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN106991176A CN106991176A CN201710221044.0A CN201710221044A CN106991176A CN 106991176 A CN106991176 A CN 106991176A CN 201710221044 A CN201710221044 A CN 201710221044A CN 106991176 A CN106991176 A CN 106991176A
- Authority
- CN
- China
- Prior art keywords
- file
- stored
- current newest
- newest storage
- storage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/13—File access structures, e.g. distributed indices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/113—Details of archiving
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
Abstract
The invention discloses a kind of file management method, device, equipment and storage medium.This document management method includes:Whether confirm original document corresponding with file to be stored is current newest storage file;If not current newest storage file, then conflict prompting is carried out, and be confirmed whether to receive clash handle instruction;If receiving clash handle instruction, response collisions process instruction;If being not received by clash handle instruction, store file to be stored, and using file to be stored as current newest storage file wave file., can be when avoiding memory contention using above-mentioned file management method, it is ensured that flexibility ratio and efficiency during Document Editing.
Description
Technical field
The present invention relates to technical field of data administration, more particularly to a kind of file management method, device, equipment and storage
Medium.
Background technology
With the arrival of cybertimes, for convenience user in different location, different time using different terminals to same
Document enters edlin, generates cloud storage system.By the cloud storage function of background server, user can be facilitated by needs
File is deposited to cloud storage system, and is logged in cloud storage system when needing and downloaded this document, to continue to carry out this document
Editor.
In general, having a unique account when user is using cloud storage system.In the prior art, same account
It can be logged in simultaneously in different clients, when identical file enters edlin during different clients are to cloud storage system,
Because different clients are inconsistent to the edited result of file, the file after editor will be caused to be produced when being stored in cloud storage system
Raw conflict.In order to avoid above-mentioned conflict, background server would generally limit same account and can only be used by a terminal, so
Although avoiding memory contention to a certain extent, flexibility ratio and efficiency during Document Editing are reduction of.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of file management method, device, equipment and storage medium, with
When avoiding memory contention, it is ensured that the flexibility ratio and efficiency of Document Editing.
In a first aspect, the embodiments of the invention provide a kind of file management method, including:
Whether confirm original document corresponding with file to be stored is current newest storage file;
If not the current newest storage file, then conflict prompting is carried out, and be confirmed whether to receive clash handle
Instruction;
If receiving clash handle instruction, the clash handle instruction is responded;
If being not received by clash handle instruction, the file to be stored is stored, and the file to be stored is made
For the wave file of the current newest storage file.
Second aspect, the embodiment of the present invention additionally provides a kind of document management apparatus, including:
File confirms module, for confirming whether original document corresponding with file to be stored is current newest storage text
Part;
Conflict reminding module, and for if not the current newest storage file, then carrying out conflict prompting, and confirmation is
It is no to receive clash handle instruction;
Conflict response module, if for receiving clash handle instruction, responding the clash handle instruction;
File storage module, if for being not received by clash handle instruction, the file to be stored is stored, and will
The file to be stored as the current newest storage file wave file.
The third aspect, the embodiment of the present invention additionally provides a kind of computer equipment, including memory, processor and is stored in
On memory and the computer program that can run on a processor, such as first aspect is realized during the computing device described program
Described file management method.
Fourth aspect, the embodiment of the present invention additionally provides the storage medium comprising computer executable instructions, the calculating
Machine executable instruction by computer processor when being performed for performing file management method as described in relation to the first aspect.
File management method provided in an embodiment of the present invention, device, equipment and storage medium, by being uploaded when client
During file to be stored, confirm whether current newest storage file is original document corresponding with the file to be stored, if it is not,
Then confirm to produce memory contention, and carry out conflict prompting, to ensure that client can quickly receive conflict prompting.Further
, if having received clash handle instruction, clash handle instruction is responded, to ensure quickly to solve memory contention, if
Clash handle instruction is not received by, then file to be stored is stored as to the wave file of current newest storage file, to prevent
The file caused due to memory contention is lost, while when allowing client to delay processing memory contention, it is ensured that file it is complete
Whole property.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, of the invention is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 a are a kind of flow chart for file management method that the embodiment of the present invention one is provided;
Fig. 1 b are a kind of conflict prompting schematic diagram that the embodiment of the present invention one is provided;
Fig. 1 c are a kind of storage display interface schematic diagram that the embodiment of the present invention one is provided;
Fig. 2 a are a kind of flow chart for file management method that the embodiment of the present invention two is provided;
Fig. 2 b are the first display interface schematic diagram that the embodiment of the present invention two is provided;
Fig. 2 c are the second display interface schematic diagram that the embodiment of the present invention two is provided;
Fig. 3 is a kind of structural representation for document management apparatus that the embodiment of the present invention three is provided;
Fig. 4 is a kind of structural representation for computer equipment that the embodiment of the present invention four is provided.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to just
Part related to the present invention rather than full content are illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 a are a kind of flow chart for file management method that the embodiment of the present invention one is provided.The file that the present embodiment is provided
The multiple client that management method is suitable for use with same user account is entered after edlin to identical file, by the file after editor
Store to the situation that memory contention is produced during server.The file management method that the present embodiment is provided can be by document management apparatus
Perform, this document managing device can be realized by way of software and/or hardware, and be integrated in network storage function
In server.
With reference to Fig. 1 a, the file management method that the present embodiment is provided is specifically included:
Whether S110, confirmation original document corresponding with file to be stored are current newest storage file.If current
Newest storage file, then perform S120, if not current newest storage file, then performs S130.
In the present embodiment, file to be stored is at least one client using same user account to being deposited in server
After the file download editor of storage, upload onto the server the middle file for preparing to preserve again.Wherein, the file of client downloads is to treat
The original document of storage file.Current newest storage file is currently stored corresponding with the original document newest in server
The file of version.It should be noted that above-mentioned file is not limited merely to text, picture file, voice text can also be
Part and file comprising multiple subfiles etc..Synchronization, what server can only receive that client uploads waits to deposit
Store up file.
Specifically, after the file to be stored of client upload is detected, confirming the corresponding original text of the file to be stored
Part, and original document current newest storage file corresponding with the original document is compared, whether to determine original document
For current newest storage file.If original document is current newest storage file, illustrate currently without other clients pair
Original document enters edlin and stores the file after editor into server.If original document is not current newest storage text
Part, then illustrate that there is currently other clients enters edlin to original document and store the file after editor to server
In, now, the file after other client-side editings is current newest storage file, it is understood that be that file to be stored is
The more redaction of original document, and current newest storage file is also the more redaction of original document, that is, there is currently two bases
In the more redaction of original document, then server will produce memory contention in storage.
Optionally, can compare original document most when it is determined that whether original document is current newest storage file
Whether the holding time is identical with the last holding time of current newest storage file afterwards;It can also be the content for comparing original document
Whether the content information of information and current newest storage file is mutually equal.
Optionally, can be with when determining the corresponding original document of file to be stored and corresponding current newest storage file
It is to determine whether the identity of file to be stored, original document and current newest storage file is consistent.In general, as visitor
When family end uploads some file for the first time, server can create the identity of this document, and identity has uniqueness and not
No matter denaturation, i.e., carry out any editor and renewal, corresponding identity is all without any change of generation to this document.It is preferred that
, identity is Serial No. information, and its specific rule the present embodiment that creates is not construed as limiting.Determine file to be stored correspondence
Original document and during corresponding current newest storage file, can also be determination file to be stored, original document and work as
Whether the file name and file attribute (text, picture and file etc.) of preceding newest storage file are consistent, now, service
Device acquiescence can not store same file attribute and multiple files of same names simultaneously.
S120, the current newest storage file of general be updated to current newest storage as history file, and by file to be stored
File.
If specifically, currently without other clients original document is entered edlin and by the file after editor store to
In server, then server using current newest storage file as file to be stored history file, and by file to be stored more
New is current newest storage file.Now, whole history files of current newest storage file are store in server, so as to visitor
Family end can check the file of all versions.
S130, progress conflict prompting, and be confirmed whether to receive clash handle instruction.If receiving clash handle to refer to
Order, then perform S140, if being not received by clash handle instruction, performs S150.
If entering edlin to original document specifically, there is currently other clients and depositing the file after editor
Storage is into server, then it is determined that generating memory contention, now, server sends to the corresponding client of file to be stored and rushed
Prominent prompting.Wherein, particular content the present embodiment of conflict prompting is not construed as limiting.For example, server will include file to be stored
And the message of the essential information of current newest storage file is sent to the client of file to be stored, to carry out conflict prompting.
And for example, the particular content of conflict prompting is:" revision of existing this document, if needs are immediately treated ", and show
Two function buttons of "Yes" and "No".If client selects "Yes", it is determined that clash handle instruction is got, if client
Select "No", it is determined that do not get clash handle instruction.
Wherein, clash handle instruction sends for the corresponding client of file to be stored, the finger for solving conflict prompting
Order.If specifically, receiving the clash handle instruction of the corresponding client feedback of file to be stored, illustrating file to be stored
Corresponding client has carried out instant processing to memory contention.If being not received by the corresponding client feedback of file to be stored
Clash handle instruction, then illustrate that the corresponding client of file to be stored is not handled memory contention immediately.It is optional
, in the clash handle instruction for being confirmed whether to receive the corresponding client feedback of file to be stored, setting time interval, and
It is confirmed whether that the clash handle for receiving the corresponding client feedback of file to be stored is instructed in the time interval.
S140, response collisions process instruction.
It is exemplary, during response collisions process instruction, can be by file to be stored and current newest storage file together
Corresponding client is back to, so that corresponding client carries out file modification on the basis of current newest storage file, and
During file to be stored based on current newest storage file is uploaded onto the server, so that server is reaffirmed and text to be stored
Whether the corresponding original document of part is current newest storage file.Meanwhile, in response collisions process instruction, it may be necessary to service
Device carries out multiple data interaction with corresponding client.
Optionally, server by file to be stored and current newest storage file be together back to corresponding client it
Before, processing can be marked to file to be stored and current newest storage file, so as to the clear and definite file to be stored of client with
The position of different content in current newest storage file.
S150, storage file to be stored, and using file to be stored as current newest storage file wave file.
Exemplary, if being not received by clash handle instruction, file to be stored is stored, and be described in storage
File to be stored addition copy mark, can be clear and definite to ensure when the client using same account accesses server again
File to be stored is the wave file of current newest storage file.Optionally, it is regarding file to be stored as current newest storage
, can be with connective marker file to be stored original document corresponding with currently newest storage file during the wave file of file.
If it should be noted that file to be stored includes many sub- files to be stored, needing to determine respectively multiple
Whether the corresponding each sub- original document of sub- file to be stored is current newest storage file, if wherein at least one is to be stored
The corresponding sub- original document of file is not current newest storage file, then can be only comprising this part when carrying out conflict prompting
The conflicting information of file to be stored, and it is follow-up only to the sub- file to be stored in this part progress clash handle.For sub- original document
It is the sub- file to be stored of current newest storage file, then is directly updated to current newest storage file, and will be former current newest
Storage file as son file to be deposited history file.
Example description is carried out to the file management method that the present embodiment is provided below:
Assuming that customer end A and customer end B use a certain file in same user account access server, server corresponding
Current newest storage file is C.Further, customer end A and customer end B have all downloaded current newest storage text in the server
Part C, and current newest storage file C is edited.During customer end A uploads onto the server the C after editor, for the ease of
Description, C1 is expressed as by the file to be stored that customer end A is uploaded.Further, after customer end A uploads file to be stored C1,
Server confirms the original document that current newest storage file C is file to be stored C1, now, and server will current newest storage
File C is as history file, for the ease of description, using current newest storage file C as C2 is expressed as after history file, together
When, file to be stored C1 is updated to current newest storage file.
After customer end B completes the editor to file C, during file C is uploaded onto the server, for the ease of description, by visitor
The file to be stored that family end B is uploaded is expressed as C3.Further, server confirms that current newest storage file C1 is not to be stored
File C3 original document C.Now, server sends conflict prompting to customer end B.With reference to Fig. 1 b, it is what customer end B was shown
Conflict the particular content pointed out.
If the user of customer end B have selected "Yes" in conflict prompting, server sends currently newest deposit to customer end B
File C1 and file to be stored C3 is stored up, so that current newest storage file C1 is entered edlin by customer end B as original document, and
During file after editor is uploaded onto the server again, so that server carries out subsequent treatment.
If the user of customer end B have selected "No" in conflict prompting, server preserves file to be stored C3, and should
File to be stored C3 as current newest storage file C1 wave file.Specifically, when preserving file to be stored C3, can be with
File to be stored C3 is marked.When client reuses user account game server, server is same to client
When current newest storage file C1 and the wave file C3 of display, specific display interface may be referred to Fig. 1 c.Optionally, no eristic
Whether family end is handled memory contention, and wave file C3 and current newest storage file C1 can remain stored in server
In, it is used as history file.
It should be noted that the title that above-mentioned each file is used in actual application is identical, identity is identical, only
The related information of file is different (such as last storage time, index information), and only file to be stored C3 is stored as wave file
When file name may be changed, to be made a distinction with current newest storage file C1.
The technical scheme that the present embodiment is provided, by when client uploads file to be stored, confirming current newest storage
Whether file is original document corresponding with the file to be stored, if it is not, then confirming to produce memory contention, and is conflicted
Prompting, to ensure that client can quickly receive conflict prompting.Further, if having received clash handle instruction,
Clash handle instruction is then responded, to ensure quickly to solve memory contention, if being not received by clash handle instruction, will be treated
Storage file is stored as the wave file of current newest storage file, to prevent because the file that memory contention is caused is lost, together
When allow client delay processing memory contention when, it is ensured that the integrality of file.
Embodiment two
Fig. 2 a are a kind of flow chart for file management method that the embodiment of the present invention two is provided.The present embodiment is in above-mentioned reality
Apply and embodied on the basis of example.With reference to Fig. 2 a, the file management method that the present embodiment is provided is specifically included:
S210, the identity for determining according to the attribute information of file to be created file to be created, and identity is returned
It is back in corresponding client.
Specifically, attribute information can include the user account that log in of client and file to be created of file to be created
The contents such as title.Identity is the identity information that server is created according to attribute information, and each file to be created is respectively provided with only
One identity information, even if the current newest storage file of latest edition is modified to after document creation to be created success again,
Its corresponding identity is still constant.Wherein, specific rules the present embodiment of server establishment identity is not construed as limiting.
Further, identity is back in corresponding client by server, and client is received after identity,
Preserve the identity.If subsequent client is wanted to enter edlin to above-mentioned file to be created again, it is only necessary to by the identity mark
Know and send into server, server will determine corresponding file according to identity and be back in client.
In general, same account can be synchronized when different clients are logged between client and server, to protect
Card different clients have the identity of storage file in server.
S220, the file to be created for preserving client upload and file to be created identification information, and by after preservation
File to be created is used as current newest storage file.
Specifically, client is received after the identity of file to be created, during file to be created is uploaded onto the server.
If file to be created includes many height file to be created, then server preserves each sub file to be created successively, and determines each
The sub- identity of son file to be created, sub- identity is back in client.
Further, user end to server provides the identification information of file to be created, wherein, identification information can include
It is at least one of following:Document base information, thumbnail and file index information etc..Document base information includes following at least one
:File attribute, file size and the last storage time of file etc..Server association preserves the mark letter of file to be created
Breath.
In general, Server Default regard file to be created as current newest storage file.Meanwhile, file to be created
It is the original document of initial release.It should be noted that server can't produce storage when preserving file to be stored for the first time
Conflict.
Further, if it is confirmed that file to be created preserves failure, then file to be created, the mark of file to be created are deleted
The attribute information of information, identity and file to be created.
Typically, if server preserves file to be created, confirm that file to be created preserves failure, then delete and wait to create
Build the related full detail of file.Such as, file to be created, the identification information of file to be created, identity are deleted and is treated
The attribute information of establishment file.Advantage of this is that, if user account needs to create above-mentioned file to be created again, then
Server would not mutually be obscured when preserving file to be created with the relevant information of this preservation, it is ensured that create accuracy.
Optionally, if S210 and S220 it is any during occur in that error, think that file to be created is preserved and lose
Lose, and perform the attribute information for deleting file to be created, the identification information of file to be created, identity and file to be created
Operation.
Said process is the process that preserves for the first time of file, and following processes are the process preserved again after Document Editing.
Original file identification information in S230, the related information of acquisition file to be stored.
If specifically, user wants some file stored in editing server, it is necessary to be sent after client is logged in
The identity of this document.Server is received after identity, searches current newest storage file corresponding with identity,
And current newest storage file is back in client, so that client enters edlin.Now, current newest storage file is
For the original document of file to be stored.
Further, after the completion of client-side editing, file to be stored is obtained, and file to be stored is uploaded onto the server
In.If file to be stored includes many sub- files to be stored, then, can be in many height text to be stored when passing on the client
The sub- file to be stored edited is found in part, and only uploads the sub- file to be stored edited, that is, realizes client
Residual quantity file is uploaded, to ensure uploading speed and efficiency.The mode for searching the sub- file to be stored edited is chosen as determining respectively
Whether sub- file to be stored identification information is identical with corresponding sub- original document identification information, confirms if differing corresponding
The editor that sub- file to be stored has been carried out.For example, client confirms that file is last in certain sub- file to be stored identification information
Storage time is different from the last storage time of file in corresponding sub- original document identification information, now, determines that the son is to be stored
File is compiled file, meanwhile, confirm that other sub- file to be stored identification informations are identified with corresponding sub- original document
Information is identical, then in upper transmitting file, and client only needs to upload the different sub- file to be stored of identification information.
Optionally, client is when uploading file to be stored, while uploading the related information of file to be stored.Wherein, close
The corresponding original document identification information of file to be stored can be included by joining in information, the also optional mark letter including file to be stored
Breath and identity.
Further, if client becomes no network state in editing files, i.e., it can not be attached with server,
So client can proceed Document Editing.After completing the editing, file to be stored can be temporarily stored in the sheet of client
On ground hard disk.Client subsequently monitor it is current for when having network state, then by the file to be stored kept on local hard drive
Reach in server.Upload file to be stored when, can be uploaded automatically when client has detected network state it is to be stored
File, can also be that prompting user is so that user uploads file to be stored manually when client has detected network state.
S240, confirm original document identification information whether the identification information match with current newest storage file.If phase
Matching, then perform S250, if do not matched that, perform S260.
Server determines corresponding current newest storage file according to the identity of file to be stored, and obtains newest deposit
Store up the identification information of file.Further, in matching identification information, server needs will be each in original document identification information
Individual sub-information is matched with corresponding sub-information in the identification information of current newest storage file respectively.If whole sub-informations
Matching result is all identical, then it is current newest storage file to confirm original document, if whole sub-information matching results
Changed for wherein at least one sub-information, then it is not current newest storage file just to confirm original document.
S250, the current newest storage file of general be updated to current newest storage as history file, and by file to be stored
File.
Optionally, update after current newest storage file, the identification information of the current newest storage file of related update.
S260, mark file destination.
Optionally, the process is specifically included including at least one following scheme:
Scheme one, mark file to be stored and current newest storage file.
Specifically, when mark file to be stored and current newest storage file, only file title can be marked.This
When, after User logs in, client just can determine that file to be stored and current latest document are deposited according to file title in server
Memory contention between storage.If file to be stored includes many sub- files to be stored, then many height can be marked to treat respectively
Storage file.For example, Fig. 2 b are the file to be stored after mark and the display interface of current newest storage file, when user logs in
Afterwards, server can show Fig. 2 b display interface in client, so as to the further clear and definite memory contention file of user.
Scheme two, the full content for reading file to be stored, and mark and current newest storage file in full content
The sub- content that differs of content.
Specifically, server reads the full content of file to be stored and current newest storage file, and in text to be stored
The sub- content that the content of mark and current newest storage file is differed in the full content of part, so as to clear and definite two files of user
Difference, and then improve subsequent treatment efficiency.For example, Fig. 2 c are display circle after file to be stored neutron content-label
Face, after file to be stored is opened in user's selection, server can show Fig. 2 c display interface in client, so that user enters one
The part different from the content of current newest storage file in the clear and definite file to be stored of step.
S270, progress conflict prompting, and be confirmed whether to receive clash handle instruction.If receiving clash handle to refer to
Order, then perform S280, if being not received by clash handle instruction, performs S290.
S280, response collisions process instruction.
For example, user is sent after clash handle instruction, client shows Fig. 2 c display interface.User is according to above-mentioned display
Picture can determine current newest storage file and the difference of file to be stored, and then according to difference to be stored
File or current newest storage file are modified, and using amended file as using current newest storage file to be original
The file to be stored of file, and file to be stored is uploaded onto the server.
S290, storage file to be stored and corresponding related information, and it regard file to be stored as current newest storage
The wave file of file.
It should be noted that during file is preserved again, if arbitrary steps occur in that mistake, then will delete
This all files during preserving and corresponding information, to prevent from producing information entanglement during follow-up storage again.
The technical scheme that the present embodiment is provided, by regarding file to be created as current newest storage file and preservation pair
The identification information answered, obtain file to be stored when, by the corresponding original document identification information of file to be stored with currently it is newest
The identification information match of storage file, and according to matching result confirm current newest storage file whether be and the file to be stored
Corresponding original document, if it is not, then confirming to produce memory contention, and carries out conflict prompting, to ensure that client can be fast
The conflict that receives of speed is pointed out.Further, if having received clash handle instruction, clash handle instruction is responded, with
Ensure it is quick solve memory contention, if being not received by clash handle instruction, using file to be stored storage as currently most
The wave file of new storage file simultaneously associates the related information for preserving file to be stored, to prevent due to the text that memory contention is caused
Part is lost, while when allowing client to delay processing memory contention, it is ensured that the integrality of file.
Embodiment three
Fig. 3 is a kind of structural representation for document management apparatus that the embodiment of the present invention three is provided.With reference to Fig. 3, this implementation
The document management apparatus that example is provided is specifically included:File confirms module 301, conflict reminding module 302, conflict response module 303
And file storage module 304.
Wherein, file confirms module 301, for confirming whether original document corresponding with file to be stored is current newest
Storage file;Conflict reminding module 302, for if not the current newest storage file, then carrying out conflict prompting, and really
Recognize and whether receive clash handle instruction;Conflict response module 303, if for receiving clash handle instruction, response punching
Prominent process instruction;File storage module 304, if for being not received by clash handle instruction, file to be stored is stored, and
Using file to be stored as current newest storage file wave file.
On the basis of above-described embodiment, file confirms that module 301 includes:Information acquisition unit, it is to be stored for obtaining
Original file identification information in the related information of file;Information matching unit, for confirm original document identification information whether with
The identification information match of current newest storage file.
On the basis of above-described embodiment, in addition to:File update module, for corresponding with file to be stored in confirmation
, then will current newest storage text if current newest storage file after whether original document is current newest storage file
Part is updated to current newest storage file as history file, and by file to be stored.
On the basis of above-described embodiment, in addition to:Determining module is identified, for corresponding with file to be stored in confirmation
Before whether original document is current newest storage file, the body of file to be created is determined according to the attribute information of file to be created
Part mark, and identity is back in corresponding client;Identify preserving module, for preserve client upload wait create
The identification information of file and file to be created is built, and regard the file to be created after preservation as current newest storage file.
On the basis of above-described embodiment, in addition to:File removing module, for if it is confirmed that file to be created preserves mistake
Lose, then delete the attribute information of file to be created, the identification information of file to be created, identity and file to be created.
On the basis of above-described embodiment, in addition to:File mark module, for carrying out conflict prompting, and confirmation is
It is no receive clash handle instruction before, mark file to be stored and current newest storage file;And/or, read to be stored
The full content of file, and the sub- content that the content of mark and current newest storage file is differed in full content.
On the basis of above-described embodiment, file storage module 304 specifically for:Store file to be stored and corresponding
Related information, and using file to be stored as current newest storage file wave file.
The document management apparatus that the present embodiment is provided can be used for performing the file management side that above-mentioned any embodiment is provided
Method, possesses corresponding function and beneficial effect.
Example IV
Fig. 4 is a kind of structural representation for computer equipment that the embodiment of the present invention four is provided, as shown in figure 4, the calculating
Machine equipment includes processor 40, memory 41, input unit 42 and output device 43;The quantity of processor 40 in computer equipment
Can be one or more, in Fig. 4 by taking a processor 40 as an example;Processor 40, memory 41, input in computer equipment
Device 42 and output device 43 can be connected by bus or other modes, in Fig. 4 exemplified by being connected by bus.Wherein, locate
Manage when device 40 performs described program and realize such as the file management method in the embodiment of the present invention.
Memory 41 can perform journey as a kind of computer-readable recording medium available for storage software program, computer
Corresponding programmed instruction/the module of file management method in sequence and module, such as embodiment of the present invention is (for example, file management is filled
File in putting confirms module 301, conflict reminding module 302, conflict response module 303 and file storage module 304).Processing
Device 40 is stored in software program, instruction and module in memory 41 by operation, so as to perform the various of computer equipment
Application of function and data processing, that is, realize above-mentioned file management method.
Memory 41 can mainly include storing program area and storage data field, wherein, storing program area can store operation system
Application program needed for system, at least one function;Storage data field can be stored uses created data etc. according to terminal.This
Outside, memory 41 can include high-speed random access memory, can also include nonvolatile memory, for example, at least one magnetic
Disk storage device, flush memory device or other non-volatile solid state memory parts.In some instances, memory 41 can be further
Including the memory remotely located relative to processor 40, these remote memories can be set by network connection to computer
It is standby.The example of above-mentioned network includes but is not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Input unit 42 can be used for the numeral or character information for receiving input, and generation and the user of computer equipment to set
Put and the input of key signals that function control is relevant.Output device 43 may include the display devices such as display screen.
Embodiment five
The embodiment of the present invention five also provides a kind of storage medium for including computer executable instructions, and the computer can be held
Row instruction is used to perform a kind of file management method when being performed by computer processor, and this document management method includes:
Whether confirm original document corresponding with file to be stored is current newest storage file;
If not current newest storage file, then conflict prompting is carried out, and be confirmed whether to receive clash handle instruction;
If receiving clash handle instruction, response collisions process instruction;
If being not received by clash handle instruction, file to be stored is stored, and using file to be stored as currently most
The wave file of new storage file.
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present invention is provided, its computer
The file management method operation that executable instruction is not limited to the described above, can also carry out what any embodiment of the present invention was provided
Associative operation in file management method
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to realized by hardware, but the former is more in many cases
Good embodiment.Understood based on such, what technical scheme substantially contributed to prior art in other words
Part can be embodied in the form of software product, and the computer software product can be stored in computer-readable recording medium
In, such as floppy disk, read-only storage (Read-Only Memory, ROM), the random access memory (Random of computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are to cause a computer to set
Standby (can be personal computer, server, or network equipment etc.) performs the file management described in each embodiment of the invention
Method.
It is worth noting that, in the embodiment of above-mentioned document management apparatus, included unit and module is to press
Divided according to function logic, but be not limited to above-mentioned division, as long as corresponding function can be realized;In addition,
The specific name of each functional unit is also only to facilitate mutually distinguish, the protection domain being not intended to limit the invention.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned
In embodiment, the software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage
Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware
Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal
Discrete logic, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means to combine specific features, structure, material or the spy that the embodiment or example are described
Point is contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not
Necessarily refer to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be any
One or more embodiments or example in combine in an appropriate manner.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art it is various it is obvious change,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (10)
1. a kind of file management method, it is characterised in that including:
Whether confirm original document corresponding with file to be stored is current newest storage file;
If not the current newest storage file, then conflict prompting is carried out, and be confirmed whether to receive clash handle instruction;
If receiving clash handle instruction, the clash handle instruction is responded;
If being not received by clash handle instruction, the file to be stored is stored, and regard the file to be stored as institute
State the wave file of current newest storage file.
2. file management method according to claim 1, it is characterised in that confirmation original corresponding with file to be stored
Whether beginning file is that current newest storage file includes:
Obtain original file identification information in the related information of file to be stored;
Confirm the original document identification information whether the identification information match with current newest storage file.
3. file management method according to claim 1, it is characterised in that confirmation original corresponding with file to be stored
After whether beginning file is current newest storage file, in addition to:
If the current newest storage file, then current newest storage file is waited to deposit as history file, and by described
Storage file is updated to current newest storage file.
4. file management method according to claim 1, it is characterised in that confirmation original corresponding with file to be stored
Before whether beginning file is current newest storage file, in addition to:
The identity of the file to be created is determined according to the attribute information of file to be created, and the identity is returned
Into corresponding client;
The file to be created of the client upload and the identification information of file to be created are preserved, and will be to be created after preservation
File is used as current newest storage file.
5. file management method according to claim 4, it is characterised in that also include:
If it is confirmed that the file to be created preserves failure, then the file to be created, the mark of the file to be created are deleted
The attribute information of information, the identity and the file to be created.
6. file management method according to claim 1, it is characterised in that the carry out conflict prompting, and be confirmed whether
Receive clash handle instruction before, in addition to:
Mark the file to be stored and the current newest storage file;And/or
Read the full content of the file to be stored, and mark and the current newest storage file in the full content
The sub- content that differs of content.
7. file management method according to claim 2, it is characterised in that the storage file to be stored includes:
Store the file to be stored and corresponding related information.
8. a kind of document management apparatus, it is characterised in that including:
File confirms module, for confirming whether original document corresponding with file to be stored is current newest storage file;
Conflict reminding module, for if not the current newest storage file, then carrying out conflict prompting, and be confirmed whether to connect
Receive clash handle instruction;
Conflict response module, if for receiving clash handle instruction, responding the clash handle instruction;
File storage module, if for being not received by clash handle instruction, the file to be stored is stored, and will be described
File to be stored as the current newest storage file wave file.
9. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor
Calculation machine program, it is characterised in that the file as described in any in claim 1-7 is realized during the computing device described program
Management method.
10. a kind of storage medium for including computer executable instructions, it is characterised in that the computer executable instructions by
For performing the file management method as described in any in claim 1-7 when computer processor is performed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710221044.0A CN106991176A (en) | 2017-04-06 | 2017-04-06 | File management method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710221044.0A CN106991176A (en) | 2017-04-06 | 2017-04-06 | File management method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106991176A true CN106991176A (en) | 2017-07-28 |
Family
ID=59416031
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710221044.0A Pending CN106991176A (en) | 2017-04-06 | 2017-04-06 | File management method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106991176A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109922142A (en) * | 2019-02-21 | 2019-06-21 | 阿里巴巴集团控股有限公司 | A kind of document down loading method, apparatus and system |
CN112965946A (en) * | 2021-03-31 | 2021-06-15 | 建信金融科技有限责任公司 | Method, device, equipment and computer readable medium for processing document |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050160096A1 (en) * | 2003-10-23 | 2005-07-21 | Microsoft Corporation | Persistent caching directory level support |
CN101145101A (en) * | 2006-09-14 | 2008-03-19 | 国际商业机器公司 | Method, device and system for customizing and executing strategy in edition control |
CN102118260A (en) * | 2009-12-30 | 2011-07-06 | 中兴通讯股份有限公司 | Method for automatically managing net element version and network system |
CN102541941A (en) * | 2010-12-31 | 2012-07-04 | 上海可鲁系统软件有限公司 | Version management control method for multiple parties to co-operate file |
CN102609448A (en) * | 2012-01-10 | 2012-07-25 | 西北工业大学 | Multi-user-version hierarchical document mapping method |
CN102882985A (en) * | 2012-10-23 | 2013-01-16 | 上海够快网络科技有限公司 | File sharing method based on cloud storage |
CN104820585A (en) * | 2014-01-30 | 2015-08-05 | 卡雷风险投资有限责任公司 | Apparatus and Method for Multi-User Editing of Computer-Generated Content |
CN105554157A (en) * | 2016-01-21 | 2016-05-04 | 广州视睿电子科技有限公司 | Data synchronizing method, device and system |
CN105915603A (en) * | 2016-04-14 | 2016-08-31 | 北京小米移动软件有限公司 | File management method and apparatus |
CN106341485A (en) * | 2016-09-27 | 2017-01-18 | 珠海市魅族科技有限公司 | Cloud storage method and device |
-
2017
- 2017-04-06 CN CN201710221044.0A patent/CN106991176A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050160096A1 (en) * | 2003-10-23 | 2005-07-21 | Microsoft Corporation | Persistent caching directory level support |
CN101145101A (en) * | 2006-09-14 | 2008-03-19 | 国际商业机器公司 | Method, device and system for customizing and executing strategy in edition control |
CN102118260A (en) * | 2009-12-30 | 2011-07-06 | 中兴通讯股份有限公司 | Method for automatically managing net element version and network system |
CN102541941A (en) * | 2010-12-31 | 2012-07-04 | 上海可鲁系统软件有限公司 | Version management control method for multiple parties to co-operate file |
CN102609448A (en) * | 2012-01-10 | 2012-07-25 | 西北工业大学 | Multi-user-version hierarchical document mapping method |
CN102882985A (en) * | 2012-10-23 | 2013-01-16 | 上海够快网络科技有限公司 | File sharing method based on cloud storage |
CN104820585A (en) * | 2014-01-30 | 2015-08-05 | 卡雷风险投资有限责任公司 | Apparatus and Method for Multi-User Editing of Computer-Generated Content |
CN105554157A (en) * | 2016-01-21 | 2016-05-04 | 广州视睿电子科技有限公司 | Data synchronizing method, device and system |
CN105915603A (en) * | 2016-04-14 | 2016-08-31 | 北京小米移动软件有限公司 | File management method and apparatus |
CN106341485A (en) * | 2016-09-27 | 2017-01-18 | 珠海市魅族科技有限公司 | Cloud storage method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109922142A (en) * | 2019-02-21 | 2019-06-21 | 阿里巴巴集团控股有限公司 | A kind of document down loading method, apparatus and system |
CN109922142B (en) * | 2019-02-21 | 2022-04-19 | 创新先进技术有限公司 | File downloading method, device and system |
CN112965946A (en) * | 2021-03-31 | 2021-06-15 | 建信金融科技有限责任公司 | Method, device, equipment and computer readable medium for processing document |
CN112965946B (en) * | 2021-03-31 | 2022-12-13 | 建信金融科技有限责任公司 | Method, device, equipment and computer readable medium for processing document |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10637953B2 (en) | Apparatus, system and method for cache management | |
US10769113B2 (en) | Attribute-based dependency identification for operation ordering | |
US20170249328A1 (en) | A Method, Cloud Synchronization Function Means and File System for Handling Files and Directories in a Cloud Storage Service | |
CN107527186B (en) | Electronic reading management method and device and terminal equipment | |
KR101673188B1 (en) | Method and apparatus for sharing contents | |
CN110413282B (en) | Redundant resource processing method, device, equipment and storage medium | |
CN111444139A (en) | File management method, device, equipment and storage medium | |
US20140282569A1 (en) | Information processing device, network system, processing execution method, and processing execution computer program product | |
WO2017107396A1 (en) | Multimedia synchronization method and system, aerial vehicle, and storage medium | |
US20200351111A1 (en) | Messaging to enforce operation serialization for consistency of a distributed data structure | |
CN114127690A (en) | Merging trees for collaboration | |
CN106991176A (en) | File management method, device, equipment and storage medium | |
JPH1021061A (en) | Automatic version-up system for client software | |
CN107590682B (en) | Advertisement putting method, server, hotspot device and system | |
CN104951860A (en) | Production schedule planning support method and production schedule planning support apparatus | |
CN106936979A (en) | The method and apparatus of destruction operation | |
JP4719732B2 (en) | Backup server, mobile device, communication system using these, and backup method | |
CN110633250A (en) | Resource management system and method | |
CN103455543B (en) | Document management server, document management method, and storage medium | |
KR101401961B1 (en) | System for sharing augmented reality contents and method thereof | |
JP6521856B2 (en) | INFORMATION PROCESSING APPARATUS, PROGRAM, AND INFORMATION PROCESSING METHOD | |
CN105847516A (en) | Method and device for managing contact person information | |
CN104468926A (en) | Method and device for controlling contact persons in mobile terminal | |
CN110753277B (en) | Method and system for configuration management in OLT network slice | |
CN111625508A (en) | Information processing method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170728 |
|
RJ01 | Rejection of invention patent application after publication |