CN108984557A - File saving method, server and computer readable storage medium - Google Patents

File saving method, server and computer readable storage medium Download PDF

Info

Publication number
CN108984557A
CN108984557A CN201710405074.7A CN201710405074A CN108984557A CN 108984557 A CN108984557 A CN 108984557A CN 201710405074 A CN201710405074 A CN 201710405074A CN 108984557 A CN108984557 A CN 108984557A
Authority
CN
China
Prior art keywords
file
store path
keyword
saved
under
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
CN201710405074.7A
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.)
Nanning Fulian Fugui Precision Industrial Co Ltd
Original Assignee
Nanning Fugui Precision Industrial 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 Nanning Fugui Precision Industrial Co Ltd filed Critical Nanning Fugui Precision Industrial Co Ltd
Priority to CN201710405074.7A priority Critical patent/CN108984557A/en
Publication of CN108984557A publication Critical patent/CN108984557A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

A kind of file saving method, comprising: identify the keyword that the file name of file to be saved includes;The ratio for accounting for All Files under the store path under each store path in file name comprising the keyword or the file similar with the keyword is counted respectively;And when there is the ratio for being greater than preset first threshold, the corresponding store path of ceiling rate is selected to be stored as the store path of the file to be saved.The present invention also provides a kind of servers, computer readable storage medium.The present invention can intelligently identify the keyword of file to be saved, and this document is accurately saved in comprising under the keyword or store path corresponding with the high file of the keyword similarity.

Description

File saving method, server and computer readable storage medium
Technical field
The present invention relates to data processing technique, more particularly, to a kind of file saving method, server and computer-readable Storage medium.
Background technique
Either office worker, student race may receive a large amount of file in the communication tools such as mail, MSN.Right When the file carries out classification preservation, user will cumbersome place layers apart layer path for each file.In some communication tools The way having had is can to save file by contact person's default categories, or creation loose-leaf binder saves file by date.This A little ways cannot accomplish intelligently to identify file, and this document is automatically saved in the store path of this document generic Under.
Summary of the invention
In view of the foregoing, it is necessary to a kind of file saving method, server and computer readable storage medium are provided, it can Intelligently to identify the keyword of file to be saved, and this document is accurately saved in store path related with the keyword Under.
The file saving method, comprising steps of identifying the keyword that the file name of file to be saved includes;Respectively It counts and accounts for the storage road comprising the keyword or the file similar with the keyword in file name under each store path The ratio of All Files under diameter;And when there is the ratio for being greater than preset first threshold, select ceiling rate corresponding Store path is stored as the store path of the file to be saved.
The server, comprising: memory, processor and be stored on the memory and can transport on the processor Capable computer program, the computer program performs the steps of when being executed by the processor identifies file to be saved The file name keyword that includes;Count under each store path respectively in file name comprising the keyword or with the pass The similar file of key word accounts for the ratio of All Files under the store path;And it is described greater than preset first threshold when existing When ratio, the corresponding store path of ceiling rate is selected to be stored as the store path of the file to be saved.
Further, embodiment of the present invention also provides a kind of computer readable storage medium, described computer-readable to deposit Computer program is stored on storage media, the computer program realizes file preservation side of the present invention when being executed by processor The step of method.
Compared to the prior art, the file saving method, server and computer readable storage medium, can be intelligently Identify the keyword of file to be saved, and this document is accurately saved in comprising the keyword or with the keyword phase Like under the high corresponding store path of file of degree.
Detailed description of the invention
Fig. 1 is the architecture diagram of the server of present pre-ferred embodiments.
Fig. 2 is the flow chart of the file saving method of present pre-ferred embodiments.
Main element symbol description
Server 1
File saves system 10
Identification module 40
Selecting module 50
Statistical module 60
Suggestion module 70
Logging modle 80
Memory 20
Processor 30
The present invention that the following detailed description will be further explained with reference to the above drawings.
Specific embodiment
As shown in fig.1, being the architecture diagram of the server 1 of present pre-ferred embodiments.
In the present embodiment, the server 1 includes that file saves system 10, memory 20 and processor 30.The text It mainly includes identification module 40, statistical module 60, selecting module 50, suggestion module 70 and logging modle that part, which saves system 10, 80.The file saves system 10 and is applied to the communication such as Document Editing or Fileview software, mail, MSN of any format Tool or other application software.The module is configured to be held by one or more processors (the present embodiment is processor 30) Row, to complete the present invention.The so-called module of the present invention is to complete the computer program code segments of a specific function.The memory 20 is used In data such as the program codes and historical storage record sheet for storing the file preservation system 10.In the historical storage record sheet File name, store path and the storage time of the All Files stored before having recorded.The processor 30 is used for Execute the program code stored in the memory 20.
Wherein, the memory 20 includes at least a type of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes Flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), it is static with Machine accesses memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable Read memory (PROM), magnetic storage, disk, CD etc..The processor 30 can be central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips etc..
Below by specific embodiment is enumerated to illustrate that above-mentioned file saves the function of modules in system 10.
The identification module 40 goes out the keyword that the file name of file to be saved includes for identification.When having detected text After the request that part saves, the identification module 40 identifies the file names portion of file to be saved and extracts key Word.In the present embodiment, the keyword be the file name to be saved in include specific word, word, symbol, number or Person's suffix, is also possible to file type.In other embodiments, the keyword can for above-mentioned specific word, word, symbol, The one or more set of number, suffix or file type.The identification module 40 is also used to identify that historical storage records Whether file name comprising the keyword is had in table.
The selecting module 50 is used to identify in the historical storage record sheet when the identification module 40 comprising When stating the file name of keyword, directly opens the corresponding store path of this document title and deposit the file to be saved Storage.In the present embodiment, the identification module 40, which identifies, has in historical storage record sheet comprising in the file to be saved When the file name of the keyword, the selecting module 50 is then deposited this document title in historical storage record sheet is corresponding It stores up path to open, and will be under the file storage to the store path to be saved.
The statistical module 60 for count under each store path respectively in file name comprising the keyword or with institute State the ratio that the similar file name of keyword accounts for All Files under the store path.In the present embodiment, when the identification When module 40 identifies the file name in the historical storage record sheet not comprising the keyword, the statistical module 60 Then the file under each store path is counted respectively, is counted in the file name under each store path comprising described Keyword or the file name similar with the keyword account for the ratio of All Files under the store path." the filename Claim the file similar with the keyword " can be understood as when the keyword comprising multiple words, word, symbol, number or When suffix, if having certain similarity, then it is assumed that it is similar to, it is more identical than the part if any 80%;In other embodiments, Can also judge whether be identical meanings or similar shape with the keyword, be then similar if being.
Multiple ratios that the selecting module 50 is also used to count the statistical module 60 respectively with it is preset First threshold is compared, and when there is the ratio to be greater than the first threshold, the corresponding store path of ceiling rate is selected to make For the store path of the file to be saved, the file to be saved is stored.For example, when the statistical module 60 is distinguished The file similar with the keyword comprising the keyword and file name of file name under 6 store paths is counted The ratio that title accounts for 6 store path All Files is respectively 35%, 40%, 50%, 60%, 65% and 70%, preset First threshold is 50%.It is corresponding that the selecting module 50 finds out ceiling rate from the ratio for being greater than the first threshold 50% Store path, therefore, the selecting module 50 can be using store paths corresponding to ratio 70% as the storage of file to be saved Path, and will be under the file storage to the store path to be saved.
Multiple ratios that the selecting module 50 is also used to count when the statistical module 60 are not greater than institute When stating first threshold, last store path is inquired from historical storage record sheet, and by the file to be saved described It is stored under last store path.In the present embodiment, when the statistical module 60 counts each store path hereafter Keyword described in part title or the Name Documents similar with the keyword account for the ratio of All Files under the store path When being below the first threshold, the selecting module 50 finds from historical storage record sheet and opens last storage road Whether diameter, the file designation that then statistical module 60 counts under the store path have systematicness.In the present embodiment, institute Whether state file designation has the judgement of systematicness is that whether have greatly according to the file name of the All Files under the store path In the similarity of preset second threshold.When the file name of the All Files under the store path has greater than preset second threshold When the similarity of value, the statistical module 60 judges that the file designation has systematicness.When all texts under the store path When the file name of part is not greater than the similarity of preset second threshold, the statistical module 60 judges the file designation not With systematicness.For example, the word that the file name of All Files is included under the store path, word, symbol, number or suffix Whether identical part is had, when the file for including same section accounts for the specific gravity of All Files under the store path greater than preset When second threshold, then determine that file designation has systematicness under the store path.
The suggestion module 70 is used to count the file under the upper primary store path in the statistical module 60 In the case that name has systematicness, name is provided to file to be saved according to the naming rule and is suggested.For example, working as the system Meter module 60 counts the file comprising " annual summary " in the file name under the store path of the last time and accounts for the storage The specific gravity of All Files is 60% under path, is greater than the preset second threshold such as 50%, then the meeting of suggestion module 70 exists Name is provided when the file to be saved is stored to suggest.In the present embodiment, the suggestion module 70 can be by " year is total The suffix such as 1 that knot " and rule are formed, 2,3 or A, B, the formation suggestion such as C name such as " annual summary 1 ".Then when receiving use After the confirmation at family, the file to be saved is saved under the store path by the selecting module 50 with suggestion name.Separately Outside, the suggestion module 70 provide name suggest when, the original file name of the file to be saved can also be retained, for Family selection.
The logging modle 80 be used for recorded in historical storage record sheet this storage file name, store path with And storage time.In other embodiments, the logging modle 80 is also used to receive the customized file name of user's input With corresponding store path, and it is recorded in the historical storage record sheet.
As shown in fig.2, being the flow chart of the file saving method of present pre-ferred embodiments.The file preservation side Method is applied in the server 1, executes the program code that the memory 20 stores by the processor 30 and realizes.Institute File saving method is stated to comprise the following steps that
Step S10: the keyword that the file name of file to be saved includes is identified.In the present embodiment, the key Word is specific word, word, symbol, number or the suffix for including in the file name to be saved, is also possible to file type.
Step S12: whether there is the file comprising the keyword in identification historical storage record sheet.The historical storage note File name, store path and the storage time of the All Files stored before being had recorded in record table.In the present embodiment In, the keyword is specific word, word, symbol, number or the suffix for including in the file name to be saved, can also be with It is file type.In other embodiments, the keyword can for above-mentioned specific word, word, symbol, number, suffix or The one or more set of file type.The name when identifying has the file comprising the keyword in historical storage record sheet Claim, jumps to step S14;Otherwise, step S16 is jumped to.
Step S14: opening the store path of this document and stores the file to be saved.In the present embodiment, When identifying has the file comprising the keyword in the file to be saved in historical storage record sheet, then history is deposited The corresponding store path of this document stored up in record sheet is opened, and will be under the file storage to the store path to be saved.
Step S16: count under each store path respectively in file name comprising the keyword or with the keyword phase Similar file accounts for the ratio of All Files under the store path.In the present embodiment, when identifying historical storage record When file in table does not include the keyword, then the file under each store path is counted respectively, counted every The store path is accounted for comprising the keyword or the file similar with the keyword in file name under a store path The ratio of lower All Files." the file name file similar with the keyword " can be understood as when the keyword When comprising multiple words, word, symbol, number or suffix, if having certain similarity, then it is assumed that be similar to, than if any 80% part is identical;In other embodiments, can also judge whether be identical meanings or similar to the keyword Then think to be similar to when shape, identical meanings or similar shape.
Step S18: judge whether the ratio has greater than preset first threshold.In the present embodiment, it will count Multiple ratios are compared with preset first threshold respectively.When the ratio has greater than the first threshold, jump To step S22;Otherwise step S24 is jumped to.
Step S22: the corresponding store path of the ceiling rate in the ratio depositing as the file to be saved is selected Storage path is stored.In the present embodiment, when counted under 6 store paths respectively file name include the keyword with And it is 35%, 40%, 50% that file name and the similar file of the keyword, which account for the ratio of the store path All Files, 60%, 65% and 70%, preset first threshold is 50%.Then highest is found out from the ratio for being greater than the first threshold 50% The corresponding store path of ratio, thus can using store path corresponding to ratio 70% as the store path of file to be saved, And it will be under the file storage to the store path to be saved.Step S34 is jumped to after the step.
Step S24: the path of last storage file is inquired from historical storage record sheet, is counted under the store path File name similarity.It in the present embodiment, include the keyword in file name under each store path when counting Or the file similar with the keyword be when accounting for the ratios of All Files under the store path and being below the first threshold, then The path of last storage file is inquired from historical storage record sheet.Then count whether the file designation under the path has Regular property.
Step S26: judge whether the file name of the All Files under the store path has and be greater than default second threshold Similarity.In the present embodiment, it is according to all under the store path that whether the file designation, which has the judgement of systematicness, The file name of file has the similarity for being greater than default second threshold.For example, the file name of All Files is wrapped under the path Whether word, word, symbol, number or the suffix contained has identical part, when the file for including same section accounts for the storage road When the specific gravity of All Files is greater than preset second threshold under diameter, then determine that file designation has systematicness under the store path. When the file name of the All Files under the store path has the similarity for being greater than default second threshold, step S28 is jumped to; Otherwise step S32 is jumped to.
Step S28: name is provided to file to be saved according to the naming rule of file under the store path and is suggested.In this reality It applies in example, is preset when the file name similarity of the All Files under the store path of the storage file of the last time has to be greater than When second threshold, then it is assumed that file designation has systematicness under the path, and is provided according to the naming rule file to be saved Name is suggested.For example, when the file in the file name under the store path for counting the last time including " annual summary " Account for All Files under the store path specific gravity be 60%, be greater than the preset second threshold such as 50%, then can it is described to It saves and name suggestion is provided when file is stored.In addition, when providing name suggestion, it also can be by the original of the file to be saved File name retains, for selection by the user.In the present embodiment, the suffix such as 1,2,3 that " annual summary " and rule can be formed Or the formation suggestion such as A, B, C name such as " annual summary 1 " provides user's selection, and jumps to step after user's selection S32。
Step S32: the file to be saved is stored.
Step S34: when recording file name, store path and the storage of this storage in historical storage record sheet Between.In other embodiments, the customized file name and corresponding store path that user inputs can also be received, and is recorded Into the historical storage record sheet.
The above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although referring to preferred embodiment to this hair It is bright to be described in detail, those skilled in the art should understand that, it can modify to technical solution of the present invention Or equivalent replacement, without departing from the spirit and scope of the technical solution of the present invention.

