CN107291796A - File management method and device - Google Patents

File management method and device Download PDF

Info

Publication number
CN107291796A
CN107291796A CN201710312319.1A CN201710312319A CN107291796A CN 107291796 A CN107291796 A CN 107291796A CN 201710312319 A CN201710312319 A CN 201710312319A CN 107291796 A CN107291796 A CN 107291796A
Authority
CN
China
Prior art keywords
file
identifier
raw filename
client
filename
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
CN201710312319.1A
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201710312319.1A priority Critical patent/CN107291796A/en
Priority to PCT/CN2017/088978 priority patent/WO2018201583A1/en
Publication of CN107291796A publication Critical patent/CN107291796A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Bioethics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Library & Information Science (AREA)
  • Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention is applied to technical field of data administration there is provided a kind of file management method and device, and this method includes:Raw filename of the file uploaded according to client when uploading, generates corresponding file identifier;Default storage catalogue is stored in by file RNTO file identifier, and by file;Mapping relations between the file identifier, raw filename and storage catalogue of file are stored to database;When receiving the instruction of the file polling based on keyword that client is sent, the raw filename with keyword association is searched in database, and search the file identifier and storage catalogue for possessing mapping relations with the raw filename;Based on the file identifier and storage catalogue in lookup result, searched under the storage catalogue with the file of this document identifier name, and the file found and its corresponding raw filename are back to client as Query Result.The present invention improves the confidentiality of file, reduces the risk of divulging a secret of file.

Description

