[go: up one dir, main page]

CN109213739A - A kind of information processing method of shared file - Google Patents

A kind of information processing method of shared file Download PDF

Info

Publication number
CN109213739A
CN109213739A CN201710515793.4A CN201710515793A CN109213739A CN 109213739 A CN109213739 A CN 109213739A CN 201710515793 A CN201710515793 A CN 201710515793A CN 109213739 A CN109213739 A CN 109213739A
Authority
CN
China
Prior art keywords
file
document
duplicate
original path
characteristic value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710515793.4A
Other languages
Chinese (zh)
Inventor
苗青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Gonglian Communication Information Development Co Ltd
Original Assignee
Shanghai Gonglian Communication Information Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Gonglian Communication Information Development Co Ltd filed Critical Shanghai Gonglian Communication Information Development Co Ltd
Priority to CN201710515793.4A priority Critical patent/CN109213739A/en
Publication of CN109213739A publication Critical patent/CN109213739A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The present invention relates to a kind of information processing methods of shared file, comprising: step S1: one caching container of creation;Step S2: when receiving the open instructions for the file being used to open on other nodes, the duplicate of the document of a file is created in caching container;Step S3: calculation document copy be opened before characteristic value, and open duplicate of the document;Step S4: when duplicate of the document is closed, by the original path of Replica updating to file.Compared with prior art, the present invention is on network when the opening of shared file, it is to locally create a duplicate of the document, then this document copy is opened, rather than directly open the file on network, accordingly even when there is a node that a file is modified or checked in network, other users will not be influenced, this file is used.

Description

A kind of information processing method of shared file
Technical field
The present invention relates to a kind of data processing methods, more particularly, to a kind of information processing method of shared file.
Background technique
The development of intellectualized technology be unable to do without data volume, and the importance of data is important in intellectualized technology evolution process Property it is more and more prominent, be also increasingly recognized, data needs are stored by memory, current using wide storage Device is roughly divided into disk sort memory and integrated circuit class memory.
Under many scenes, the data in different file, which may may require that, to interconnect, such as when a file needs When multiple business personnels need to be owned by modification authority, in Windows ecology, file generally is carried out using shared file system It is shared, but there is also some significant drawbacks for shared file system, such as when a node on network is opening this document When, the node for possessing this document will be unable to modify to this file, and intelligence is opened in the form of opening read-only copy, while It can not be deleted, although the Dropbox of existing some syncsorts provides the mode of creation conflict file to evade, these are same The use of step class Dropbox has cost.
Summary of the invention
It is an object of the present invention to overcome the above-mentioned drawbacks of the prior art and provide a kind of letters of shared file Cease processing method.
The purpose of the present invention can be achieved through the following technical solutions:
A kind of information processing method of shared file, comprising:
Step S1: one caching container of creation;
Step S2: when receiving the open instructions for the file being used to open on other nodes, in the caching container Create the duplicate of the document of a file;
Step S3: the characteristic value before the duplicate of the document is opened is calculated, and opens the duplicate of the document;
Step S4: when the duplicate of the document is closed, by the Replica updating to the original path of the file.
The step S2 is specifically included:
Step S21: when receiving the open instructions for being used to open file, judging whether this document is located locally, if it has not, then Execute step S22;
Step S22: the duplicate of the document of a file is created in the caching container;
Step S23: the original path of the file is written into description file.
The step S3 is specifically included:
Step S31: calculating the characteristic value of the duplicate of the document, and is written into description file;
Step S32: the duplicate of the document is opened;
Step S33: after receiving the instruction for saving file, modification is saved into the duplicate of the document.
The step S4 is specifically included:
Step S41: when the duplicate of the document is closed, the characteristic value of current file copy is calculated, if with the file Characteristic value before copy is opened is inconsistent, thens follow the steps S42;
Step S42: the characteristic value of the file on original path is obtained;
Step S43: judge the characteristic value of the file on the original path obtained, if before being opened with the duplicate of the document Characteristic value it is consistent, if it is, S44 is thened follow the steps, if it has not, thening follow the steps S45;
Step S44: with the file on duplicate of the document covering original path;
Step S45: the duplicate of the document is moved to original path, and retains the file on original path.
The step S44 specifically: after the duplicate of the document is modified filename, be moved to original path, and retain original File on beginning path.
The step S42 specifically: calculate and obtain the characteristic value of the file on original path.
The step S42 specifically: the feature of the file on original path is obtained from the description file on original path Value.
Compared with prior art, the invention has the following advantages that
1) to when the opening of shared file, being to locally create a duplicate of the document on network, this document pair is then opened This, rather than the file on network is directly opened, accordingly even when there is a node to modify to a file in network Or check, other users will not be influenced, this file is used.
2) characteristic value file-based judges whether file occurred modification, and with this not according to renewal process is executed, can To improve the accuracy of file.
3) pass through the description file record characteristic value of file in the node of original path, it is possible to reduce compute repeatedly.
Detailed description of the invention
Fig. 1 is the key step flow diagram of the method for the present invention.
Specific embodiment
The present invention is described in detail with specific embodiment below in conjunction with the accompanying drawings.The present embodiment is with technical solution of the present invention Premised on implemented, the detailed implementation method and specific operation process are given, but protection scope of the present invention is not limited to Following embodiments.
A kind of information processing method of shared file, to when the opening of shared file, being to locally create one on network Then duplicate of the document opens this document copy, rather than directly open the file on network, accordingly even when there is a section in network Point is being modified or is being checked to a file, will not be influenced other users and be used this file.
As shown in Figure 1, comprising:
Step S1: one caching container of creation;
Step S2: it when receiving the open instructions for the file being used to open on other nodes, is created in caching container The duplicate of the document of one file, specifically includes:
Step S21: when receiving the open instructions for being used to open file, judging whether this document is located locally, if it has not, then Execute step S22;
Step S22: the duplicate of the document of a file is created in caching container;
Step S23: the original path of file is written into description file.
Step S3: calculation document copy be opened before characteristic value, and open duplicate of the document, specifically include:
Step S31: the characteristic value of calculation document copy, and be written into description file;
Step S32: duplicate of the document is opened;
Step S33: after receiving the instruction for saving file, modification is saved into duplicate of the document.
Step S4: when duplicate of the document is closed, the original path of Replica updating to file specifically includes:
Step S41: when duplicate of the document is closed, the characteristic value of current file copy is calculated, if being beaten with duplicate of the document Characteristic value before opening is inconsistent, thens follow the steps S42;
Step S42: the characteristic value of the file on original path is obtained;
Step S43: judge the characteristic value of the file on the original path obtained, if the spy before being opened with duplicate of the document Value indicative is consistent, if it is, S44 is thened follow the steps, if it has not, thening follow the steps S45;
Step S44: with the file on duplicate of the document covering original path;
Step S45: duplicate of the document is moved to original path, and retains the file on original path.
Step S44 specifically: after duplicate of the document is modified filename, be moved to original path, and retain on original path File.
Wherein, in step S42, the characteristic value of the file on original path, which can be, to be recalculated, and is also possible to It is obtained from the description file on original path.