Claims (13)

1. a kind of file saving method, which is characterized in that the described method includes:
Identify the keyword that the file name of file to be saved includes;
It counts and is accounted in file name comprising the keyword or the file similar with the keyword under each store path respectively The ratio of All Files under the store path;And
When exist be greater than preset first threshold the ratio when, select the corresponding store path of ceiling rate as described in The store path for saving file is stored.
2. file saving method as described in claim 1, which is characterized in that this method is further comprised the steps of: to be remembered in historical storage File name, store path and the storage time of this storage are recorded in record table.
3. file saving method as described in claim 1, which is characterized in that described to count filename under each store path respectively The step of the ratio of All Files under the store path is accounted in title comprising the keyword or the file similar with the keyword It is further comprising the steps of before rapid:
Whether there is the file name comprising the keyword in identification historical storage record;
When having the file name comprising the keyword in historical storage record, directly opening this document title is corresponding Store path simultaneously stores the file to be saved.
4. file saving method as described in claim 1, which is characterized in that this method further comprises the steps of:
When the ratio is all not greater than the first threshold, is inquired from historical storage record and open last storage Path, and the file to be saved is stored.
5. file saving method as claimed in claim 4, which is characterized in that inquire and beat from historical storage record described Further include between the step of opening the path of last storage file and described the step of being stored the file to be saved Step:
Whether the file designation counted under the store path of the last time has systematicness;
When the file designation has systematicness, name is provided to file to be saved according to the naming rule and is suggested.
6. file saving method as claimed in claim 5, which is characterized in that under the store path of the statistics last time File designation whether there is the step of systematicness to include:
When the file name of the All Files under the store path of the last time has the similarity greater than preset second threshold When, judge that the file designation has systematicness;
When the file name of the All Files under the store path of the last time is not greater than the similar of preset second threshold When spending, judge that the file designation does not have systematicness.
7. a kind of server, which is characterized in that the server includes: memory, processor and is stored on the memory And the computer program that can be run on the processor, following step is realized when the computer program is executed by the processor It is rapid:
Identify the keyword that the file name of file to be saved includes;
It counts and is accounted in file name comprising the keyword or the file similar with the keyword under each store path respectively The ratio of All Files under the store path;
When exist be greater than preset first threshold the ratio when, select the corresponding store path of ceiling rate as described in The store path for saving file is stored.
8. server as claimed in claim 7, which is characterized in that go back reality when the computer program is executed by the processor Existing step: file name, store path and the storage time of this storage are recorded in historical storage record sheet.
9. server as claimed in claim 7, which is characterized in that go back reality when the computer program is executed by the processor Existing following steps:
It counts under each store path respectively in file name described comprising the keyword or similar with the keyword Whether file accounted for before the step of ratio of All Files under the store path, have in identification historical storage record comprising the pass The file name of key word;
When including the file name of the keyword in historical storage record, directly opening this document title is corresponding Store path simultaneously stores the file to be saved.
10. server as claimed in claim 7, which is characterized in that when the computer program is executed by the processor also Realize step:
When the ratio is all not greater than the first threshold, is inquired from historical storage record and open last storage Path, and the file to be saved is stored.
11. server as claimed in claim 10, which is characterized in that when the computer program is executed by the processor also It performs the steps of
Described after inquiring in historical storage record and opening the path of upper primary storage file, and described by institute It states before file to be saved stored, whether the file designation counted under the store path of the last time has systematicness;
When the file designation has systematicness, name is provided to file to be saved according to the naming rule and is suggested.
12. server as claimed in claim 11, which is characterized in that when the computer program is executed by the processor also It performs the steps of
When the file name of the All Files under the store path of the last time has the similarity greater than preset second threshold When, judge that the file designation has systematicness;
When the file name of the All Files under the store path of the last time is not greater than the similar of preset second threshold When spending, judge that the file designation does not have systematicness.
13. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes such as file saving method described in any one of claims 1 to 6 when the computer program is executed by processor The step of.
CN201710405074.7A 2017-05-31 2017-05-31 File saving method, server and computer readable storage medium Pending CN108984557A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710405074.7A CN108984557A (en) 2017-05-31 2017-05-31 File saving method, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710405074.7A CN108984557A (en) 2017-05-31 2017-05-31 File saving method, server and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN108984557A true CN108984557A (en) 2018-12-11