File management method and device
Technical field
The invention belongs to technical field of data administration, more particularly to a kind of file management method and device.
Background technology
In routine duties, people need to handle various document files.With the development of Information technology, in enterprise The file in portion is general to be existed all in the form of electronic document.For each large enterprises, these electronic documents are probably commercial conjunction Same, minutes, product manual, customer data, design documentation, popularization official documents and correspondence, rival's data, project document, the experience heart It must wait.Huge due to number of electronic documents, each large enterprises introduce corresponding file management system, so that enterprise staff energy File management system is enough utilized, conveniently and efficiently these electronic documents are managed and stored.
However, for the higher enterprise of confidentiality requirement, such as financial company, its internal most of file is all concerning security matters , with high file security requirement.If criminal want from the backstage steal files of file management system when, can Directly according to the filename of each file, quickly to confirm which file has higher use value from heap file, So as to steal rapidly.Therefore, existing fileinfo privacy degrees are relatively low, and the risk of divulging a secret of file is larger.
The content of the invention
In view of this, the embodiments of the invention provide a kind of file management method and device, to solve existing file management In system, fileinfo privacy degrees are relatively low, the problem of risk of divulging a secret of file is larger.
The first aspect of the embodiment of the present invention provides a kind of file management method, including:
Raw filename of the file uploaded according to client when uploading, generates the corresponding file of the raw filename Identifier;
By file identifier described in the file RNTO, and the file is stored in default storage catalogue;
Mapping between the file identifier, the raw filename and the storage catalogue of the file is closed System is stored to database;
When receiving the instruction of the file polling based on keyword that client is sent, search in the database and institute The raw filename of keyword association is stated, and lookup possesses the file identifier of the mapping relations with the raw filename and deposited Store up catalogue;
Based on the file identifier and storage catalogue in lookup result, searched under the storage catalogue with this document identifier The file of name, and the file found and its corresponding raw filename are back to client as Query Result.
The second aspect of the embodiment of the present invention provides a kind of document management apparatus, including:
Generation unit, for the raw filename of the file that is uploaded according to client when uploading, generates the original text The corresponding file identifier of part name;
Renaming unit, for by file identifier described in the file RNTO, and the file is stored in pre- If storage catalogue;
Memory cell, for by the file identifier of the file, the raw filename and the storage mesh Mapping relations between record are stored to database;
Query unit, for when receiving the instruction of the file polling based on keyword that client is sent, in the number According to the raw filename searched in storehouse with the keyword association, and lookup possesses the mapping relations with the raw filename File identifier and storage catalogue;
Returning unit, for based on the file identifier and storage catalogue in lookup result, being searched under the storage catalogue With the file of this document identifier name, and the file found and its corresponding raw filename are returned as Query Result To client.
In the embodiment of the present invention, by by file RNTO file identifier corresponding with raw filename, and by text Mapping relations between file identifier, raw filename and the storage catalogue of part are stored to database, it is ensured that illegal point Son want from backstage steal files when, intuitively can not also recognize from filename corresponding between each file and exploration project Relation, it is difficult to quickly confirm which file has higher use value from heap file, therefore, reduce file quilt The possibility stolen rapidly, improves the confidentiality of fileinfo to a certain extent.And receiving the text that client is sent During part query statement, by obtaining the raw filename related to file polling instruction in database, it is ensured that server energy It is enough to return to the file needed for client and its corresponding raw filename so that the system is divulged a secret the same of degree in reduction file When, it can avoid because server influences the problem of user normally uses to occur the renaming of file.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In required for the accompanying drawing that uses be briefly described, it should be apparent that, drawings in the following description are only some of the present invention Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.
Fig. 1 is the system construction drawing of file management method provided in an embodiment of the present invention;
Fig. 2 is the implementation process figure of file management method provided in an embodiment of the present invention;
Fig. 3 is that file management method S205 provided in an embodiment of the present invention implements flow chart;
Fig. 4 is that file management method S301 provided in an embodiment of the present invention implements flow chart;
Fig. 5 is the exemplary plot of ff the results list provided in an embodiment of the present invention;
Fig. 6 is that the file management method S205 that another embodiment of the present invention is provided implements flow chart;
Fig. 7 is the implementation process figure for the file management method that further embodiment of this invention is provided;
Fig. 8 is the structured flowchart of document management apparatus provided in an embodiment of the present invention.
Embodiment
In describing below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc Body details, thoroughly to understand the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details hinders description of the invention.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Fig. 1 shows the system architecture diagram that file management method provided in an embodiment of the present invention is applicable, for the ease of saying It is bright, it illustrate only part related to the present embodiment.
Reference picture 1, the system is made up of server 11, database 12 and multiple client 13.Wherein, server 11 is used for Each file is stored, and the filename and storage catalogue of file are managed.Specifically, server 11 is stored according to it File raw filename, will with correspondence raw filename unique file identification number carry out renaming this document, it is ensured that each Being not present under storage catalogue has the file comprising raw filename.Server 11 is additionally operable to before and after each file for being stored Filename and storage catalogue are stored to database 12, with need to file carry out storage catalogue positioning when, request data Storehouse 12 returns to Query Result.Meanwhile, server 11 is additionally operable to provide under file storage, file polling and file for client 13 Service is carried, to enable client 13 to be selected according to response results and browse the file being stored in server 11.
Within the system, client 13 can be application client or webpage client, and operate in including individual People's computer, tablet personal computer or mobile phone etc. are provided on the terminal device of network access facility, and above-mentioned terminal device is used for for visitor Family end 13 provides running environment, and ensures the communication between client 13 and server 11.Each client 13 can serve as The upload client of one or more file, while can also be presented a paper inquiry to server 11 as requesting client Needed for request, and the Query Result returned according to server 11, the list of file names and displaying user needed for displaying user The specific file content of one or more file.
Fig. 2 shows the implementation process of file management method provided in an embodiment of the present invention, and details are as follows:
S201:Raw filename of the file uploaded according to client when uploading, generates the raw filename correspondence File identifier.
When file is preserved first, user can be file designation.According to the Naming conventions of file, the filename of these files Contain the character string that file content and file correspondence project are described, including English, Chinese, symbol or numeral. In configuration filename, file name is raw filename.File on local terminal is carried out with its raw filename Mark.
Client in terminal device has provided the user types of functionality control, including all kinds of selection buttons and confirmation are pressed Key.
As the implementation example of the present invention, need to carry out its local file centrally stored or need logical in user When crossing server and sharing local file to other users, the file that will click in client uploads button, so that in ejection In local file selected window, the directory search that is locally stored of the file uploaded as needed goes out after this document, chooses this document And click on confirmation button or upload button, so that client uploads onto the server this document.
Implement example as another of the present invention, user is selected from multiple project templets that client is provided After a project templet needed for body, specific file content is inputted in the template file of ejection.Inputted in file content Bi Shi, user is keyed in filename input frame after customized filename, the save button in terminal interface is clicked on, so that objective Family end uploads onto the server this document.Also, in local terminal, this document is not stored.
Based on above two implementation, server receives the file of client upload, and the file of this document is entitled User-defined filename, i.e., the above-mentioned character string that file content or file correspondence project are described.When current Carve, the filename of each file is above-mentioned raw filename.
In the embodiment of the present invention, the raw filename for each file that server reading client is uploaded, and utilize The major key generating algorithm that javaJDK is provided is respectively processed to the raw filename of each file, to generate the overall situation respectively Unique file identifier, i.e. each file identifier of generation is different, uniquely exists in the server.
In the embodiment of the present invention, file identifier is constituted with the digital form of a sixteen bit.
For example, when receiving N number of file of client upload, server will read out N number of raw filename.For it In each raw filename, server will pass through above-mentioned major key generating algorithm and export a corresponding file identifier.Cause This, for N number of file, will export N number of file identifier.
S202:Default storage mesh is stored in by file identifier described in the file RNTO, and by the file Record.
Generate each raw filename to distinguish after a corresponding file identifier, filename of the server to each file It is modified, raw filename is changed to the file identifier corresponding to each raw filename.
If for example, the original document of a file is entitled " insurance system exploration project ", server is generated and " insurance system The corresponding file identifier of exploration project " is " 1234567891234567 ", then the file of this document after renaming is entitled “1234567891234567”。
Processing is identified to each raw filename of file in server, to determine the corresponding project of each raw filename Type.Server is according to the corresponding item types of each raw filename, into the storage catalogue matched with item types, and by text Part is stored under the storage catalogue.
S203:By between the file identifier, the raw filename and the storage catalogue of the file Mapping relations are stored to database.
Server passes the mapping relations between the file identifier, raw filename and storage catalogue of each file Transport to long-range database.
Database stored in the file information data table pre-established every described file identifier of record, Raw filename and storage catalogue.Specifically, this document information data table includes file identifier field, raw filename Field and storage catalogue field.When database receives the file identifier, raw filename and storage of each file During mapping relations between catalogue, a new record will be generated in this document information data table, and there will be mapping relations File identifier, raw filename and storage catalogue as this record correspond to file identifier field, original document The property value of file-name field and storage catalogue field.
Preferably, if the file that the client that server is received is uploaded is uploaded by user by default project templet File, then server will identify that the template type corresponding to file, and by the corresponding template type of each file with should File identifier, raw filename and storage catalogue corresponding to file are stored into database in the lump.Now, database Also include template type field in file information data table, to store and file identifier, raw filename and storage mesh Record corresponding template type.
After the mapping relations based on some file that server is sent are stored to database, returned receiving database Storage when completing prompt message, server will delete this mapping relations that are locally stored.Therefore, server is being read During the file identifier of its this file stored, it is impossible to from the raw filename for locally knowing this document.
S204:When receiving the instruction of the file polling based on keyword that client is sent, look into the database The raw filename with the keyword association is looked for, and searches the file identification for possessing the mapping relations with the raw filename Symbol and storage catalogue.
When user wants to search the file that server is stored by client, in the file polling frame of terminal interface Middle input keyword, now, server will receive the instruction of the file polling based on keyword that client is sent, and according to this File polling is instructed, and the filename inquiry request for carrying keyword is sent to database.
On the one hand, database is found out comprising the keyword under the original document file-name field of file information data table Each raw filename.On the other hand, database is found out comprising the pass under the template type field of file information data table After each template type of key word, according to template type and the corresponding relation of raw filename, determine comprising the keyword Raw filename corresponding to each template type.
Each record is back to server by the record according to corresponding to each raw filename found out, database, So that server is determined and these raw filenames difference corresponding file identifier, storage catalogue and template type.
S205:Based on the file identifier and storage catalogue in lookup result, searched under the storage catalogue with this document The file of identifier name, and the file found and its corresponding raw filename are back to client as Query Result End.
Based on each record received, according to file identifier, raw filename and storage catalogue in the record Mapping relations, after a file of the entitled this document identifier of server locating file in the storage catalogue, by this document And the raw filename of this document is back to client.
In the client that terminal interface is run, with raw filename displaying receive each file, therefore, for , still can be in the client according to raw filename and keyword come locating file, and in ff result for family Each file named with raw filename is seen in list.
In the embodiment of the present invention, by by file RNTO file identifier corresponding with raw filename, and by text Mapping relations between file identifier, raw filename and the storage catalogue of part are stored to database, it is ensured that illegal point Son want from backstage steal files when, intuitively can not also recognize from filename corresponding between each file and exploration project Relation, it is difficult to quickly confirm which file has higher use value from heap file, therefore, reduce file quilt The possibility stolen rapidly, improves the confidentiality of fileinfo to a certain extent.And receiving the text that client is sent During part query statement, by obtaining the raw filename related to file polling instruction in database, it is ensured that server energy It is enough to return to the file needed for client and its corresponding raw filename so that the system is divulged a secret the same of degree in reduction file When, it can avoid because server influences the problem of user normally uses to occur the renaming of file.
Stored by the mapping relations between the file identifier, raw filename and storage catalogue by file to data In the same tables of data in storehouse, in user search file, system can quickly be determined and keyword association from database Each filename, and the corresponding storage catalogue of each filename is capable of determining that, therefore, system can be directly read under storage catalogue File after be back to client, and each file directory need not be searched one by one, also need not will be under each file directory of contrast matching Document retrieval result could be returned after each filename.To sum up, in the case where file stored number is excessive, the embodiment of the present invention Improve the recall precision of file.
As one embodiment of the present of invention, as shown in figure 3, above-mentioned S205 is specifically included:
S301:According to default rule of classification, each file found out is grouped, one or more files are obtained Group.
Respectively under the indicated storage catalogue of each record that database is returned, search corresponding with the storage catalogue The file of file identifier name.When server receives the M bars record of database return, represent that server storage there are M With the file of keyword association.Server is found out after the M file with keyword association respectively from each storage catalogue, right M file carries out packet transaction.
The rule of packet for example can be, by first phonetic alphabet or first each raw filename of English alphabet identical Each corresponding file is used as a file group;Each file that storage catalogue belongs to same secondary storage catalogue is made For file group etc..
Preferably, to each file group obtained after the completion of first packet, server repeats packet transaction, will File group with same characteristic features is divided into a second layer file group, until each file group marked off does not have mutually During standby same characteristic features, stop performing packet transaction, and export each root group for including one or more levels.
For example, when server determines that file A and file B belong to file group 1, file C and file D belong to file group 2, File E belongs to file group 3 and when file F belongs to file group 4, if file other 1 and file group 2 are code file group Not, then packet transaction is carried out again to four obtained file groups, determines that file group 1 and file group 2 belong to first Big group of file, determines that file group 3 and file group 4 still belong to file group 3 and file group 4.In this example, first Big group 4 of big group of file, file group 3 and file are above-mentioned group.
As one embodiment of the present of invention, as shown in figure 4, above-mentioned S301 is specifically included:
S401:Obtain each file and distinguish corresponding template type, the template type corresponding to each file with The client uploads used project templet correspondence during this document.
The each record returned due to database in carry template type, therefore, whois lookup goes out above-mentioned M After file, a corresponding record is distinguished according to M file, the corresponding template type of each file is determined.
If project templet is not used in client during transmitting file, the record corresponding to this document returned in database In, template type is null value.
S402:Each file found out is grouped, multiple file groups are obtained, wherein, each file group Each file of the identical template type Bao Han not carried.
By template type identical, each file is divided in identical file group server.If for example, whois lookup The file gone out includes file A, file B, file C and file D, the corresponding template type of each file be respectively " monthly appraisal ", " monthly appraisal ", " new product protects scheme again " and null value, then server file A and file B are divided into a file group Not, file C is second file group, and file D is the 3rd file group.
The step realization principle that the embodiment of the present invention is not mentioned and the step realization principle phase in other embodiments of the invention Together, therefore do not repeat one by one.
S302:The each file group of generation distinguishes corresponding virtual folder.
In the embodiment of the present invention, server is that each file group generates a virtual folder, the virtual folder Folder name including unique identification.Wherein, if file group includes the multilayer file group after above-mentioned multiple division operation, often One layer of file group similarly generates a corresponding virtual sub-folders.
When the rule of classification of file group is is grouped according to template type, the virtual text corresponding to each file group The folder name of part folder is the template type.
Each layer virtual folder of the server by each file in each file group and corresponding to this document group Bound.
S303:The virtual folder, the file found and its corresponding raw filename are returned as Query Result Client is back to, so that the client shows each virtual folder respectively, and under each virtual folder Single cent part group each file named with raw filename is shown respectively.
Each file in the above-mentioned M file found out for server, the note that server is returned from database The raw filename of this document is determined in record, and by this document, the raw filename of this document and the corresponding each layer of this document Virtual folder is back to client.
Client generates each virtual folder in ff the results list.If the virtual file that server is returned Virtual sub-folders are included in folder, then the hierarchical relationship of the client virtual sub-folders successively, shown in virtual folder Corresponding virtual sub-folders.
As the implementation example of the present invention, Fig. 5 shows ff the results list that client is shown. In the figure, every layer of virtual folder is represented with a folder icon, and the entitled server generation of virtual folder should The title produced simultaneously during virtual folder.
In the embodiment of the present invention, each file found out is grouped, and generation is each grouped corresponding virtual text Part is pressed from both sides so that client can show each file of user's inquiry in the virtual folder that server is returned.In client In the virtual folder shown, user can check the file represented with raw filename, but the file seen due to it It is virtual subsistence, therefore user itself can not also know the actual storage catalogue of file in the server, improve file Security and confidentiality.And for the criminal from server background steal files, because it does not know document identification number With the corresponding relation of raw filename, and each raw filename can not be also checked in the virtual folder of client, therefore only The file named with document identification number can be stolen, therefore in the secrecy for also improving the file that server is stored to a certain degree Property.
As an alternative embodiment of the invention, as shown in fig. 6, above-mentioned S205 includes S601 to S603, it is specific as follows:
S601:Obtain in the Query Result, the corresponding flag bit of each raw filename.
In the embodiment of the present invention, file information data table is except original document file-name field, file identifier field, storage mesh Record outside field and template type field, in addition to flag bit field.The corresponding property value of the flag bit field can be first Mark or the second mark.Under default conditions, the corresponding property value of flag bit field is the second mark.
If user have chosen a certain file by client and perform deletion action in certain file handling procedure, Then client sends the file deletion requests comprising raw filename to server.Server sends storage catalogue to database Inquiry request, the storage catalogue inquiry request includes the raw filename and file deletes mark.Returned according to database Query Result, server obtains the corresponding storage catalogue of the raw filename, so as to find out this document in the storage catalogue Afterwards, file is performed to remove.
In above process, the storage mesh for including the raw filename and file deletion mark is received in database When recording inquiry request, the flag bit corresponding to the raw filename is set to the first mark in tables of data.
When server receives the instruction of the file polling based on keyword that client is sent, data base querying goes out with being somebody's turn to do Each raw filename of keyword association, and each raw filename and its corresponding each field attribute value are back to service Device.Wherein, each field attribute value includes the corresponding flag bit field property value of raw filename.
S602:If the flag bit is the first mark, the raw filename and first mark are back to The client, so that the virtual file icon that client displaying is named with the raw filename, and make the client Hold with virtual file icon described in the color indicia of correspondence first mark.
When the flag bit corresponding to server identifies its raw filename received is the first mark, will determine should File corresponding to raw filename has been deleted, and the raw filename and its flag bit are returned directly into client.
When client receives the file polling object information comprising the first mark and comprising raw filename, in file The virtual file icon named with the raw filename is generated in Query Result list, and the color of the virtual file icon is the The corresponding color of one mark.
S603:If the flag bit is the second mark, based on the file identifier and storage catalogue in lookup result, Searched under the storage catalogue with the file of this document identifier name, and by the file found and its corresponding raw filename Client is back to as Query Result.
When the flag bit corresponding to server identifies its raw filename received is the second mark, will determine should File corresponding to raw filename is stored under its corresponding storage catalogue, so that with the lookup principle in above-described embodiment Find after the corresponding file of the raw filename, and this document and its corresponding raw filename are back to client, with The file for making the client displaying be named with raw filename.
In the embodiment of the present invention, the flag bit corresponding to raw filename that server is returned by identification database, When flag bit is the first mark, server can be avoided to reality non-existent file is searched under storage catalogue, improved The treatment effeciency of server.By the way that the raw filename of the mark of correspondence first will be sent to client so that client can be with With the color indicia virtual file icon of the first tag match, remind user's this document can not check and download, while energy Enough system for prompting keepers confirm whether this document is deleted by abnormal and whether needed to upload this document, therefore, this hair again The file management method that bright embodiment is provided improves the reliability of document storage.
As another embodiment of the present invention, as shown in fig. 7, after above-mentioned S205, shown file management method is also wrapped Include:
S206:When receiving file synchronization instruction, by the file synchronization in the server to backup server.
In the embodiment of the present invention, when receiving the file synchronization information that external equipment is issued, server is then received Above-mentioned file synchronization instruction.Wherein, the external equipment and server are connected by network, and server passes through with backup server Network is connected.In addition to above-mentioned file synchronization command reception mode, the instruction of file synchronization received by server also can be by Client is sent.
When receiving file synchronization instruction, each file that server is stored is transmitted to backup server successively In, to store identical each file in backup server, and storage catalogue of each file in backup server with it is each The storage catalogue of individual file in the server is identical, and the filename of each file is also file identifier in backup server.
S207:The Resources list that the backup server is sent is obtained, described the Resources list includes the text of synchronous documents Part identifier.
After server detects last file end of transmission of its storage, resource row are sent to backup server Table read requests, to receive the Resources list from backup server.Wherein, the Resources list includes having stored in backup server All Files file identifier.
Server is received after the Resources list, and sending file identifier to database obtains request, with the acquisition request clothes Each file identifier being engaged in the tables of data corresponding to device.Hereafter, the file identifier that server is received according to it, according to File identifier puts in order, and reads out first file identifier, and by this document identifier respectively with the Resources list All Files identifier be compared, with determine in the Resources list whether there is identical this document identifier.
S208:If the file identifier of any file is not present in described the Resources list in the database, delay Deposit this document identifier.
The file identifier read for server in a contrast operation, if server travels through the Resources list In each file identifier after, in the Resources list still be not present this file identifier, it is determined that be backup server in In the absence of the corresponding file of this document identifier, i.e. this document synchronization failure.Now, after server buffer this document identifier, Next file identifier is read in the data returned again from data place, is arranged this document identifier with resource respectively with performing All Files identifier in table is compared.Loop iteration, until server each file accessed from tables of data Identifier is more complete.
S209:Each file identifier that caching is obtained from the database distinguishes corresponding storage catalogue, and Searched respectively in each storage catalogue got after the file named with each file identifier, it is again that each file found is same Walk to the backup database.
Server each file identifier accessed from tables of data with each files-designated in the Resources list After knowledge symbol is more complete, server sends storage catalogue to database and obtains request, and server buffer is carried in the request All Files identifier, so as to data base querying and return to these file identifiers and distinguish each corresponding storage catalogue.
Server finds out each corresponding text from each file identifier of caching institute respectively corresponding storage catalogue After part, again by these file synchronizations to backup server.And execution S207 is returned, until in the Resources list of backup server During comprising each file identifier in the tables of data corresponding to database of server, stop synchronous.
In the embodiment of the present invention, backup services whether there is by each file identifier for judging to be stored in database In the Resources list of device, it may be determined that go out during file backup or migration, there is backup, migrates asking for failure in which file Topic, reduces investigation difficulty of the keeper to loss file;Pass through the non-existent file identification of institute in isochronous resources list again The corresponding file of symbol, it is ensured that each file can be correctly completed synchronization.
It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence, each process in above-described embodiment Execution sequence should determine that the implementation process without tackling the embodiment of the present invention constitutes any limit with its function and internal logic It is fixed.
Corresponding to the file management method described in foregoing embodiments, Fig. 8 shows file pipe provided in an embodiment of the present invention The structured flowchart of device is managed, for convenience of description, the part related to the embodiment of the present invention is illustrate only.
Reference picture 8, this document managing device 81 includes:
Generation unit 811, for the raw filename of the file that is uploaded according to client when uploading, is generated described original The corresponding file identifier of filename.
Renaming unit 812, for by file identifier described in the file RNTO, and the file is stored in Default storage catalogue.
Memory cell 813, for by the file identifier, the raw filename and the storage of the file Mapping relations between catalogue are stored to database.
Query unit 814, for when receiving the instruction of the file polling based on keyword that client is sent, described The raw filename with the keyword association is searched in database, and lookup possesses the mapping relations with the raw filename File identifier and storage catalogue.
Returning unit 815, for based on the file identifier and storage catalogue in lookup result, being looked under the storage catalogue Look for the file of this document identifier name, and the file found and its corresponding raw filename are returned as Query Result It is back to client.
Alternatively, the returning unit 815 includes:
Subelement is grouped, for according to default rule of classification, being grouped to each file found out, obtaining one Or multiple file groups.
Subelement is generated, corresponding virtual folder is distinguished for generating each file group.
Return subelement, for using the virtual folder, the file found and its corresponding raw filename as Query Result is back to client, so that the client shows each virtual folder respectively, and in each void Intend showing each file named with raw filename respectively to single cent part group under file.
Alternatively, it is described packet subelement specifically for:
Obtain each file and distinguish corresponding template type, the template type corresponding to each file and the visitor Family end uploads used project templet correspondence during this document;
Each file found out is grouped, multiple file groups are obtained, wherein, each file group is included Carry each file of the identical template type.
Alternatively, the memory cell 813 specifically for:
Mapping between the file identifier, the raw filename and the storage catalogue of the file is closed System is stored in the file information data table pre-established to data place;
The query unit 814 specifically for:
When receiving the instruction of the file polling based on keyword that client is sent, in the file information data table The raw filename with the keyword association is searched, and searches the files-designated for possessing the mapping relations with the raw filename Know symbol and storage catalogue.
Alternatively, this document managing device 81 also includes:
Synchronization unit, for when receiving file synchronization instruction, by the file synchronization in the server to standby Part server.
Acquiring unit, for obtaining the Resources list that the backup server is sent, described the Resources list includes synchronous The file identifier of file.
Buffer unit, if the file identifier for any file in the database is not present in the resource row Table, then cache this document identifier.
Second synchronization unit, each file identifier institute for obtaining caching from the database corresponding respectively deposits Catalogue is stored up, and is searched respectively in each storage catalogue got after the file named with each file identifier, will be searched again Each file synchronization arrived is to the backup database.
It is apparent to those skilled in the art that, for convenience of description and succinctly, only with above-mentioned each work( Energy unit, the division progress of module are for example, in practical application, as needed can distribute above-mentioned functions by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completion The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used To be that unit is individually physically present, can also two or more units it is integrated in a unit, it is above-mentioned integrated Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.In addition, each function list Member, the specific name of module are also only to facilitate mutually differentiation, is not limited to the protection domain of the application.Said system The specific work process of middle unit, module, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed apparatus and method, others can be passed through Mode is realized.For example, system embodiment described above is only schematical, for example, the division of the module or unit, It is only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can be with With reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or discussed Coupling each other or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING of device or unit or Communication connection, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used When, it can be stored in a computer read/write memory medium.Understood based on such, the technical scheme of the embodiment of the present invention The part substantially contributed in other words to prior art or all or part of the technical scheme can be with software products Form embody, the computer software product is stored in a storage medium, including some instructions are to cause one Computer equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform this hair The all or part of step of each embodiment methods described of bright embodiment.And foregoing storage medium includes:USB flash disk, mobile hard disk, Read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic Dish or CD etc. are various can be with the medium of store program codes.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to foregoing reality Example is applied the present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each Technical scheme described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed Or replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme, all should Within protection scope of the present invention.

Claims (10)

1. a kind of file management method, it is characterised in that including:
Raw filename of the file uploaded according to client when uploading, generates the corresponding file identification of the raw filename Symbol;
By file identifier described in the file RNTO, and the file is stored in default storage catalogue;
Mapping relations between the file identifier, the raw filename and the storage catalogue of the file are deposited Store up to database;
When receiving the instruction of the file polling based on keyword that client is sent, search closed with described in the database The raw filename of key word association, and search the file identifier for possessing the mapping relations with the raw filename and storage mesh Record;
Based on the file identifier and storage catalogue in lookup result, searched under the storage catalogue with this document identifier name File, and the file found and its corresponding raw filename are back to client as Query Result.
2. file management method as claimed in claim 1, it is characterised in that described by the file found and its corresponding original Beginning filename is back to client as Query Result, including:
According to default rule of classification, each file found out is grouped, one or more file groups are obtained;
The each file group of generation distinguishes corresponding virtual folder;
The virtual folder, the file found and its corresponding raw filename are back to client as Query Result End, so that the client shows each virtual folder, and the single cent part group under each virtual folder respectively Each file named with raw filename is not shown respectively.
3. file management method as claimed in claim 2, it is characterised in that described according to default rule of classification, to searching Each file gone out is grouped, and obtains one or more file groups, including:
Obtain each file and distinguish corresponding template type, the template type corresponding to each file and the client Upload used project templet correspondence during this document;
Each file found out is grouped, multiple file groups are obtained, wherein, each file group includes carrying There is each file of the identical template type.
4. file management method as claimed in claim 1, it is characterised in that the file identification by the file Mapping relations between symbol, the raw filename and the storage catalogue are stored to database, including:
Mapping relations between the file identifier, the raw filename and the storage catalogue of the file are deposited Store up in the file information data table pre-established to data place;
It is described when receiving the instruction of the file polling based on keyword that client sends, search in the database and institute The raw filename of keyword association is stated, and lookup possesses the file identifier of the mapping relations with the raw filename and deposited Catalogue is stored up, including:
When receiving the instruction of the file polling based on keyword that client is sent, searched in the file information data table With the raw filename of the keyword association, and search and possess the file identifiers of the mapping relations with the raw filename And storage catalogue.
5. the file management method as described in any one of Claims 1-4, it is characterised in that also include:
When receiving file synchronization instruction, by the file synchronization in the server to backup server;
The Resources list that the backup server is sent is obtained, described the Resources list includes the file identifier of synchronous documents;
If the file identifier of any file is not present in described the Resources list in the database, this document mark is cached Know symbol;
Each file identifier that caching is obtained from the database distinguishes corresponding storage catalogue, and each what is got Searched respectively in storage catalogue after the file named with each file identifier, again by each file synchronization found to described standby Part database.
6. a kind of document management apparatus, it is characterised in that including:
Generation unit, for the raw filename of the file that is uploaded according to client when uploading, generates the raw filename Corresponding file identifier;
Renaming unit, for by file identifier described in the file RNTO, and the file is stored in default Storage catalogue;
Memory cell, for by the file identifier, the raw filename and the storage catalogue of the file it Between mapping relations store to database;
Query unit, for when receiving the instruction of the file polling based on keyword that client is sent, in the database Middle lookup and the raw filename of the keyword association, and search the file for possessing the mapping relations with the raw filename Identifier and storage catalogue;
Returning unit, for based on the file identifier and storage catalogue in lookup result, being searched under the storage catalogue with this The file of file identifier name, and the file found and its corresponding raw filename are back to visitor as Query Result Family end.
7. document management apparatus as claimed in claim 6, it is characterised in that the returning unit includes:
Subelement is grouped, for according to default rule of classification, being grouped to each file found out, one is obtained or many Individual file group;
Subelement is generated, corresponding virtual folder is distinguished for generating each file group;
Subelement is returned to, for regarding the virtual folder, the file found and its corresponding raw filename as inquiry As a result client is back to, so that the client shows each virtual folder respectively, and in each virtual text The lower single cent part group of part folder each file named with raw filename is shown respectively.
8. document management apparatus as claimed in claim 7, it is characterised in that the packet subelement specifically for:
Obtain each file and distinguish corresponding template type, the template type corresponding to each file and the client Upload used project templet correspondence during this document;
Each file found out is grouped, multiple file groups are obtained, wherein, each file group includes carrying There is each file of the identical template type.
9. document management apparatus as claimed in claim 6, it is characterised in that the memory cell specifically for:
Mapping relations between the file identifier, the raw filename and the storage catalogue of the file are deposited Store up in the file information data table pre-established to data place;
The query unit specifically for:
When receiving the instruction of the file polling based on keyword that client is sent, searched in the file information data table With the raw filename of the keyword association, and search and possess the file identifiers of the mapping relations with the raw filename And storage catalogue.
10. the document management apparatus as described in any one of claim 6 to 9, it is characterised in that also include:
Synchronization unit, for when receiving file synchronization instruction, by the file synchronization in the server to backing up clothes Business device;
Acquiring unit, for obtaining the Resources list that the backup server is sent, described the Resources list includes synchronous documents File identifier;
Buffer unit, if the file identifier for any file in the database is not present in described the Resources list, Then cache this document identifier;
Second synchronization unit, corresponding storage mesh is distinguished for obtaining each file identifier of caching from the database Record, and searching respectively in each storage catalogue got after the file named with each file identifier, will find again Each file synchronization is to the backup database.
CN201710312319.1A 2017-05-05 2017-05-05 File management method and device Pending CN107291796A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710312319.1A CN107291796A (en) 2017-05-05 2017-05-05 File management method and device
PCT/CN2017/088978 WO2018201583A1 (en) 2017-05-05 2017-06-19 File management method and system, electronic device, and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710312319.1A CN107291796A (en) 2017-05-05 2017-05-05 File management method and device

Publications (1)

Publication Number Publication Date
CN107291796A true CN107291796A (en) 2017-10-24

Family

ID=60094651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710312319.1A Pending CN107291796A (en) 2017-05-05 2017-05-05 File management method and device

Country Status (2)

Country Link
CN (1) CN107291796A (en)
WO (1) WO2018201583A1 (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108289126A (en) * 2018-01-28 2018-07-17 丁超 Method, apparatus for uploading or downloading file and computer storage media
CN108614882A (en) * 2018-04-28 2018-10-02 深圳市市政设计研究院有限公司 A kind of file management method and system based on server
CN108647256A (en) * 2018-04-23 2018-10-12 平安科技(深圳)有限公司 File synchronisation method, device, computer installation and storage medium
CN108763308A (en) * 2018-04-24 2018-11-06 北京首都机场动力能源有限公司 A kind of supply station data check management method and system
CN109033442A (en) * 2018-08-16 2018-12-18 郑州云海信息技术有限公司 A kind of general file management method
CN109087690A (en) * 2018-08-16 2018-12-25 郑州云海信息技术有限公司 A kind of processing system of the medical data based on cloud computing
CN109102228A (en) * 2018-08-16 2018-12-28 郑州云海信息技术有限公司 A kind of Freight Transport information management system based on cloud computing
CN109189610A (en) * 2018-08-16 2019-01-11 郑州云海信息技术有限公司 The processing method of monitoring server data under a kind of linux
CN109241003A (en) * 2018-09-20 2019-01-18 广东电网有限责任公司 File management method and device
CN109240997A (en) * 2018-08-24 2019-01-18 华强方特(深圳)电影有限公司 A kind of upload store method, system and the client of file
CN109783455A (en) * 2018-12-20 2019-05-21 昂纳信息技术(深圳)有限公司 A kind of management method based on large-scale data, system and storage device
CN109918471A (en) * 2019-01-28 2019-06-21 平安科技(深圳)有限公司 Archive method, apparatus, computer equipment and storage medium
CN110059105A (en) * 2019-04-26 2019-07-26 北京贝斯平云科技有限公司 A kind of data processing method, device, computer equipment and storage medium
CN111045997A (en) * 2019-12-05 2020-04-21 浩云科技股份有限公司 Centralized storage data deleting method and device
CN111078140A (en) * 2019-11-20 2020-04-28 岭澳核电有限公司 Nuclear power station file uploading management method and device, terminal equipment and medium
CN111386711A (en) * 2017-11-24 2020-07-07 梦想四有限公司 Method, device and system for managing electronic fingerprints of electronic files
CN111915424A (en) * 2020-07-30 2020-11-10 平安证券股份有限公司 Information storage method and related product
CN112966133A (en) * 2021-03-25 2021-06-15 深圳康佳电子科技有限公司 Data storage processing method, server and computer readable storage medium
CN113626487A (en) * 2021-07-28 2021-11-09 广州市挖米科技有限责任公司 SAAS-based high-speed electrocardiogram data transmission and display method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338073A (en) * 2015-10-20 2016-02-17 浪潮集团有限公司 File directory processing method, server and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808589A (en) * 2014-12-31 2016-07-27 中国电信股份有限公司 File processing method and apparatus
CN106156129A (en) * 2015-04-08 2016-11-23 联想(北京)有限公司 File management method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338073A (en) * 2015-10-20 2016-02-17 浪潮集团有限公司 File directory processing method, server and system

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111386711A (en) * 2017-11-24 2020-07-07 梦想四有限公司 Method, device and system for managing electronic fingerprints of electronic files
CN108289126A (en) * 2018-01-28 2018-07-17 丁超 Method, apparatus for uploading or downloading file and computer storage media
CN108647256A (en) * 2018-04-23 2018-10-12 平安科技(深圳)有限公司 File synchronisation method, device, computer installation and storage medium
CN108763308A (en) * 2018-04-24 2018-11-06 北京首都机场动力能源有限公司 A kind of supply station data check management method and system
CN108614882A (en) * 2018-04-28 2018-10-02 深圳市市政设计研究院有限公司 A kind of file management method and system based on server
CN109033442A (en) * 2018-08-16 2018-12-18 郑州云海信息技术有限公司 A kind of general file management method
CN109102228A (en) * 2018-08-16 2018-12-28 郑州云海信息技术有限公司 A kind of Freight Transport information management system based on cloud computing
CN109189610A (en) * 2018-08-16 2019-01-11 郑州云海信息技术有限公司 The processing method of monitoring server data under a kind of linux
CN109087690A (en) * 2018-08-16 2018-12-25 郑州云海信息技术有限公司 A kind of processing system of the medical data based on cloud computing
CN109087690B (en) * 2018-08-16 2022-06-21 郑州云海信息技术有限公司 Medical data processing system based on cloud computing
CN109189610B (en) * 2018-08-16 2021-10-29 郑州云海信息技术有限公司 Method for processing server monitoring data under linux
CN109240997A (en) * 2018-08-24 2019-01-18 华强方特(深圳)电影有限公司 A kind of upload store method, system and the client of file
CN109241003A (en) * 2018-09-20 2019-01-18 广东电网有限责任公司 File management method and device
CN109241003B (en) * 2018-09-20 2020-09-08 广东电网有限责任公司 File management method and device
CN109783455A (en) * 2018-12-20 2019-05-21 昂纳信息技术(深圳)有限公司 A kind of management method based on large-scale data, system and storage device
CN109783455B (en) * 2018-12-20 2024-03-12 昂纳科技(深圳)集团股份有限公司 Large-scale data-based management method, system and storage device
CN109918471A (en) * 2019-01-28 2019-06-21 平安科技(深圳)有限公司 Archive method, apparatus, computer equipment and storage medium
CN110059105A (en) * 2019-04-26 2019-07-26 北京贝斯平云科技有限公司 A kind of data processing method, device, computer equipment and storage medium
CN111078140A (en) * 2019-11-20 2020-04-28 岭澳核电有限公司 Nuclear power station file uploading management method and device, terminal equipment and medium
CN111078140B (en) * 2019-11-20 2023-05-23 岭澳核电有限公司 Nuclear power station file uploading management method and device, terminal equipment and medium
CN111045997B (en) * 2019-12-05 2023-05-12 浩云科技股份有限公司 Centralized storage data deleting method and device
CN111045997A (en) * 2019-12-05 2020-04-21 浩云科技股份有限公司 Centralized storage data deleting method and device
CN111915424A (en) * 2020-07-30 2020-11-10 平安证券股份有限公司 Information storage method and related product
CN111915424B (en) * 2020-07-30 2024-06-28 平安证券股份有限公司 Information storage method and related product
CN112966133A (en) * 2021-03-25 2021-06-15 深圳康佳电子科技有限公司 Data storage processing method, server and computer readable storage medium
CN113626487A (en) * 2021-07-28 2021-11-09 广州市挖米科技有限责任公司 SAAS-based high-speed electrocardiogram data transmission and display method and device

Also Published As

Publication number Publication date
WO2018201583A1 (en) 2018-11-08

Similar Documents

Publication Publication Date Title
CN107291796A (en) File management method and device
US11263273B2 (en) Systems and methods for graphical exploration of forensic data
US8195714B2 (en) Context instantiated application protocol
AU2004201344B2 (en) Computer searching with associations
US7139761B2 (en) Dynamic association of electronically stored information with iterative workflow changes
KR101120755B1 (en) System and method for virtual folder and item sharing including utilization of static and dynamic lists
CA2538506C (en) A directory system
JP3683821B2 (en) Method for managing objects, method and system for sharing objects among user communities
US8417746B1 (en) File system management with enhanced searchability
KR101183404B1 (en) Systems and methods for providing a user interface with an automatic search menu
US8010532B2 (en) System and method for automatically organizing bookmarks through the use of tag data
US20080071824A1 (en) Record relationship processing
US20060248129A1 (en) Method and device for managing unstructured data
US7788259B2 (en) Locating, viewing and interacting with information sources
KR101724167B1 (en) Content mesh searching
US20080235289A1 (en) Method and device for managing unstructured data
US7693866B1 (en) Network-based system and method for accessing and processing legal documents
CA2489619A1 (en) Method system and program product for managing a file system that includes an archive
JP2005018754A (en) Sharing computer object with association
US20070157100A1 (en) System and method for organization and retrieval of files
JP5628799B2 (en) Personal information file management tool
US7627547B2 (en) Processing path-based database operations
US10200320B2 (en) Import content items from email
US9542457B1 (en) Methods for displaying object history information
CA3017376A1 (en) Systems and methods for graphical exploration of forensic data

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: 20171024

RJ01 Rejection of invention patent application after publication