Claims (7)

1. a kind of information processing method of shared file characterized by comprising
Step S1: one caching container of creation;
Step S2: it when receiving the open instructions for the file being used to open on other nodes, is created in the caching container The duplicate of the document of one file;
Step S3: the characteristic value before the duplicate of the document is opened is calculated, and opens the duplicate of the document;
Step S4: when the duplicate of the document is closed, by the Replica updating to the original path of the file.
2. a kind of information processing method of shared file according to claim 1, which is characterized in that the step S2 is specific Include:
Step S21: when receiving the open instructions for being used to open file, judging whether this document is located locally, if it has not, then executing Step S22;
Step S22: the duplicate of the document of a file is created in the caching container;
Step S23: the original path of the file is written into description file.
3. a kind of information processing method of shared file according to claim 2, which is characterized in that the step S3 is specific Include:
Step S31: calculating the characteristic value of the duplicate of the document, and is written into description file;
Step S32: the duplicate of the document is opened;
Step S33: after receiving the instruction for saving file, modification is saved into the duplicate of the document.
4. a kind of information processing method of shared file according to claim 1, which is characterized in that the step S4 is specific Include:
Step S41: when the duplicate of the document is closed, the characteristic value of current file copy is calculated, if with the duplicate of the document Characteristic value before being opened is inconsistent, thens follow the steps S42;
Step S42: the characteristic value of the file on original path is obtained;
Step S43: judge the characteristic value of the file on the original path obtained, if the spy before being opened with the duplicate of the document Value indicative is consistent, if it is, S44 is thened follow the steps, if it has not, thening follow the steps S45;
Step S44: with the file on duplicate of the document covering original path;
Step S45: the duplicate of the document is moved to original path, and retains the file on original path.
5. a kind of information processing method of shared file according to claim 4, which is characterized in that the step S44 tool Body are as follows: after the duplicate of the document is modified filename, be moved to original path, and retain the file on original path.
6. a kind of information processing method of shared file according to claim 4, which is characterized in that the step S42 tool Body are as follows: calculate and obtain the characteristic value of the file on original path.
7. a kind of information processing method of shared file according to claim 4, which is characterized in that the step S42 tool Body are as follows: the characteristic value of the file on original path is obtained from the description file on original path.
CN201710515793.4A 2017-06-29 2017-06-29 A kind of information processing method of shared file Pending CN109213739A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710515793.4A CN109213739A (en) 2017-06-29 2017-06-29 A kind of information processing method of shared file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710515793.4A CN109213739A (en) 2017-06-29 2017-06-29 A kind of information processing method of shared file

Publications (1)

Publication Number Publication Date
CN109213739A true CN109213739A (en) 2019-01-15

Family

ID=64976697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710515793.4A Pending CN109213739A (en) 2017-06-29 2017-06-29 A kind of information processing method of shared file

Country Status (1)

Country Link
CN (1) CN109213739A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115408358A (en) * 2022-10-31 2022-11-29 天津联想协同科技有限公司 Network disk online file management method and device, network disk and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1227644A (en) * 1996-08-02 1999-09-01 通讯软件有限公司 Method and apparatus for allowing distributed control of shared resources
CN102325169A (en) * 2011-08-22 2012-01-18 盛乐信息技术(上海)有限公司 Network file system supporting sharing and cooperation and method thereof
CN102339283A (en) * 2010-07-20 2012-02-01 中兴通讯股份有限公司 Access control method for cluster file system and cluster node
CN102419770A (en) * 2011-11-23 2012-04-18 中兴通讯股份有限公司 File sharing system, method for realizing file sharing, and file index service equipment
CN103095765A (en) * 2011-11-03 2013-05-08 陈璧超 Peer-to-peer communication network and data content distributing method thereof and communication node thereof
CN105095392A (en) * 2015-07-02 2015-11-25 北京京东尚科信息技术有限公司 A method and device for sharing data between data marts

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1227644A (en) * 1996-08-02 1999-09-01 通讯软件有限公司 Method and apparatus for allowing distributed control of shared resources
CN102339283A (en) * 2010-07-20 2012-02-01 中兴通讯股份有限公司 Access control method for cluster file system and cluster node
CN102325169A (en) * 2011-08-22 2012-01-18 盛乐信息技术(上海)有限公司 Network file system supporting sharing and cooperation and method thereof
CN103095765A (en) * 2011-11-03 2013-05-08 陈璧超 Peer-to-peer communication network and data content distributing method thereof and communication node thereof
CN102419770A (en) * 2011-11-23 2012-04-18 中兴通讯股份有限公司 File sharing system, method for realizing file sharing, and file index service equipment
CN105095392A (en) * 2015-07-02 2015-11-25 北京京东尚科信息技术有限公司 A method and device for sharing data between data marts

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115408358A (en) * 2022-10-31 2022-11-29 天津联想协同科技有限公司 Network disk online file management method and device, network disk and storage medium

Similar Documents

Publication Publication Date Title
TWI745861B (en) Data processing method, device and electronic equipment
CN111125716B (en) A method and device for detecting vulnerabilities in Ethereum smart contracts
Saha et al. Understanding the evolution of type-3 clones: an exploratory study
CN113158189B (en) Method, device, equipment and medium for generating malicious software analysis report
CN107291615A (en) A kind of WEB front-end log-output method and device
CN120196734B (en) Large model prompt engineering optimization system and method integrating domain knowledge graphs
CN113011461A (en) Software demand tracking link recovery method and electronic device based on classification enhanced through knowledge learning
CN107832448A (en) Database operation method, device and equipment
CN112231232A (en) Method, device and device for determining test data model and generating test data
CN108446398A (en) A kind of generation method and device of database
CN106802861A (en) A kind of method and apparatus for detecting RAM leakage
CN118094561A (en) Code vulnerability detection method based on code attribute graph learning
CN102193858B (en) Test case set generation method
CN109726821A (en) Data equalization method, apparatus, computer-readable storage medium and electronic device
EP2107484A2 (en) A method and device for code audit
CN108733567A (en) The monitoring method and system of software resource leak case
CN108287788A (en) A kind of use-case step matching method based on test case, system
CN111026764A (en) Data storage method and device, electronic product and storage medium
CN109213739A (en) A kind of information processing method of shared file
CN104243243A (en) Method for generating protocol testing sequence
CN104933077A (en) Rule-Based Multi-File Information Analysis Method
CN108985103A (en) Information security method of discrimination, system and relevant apparatus based on rough set theory
CN118626660A (en) Knowledge editing method, device, medium and electronic device based on knowledge graph
CN110688368B (en) Component behavior model mining method and device
CN108920939B (en) Information safety discrimination method, system and related device based on learning diagnostor

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190115