Family

ID=64502344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710405074.7A Pending CN108984557A (en) 2017-05-31 2017-05-31 File saving method, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108984557A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109800206A (en) * 2018-12-14 2019-05-24 深圳壹账通智能科技有限公司 Desktop method for cleaning, device, terminal device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102360353A (en) * 2011-09-27 2012-02-22 汉王科技股份有限公司 Storage method and device of scanned file as well as scanning equipment
US20120233189A1 (en) * 2008-10-31 2012-09-13 International Business Machines Corporation Transmitting and receiving a file in a network environment
CN102789492A (en) * 2012-07-05 2012-11-21 天津三星通信技术研究有限公司 File mobility management method and device
CN102870115A (en) * 2012-06-30 2013-01-09 华为技术有限公司 Storage method for network disk files, and server
CN103034643A (en) * 2011-09-29 2013-04-10 富泰华工业(深圳)有限公司 Method and device for file downloading
CN103226594A (en) * 2013-04-17 2013-07-31 东莞宇龙通信科技有限公司 Method and system for fast opening path to file to be shared
CN105022819A (en) * 2015-07-15 2015-11-04 魅族科技(中国)有限公司 File storage method and apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120233189A1 (en) * 2008-10-31 2012-09-13 International Business Machines Corporation Transmitting and receiving a file in a network environment
CN102360353A (en) * 2011-09-27 2012-02-22 汉王科技股份有限公司 Storage method and device of scanned file as well as scanning equipment
CN103034643A (en) * 2011-09-29 2013-04-10 富泰华工业(深圳)有限公司 Method and device for file downloading
CN102870115A (en) * 2012-06-30 2013-01-09 华为技术有限公司 Storage method for network disk files, and server
CN102789492A (en) * 2012-07-05 2012-11-21 天津三星通信技术研究有限公司 File mobility management method and device
CN103226594A (en) * 2013-04-17 2013-07-31 东莞宇龙通信科技有限公司 Method and system for fast opening path to file to be shared
CN105022819A (en) * 2015-07-15 2015-11-04 魅族科技(中国)有限公司 File storage method and apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109800206A (en) * 2018-12-14 2019-05-24 深圳壹账通智能科技有限公司 Desktop method for cleaning, device, terminal device

