CN110399346A - Utilize store path setting method, device and the computer equipment of file counter - Google Patents

Utilize store path setting method, device and the computer equipment of file counter Download PDF

Info

Publication number
CN110399346A
CN110399346A CN201910537911.0A CN201910537911A CN110399346A CN 110399346 A CN110399346 A CN 110399346A CN 201910537911 A CN201910537911 A CN 201910537911A CN 110399346 A CN110399346 A CN 110399346A
Authority
CN
China
Prior art keywords
file
preset
counter
threshold value
storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910537911.0A
Other languages
Chinese (zh)
Other versions
CN110399346B (en
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 CN201910537911.0A priority Critical patent/CN110399346B/en
Priority to PCT/CN2019/103543 priority patent/WO2020252929A1/en
Publication of CN110399346A publication Critical patent/CN110399346A/en
Application granted granted Critical
Publication of CN110399346B publication Critical patent/CN110399346B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This application discloses a kind of store path setting method, device, computer equipment and storage mediums using file counter, which comprises the designated pictures that transmission terminal uploads in reception;If the file size of the designated pictures is greater than preset size threshold value, the counting of preset file counter is increased by the first predetermined value;If the current reading of the file counter is greater than preset reading threshold value, the counting of the file counter is reset;If the quantity of documents in default storage file is greater than preset amount threshold, the file store path of the storage terminal is set to point to preset specified folder.To realize the quantity of documents for automatically controlling file, convenience file management improves file activity.

Description

Utilize store path setting method, device and the computer equipment of file counter
Technical field
This application involves computer field is arrived, a kind of store path setting side using file counter is especially related to Method, device, computer equipment and storage medium.
Background technique
Storage terminal in traditional technology is usually used rough formula for the storage mode of file and stores, such as will own File is stored to default storage file, after developer realizes that the file amount of storage in default storage file is too big, It is transferred to other storage folders again, so that the number of files for pressing from both sides single file is excessive, is not easy to search and calls file.Cause This prior art lack in terms of the storage of file can control quantity of documents in order to file management (such as search with call text Part) technical solution.
Summary of the invention
The main purpose of the application is to provide a kind of to utilize the store path setting method of file counter, device, calculating Machine equipment and storage medium, it is intended to realize the quantity of documents for automatically controlling file, convenience file management improves file process Efficiency.
In order to achieve the above-mentioned object of the invention, the application proposes a kind of store path setting method using file counter, Applied to storage terminal, comprising:
The designated pictures that transmission terminal uploads in reception;
Judge whether the file size of the designated pictures is greater than preset size threshold value;
If the file size of the designated pictures is greater than preset size threshold value, by the counting of preset file counter Increase by the first predetermined value;
The current reading of the file counter is obtained, and it is pre- to judge whether the current reading of the file counter is greater than If reading threshold value;
If the current reading of the file counter is greater than preset reading threshold value, by the counting of the file counter It resets, and judges whether the quantity of documents in default storage file is greater than preset amount threshold;
If the quantity of documents in default storage file is greater than preset amount threshold, by the file of the storage terminal Store path is set to point to preset specified folder, wherein the quantity of documents in the specified folder is less than the default Quantity of documents in storage folder.
Further, the storage terminal is for storing face picture, the file size of the judgement designated pictures The step of whether being greater than preset size threshold value, comprising:
Using preset contours extract rule, the profile of the image in the designated pictures is extracted;
Using preset profile difference algorithm, the profile of described image and preset standard faces profile are compared, To obtain difference degree value;
Judge whether the difference degree value is less than preset discrepancy threshold;
If the difference degree value is less than preset discrepancy threshold, judge whether the file size of the designated pictures is big In preset size threshold value.
Further, the step of whether file size for judging the designated pictures is greater than preset size threshold value it Afterwards, comprising:
If the file size of the designated pictures is not more than preset size threshold value, by the meter of preset file counter Number increases by the second predetermined value, wherein second predetermined value is less than first predetermined value;
The current reading of the file counter is obtained, and it is pre- to judge whether the current reading of the file counter is greater than If reading threshold value;
If the current reading of the file counter is greater than preset reading threshold value, by the counting of the file counter It resets, and judges whether the quantity of documents in default storage file is greater than preset amount threshold;
If the quantity of documents in default storage file is greater than preset amount threshold, by the file of the storage terminal Store path is set to point to preset specified folder, wherein the quantity of documents in the specified folder is less than the default Quantity of documents in storage folder.
Further, there are multiple for the designated pictures, if the file size of the designated pictures is greater than preset Size threshold value, then the step of counting of preset file counter being increased by the first predetermined value, comprising:
According to formula: M=paA+pbB calculates numerical value M, and wherein there are p in multiple described designated picturesaOpen file size Greater than the picture of preset size threshold value, there are p in the designated picturesbFile size is opened no more than preset size threshold value Picture, A, B are default fixed numbers, and wherein A is greater than B;
The counting of preset file counter is increased into numerical value M.
Further, the current reading for obtaining the file counter, and judge the current of the file counter After the step of whether reading is greater than preset reading threshold value, comprising:
If the current reading of the file counter is not more than preset reading threshold value, current store path is kept;
According to current store path, the designated pictures are saved to the default storage text of current store path direction In part folder.
Further, the default folder stores same type of picture file, if the file counter Current reading is greater than preset reading threshold value, then resets the counting of the file counter, and judge default storage file In quantity of documents the step of whether being greater than preset amount threshold before, comprising:
The default folder is analyzed, to obtain the type of the picture file of the default folder storage;
Using the corresponding relationship of preset type and amount threshold, according to the type of the picture file, obtain with it is described The corresponding amount threshold of default folder.
It further, will be described if the quantity of documents in the default storage file is greater than preset amount threshold The file store path of storage terminal is set to point to preset specified folder, wherein the number of files in the specified folder Amount is less than the step of quantity of documents in the default storage file, includes:
If the quantity of documents in default storage file is greater than preset amount threshold, in the default storage file Higher level's catalogue in create specified folder;
The afterbody subdirectory for being directed toward the path of the default storage file is revised as the specified folder, from And obtain the specified path for being directed toward the specified folder;
The specified path is set by the file store path of the storage terminal.
The application provides a kind of store path setting device using file counter, is applied to storage terminal, comprising:
Designated pictures receiving unit, the designated pictures uploaded for receiving upper transmission terminal;
Size threshold value judging unit, for judging whether the file size of the designated pictures is greater than preset size threshold Value;
First predetermined value adding unit, if the file size for the designated pictures is greater than preset size threshold value, The counting of preset file counter is then increased by the first predetermined value;
Threshold decision unit is read, for obtaining the current reading of the file counter, and judges that the file counts Whether the current reading of device is greater than preset reading threshold value;
Amount threshold judging unit, if the current reading for the file counter is greater than preset reading threshold value, The counting of the file counter is reset, and judges whether the quantity of documents in default storage file is greater than preset quantity Threshold value;
Store path setting unit, if being greater than preset amount threshold for the quantity of documents in default storage file, The file store path of the storage terminal is then set to point to preset specified folder, wherein in the specified folder Quantity of documents less than the quantity of documents in the default storage file.
The application provides a kind of computer equipment, including memory and processor, and the memory is stored with computer journey The step of sequence, the processor realizes any of the above-described the method when executing the computer program.
The application provides a kind of computer readable storage medium, is stored thereon with computer program, the computer program The step of method described in any of the above embodiments is realized when being executed by processor.
Store path setting method, device, computer equipment and the storage medium using file counter of the application, connects The designated pictures that transmission terminal uploads in receipts;If the file size of the designated pictures is greater than preset size threshold value, will preset File counter counting increase the first predetermined value;If the current reading of the file counter is greater than preset reading threshold Value then resets the counting of the file counter;If the quantity of documents in default storage file is greater than preset quantity threshold The file store path of the storage terminal is then set to point to preset specified folder by value.To realize automatic control The quantity of documents of file processed, convenience file management.
Detailed description of the invention
Fig. 1 is the flow diagram of the store path setting method using file counter of one embodiment of the application;
Fig. 2 is that the structural schematic block diagram of device is arranged in the store path using file counter of one embodiment of the application;
Fig. 3 is the structural schematic block diagram of the computer equipment of one embodiment of the application.
The embodiments will be further described with reference to the accompanying drawings for realization, functional characteristics and the advantage of the application purpose.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Referring to Fig.1, the embodiment of the present application provides a kind of store path setting method using file counter, applied to depositing Store up terminal, comprising:
The designated pictures that transmission terminal uploads on S1, reception;
S2, judge whether the file size of the designated pictures is greater than preset size threshold value;
If the file size of S3, the designated pictures is greater than preset size threshold value, by preset file counter It counts and increases by the first predetermined value;
S4, the current reading for obtaining the file counter, and judge whether the current reading of the file counter is big In preset reading threshold value;
If the current reading of S5, the file counter is greater than preset reading threshold value, by the file counter It counts and resets, and judge whether the quantity of documents in default storage file is greater than preset amount threshold;
If the quantity of documents in S6, default storage file is greater than preset amount threshold, by the storage terminal File store path is set to point to preset specified folder, wherein the quantity of documents in the specified folder is less than described Quantity of documents in default storage file.
The prior art lack in terms of the storage of file can control quantity of documents in order to file management (such as search with Call file) technical solution.For this, the application uses preset file counter to determine whether should judge that default is deposited The quantity of documents in file is stored up, and then decides whether to update storage path, to solve the rough formula storage of traditional technology Brought defect.
As described in above-mentioned steps S1, the designated pictures of transmission terminal upload in reception.Wherein the upload terminal is deposited with described Terminal is stored up there are signal connection relationship, the picture file of desired preservation is uploaded to storage terminal and saved by upper transmission terminal.Its Described in designated pictures can be for any type of picture, such as scenery picture, face picture etc..The storage terminal (such as For storage server) for servicing the upper transmission terminal.
As described in above-mentioned steps S2, judge whether the file size of the designated pictures is greater than preset size threshold value.Its Described in designated pictures can be there is only one, there may also be multiple.When the designated pictures are there is only at one, only carry out Primary judgement.When the designated pictures are there are when multiple, repeatedly judged respectively, to determine multiple described designated pictures File size whether be respectively greater than preset size threshold value.
As described in above-mentioned steps S3, if the file size of the designated pictures is greater than preset size threshold value, it will preset File counter counting increase the first predetermined value.Wherein preset file counter is preset in the storage terminal For calculating counter relevant to the storage file, when there is file to need to store, then the reading of counter is increased by one Fixed number value, to be the quantity of documents that may know that storage by counter.Wherein the first predetermined value can anticipate numerical value for, excellent It is selected as being more than or equal to 1.Further, if there are multiple for the designated pictures, it is greater than preset size threshold when there is n to open designated pictures When value, then the counting of preset file counter is increased into n multiplied by first predetermined value.Further, m opens finger if it exists When determining picture no more than preset size threshold value, then the counting of preset file counter is increased into m and made a reservation for multiplied by described second Numerical value, wherein the second predetermined value is less than the first predetermined value.Accordingly, the application uses file counter to store shape to file Condition carries out primary Calculation, carries out judging the quantity of documents in default storage file to avoid any one picture file is stored Caused by meaningless computation burden.
As described in above-mentioned steps S4, the current reading of the file counter is obtained, and judges the file counter Whether current reading is greater than preset reading threshold value.When the current reading of the file counter is greater than preset reading threshold value When, then show the memory state of current default storage file it is necessary to be verified, to determine whether storage burden is overweight. When the current reading of the file counter is no more than preset reading threshold value, then show current default storage file File memory state is without being verified.
As described in above-mentioned steps S5, if the current reading of the file counter is greater than preset reading threshold value, by institute The counting for stating file counter is reset, and judges whether the quantity of documents in default storage file is greater than preset quantity threshold Value.If the current reading of the file counter is greater than preset reading threshold value, demonstrate the need for verifying in default storage file Quantity of documents, while the counting of the file counter being reset, to judge whether to need to verify default storage text next time Quantity of documents in part folder is prepared.Wherein default storage file refers in storage terminal for direct storage file Storage folder, i.e. file pointed by default storage path.
It, will if the quantity of documents in default storage file is greater than preset amount threshold as described in above-mentioned steps S6 The file store path of the storage terminal is set to point to preset specified folder, wherein the text in the specified folder Number of packages amount is less than the quantity of documents in the default storage file.Accordingly, the storage in single storage folder can be made Quantity of documents avoids storage from appointing no more than the sum of the quantity of documents that preset amount threshold and preset reading threshold value represent A picture file of anticipating carries out judging meaningless computation burden caused by the quantity of documents in default storage file.Wherein The specified folder can be empty file, or documentary file has been stored, preferably newly-built sky File.
In one embodiment, the storage terminal is used to store face picture, the judgement designated pictures Whether file size is greater than the step S2 of preset size threshold value, comprising:
S201, using preset contours extract rule, extract the profile of the image in the designated pictures;
S202, using preset profile difference algorithm, the profile of described image and preset standard faces profile are carried out Comparison, to obtain difference degree value;
S203, judge whether the difference degree value is less than preset discrepancy threshold;
If S204, the difference degree value are less than preset discrepancy threshold, the file size of the designated pictures is judged Whether preset size threshold value is greater than.
Judge whether the file size of the designated pictures is greater than preset size threshold value as described above, realizing.This reality The storage terminal in mode is applied for storing face picture, therefore in order to avoid accidentally depositing picture, uses preset profile Difference algorithm with determine designated pictures whether face picture.Wherein, the profile for extracting the image in the designated pictures can be adopted With arbitrarily can line discipline, due to such contour extraction method be ripe algorithm (such as by tristimulus values difference in preset range Interior continuous image vegetarian refreshments is as same area, to sketch out profile), details are not described herein.Wherein utilize preset profile differences Different algorithm compares the profile of described image and preset standard faces profile, so that the process of difference degree value is obtained, Such as are as follows: the highest point of the profile of described image is overlapped with standard faces profile highest point;By the profile of described image Equal proportion stretched operation is carried out, so that the minimum point of the profile of described image is overlapped with the standard faces profile minimum point;Meter The difference of the area of the area and standard faces profile of the profile of image after calculating equal proportion stretched operation, and by the area Difference as the difference degree value.Alternatively, it is also possible to by the profile of the image after equal proportion stretched operation and the standard people Face profile be not overlapped degree (such as by the profile of image beyond facial contour area A1 and facial contour not by image Contour filling area A2 as calculating factor, utilize formula: difference degree value=M × A1+N × A2, wherein M, N are respectively Can be the weight parameter of negative value) as described difference degree value etc..It is hereby stated that the example above is only a kind of profile difference calculation Method, the application could be applicable to any feasible profile difference algorithm.Accordingly, if the difference degree value is less than preset difference Threshold value, then the designated pictures are face picture, then judge whether the file size of the designated pictures is greater than preset size Threshold value.The possibility accidentally deposited so as to avoid picture.Wherein, according to above-mentioned using the difference of the area as the difference degree value Profile difference algorithm, compared to other algorithms, the calculation power of consumption is smaller, is more suitable for tentatively judging whether picture is face figure Piece (only needs simply to judge).
In one embodiment, whether the file size for judging the designated pictures is greater than preset size threshold value Step S2 after, comprising:
If the file size of ST3, the designated pictures is not more than preset size threshold value, by preset file counter Counting increase the second predetermined value, wherein second predetermined value be less than first predetermined value;
ST4, the current reading for obtaining the file counter, and judge whether the current reading of the file counter is big In preset reading threshold value;
If the current reading of ST5, the file counter is greater than preset reading threshold value, by the file counter It counts and resets, and judge whether the quantity of documents in default storage file is greater than preset amount threshold;
If the quantity of documents in ST6, default storage file is greater than preset amount threshold, by the storage terminal File store path is set to point to preset specified folder, wherein the quantity of documents in the specified folder is less than described Quantity of documents in default storage file.
The file store path of the storage terminal is set to point to preset specified file as described above, realizing Folder.If the file size of the designated pictures is not more than preset size threshold value, show memory space shared by the designated pictures Smaller, identical memory space can store more no more than preset size threshold value designated pictures, therefore then will be preset The counting of file counter increases by the second predetermined value, wherein second predetermined value is less than first predetermined value.Its In the second predetermined value be preferably smaller than equal to 1.Accordingly, present embodiment can make the storage file in single storage folder Quantity avoids storing any one no more than the sum of the quantity of documents that preset amount threshold and preset reading threshold value represent Picture file carries out judging meaningless computation burden caused by the quantity of documents in default storage file.It is wherein described Specified folder can be empty file, or store documentary file, preferably newly-built empty file Folder.
In one embodiment, there are multiple for the designated pictures, if the file size of the designated pictures is big In preset size threshold value, then the counting of preset file counter is increased to the step S3 of the first predetermined value, comprising:
S301, according to formula: M=paA+pbB calculates numerical value M, and wherein there are p in multiple described designated picturesaZhang Wen Part size is greater than the picture of preset size threshold value, and there are p in the designated picturesbIt opens file size and is not more than preset size The picture of threshold value, A, B are default fixed numbers, and wherein A is greater than B;
S302, the counting of preset file counter is increased into numerical value M.
As described above, realizing according to multiple designated pictures, the counting of preset file counter is increased into numerical value M.This In embodiment, the upper transmission terminal once uploads multiple designated pictures, therefore the counting of the file counter is increased Numerical value M, wherein M is according to formula: M=paA+pbB is obtained, and wherein there are p in multiple described designated picturesaFile size is opened to be greater than The picture of preset size threshold value, there are p in the designated picturesbOpen the figure that file size is not more than preset size threshold value Piece, A, B are default fixed numbers, and wherein A is greater than B.It is adapted to preset file counter in multiple designated pictures The circumstances of biography.Wherein A is preferably greater than or equal to 1, B and preferably selects less than or equal to 1.
In one embodiment, the current reading for obtaining the file counter, and judge that the file counts Whether the current reading of device is greater than after the step S4 of preset reading threshold value, comprising:
If the current reading of S411, the file counter is not more than preset reading threshold value, current storage is kept Path;
S412, according to current store path, the designated pictures are saved to the default of current store path direction In storage folder.
As described above, realizing preservation designated pictures.File counter is used to carry out primary Calculation to file memory state, If the current reading of the file counter is not more than preset reading threshold value, show not up to verify default storage file Condition, the i.e. current storage burden of default storage file are considered as acceptable, therefore keep current store path, wherein when Preceding store path is the path for being directed to default storage file.Therefore according to current store path, by the specified figure Piece is saved into the default storage file of current store path direction.
In one embodiment, the default folder stores same type of picture file, if the file The current reading of counter is greater than preset reading threshold value, then resets the counting of the file counter, and judges that default is deposited Whether the quantity of documents in storage file is greater than before the step S5 of preset amount threshold, comprising:
S421, the analysis default folder, to obtain the type of the picture file of the default folder storage;
S422, using the corresponding relationship of preset type and amount threshold, according to the type of the picture file, obtain with The corresponding amount threshold of the default folder.
Amount threshold corresponding with the default folder is obtained as described above, realizing.For classification storage, to realize The aimed management of file, present embodiment store same type of picture file using default folder, and different types of The mean file size of picture file is different (such as face picture is bigger compared to the file size of simple cartoon picture), phase That answers should be arranged different amount thresholds.It is previously provided with the corresponding relationship of type and amount threshold accordingly, recycles default Type and the corresponding relationship of amount threshold obtained corresponding with the default folder according to the type of the picture file Amount threshold.Wherein, the default folder is analyzed, thus obtain the type of the picture file of the default folder storage Process is for example are as follows: the attribute for analyzing the default folder extracts storage file type from the attribute, i.e., described in acquisition The type of the picture file of default folder storage;Alternatively, the file stored in the default folder is analyzed, to obtain institute State the type of the picture file of default folder storage.
In one embodiment, if the quantity of documents in the default storage file is greater than preset amount threshold, The file store path of the storage terminal is then set to point to preset specified folder, wherein in the specified folder Quantity of documents less than the step S6 of the quantity of documents in the default storage file, include:
If the quantity of documents in S601, default storage file is greater than preset amount threshold, in the default storage Specified folder is created in higher level's catalogue of file;
S602, the afterbody subdirectory for being directed toward the path of the default storage file is revised as the specified file Folder, to obtain the specified path for being directed toward the specified folder;
S603, the specified path is set by the file store path of the storage terminal.
The file store path of the storage terminal is set to point to preset specified file as described above, realizing Folder.Present embodiment uses the file newly built as specified folder, so that ancient deed be avoided to interfere document storage management. And the specified text is revised as using the afterbody subdirectory in the path to the current direction default storage file Part folder sets the file store path of the storage terminal to obtain the specified path for being directed toward the specified folder The specified path without rebuilding store path, and makes new and old two storage folders belong to identical father Under catalogue, with convenience file management.
The store path setting method using file counter of the application, the designated pictures that transmission terminal uploads in reception; If the file size of the designated pictures is greater than preset size threshold value, the counting of preset file counter is increased by first Predetermined value;If the current reading of the file counter is greater than preset reading threshold value, by the meter of the file counter Number is reset;If the quantity of documents in default storage file is greater than preset amount threshold, by the file of the storage terminal Store path is set to point to preset specified folder.To realize the quantity of documents for automatically controlling file, facilitate text Part management.
Referring to Fig. 2, the embodiment of the present application provides a kind of store path using file counter and device is arranged, applied to depositing Store up terminal, comprising:
Designated pictures receiving unit 10, the designated pictures uploaded for receiving upper transmission terminal;
Size threshold value judging unit 20, for judging whether the file size of the designated pictures is greater than preset size threshold Value;
First predetermined value adding unit 30, if the file size for the designated pictures is greater than preset size threshold The counting of preset file counter is then increased by the first predetermined value by value;
Threshold decision unit 40 is read, for obtaining the current reading of the file counter, and judges the file meter Whether the current reading of number device is greater than preset reading threshold value;
Amount threshold judging unit 50, if the current reading for the file counter is greater than preset reading threshold value, Then the counting of the file counter is reset, and judges whether the quantity of documents in default storage file is greater than preset number Measure threshold value;
Store path setting unit 60, if being greater than preset quantity threshold for the quantity of documents in default storage file The file store path of the storage terminal is then set to point to preset specified folder, wherein the specified file by value Quantity of documents in folder is less than the quantity of documents in the default storage file.
Wherein said units are respectively used to the storage road using file counter of the operation executed and aforementioned embodiments The step of diameter setting method, corresponds, and details are not described herein.
In one embodiment, the size threshold value judging unit 20, comprising:
Contours extract subelement, for extracting the image in the designated pictures using preset contours extract rule Profile;
Silhouette contrast subelement, for utilizing preset profile difference algorithm, by the profile of described image and preset mark Quasi- facial contour compares, to obtain difference degree value;
Discrepancy threshold judgment sub-unit, for judging whether the difference degree value is less than preset discrepancy threshold;
Size threshold value judgment sub-unit, if for the difference degree value be less than preset discrepancy threshold, judgement described in Whether the file size of designated pictures is greater than preset size threshold value.
Wherein above-mentioned subelement is respectively used to the operation executed and the storage using file counter of aforementioned embodiments The step of path setting method, corresponds, and details are not described herein.
In one embodiment, described device, comprising:
Second predetermined value adding unit, if the file size for the designated pictures is not more than preset size threshold The counting of preset file counter is then increased by the second predetermined value by value, wherein second predetermined value is less than described the One predetermined value;
Threshold decision unit is read, for obtaining the current reading of the file counter, and judges that the file counts Whether the current reading of device is greater than preset reading threshold value;
Quantity of documents judging unit, if the current reading for the file counter is greater than preset reading threshold value, The counting of the file counter is reset, and judges whether the quantity of documents in default storage file is greater than preset quantity Threshold value;
Store path setting unit, if being greater than preset amount threshold for the quantity of documents in default storage file, The file store path of the storage terminal is then set to point to preset specified folder, wherein in the specified folder Quantity of documents less than the quantity of documents in the default storage file.
Wherein said units are respectively used to the storage road using file counter of the operation executed and aforementioned embodiments The step of diameter setting method, corresponds, and details are not described herein.
In one embodiment, the designated pictures there are multiple, wrap by the first predetermined value adding unit 30 It includes:
Numerical value M computation subunit, for according to formula: M=paA+pbB calculates numerical value M, wherein multiple described specified figures There are p in pieceaFile size is greater than the picture of preset size threshold value, and there are p in the designated picturesbOpen file size not Greater than the picture of preset size threshold value, A, B are default fixed numbers, and wherein A is greater than B;
Increase numerical value M subelement, for the counting of preset file counter to be increased numerical value M.
Wherein above-mentioned subelement is respectively used to the operation executed and the storage using file counter of aforementioned embodiments The step of path setting method, corresponds, and details are not described herein.
In one embodiment, described device, comprising:
Store path holding unit, if the current reading for the file counter is not more than preset reading threshold value, Then keep current store path;
Storage unit, for the designated pictures being saved to current store path and are referred to according to current store path To default storage file in.
Wherein said units are respectively used to the storage road using file counter of the operation executed and aforementioned embodiments The step of diameter setting method, corresponds, and details are not described herein.
In one embodiment, the default folder stores same type of picture file, described device, comprising:
Analytical unit, for analyzing the default folder, to obtain the picture file of the default folder storage Type;
Amount threshold acquiring unit, for the corresponding relationship using preset type and amount threshold, according to the picture The type of file obtains amount threshold corresponding with the default folder.
Wherein said units are respectively used to the storage road using file counter of the operation executed and aforementioned embodiments The step of diameter setting method, corresponds, and details are not described herein.
In one embodiment, the store path setting unit 60, comprising:
Newly-built specified file clip unit, if being greater than preset quantity threshold for the quantity of documents in default storage file Value then creates specified folder in higher level's catalogue of the default storage file;
Subdirectory modifies subelement, for repairing the afterbody subdirectory for being directed toward the path of the default storage file It is changed to the specified folder, to obtain the specified path for being directed toward the specified folder;
Subelement is arranged in store path, for setting the specified circuit for the file store path of the storage terminal Diameter.
Wherein above-mentioned subelement is respectively used to the operation executed and the storage using file counter of aforementioned embodiments The step of path setting method, corresponds, and details are not described herein.
Device, the designated pictures that transmission terminal uploads in reception are arranged in the store path using file counter of the application; If the file size of the designated pictures is greater than preset size threshold value, the counting of preset file counter is increased by first Predetermined value;If the current reading of the file counter is greater than preset reading threshold value, by the meter of the file counter Number is reset;If the quantity of documents in default storage file is greater than preset amount threshold, by the file of the storage terminal Store path is set to point to preset specified folder.To realize the quantity of documents for automatically controlling file, facilitate text Part management.
Referring to Fig. 3, a kind of computer equipment is also provided in the embodiment of the present invention, which can be server, Its internal structure can be as shown in the figure.The computer equipment includes that the processor, memory, network connected by system bus connects Mouth and database.Wherein, the processor of the Computer Design is for providing calculating and control ability.The storage of the computer equipment Device includes non-volatile memory medium, built-in storage.The non-volatile memory medium be stored with operating system, computer program and Database.The internal memory provides environment for the operation of operating system and computer program in non-volatile memory medium.The meter The database for calculating machine equipment is used to store data used in the store path setting method using file counter.The computer equipment Network interface be used to communicate with external terminal by network connection.To realize one when the computer program is executed by processor Kind utilizes the store path setting method of file counter.
Above-mentioned processor executes the above-mentioned store path setting method using file counter, wherein the method includes Step respectively with execute aforementioned embodiments using file counter store path setting method the step of correspond, In This is repeated no more.
It will be understood by those skilled in the art that structure shown in figure, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme.
The computer equipment of the application, the designated pictures that transmission terminal uploads in reception;If the file of the designated pictures is big It is small to be greater than preset size threshold value, then the counting of preset file counter is increased by the first predetermined value;If the file meter The current reading of number device is greater than preset reading threshold value, then resets the counting of the file counter;If default storage file Quantity of documents in folder is greater than preset amount threshold, then is set to point to preset by the file store path of the storage terminal Specified folder.To realize the quantity of documents for automatically controlling file, convenience file management.
One embodiment of the application also provides a kind of computer readable storage medium, is stored thereon with computer program, calculates When machine program is executed by processor realize utilize file counter store path setting method, wherein the method includes step Suddenly respectively with execute aforementioned embodiments using file counter store path setting method the step of correspond, herein It repeats no more.
The computer readable storage medium of the application, the designated pictures that transmission terminal uploads in reception;If the designated pictures File size be greater than preset size threshold value, then the counting of preset file counter is increased by the first predetermined value;If institute The current reading for stating file counter is greater than preset reading threshold value, then resets the counting of the file counter;If default Quantity of documents in storage folder is greater than preset amount threshold, then sets the file store path of the storage terminal to It is directed toward preset specified folder.To realize the quantity of documents for automatically controlling file, convenience file management.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, Any reference used in provided herein and embodiment to memory, storage, database or other media, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double speed are according to rate SDRAM (SSRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, device, article or the method that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, device, article or method institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, device of element, article or method.
The foregoing is merely preferred embodiment of the present application, are not intended to limit the scope of the patents of the application, all utilizations Equivalent structure or equivalent flow shift made by present specification and accompanying drawing content is applied directly or indirectly in other correlations Technical field, similarly include in the scope of patent protection of the application.

Claims (10)

1. a kind of store path setting method using file counter, which is characterized in that be applied to storage terminal, comprising:
The designated pictures that transmission terminal uploads in reception;
Judge whether the file size of the designated pictures is greater than preset size threshold value;
If the file size of the designated pictures is greater than preset size threshold value, the counting of preset file counter is increased First predetermined value;
The current reading of the file counter is obtained, and it is preset to judge whether the current reading of the file counter is greater than Read threshold value;
If the current reading of the file counter is greater than preset reading threshold value, and the counting of the file counter is clear Zero, and judge whether the quantity of documents in default storage file is greater than preset amount threshold;
If the quantity of documents in default storage file is greater than preset amount threshold, the file of the storage terminal is stored Path is set to point to preset specified folder, wherein the quantity of documents in the specified folder is less than the default storage Quantity of documents in file.
2. the store path setting method according to claim 1 using file counter, which is characterized in that the storage For terminal for storing face picture, whether the file size for judging the designated pictures is greater than the step of preset size threshold value Suddenly, comprising:
Using preset contours extract rule, the profile of the image in the designated pictures is extracted;
Using preset profile difference algorithm, the profile of described image and preset standard faces profile are compared, thus Obtain difference degree value;
Judge whether the difference degree value is less than preset discrepancy threshold;
If the difference degree value is less than preset discrepancy threshold, it is pre- to judge whether the file size of the designated pictures is greater than If size threshold value.
3. the store path setting method according to claim 1 using file counter, which is characterized in that the judgement After the step of whether file size of the designated pictures is greater than preset size threshold value, comprising:
If the file size of the designated pictures is not more than preset size threshold value, the counting of preset file counter is increased Add the second predetermined value, wherein second predetermined value is less than first predetermined value;
The current reading of the file counter is obtained, and it is preset to judge whether the current reading of the file counter is greater than Read threshold value;
If the current reading of the file counter is greater than preset reading threshold value, and the counting of the file counter is clear Zero, and judge whether the quantity of documents in default storage file is greater than preset amount threshold;
If the quantity of documents in default storage file is greater than preset amount threshold, the file of the storage terminal is stored Path is set to point to preset specified folder, wherein the quantity of documents in the specified folder is less than the default storage Quantity of documents in file.
4. the store path setting method according to claim 1 using file counter, which is characterized in that described specified There are multiple for picture, if the file size of the designated pictures is greater than preset size threshold value, by preset file meter The step of counting of number device increases by the first predetermined value, comprising:
According to formula: M=paA+pbB calculates numerical value M, and wherein there are p in multiple described designated picturesaFile size is opened to be greater than The picture of preset size threshold value, there are p in the designated picturesbOpen the figure that file size is not more than preset size threshold value Piece, A, B are default fixed numbers, and wherein A is greater than B;
The counting of preset file counter is increased into numerical value M.
5. the store path setting method according to claim 1 using file counter, which is characterized in that the acquisition The current reading of the file counter, and judge whether the current reading of the file counter is greater than preset reading threshold value The step of after, comprising:
If the current reading of the file counter is not more than preset reading threshold value, current store path is kept;
According to current store path, the designated pictures are saved to the default storage file of current store path direction In.
6. the store path setting method according to claim 1 using file counter, which is characterized in that the default File stores same type of picture file, if the current reading of the file counter is greater than preset reading threshold Value then resets the counting of the file counter, and it is default to judge whether the quantity of documents in default storage file is greater than Amount threshold the step of before, comprising:
The default folder is analyzed, to obtain the type of the picture file of the default folder storage;
It is obtained and the default using the corresponding relationship of preset type and amount threshold according to the type of the picture file The corresponding amount threshold of file.
7. the store path setting method according to claim 1 using file counter, which is characterized in that if described silent The quantity of documents recognized in storage folder is greater than preset amount threshold, then the file store path of the storage terminal is arranged To be directed toward preset specified folder, wherein the quantity of documents in the specified folder is less than in the default storage file Quantity of documents the step of, include:
If the quantity of documents in default storage file is greater than preset amount threshold, in the upper of the default storage file Specified folder is created in grade catalogue;
The afterbody subdirectory for being directed toward the path of the default storage file is revised as the specified folder, thus To the specified path for being directed toward the specified folder;
The specified path is set by the file store path of the storage terminal.
8. device is arranged in a kind of store path using file counter, which is characterized in that be applied to storage terminal, comprising:
Designated pictures receiving unit, the designated pictures uploaded for receiving upper transmission terminal;
Size threshold value judging unit, for judging whether the file size of the designated pictures is greater than preset size threshold value;
First predetermined value adding unit will if the file size for the designated pictures is greater than preset size threshold value The counting of preset file counter increases by the first predetermined value;
Threshold decision unit is read, for obtaining the current reading of the file counter, and judges the file counter Whether current reading is greater than preset reading threshold value;
Amount threshold judging unit, if the current reading for the file counter is greater than preset reading threshold value, by institute The counting for stating file counter is reset, and judges whether the quantity of documents in default storage file is greater than preset quantity threshold Value;
Store path setting unit will if being greater than preset amount threshold for the quantity of documents in default storage file The file store path of the storage terminal is set to point to preset specified folder, wherein the text in the specified folder Number of packages amount is less than the quantity of documents in the default storage file.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
CN201910537911.0A 2019-06-20 2019-06-20 Storage path setting method and device using file counter and computer equipment Active CN110399346B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910537911.0A CN110399346B (en) 2019-06-20 2019-06-20 Storage path setting method and device using file counter and computer equipment
PCT/CN2019/103543 WO2020252929A1 (en) 2019-06-20 2019-08-30 Method and apparatus for configuring storage path by using file counter, and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910537911.0A CN110399346B (en) 2019-06-20 2019-06-20 Storage path setting method and device using file counter and computer equipment

Publications (2)

Publication Number Publication Date
CN110399346A true CN110399346A (en) 2019-11-01
CN110399346B CN110399346B (en) 2024-01-16

Family

ID=68323276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910537911.0A Active CN110399346B (en) 2019-06-20 2019-06-20 Storage path setting method and device using file counter and computer equipment

Country Status (2)

Country Link
CN (1) CN110399346B (en)
WO (1) WO2020252929A1 (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010112636A (en) * 2000-06-14 2001-12-20 이데이 노부유끼 Information processing apparatus, information processing method, information management system, and program storage medium
US20110050913A1 (en) * 2009-08-28 2011-03-03 Samsung Electronics Co., Ltd. Method of controlling digital photographing apparatus having memory, recording medium for recording the method, and digital photographing apparatus
US20120102005A1 (en) * 2010-10-26 2012-04-26 Hitachi, Ltd. File management method and computer system
CN102769752A (en) * 2012-07-25 2012-11-07 北京汉王智通科技有限公司 JPEG image compression method and system
US20160217078A1 (en) * 2015-01-26 2016-07-28 International Business Machines Corporation Dynamically controlling a file system write cache
CN107133357A (en) * 2017-05-26 2017-09-05 维沃移动通信有限公司 A kind of picture storage method and mobile terminal
CN107239522A (en) * 2017-05-26 2017-10-10 努比亚技术有限公司 Picture storage method, equipment and computer-readable storage medium
CN108319524A (en) * 2018-02-02 2018-07-24 郑州云海信息技术有限公司 A kind of method and device that baseboard management controller passes through KVM carry files
CN108595589A (en) * 2018-04-19 2018-09-28 中国科学院电子学研究所苏州研究院 A kind of efficient access method of magnanimity science data picture
US20190294587A1 (en) * 2015-09-27 2019-09-26 Saurabh A. Prakash Customizable browser for computer filesystem and electronic mail
US20200019535A1 (en) * 2015-10-01 2020-01-16 PacByte Solutions Pty Ltd Method and system for preparing data files for transmission over a data network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9319563B1 (en) * 2015-02-05 2016-04-19 Kabushiki Kaisha Toshiba Image processing device and method for processing image data
CN107239543A (en) * 2017-06-05 2017-10-10 深圳天珑无线科技有限公司 Application icon processing method and processing device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010112636A (en) * 2000-06-14 2001-12-20 이데이 노부유끼 Information processing apparatus, information processing method, information management system, and program storage medium
US20110050913A1 (en) * 2009-08-28 2011-03-03 Samsung Electronics Co., Ltd. Method of controlling digital photographing apparatus having memory, recording medium for recording the method, and digital photographing apparatus
US20120102005A1 (en) * 2010-10-26 2012-04-26 Hitachi, Ltd. File management method and computer system
CN102769752A (en) * 2012-07-25 2012-11-07 北京汉王智通科技有限公司 JPEG image compression method and system
US20160217078A1 (en) * 2015-01-26 2016-07-28 International Business Machines Corporation Dynamically controlling a file system write cache
US20190294587A1 (en) * 2015-09-27 2019-09-26 Saurabh A. Prakash Customizable browser for computer filesystem and electronic mail
US20200019535A1 (en) * 2015-10-01 2020-01-16 PacByte Solutions Pty Ltd Method and system for preparing data files for transmission over a data network
CN107133357A (en) * 2017-05-26 2017-09-05 维沃移动通信有限公司 A kind of picture storage method and mobile terminal
CN107239522A (en) * 2017-05-26 2017-10-10 努比亚技术有限公司 Picture storage method, equipment and computer-readable storage medium
CN108319524A (en) * 2018-02-02 2018-07-24 郑州云海信息技术有限公司 A kind of method and device that baseboard management controller passes through KVM carry files
CN108595589A (en) * 2018-04-19 2018-09-28 中国科学院电子学研究所苏州研究院 A kind of efficient access method of magnanimity science data picture

Also Published As

Publication number Publication date
WO2020252929A1 (en) 2020-12-24
CN110399346B (en) 2024-01-16

Similar Documents

Publication Publication Date Title
CN108377240B (en) Abnormal interface detection method and device, computer equipment and storage medium
CN109040191B (en) File downloading method and device, computer equipment and storage medium
WO2020119419A1 (en) Image recognition-based testing and apparatus, and computer device and storage medium
CN107545160A (en) Fingerprint identification method and device
CN109284920B (en) Big data-based user information risk assessment method and system
CN110598557A (en) Lost person information matching method and device, computer equipment and storage medium
CN108492005A (en) Project data processing method, device, computer equipment and storage medium
CN110351332A (en) Method, apparatus, computer equipment and the storage medium of dynamic adjustment time threshold value
CN109325118A (en) Uneven sample data preprocess method, device and computer equipment
CN110648127A (en) Resource transfer method, device, computer equipment and storage medium
CN103220352A (en) Terminal, server, file storage system and file storage method
CN111145106A (en) Image enhancement method, device, medium and equipment
CN110211240B (en) Registration-free identification augmented reality method
CN109308704A (en) Background elimination method, device, computer equipment and storage medium
CN110458497A (en) Express delivery cabinet posts part method, apparatus, server and storage medium
CN111209061A (en) Method and device for filling in user information, computer equipment and storage medium
CN112446402A (en) Loading rate identification method and device, computer equipment and storage medium
CN110399346A (en) Utilize store path setting method, device and the computer equipment of file counter
CN110263032A (en) Table structure control methods, device, computer equipment and storage medium in database
CN117391544A (en) Decoration project management method and system based on BIM
CN112488053A (en) Face recognition method and device, robot and storage medium
CN103927341B (en) A kind of method and device for obtaining scene information
CN116701360A (en) Data migration method and system
CN109739930A (en) Date storage method, device based on distributed cache system, computer equipment
CN108153855A (en) Method, apparatus, computer equipment and the storage medium of Claims Resolution image data storage

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant