CN106844431A - File memory method, device and its electronic equipment - Google Patents

File memory method, device and its electronic equipment Download PDF

Info

Publication number
CN106844431A
CN106844431A CN201611142330.XA CN201611142330A CN106844431A CN 106844431 A CN106844431 A CN 106844431A CN 201611142330 A CN201611142330 A CN 201611142330A CN 106844431 A CN106844431 A CN 106844431A
Authority
CN
China
Prior art keywords
file
data storage
file destination
destination
original path
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
CN201611142330.XA
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.)
Beijing Cheetah Mobile Technology Co Ltd
Original Assignee
Beijing Cheetah Mobile Technology 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 Beijing Cheetah Mobile Technology Co Ltd filed Critical Beijing Cheetah Mobile Technology Co Ltd
Priority to CN201611142330.XA priority Critical patent/CN106844431A/en
Publication of CN106844431A publication Critical patent/CN106844431A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1748De-duplication implemented within the file system, e.g. based on file segments

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

The application proposes a kind of file memory method, device and its electronic equipment, wherein, method includes:The All Files of memory space is scanned, the data storage of each file is generated, wherein, data storage includes:Original path, file name, file content mark;N number of file destination with same file content identification is obtained according to all of data storage, wherein, N is the integer more than 1;A file destination is stored in memory space, and corresponding file is deleted according to the original path and file name recorded in the data storage of remaining file destination.Thus, it is to avoid duplicate file takes memory space, memory space is saved, improves the effective rate of utilization of memory space.

Description

File memory method, device and its electronic equipment
Technical field
The application is related to field of computer technology, more particularly to a kind of file memory method, device and its electronic equipment.
Background technology
At present, terminal device has become the important tool of acquisition information in people's daily life.Thus, terminal device is deposited Storage is no longer the files such as word, picture, also takes memory space than larger file including video, music file etc..
File memory method in correlation technique be mainly be input to the file of terminal device all it is simple preserve under Come, the file of storage device correspond to the store path of in terminal device, and same file can be stored in different Path, such as A.txt file paths are /sdcard/file/A.txt, or/sdcard/other/A.txt, thus, Exist in storage device and preserve many parts of situations of the data of repetition.
In addition, the limited storage space of terminal device, in use for some time, it may appear that memory space inadequate, causes User needs to go to delete partial information or file regularly.Therefore, existing file memory method, it is impossible to which enough saving is deposited Storage space, and memory space utilization rate than relatively low.
The content of the invention
The purpose of the application is intended at least solve to a certain extent one of technical problem in correlation technique.
Therefore, first purpose of the application is to propose a kind of file memory method, this method avoid duplicate file Memory space is taken, memory space is saved, the effective rate of utilization of memory space is improved.
Second purpose of the application is to propose a kind of file storage device.
3rd purpose of the application is to propose a kind of electronic equipment.
4th purpose of the application is to propose a kind of non-transitorycomputer readable storage medium.
5th purpose of the application is to propose a kind of computer program product.
It is that, up to above-mentioned purpose, the application first aspect embodiment proposes a kind of file memory method, including:Scanning storage The All Files in space, generates the data storage of each file, wherein, the data storage includes:Original path, filename Claim, file content mark;N number of file destination with same file content identification is obtained according to all of data storage, Wherein, N is the integer more than 1;A file destination is stored in the memory space, and according to remaining target text The original path and file name recorded in the data storage of part delete corresponding file.
The file memory method of the embodiment of the present application, by scanning the All Files of memory space, generates each file bag Original path is included, then file name, the data storage of file content mark is obtained with identical according to all of data storage N number of file destination of file content mark, and a file destination is stored in memory space, and according to remaining file destination The original path and file name recorded in data storage delete corresponding file.Thus, it is to avoid duplicate file takes storage Space, saves memory space, improves the effective rate of utilization of memory space.
In addition, the file memory method according to the above embodiments of the present application can also have following additional technical characteristic:
Optionally, a file destination is stored in the memory space, and according to remaining file destination The original path and file name recorded in data storage delete corresponding file, including:Selected from N number of file destination File destination M is retained in the memory space;The original recorded in data storage according to remaining (N-1) the individual file destination Beginning path and file name delete corresponding (N-1) individual file.
Optionally, described method, also includes:The original path that will be recorded in the data storage of the file destination M, with The original path recorded in the data storage of remaining (N-1) individual described file destination is associated.
Optionally, a file destination is stored in the memory space, and according to remaining file destination The original path and file name recorded in data storage delete corresponding file, including:By appointing in N number of file destination One file destination is copied in the memory space in default share directory as file destination P, and is recorded and the target The corresponding data storages of file P, wherein, the data storage includes:Shared store path, file name, file content mark; The original path and file name recorded in data storage according to N number of file destination delete corresponding N number of file.
Optionally, described method, also includes:The shared storage road that will be recorded in the data storage of the file destination P The original path recorded in footpath, with the data storage of N number of file destination is associated.
It is that, up to above-mentioned purpose, the application second aspect embodiment proposes a kind of file storage device, including:First treatment Module, the All Files for scanning memory space, generates the data storage of each file, wherein, the data storage includes: Original path, file name, file content mark;Acquisition module, has phase for being obtained according to all of data storage With N number of file destination of file content identification, wherein, N is the integer more than 1;Second processing module, for empty in the storage Between it is middle storage one file destination, and according in the data storage of remaining file destination record original path and text Part title deletes corresponding file.
The file storage device of the embodiment of the present application, by scanning the All Files of memory space, generates each file bag Original path is included, then file name, the data storage of file content mark is obtained with identical according to all of data storage N number of file destination of file content mark, and a file destination is stored in memory space, and according to remaining file destination The original path and file name recorded in data storage delete corresponding file.Thus, it is to avoid duplicate file takes storage Space, saves memory space, improves the effective rate of utilization of memory space.
In addition, the file storage device according to the above embodiments of the present application can also have following additional technical characteristic:
Alternatively, Second processing module is used for:File destination M is selected from N number of file destination and is retained in described depositing In storage space;The original path and file name recorded in data storage according to remaining (N-1) the individual file destination are deleted Corresponding (N-1) individual file.
Alternatively, described device, also includes:First relating module, for by the data storage of the file destination M The original path recorded in the original path of record, with the data storage of remaining (N-1) the individual file destination is associated.
Alternatively, Second processing module is used for:Either objective file copy in N number of file destination is deposited described in As file destination P in default share directory in storage space, and data storage corresponding with the file destination P is recorded, its In, the data storage includes:Shared store path, file name, file content mark;According to N number of file destination The original path and file name recorded in data storage delete corresponding N number of file.
Alternatively, described device, also includes:Second relating module, for by the data storage of the file destination P The original path recorded in the shared store path of record, with the data storage of N number of file destination is associated.
It is that, up to above-mentioned purpose, the application third aspect embodiment proposes a kind of electronic equipment, and the electronic equipment includes: Housing, processor, memory, circuit board and power circuit, wherein, circuit board is placed in the interior volume that housing is surrounded, treatment Device and memory are set on circuit boards;Power circuit, powers for each circuit or device for above-mentioned electronic equipment;Storage Device is used to store executable program code;Processor run by reading the executable program code stored in memory with can The corresponding program of configuration processor code, for performing following operation:The All Files of memory space is scanned, each file is generated Data storage, wherein, the data storage includes:Original path, file name, file content mark;According to all of described Data storage obtains the N number of file destination with same file content identification, wherein, N is the integer more than 1;In the storage In space store a file destination, and according in the data storage of remaining file destination record original path and File name deletes corresponding file.
To achieve these goals, the application fourth aspect embodiment proposes a kind of non-transitory computer-readable storage Medium, when the instruction in the storage medium is performed by the processor of server end so that server end is able to carry out one File memory method is planted, methods described includes:The All Files of memory space is scanned, the data storage of each file is generated, its In, the data storage includes:Original path, file name, file content mark;Obtained according to all of data storage N number of file destination with same file content identification, wherein, N is the integer more than 1;One is stored in the memory space The individual file destination, and deleted according to the original path and file name recorded in the data storage of remaining file destination Corresponding file.
To achieve these goals, the aspect embodiment of the application the 5th proposes a kind of computer program product, when described When instruction processing unit in computer program product is performed, a kind of file memory method is performed, methods described includes:Scanning storage The All Files in space, generates the data storage of each file, wherein, the data storage includes:Original path, filename Claim, file content mark;N number of file destination with same file content identification is obtained according to all of data storage, Wherein, N is the integer more than 1;A file destination is stored in the memory space, and according to remaining target text The original path and file name recorded in the data storage of part delete corresponding file.
The aspect and advantage that the application is added will be set forth in part in the description, and will partly become from the following description Substantially, or recognized by the practice of the application.
Brief description of the drawings
The above-mentioned and/or additional aspect of the application and advantage will become from the following description of the accompanying drawings of embodiments Substantially and be readily appreciated that, wherein:
A kind of schematic flow sheet of file memory method that Fig. 1 is provided for the embodiment of the present application;
The schematic flow sheet of another file memory method that Fig. 2 is provided for the embodiment of the present application;
The schematic flow sheet of another file memory method that Fig. 3 is provided for the embodiment of the present application;
A kind of structural representation of file storage device that Fig. 4 is provided for the embodiment of the present application;
The structural representation of another file storage device that Fig. 5 is provided for the embodiment of the present application;
The structural representation of a kind of electronic equipment that Fig. 6 is provided for the embodiment of the present application.
Specific embodiment
Embodiments herein is described below in detail, the example of the embodiment is shown in the drawings, wherein from start to finish Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached It is exemplary to scheme the embodiment of description, it is intended to for explaining the application, and it is not intended that limitation to the application.
Below with reference to the accompanying drawings the file memory method, device and its electronic equipment of the embodiment of the present application described.
Generally, storage all correspond to a store path in the file of storage device.Thus, same file can Different paths are stored in, there is a problem that duplicate file takes memory space.
In order to solve the above problems, the embodiment of the present application proposes a kind of file memory method.There are multiple duplicate files When taking memory space, a file is preserved at random and other duplicate files will be deleted, so that terminal device can store more File, improves the effective rate of utilization of memory space.It is specific as follows:
A kind of schematic flow sheet of file memory method that Fig. 1 is provided for the embodiment of the present application.
As shown in figure 1, this document storage method is comprised the following steps:
Step 110, scans the All Files of memory space, generates the data storage of each file, wherein, data storage bag Include:Original path, file name, file content mark.
Specifically, multiple files, such as video file, picture file etc. are store in memory space.Each file has There are corresponding file size, file name and file original path etc..
Further, the All Files in scanning memory space, obtains file name, original path, the text of each file One or more in part size and file creation time etc..
As a kind of example, the file name and file creation time of each file are obtained, and by preset algorithm (such as MD5 algorithms) generate each file file content mark (MD5 yards), it is to be understood that different files, its file content Mark is different.
Further, the file name and file path of each file and the file content of above-mentioned each file are obtained Identify as the data storage of each file.
Wherein, the form of data storage has many kinds, such as can be database column sheet form.Illustrate such as the institute of table 1 Show:
Table 1 is the data storage () of database column sheet form
File name Original path File content is identified
A.mp4 /sdcard/first/A.mp4 filexxx
B.mp4 /sdcard/second/B.mp4 fileyyy
C.mp4 /sdcard/third/C.mp4 filezzz
OtherA.mp4 /sdcard/other/OtherA.mp4 filexxx
Step 120, the N number of file destination with same file content identification is obtained according to all of data storage, wherein, N is the integer more than 1.
Specifically, its file content of different files mark is different.Thus, the identical expression of file content mark is phase identical text Part, can search the N number of file destination with same file content identification by all of data storage.Wherein, N be more than 1 integer.
Continuation is illustrated by taking table 1 as an example, and 2 mesh with same file content identification " filexxx " are searched in table 1 Mark file " A.mp4 " and " OtherA.mp4 ".
Step 130, stores a file destination, and remember according in the data storage of remaining file destination in memory space The original path and file name of record delete corresponding file.
Specifically, a file destination in multiple file destinations is preserved in memory space, by remaining file destination Delete.Corresponding file can be found simultaneously by the original path and file name that are recorded in the data storage of remaining file destination Delete.
The implementation of said process has many kinds, can be needed to carry out selection setting according to practical application.Illustrate It is as follows:
The first example, file destination M is selected from N number of file destination and is retained in memory space;According to remaining (N-1) The original path and file name recorded in the data storage of individual file destination delete corresponding (N-1) individual file.
Second example, by the either objective file copy in N number of file destination to default shared mesh in memory space As file destination P in record, and data storage corresponding with file destination P is recorded, wherein, data storage includes:Shared storage Path, file name, file content mark, and according to the original path and file recorded in the data storage of N number of file destination Title deletes corresponding N number of file.
In sum, the file memory method of the embodiment of the present application, by scanning the All Files of memory space, generation is every Individual file includes original path, and then file name, the data storage of file content mark obtains according to all of data storage N number of file destination with same file content identification, and a file destination is stored in memory space, and according to remaining mesh Mark the original path and the corresponding file of file name deletion recorded in the data storage of file.Thus, it is to avoid duplicate file Memory space is taken, memory space is saved, the effective rate of utilization of memory space is improved.
The schematic flow sheet of another file memory method that Fig. 2 is provided for the embodiment of the present application.
As shown in Fig. 2 this document storage method is comprised the following steps:
Step 210, scans the All Files of memory space, generates the data storage of each file, wherein, data storage bag Include:Original path, file name, file content mark.
Step 220, the N number of file destination with same file content identification is obtained according to all of data storage, wherein, N is the integer more than 1.
It should be noted that the description of step S210-S220 is corresponding with above-mentioned steps S110-S120, thus to step The description of rapid S210-S220 will not be repeated here with reference to the description of above-mentioned steps S110-S120.
Step 230, file destination M is selected from N number of file destination and is retained in memory space.
Step 240, the original path and file name recorded in the data storage according to remaining (N-1) individual file destination is deleted Except corresponding (N-1) individual file.
Specifically, a file destination M can be at random selected from N number of file destination to be retained in memory space, and will Remaining N-1 file destination is deleted, can be by the original path and file of record in the N-1 data storage of file destination Title finds corresponding file and deletes.
By taking the table 1 in above-described embodiment as an example, 2 with same file content identification " filexxx " are searched in table 1 File destination " A.mp4 " and " OtherA.mp4 "." A.mp4 " or " OtherA.mp4 " any being retained in can be selected to store empty Between in, such as select " A.mp4 " to be retained in memory space, and will the deletion of " OtherA.mp4 " corresponding file.
Step 250, the original path that will be recorded in the data storage of file destination M, with remaining (N-1) individual file destination The original path recorded in data storage is associated.
Specifically, follow-up for convenience query analysis need, the original that will can be recorded in the data storage of file destination M Beginning path with the data storage of remaining (N-1) individual file destination in record original path be associated.In than such as above-mentioned example, The original path "/sdcard/first/A.mp4 " of " A.mp4 " is associated with "/sdcard/other/OtherA.mp4 ", Table 2 is obtained, it is as follows:
Table 2 is the data storage (two) of database column sheet form
In sum, the file memory method of the embodiment of the present application, by selecting file destination M from N number of file destination It is retained in memory space, and according to the original path and filename recorded in the data storage of remaining (N-1) individual file destination Claim to delete corresponding (N-1) individual file, the original path that will finally be recorded in the data storage of file destination M, with remaining (N-1) The original path recorded in the data storage of individual file destination is associated.Duplicate file is deleted thereby, it is possible to quick so that use Family can store more multifile, improve memory space efficiency, and subsequent association treatment, be easy to subsequent query to record associated documents Information.
The schematic flow sheet of another file memory method that Fig. 3 is provided for the embodiment of the present application.
As shown in figure 3, this document storage method is comprised the following steps:
Step 310, scans the All Files of memory space, generates the data storage of each file, wherein, data storage bag Include:Original path, file name, file content mark.
Step 320, the N number of file destination with same file content identification is obtained according to all of data storage, wherein, N is the integer more than 1.
It should be noted that the description of step S310-S320 is corresponding with above-mentioned steps S110-S120, thus to step The description of rapid S310-S320 will not be repeated here with reference to the description of above-mentioned steps S110-S120.
Step 330, by the either objective file copy in N number of file destination to default share directory in memory space As file destination P, and data storage corresponding with file destination P is recorded, wherein, data storage includes:Shared store path, File name, file content mark.
Step 340, the original path recorded in the data storage according to N number of file destination and file name delete corresponding N number of file.
Specifically, can at random be selected from N number of file destination a file destination copy to it is default in memory space As file destination P in share directory.Wherein, default share directory can need to carry out selection setting according to practical application.
By taking the table 1 in above-described embodiment as an example, 2 with same file content identification " filexxx " are searched in table 1 File destination " A.mp4 " and " OtherA.mp4 "." A.mp4 " can be selected to copy to share directory, and (shared store path is such as It is "/sdcard/share/ShareA.mp4 ") in, then " A.mp4 " and " OtherA.mp4 " corresponding file is deleted,
Step 350, the shared store path that will be recorded in the data storage of file destination P, the storage with N number of file destination The original path recorded in data is associated.
Specifically, follow-up for convenience query analysis need, can be by shared store path, with N number of file destination The original path recorded in data storage is associated.
Continue by taking above-mentioned example as an example, in the original path and filename that will be recorded in the data storage of N number of file destination After claiming to delete corresponding N number of file deletion, the original road recorded in the data storage by shared store path with N number of file destination Footpath is associated.Table 3 is obtained, it is as follows:
Table 3 is the data storage (three) of database column sheet form
In sum, the file memory method of the embodiment of the present application, by by the either objective file in N number of file destination Copy in memory space in default share directory as file destination P, and record storage number corresponding with file destination P According to, wherein, data storage includes:Shared store path, file name, file content mark, and depositing according to N number of file destination The original path and file name recorded in storage data delete corresponding N number of file, finally by the data storage of file destination P The original path recorded in the shared store path of record, with the data storage of N number of file destination is associated.Thereby, it is possible to It is quick to delete duplicate file so that user can store more multifile, memory space efficiency, and subsequent association treatment are improved, It is easy to subsequent query to record associated documents information.
In order to realize above-described embodiment, the application also proposes a kind of file storage device.
A kind of structural representation of file storage device that Fig. 4 is provided for the embodiment of the present application.
As shown in figure 4, this document storage device includes:First processing module 41, acquisition module 42 and Second processing module 43。
Wherein, first processing module 41 is used to scan the All Files of memory space, generates the data storage of each file, Wherein, data storage includes:Original path, file name, file content mark.
Acquisition module 42 is used to obtain the N number of target text with same file content identification according to all of data storage Part, wherein, N is the integer more than 1.
Second processing module 43 is used to store a file destination in memory space, and depositing according to remaining file destination The original path and file name recorded in storage data delete corresponding file.
Further, in a kind of possible implementation of the embodiment of the present application, as shown in figure 5, on the basis of Fig. 4 On, this document storage device also includes:First relating module 44 and the second relating module 45.
Wherein, in one embodiment of the application, Second processing module 43 is used to select target from N number of file destination File M is retained in memory space;The original path and file recorded in data storage according to remaining (N-1) individual file destination Title deletes corresponding (N-1) individual file.
First relating module 44 is used for the original path that will be recorded in the data storage of file destination M, individual with remaining (N-1) The original path recorded in the data storage of file destination is associated.
Wherein, in one embodiment of the application, Second processing module 43 is used for any mesh in N number of file destination Mark file copy is to as file destination P, and recording deposit corresponding with file destination P in default share directory in memory space Storage data, wherein, data storage includes:Shared store path, file name, file content mark, according to N number of file destination The original path and file name recorded in data storage delete corresponding N number of file.
Second relating module 45 is used for the shared store path that will be recorded in the data storage of file destination P, with N number of target The original path recorded in the data storage of file is associated.
It should be noted that the foregoing explanation to file memory method embodiment is also applied for the embodiment of the present application File storage device, here is omitted.
In sum, the file storage device of the embodiment of the present application, by scanning the All Files of memory space, generation is every Individual file includes original path, and then file name, the data storage of file content mark obtains according to all of data storage N number of file destination with same file content identification, and a file destination is stored in memory space, and according to remaining mesh Mark the original path and the corresponding file of file name deletion recorded in the data storage of file.Thus, it is to avoid duplicate file Memory space is taken, memory space is saved, the effective rate of utilization of memory space is improved.
In order to realize above-described embodiment, the application also proposes a kind of electronic equipment.
The structural representation of a kind of electronic equipment that Fig. 6 is provided for the embodiment of the present application.
As shown in fig. 6, the electronic equipment includes:Including:Housing 61, processor 62, memory 63, circuit board 64 and power supply Circuit 65, wherein, circuit board 64 is placed in the interior volume that housing 61 is surrounded, and processor 62 and memory 63 are arranged on circuit board On 64;Power circuit 65, powers for each circuit or device for above-mentioned electronic equipment;Memory 63 is used to store executable Program code;Processor 62 is run and executable program code by reading the executable program code stored in memory 63 Corresponding program, for performing following operation:
The All Files of memory space is scanned, the data storage of each file is generated, wherein, data storage includes:It is original Path, file name, file content mark;N number of mesh with same file content identification is obtained according to all of data storage Mark file, wherein, N is the integer more than 1;A file destination is stored in memory space, and according to remaining file destination The original path and file name recorded in data storage delete corresponding file.
In order to realize above-described embodiment, the application also proposes a kind of non-transitorycomputer readable storage medium, when described When instruction in storage medium is performed by the processor of server end so that server end is able to carry out a kind of file storage side Method, methods described includes:
The All Files of memory space is scanned, the data storage of each file is generated, wherein, data storage includes:It is original Path, file name, file content mark;N number of mesh with same file content identification is obtained according to all of data storage Mark file, wherein, N is the integer more than 1;A file destination is stored in memory space, and according to remaining file destination The original path and file name recorded in data storage delete corresponding file.
In order to realize above-described embodiment, the application also proposes a kind of computer program product, when the computer program is produced When instruction processing unit in product is performed, a kind of file memory method is performed, methods described includes:
The All Files of memory space is scanned, the data storage of each file is generated, wherein, data storage includes:It is original Path, file name, file content mark;N number of mesh with same file content identification is obtained according to all of data storage Mark file, wherein, N is the integer more than 1;A file destination is stored in memory space, and according to remaining file destination The original path and file name recorded in data storage delete corresponding file.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means to combine specific features, structure, material or spy that the embodiment or example are described Point is contained at least one embodiment of the application or example.In this manual, to the schematic representation of above-mentioned term not Identical embodiment or example must be directed to.And, the specific features of description, structure, material or feature can be with office Combined in an appropriate manner in one or more embodiments or example.Additionally, in the case of not conflicting, the skill of this area Art personnel can be tied the feature of the different embodiments or example described in this specification and different embodiments or example Close and combine.
Additionally, term " first ", " second " are only used for describing purpose, and it is not intended that indicating or implying relative importance Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can express or Implicitly include at least one this feature.In the description of the present application, " multiple " is meant that at least two, such as two, three It is individual etc., unless otherwise expressly limited specifically.
Any process described otherwise above or method description in flow chart or herein is construed as, and expression includes It is one or more for realizing custom logic function or process the step of the module of code of executable instruction, fragment or portion Point, and the scope of the preferred embodiment of the application includes other realization, wherein can not press shown or discussion suitable Sequence, including function involved by basis by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be by the application Embodiment person of ordinary skill in the field understood.
Represent in flow charts or logic and/or step described otherwise above herein, for example, being considered use In the order list of the executable instruction for realizing logic function, in may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or with reference to these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass The dress that defeated program is used for instruction execution system, device or equipment or with reference to these instruction execution systems, device or equipment Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:With the electricity that one or more are connected up Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can thereon print described program or other are suitable Medium, because optical scanner for example can be carried out by paper or other media, then enters edlin, interpretation or if necessary with it His suitable method is processed electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the application can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In implementation method, the software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage Or firmware is realized.Such as, if being realized, with another embodiment, following skill well known in the art being used with hardware Any one of art or their combination are realized:With the logic gates for realizing logic function to data-signal from Scattered logic circuit, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile Journey gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method is carried The rapid hardware that can be by program to instruct correlation is completed, and described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
Additionally, during each functional unit in the application each embodiment can be integrated in a processing module, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.The integrated module is such as Fruit is to realize in the form of software function module and as independent production marketing or when using, it is also possible to which storage is in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although having been shown above and retouching Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the application System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of application Type.

Claims (10)

1. a kind of file memory method, it is characterised in that comprise the following steps:
The All Files of memory space is scanned, the data storage of each file is generated, wherein, the data storage includes:It is original Path, file name, file content mark;
N number of file destination with same file content identification is obtained according to all of data storage, wherein, N is more than 1 Integer;
A file destination is stored in the memory space, and is remembered according in the data storage of remaining file destination The original path and file name of record delete corresponding file.
2. the method for claim 1 a, it is characterised in that file destination is stored in the memory space, And corresponding file, bag are deleted according to the original path and file name recorded in the data storage of remaining file destination Include:
File destination M is selected from N number of file destination to be retained in the memory space;
The original path and file name recorded in data storage according to remaining (N-1) the individual file destination delete corresponding (N-1) individual file.
3. method as claimed in claim 2, it is characterised in that also include:
The original path that will be recorded in the data storage of the file destination M, the storage with remaining (N-1) the individual file destination The original path recorded in data is associated.
4. the method for claim 1 a, it is characterised in that file destination is stored in the memory space, And corresponding file, bag are deleted according to the original path and file name recorded in the data storage of remaining file destination Include:
Using in default share directory in the either objective file copy in N number of file destination to the memory space as File destination P, and data storage corresponding with the file destination P is recorded, wherein, the data storage includes:Shared storage Path, file name, file content mark;
The original path and file name recorded in data storage according to N number of file destination delete corresponding N number of file.
5. method as claimed in claim 4, it is characterised in that also include:
The shared store path that will be recorded in the data storage of the file destination P, the data storage with N number of file destination The original path of middle record is associated.
6. a kind of file storage device, it is characterised in that including:
First processing module, the All Files for scanning memory space, generates the data storage of each file, wherein, it is described Data storage includes:Original path, file name, file content mark;
Acquisition module, for obtaining the N number of file destination with same file content identification according to all of data storage, Wherein, N is the integer more than 1;
Second processing module, for storing a file destination in the memory space, and according to remaining target The original path and file name recorded in the data storage of file delete corresponding file.
7. device as claimed in claim 6, it is characterised in that Second processing module is used for:
File destination M is selected from N number of file destination to be retained in the memory space;
The original path and file name recorded in data storage according to remaining (N-1) the individual file destination delete corresponding (N-1) individual file.
8. device as claimed in claim 7, it is characterised in that also include:
First relating module, it is individual with remaining (N-1) for the original path that will be recorded in the data storage of the file destination M The original path recorded in the data storage of the file destination is associated.
9. device as claimed in claim 6, it is characterised in that Second processing module is used for:
Using in default share directory in the either objective file copy in N number of file destination to the memory space as File destination P, and data storage corresponding with the file destination P is recorded, wherein, the data storage includes:Shared storage Path, file name, file content mark;
The original path and file name recorded in data storage according to N number of file destination delete corresponding N number of file.
10. a kind of electronic equipment, it is characterised in that the electronic equipment includes:Housing, processor, memory, circuit board and electricity Source circuit, wherein, circuit board is placed in the interior volume that housing is surrounded, and processor and memory are set on circuit boards;Power supply Circuit, powers for each circuit or device for above-mentioned electronic equipment;Memory is used to store executable program code;Treatment Device runs program corresponding with executable program code by reading the executable program code stored in memory, for holding The following operation of row:
The All Files of memory space is scanned, the data storage of each file is generated, wherein, the data storage includes:It is original Path, file name, file content mark;
N number of file destination with same file content identification is obtained according to all of data storage, wherein, N is more than 1 Integer;
A file destination is stored in the memory space, and is remembered according in the data storage of remaining file destination The original path and file name of record delete corresponding file.
CN201611142330.XA 2016-12-12 2016-12-12 File memory method, device and its electronic equipment Pending CN106844431A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611142330.XA CN106844431A (en) 2016-12-12 2016-12-12 File memory method, device and its electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611142330.XA CN106844431A (en) 2016-12-12 2016-12-12 File memory method, device and its electronic equipment

Publications (1)

Publication Number Publication Date
CN106844431A true CN106844431A (en) 2017-06-13

Family

ID=59139328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611142330.XA Pending CN106844431A (en) 2016-12-12 2016-12-12 File memory method, device and its electronic equipment

Country Status (1)

Country Link
CN (1) CN106844431A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669920A (en) * 2018-12-07 2019-04-23 维沃移动通信有限公司 A kind of file delet method and terminal device
CN109710582A (en) * 2018-12-13 2019-05-03 创新科存储技术有限公司 A kind of share directory management method and device
CN110232051A (en) * 2019-05-29 2019-09-13 吉旗(成都)科技有限公司 Application program repeats method for processing resource and device
CN110231954A (en) * 2019-06-19 2019-09-13 上海卓易科技股份有限公司 Transmission, upgrade method and its storage medium are simplified for Android system OTA data
CN110647500A (en) * 2019-09-23 2020-01-03 Oppo广东移动通信有限公司 File storage method, device, terminal and computer readable storage medium
CN111782594A (en) * 2020-07-02 2020-10-16 湖南快乐阳光互动娱乐传媒有限公司 File storage method and device
CN112905547A (en) * 2021-03-25 2021-06-04 深圳潮数软件科技有限公司 Large file de-duplication and re-orientation method
CN116775508A (en) * 2023-08-24 2023-09-19 半糖去冰科技(北京)有限公司 Garbage cleaning method and system for android mobile phone

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079034A (en) * 2006-07-10 2007-11-28 腾讯科技(深圳)有限公司 System and method for eliminating redundancy file of file storage system
CN101141476A (en) * 2007-10-09 2008-03-12 创新科存储技术(深圳)有限公司 File storing, downloading method and device
CN102207939A (en) * 2010-03-31 2011-10-05 联想(北京)有限公司 Multi-hardware system data processing apparatus and method for deleting duplicated data
CN102867061A (en) * 2012-09-20 2013-01-09 北京奇虎科技有限公司 System management method and system management device
CN103227818A (en) * 2013-03-27 2013-07-31 福建伊时代信息科技股份有限公司 Terminal, server, file transferring method, file storage management system and file storage management method
CN104408111A (en) * 2014-11-24 2015-03-11 浙江宇视科技有限公司 Method and device for deleting duplicate data
CN105468686A (en) * 2015-11-17 2016-04-06 北京奇虎科技有限公司 Method and device for reducing redundant data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079034A (en) * 2006-07-10 2007-11-28 腾讯科技(深圳)有限公司 System and method for eliminating redundancy file of file storage system
CN101141476A (en) * 2007-10-09 2008-03-12 创新科存储技术(深圳)有限公司 File storing, downloading method and device
CN102207939A (en) * 2010-03-31 2011-10-05 联想(北京)有限公司 Multi-hardware system data processing apparatus and method for deleting duplicated data
CN102867061A (en) * 2012-09-20 2013-01-09 北京奇虎科技有限公司 System management method and system management device
CN103227818A (en) * 2013-03-27 2013-07-31 福建伊时代信息科技股份有限公司 Terminal, server, file transferring method, file storage management system and file storage management method
CN104408111A (en) * 2014-11-24 2015-03-11 浙江宇视科技有限公司 Method and device for deleting duplicate data
CN105468686A (en) * 2015-11-17 2016-04-06 北京奇虎科技有限公司 Method and device for reducing redundant data

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669920A (en) * 2018-12-07 2019-04-23 维沃移动通信有限公司 A kind of file delet method and terminal device
CN109710582A (en) * 2018-12-13 2019-05-03 创新科存储技术有限公司 A kind of share directory management method and device
CN110232051A (en) * 2019-05-29 2019-09-13 吉旗(成都)科技有限公司 Application program repeats method for processing resource and device
CN110231954A (en) * 2019-06-19 2019-09-13 上海卓易科技股份有限公司 Transmission, upgrade method and its storage medium are simplified for Android system OTA data
CN110647500A (en) * 2019-09-23 2020-01-03 Oppo广东移动通信有限公司 File storage method, device, terminal and computer readable storage medium
CN111782594A (en) * 2020-07-02 2020-10-16 湖南快乐阳光互动娱乐传媒有限公司 File storage method and device
CN112905547A (en) * 2021-03-25 2021-06-04 深圳潮数软件科技有限公司 Large file de-duplication and re-orientation method
CN116775508A (en) * 2023-08-24 2023-09-19 半糖去冰科技(北京)有限公司 Garbage cleaning method and system for android mobile phone
CN116775508B (en) * 2023-08-24 2023-10-31 半糖去冰科技(北京)有限公司 Garbage cleaning method and system for android mobile phone

Similar Documents

Publication Publication Date Title
CN106844431A (en) File memory method, device and its electronic equipment
CN101719141B (en) File processing method and system based on directory object
CN1975721B (en) Method and apparatus for managing content file information
JP4669067B2 (en) Dynamic fragment mapping
CN102184211B (en) File system, and method and device for retrieving, writing, modifying or deleting file
CN106874248A (en) article generation method and device based on artificial intelligence
JPS59128661A (en) Filing device of picture
CN102187359A (en) Dynamic content sorting using tags
CN110196840A (en) Document management method, device, readable storage medium storing program for executing and computer equipment
CN110888837A (en) Object storage small file merging method and device
US20100082663A1 (en) Method and System for Identifying Equivalent Digital Media Assets
US10515055B2 (en) Mapping logical identifiers using multiple identifier spaces
CN104008066B (en) File access method and device in a kind of optical disc storage system
CN101925898A (en) Method and apparatus for organizing media data in database
CN106899755A (en) Information sharing method, information sharing device and terminal
CN105955680A (en) Document printing method capable of supporting dynamic additional extended information
CN107621924A (en) A kind of method and apparatus based on high in the clouds cleaning solid state hard disc data
Lamiroy et al. A platform for storing, visualizing, and interpreting collections of noisy documents
CN110109866A (en) A kind of management method and equipment of file system directories
Kuswara Digital preservation effort of manuscripts collection: case studies of pustakabudaya. id as Indonesia heritage digital library
JPS63249267A (en) Electronic filing system
US10198209B2 (en) Memory storage recycling
JP2008546068A5 (en)
US10725926B2 (en) Managing a list of items stored in a cache
JPS59105141A (en) Managing method of electronic document

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
CB02 Change of applicant information

Address after: 100041 A-0071 2, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Beijing cheetah Mobile Technology Co., Ltd.

Address before: 100041 A-0071 2, 3 building, 30 industrial Street, Shijingshan District, Beijing.

Applicant before: Beijing cheetah Mobile Technology Co., Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20170613

RJ01 Rejection of invention patent application after publication