Similar Documents

Publication Publication Date Title
US9087101B2 (en) Document management techniques to account for user-specific patterns in document metadata
US8046366B1 (en) Orchestrating indexing
CN103150263B (en) Classification storage means
US7805439B2 (en) Method and apparatus for selecting data records from versioned data
AU2016345990A1 (en) A system and method for processing big data using electronic document and electronic file-based system that operates on RDBMS
EP2044536A1 (en) Data processing over very large databases
US20170270439A1 (en) System and method to present a summarized task view in a case management system
US9280551B2 (en) De-duplication deployment planning
US20070100888A1 (en) Method and apparatus for managing content file information, and recording medium storing program for performing the method
US10438282B2 (en) Computerized invoice record and receipt record matching utilizing best match criteria
US20170329770A1 (en) System and method for facilitating data migration
US20220229854A1 (en) Constructing ground truth when classifying data
CN107729330B (en) Method and apparatus for acquiring data set
CN110598107A (en) Management method of query system and computer storage medium
CN108984557A (en) File saving method, server and computer readable storage medium
US20080086463A1 (en) Leveraging related content objects in a records management system
US6070169A (en) Method and system for the determination of a particular data object utilizing attributes associated with the object
CN104933096A (en) Abnormal key recognition method of database, abnormal key recognition device of database and data system
US20070088717A1 (en) Back-tracking decision tree classifier for large reference data set
CN105373622A (en) Information processing method and device
US20190171626A1 (en) System and Method for Storing and Retrieving Data in Different Data Spaces
US9430527B2 (en) Keyword-based content management
US20150169619A1 (en) System and method for creating storage containers in a data storage system
CN110910975B (en) Data processing method and device for medical information
CN110865991A (en) Medicine data platform

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