CN106202273A - File management method and system - Google Patents

File management method and system Download PDF

Info

Publication number
CN106202273A
CN106202273A CN201610505669.5A CN201610505669A CN106202273A CN 106202273 A CN106202273 A CN 106202273A CN 201610505669 A CN201610505669 A CN 201610505669A CN 106202273 A CN106202273 A CN 106202273A
Authority
CN
China
Prior art keywords
file
compressed
attribute information
default
module
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
CN201610505669.5A
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201610505669.5A priority Critical patent/CN106202273A/en
Publication of CN106202273A publication Critical patent/CN106202273A/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/1744Redundancy elimination performed by the file system using compression, e.g. sparse 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)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a kind of file management method, be applied in electronic equipment, described method includes: obtain the attribute information of the file of storage;It is defined as file to be compressed by meeting file corresponding to pre-conditioned attribute information;Described file to be compressed is compressed, and deletes this file to be compressed after generating compressed file;When described compressed file meets and uploads condition, upload described compressed file;And when completing described compressed file is uploaded, delete described compressed file.The present invention can improve the residue memory capacity of electronic equipment, strengthens the experience of user.

Description

File management method and system
[technical field]
The present invention relates to technical field of data administration, particularly relate to a kind of file management method and system.
[background technology]
Along with the development of science and technology, people are more and more higher to the storage capacity requirement of electronic equipment.If it is intended to reach satisfied User requires and then improves the purpose of Consumer's Experience, and the configuration of hardware needs constantly to promote.But the lifting of hardware configuration is often Rising violently along with cost.How need not increase hardware configuration simply, and to be more reasonably utilized memory space and become more to come The most important.All Files is not browsed statistics by existing technical scheme, may take phase by long-time no big file When most memory space, or the most scrappy small documents is mixed in some files, and causing wanting to look up certain has When using file, need to climb over a lot of discarded record and just can find.Therefore, current file management mode is poor efficiency, and takies Too many memory space.
[summary of the invention]
In view of the foregoing, it is necessary to a kind of file management method and system are provided, can be to meeting pre-conditioned file It is compressed processing, to save the memory space of electronic equipment.
A kind of file management method, is applied in electronic equipment, and described method includes:
Obtain the attribute information of the file of storage;
It is defined as file to be compressed by meeting file corresponding to pre-conditioned attribute information;
Described file to be compressed is compressed, and deletes this file to be compressed after generating compressed file;
When described compressed file meets and uploads condition, upload described compressed file;And
When completing described compressed file is uploaded, delete described compressed file.
According to a preferred embodiment of the present invention, the attribute information of the described file obtaining storage includes:
Scan the file of described storage every the first predetermined period, and obtain the attribute information of the file of described storage, its In, described attribute information includes following any one or more: file type, file size, file the time that accesses recently with And the access frequency of file.
According to a preferred embodiment of the present invention, described pre-conditioned following any one or more is included: preset literary composition Part type, default file size, preset the access time, preset access frequency, described will meet described pre-conditioned attribute letter The file that breath is corresponding is defined as file to be compressed and includes:
The file being consistent with described default file type is defined as file to be compressed;
The file that file size exceedes described default file size is defined as file to be compressed;
The nearest access time of file is defined as file to be compressed early than the file of described default access time;Or
The access frequency of file is defined as file to be compressed less than the file of described default access frequency.
According to a preferred embodiment of the present invention, described method also includes:
Scan described compressed file every the second predetermined period, judge according to the attribute information of described compressed file described Whether compressed file meets condition of uploading, wherein said upload condition include described compressed file be accessed for recently the time early than The compressed file preset is accessed for the time.
According to a preferred embodiment of the present invention, described method also includes:
When receiving the instruction that described compressed file is downloaded, download described compressed file;And
The compressed file downloaded is carried out decompression contract generation decompress file.
A kind of file management system, is applied in electronic equipment, and described system includes:
Acquisition module, for obtaining the attribute information of the file of storage;
Judge module, for being defined as file to be compressed by meeting file corresponding to pre-conditioned attribute information;
Compression module, for being compressed by described file to be compressed, and it is to be compressed to delete this after generating compressed file File;
Upper transmission module, for when described compressed file meets and uploads condition, uploading described compressed file;And
Removing module, when being used for uploading described compressed file, deletes described compressed file.
According to a preferred embodiment of the present invention, described acquisition module:
Scan the file of described storage every the first predetermined period, obtain the attribute information of the file of described storage, wherein, Described attribute information includes following any one or more: file type, file size, the nearest of file access time and literary composition The access frequency of part.
According to a preferred embodiment of the present invention, described pre-conditioned following any one or more is included: preset literary composition Part type, default file size, default access time, default access frequency, described judge module will meet described pre-conditioned File corresponding to attribute information be defined as file to be compressed and include:
The file being consistent with described default file type is defined as file to be compressed;
The file that file size exceedes described default file size is defined as file to be compressed;
The nearest access time of file is defined as file to be compressed early than the file of described default access time;Or
The access frequency of file is defined as file to be compressed less than the file of described default access frequency.
According to a preferred embodiment of the present invention, described judge module is additionally operable to:
Scan described compressed file every the second predetermined period, judge according to the attribute information of described compressed file described Whether compressed file meets condition of uploading, wherein said upload condition include described compressed file be accessed for recently the time early than The compressed file preset is accessed for the time.
According to a preferred embodiment of the present invention, described system also includes:
Download module, in time receiving the instruction being downloaded described compressed file, downloads described compressed file;And
Decompression module, decompresses file for the compressed file downloaded carries out decompression generation of contracing.
As can be seen from the above technical solutions, the file management method of the present invention and system, it is possible to will meet pre-conditioned File carry out automatic compression process such that it is able to discharge the memory space of electronic equipment easily, to through overcompression process after Compressed file meet when uploading condition, then this compressed file is uploaded, deletes this compressed file simultaneously, deposit with further saving Storage space.Visible, the present invention can not only manage, save memory space on the premise of not increasing any hardware cost, Also achieve the effective management and control to file, to shorten the time of user's locating file, thus improve Consumer's Experience.
[accompanying drawing explanation]
Fig. 1 is that the present invention shows for the hardware structure performing the preferred embodiment of the electronic equipment of a file management system It is intended to.
Fig. 2 is the flow chart of file management method preferred embodiment of the present invention.
Fig. 3 is the functional block diagram of file management system preferred embodiment of the present invention.
[main element symbol description]
[detailed description of the invention]
In order to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the accompanying drawings with specific embodiment pair The present invention is described in detail.Obviously, described embodiment is only a part of embodiment of the present invention rather than whole Embodiment.Moreover, it will be appreciated that specific embodiments described herein, only in order to explain the present invention, it is not used to limit this Bright.
As it is shown in figure 1, be that the present invention is for performing the hardware of the electronic equipment preferred embodiment of a file management system Configuration diagram.As shown in this hardware structure schematic diagram, electronic equipment 1 includes file management system 10.This electronic equipment 1 also wraps Include memory element 20, display unit 30 and processing unit 40.
Preferably, the file management method of the present invention is realized by the file management system 10 in described electronic equipment 1.
Described electronic equipment 1 include a kind of can according to the instruction being previously set or storing, automatically carry out numerical computations and/ Or the electronic equipment of information processing, its hardware includes but not limited to microprocessor, special IC (Application Specific Integrated Circuit, ASIC), programmable gate array (Field Programmable Gate Array, FPGA), digital processing unit (Digital Signal Processor, DSP), embedded device etc..Described electronic equipment 1 also may be used Including multiple subscriber equipmenies.Described subscriber equipment includes, but are not limited to any one can be with user by keyboard, mouse, remote control The modes such as device, touch pad or voice-operated device carry out the electronic product of man-machine interaction, such as, personal computer, panel computer, intelligence Mobile phone, personal digital assistant (Personal Digital Assistant, PDA), game machine, IPTV (Internet Protocol Television, IPTV), intellectual wearable device etc..Wherein, residing for described subscriber equipment Network includes but not limited to the Internet, wide area network, Metropolitan Area Network (MAN), LAN, VPN (virtual private network) (Virtual Private Network, VPN) etc..
It should be noted that described subscriber equipment is only for example, other subscriber equipmenies that are existing or that be likely to occur from now on As being adaptable to the present invention, within also should being included in protection scope of the present invention, and it is incorporated herein with way of reference.
In one embodiment, described file management system 10 is for the literary composition locally stored every one section of Preset Time scanning Part, when file meets pre-conditioned (such as, when the time that is not accessed for is more than the first Preset Time), presses this document Contracting processes, when compressed file meets and uploads condition (such as, when the time that is not accessed for is more than the second Preset Time), by this pressure Contracting files passe, to cloud server, is deleted this compressed file of this locality simultaneously, can be saved memory space and can improve file pipe Reason efficiency.
In the present embodiment, described memory element 20 is satisfied with in described electronic equipment 1 for storage software program and Data, the most described file management system 10.This memory element 20 can be the internal storage unit of described electronic equipment 1, example Hard disk or internal memory such as described electronic equipment 1.This memory element 20 can also be that the outside storage of described electronic equipment 1 sets Standby, the plug-in type hard disk on the most described electronic equipment 1, smart media card (Smart Media Card, SMC), secure digital The card storage element such as (Secure Digital Card, SD), flash memory cards (flash card).Further, deposit described in Storage unit 20 can also both include the internal storage unit of described electronic equipment 1, it is also possible to includes External memory equipment.
In the present embodiment, in described memory element 20, storage has multiple file, pre-conditioned and upload the relevant of condition Data etc. are set.
In one embodiment, described display unit 30 is used for showing graphic user interface (Graphic User Interface, GUI), this graphic user interface can show multiple file, this document can be to represent described electronic equipment 1 institute Each function being provided that.
Described display unit 30 may be, but not limited to, and touches display screen etc. and has the display unit of touch function.Therefore use Family is except watching the application icon shown by described electronic equipment 1 and/or virtual key by described display unit 30 Outward, it is possible to input function command by described display unit 30, such as, the application program that described application icon is corresponding is run Instruction, or activate virtual key start corresponding function instruction.
In one embodiment, described processing unit 40 is one or more central processing unit (Central Processing unit, CPU), microprocessor or other digital processing chips etc..This processing unit 40 is used for performing software journey Sequence code or operational data, such as, perform described file management system 10.
Described processing unit 40 is connected with described file management system 10, memory element 20 and display unit 30 communication.
As in figure 2 it is shown, be the flow chart of the preferred embodiment of file management method of the present invention.According to different demands, should In flow chart, the order of step can change, and some step can be omitted.
S100, obtains the attribute information of the file of storage.
In the present embodiment, the attribute letter of the file of storage during described file management system 10 obtains described memory element 20 Breath.Specifically, described file management system 10 is described every the first predetermined period (such as, a week or two weeks) scanning Storage file in memory element 20, and obtain the attribute information of the file of storage.
In the present embodiment, described attribute information includes, but are not limited to following any one or more: file type, File size, access time and the access frequency of file recently of file.Wherein, the type of file can include video, figure Picture, audio frequency etc..
In certain embodiments, described first predetermined period can be the default setting of described file management system 10, also Can be that user is manually arranged according to what the demand of self was carried out, described first predetermined period can be revised.
S102, is defined as file to be compressed by meeting file corresponding to pre-conditioned attribute information.
In the present embodiment, described pre-conditioned can be to deposit described in described electronic equipment 1 is arranged and stored in advance In storage unit 20.After described file management system 10 gets the attribute information of file, it can be determined that the attribute of these files Whether information exists and meets described pre-conditioned attribute information.Meet if it is determined that the attribute information of these files exists Described pre-conditioned attribute information, then be defined as literary composition to be compressed by the file meeting described pre-conditioned attribute information corresponding Part.Meet described pre-conditioned attribute information if it is determined that the attribute information of these files does not exist, then wait next week Whether the phase is again scanned to exist in the attribute information of the file of storage in memory element 20 and meets pre-conditioned attribute information.
In the present embodiment, described pre-conditioned following any one or more can be included, but are not limited to: preset literary composition Part type, default file size, default access time, default access frequency etc..Such as, described file management system 10 can be by The file being consistent with this default file type is defined as file to be compressed, or file size exceedes default file size File is defined as file to be compressed.And for example, described file management system 10 can be by the time that accesses recently of file early than this The file presetting the access time is defined as file to be compressed, or the access frequency of file is less than the literary composition of this default access frequency Part is defined as file to be compressed.
Preferably, described pre-conditioned for presetting the access time.It should be noted that the described default access time is permissible Periodically being updated, the renewal to the described default access time can be carried out automatically, it is also possible to manual modification.Such as, arrange The described default access time (such as, seven days) at set intervals is just updated (such as, former according to the temporal regularity preset Begin the default access time on the basis of add two days), such as, the original default access time is on June 1st, 2016, seven days it After, the described default access time is updated on June 3rd, 2016.Above are only illustration, actual application is not limited to This.
S104, is compressed described file to be compressed, and deletes this file to be compressed after generating compressed file.
In the present embodiment, described file management system 10 can use RAR, ZIP, TAR or other any applicable compressions File to be compressed is compressed by mode.
In certain embodiments, file to be compressed can be carried out batch and compress by described file management system 10, Ji Jiangsuo The file to be compressed having compresses to generate a compressed file after carrying out overall packing together.
In other embodiments, file to be compressed can also be compressed to generate by described file management system 10 one by one Multiple compressed files.During file to be compressed is compressed, the data in file to be compressed can be extracted as Binary byte stream first carries out cryptographic operation and is compressed, to improve the safety of data.
Described compressed file can be stored under specific store path, it is also possible to is stored in specific title and waits to press Under the store path that contracting file is identical.
In other embodiments, in order to improve the residue memory capacity of the memory element 20 of described electronic equipment 1, described in treat Compressed file is the most deleted after being compressed into compressed file.The compressed file generated can be with deletion day corresponding to file to be compressed Phase is named.
In other embodiments, in order to increase the interactivity of user and described electronic equipment 1 so that during compressed file operation Can be more humane, the display unit 30 of described electronic equipment 1 provides a graphic user interface (Graphical User Interface, GUI).File to be compressed can be exported on described graphic user interface by described file management system 10 Display.Described file to be compressed can by be with list in the way of show.User can take in the file to be compressed of display Disappear and choose some files being not desired to compression, to cancel the compression of the file that these cancellations are chosen.Preferably, acquiescence is to shown File to be compressed be all compressed.
S106, it is judged that whether described compressed file meets is uploaded condition.
In the present embodiment, described file management system 10 is by judging that the attribute information of described compressed file determines institute State compressed file whether to meet and upload condition.The attribute information of described compressed file includes, but not limited to described compressed file Closely it is accessed for the time.Described upload condition include, but not limited to described compressed file be accessed for recently the time early than preset Compressed file be accessed for the time.When described compressed file is accessed for the time recently early than described default compressed file quilt During the time accessed, described file management system 10 determines that described compressed file uploads condition described in meeting;When described compression literary composition Part is accessed for the time recently and is later than described default compressed file when being accessed for the time, and described file management system 10 determines Described compressed file uploads condition described in being unsatisfactory for.
In the present embodiment, described file management system 10 is every (such as a, week or half of the second predetermined period Month) scan described compressed file, and obtain the attribute information of described compressed file.Described second predetermined period can be described literary composition Part management system 10 default setting, it is also possible to be that user is manually arranged according to the demand of self, the most described second Predetermined period can be revised.Described first predetermined period can be identical with described second predetermined period, it is also possible to different.When When described second predetermined period is identical with described first predetermined period, described file management system 10 scan described file (not by The file of compression) and obtain this document attribute information while scan described compressed file and obtain the attribute of this compressed file Information.That is, described file management system 10 is defined as to be compressed by meeting file corresponding to pre-conditioned attribute information simultaneously File, is also defined as file to be uploaded by the compressed file meeting condition of uploading.
When described file management system 1 judges that described compressed file is accessed for the time recently early than described default compression When file is accessed for the time, perform step S108;When described file management system 1 judges that described compressed file is accessed recently It is late when described default compressed file is accessed for the time, continues executing with step S106.
Such as, being 2016-05-13 when described compressed file is accessed for the time recently, default compressed file is accessed Time be 2016-05-01, described compressed file is accessed for that it is late recently and is accessed in described default compressed file Time, the most described file management system 10 judges that described compressed file uploads condition described in being unsatisfactory for.
In other embodiments, described file management system 10 can also directly scan the compression under specific store path The attribute information of file judges this compressed file uploads condition described in whether meeting, it is also possible to directly scanning possesses specific name The attribute information of the compressed file claimed judges this compressed file uploads condition described in whether meeting.
S108, uploads described compressed file.
In the present embodiment, described compressed file can be uploaded to and described electronic equipment 1 by described file management system 10 The cloud server that communication connects.
User can be that described cloud server sets account and password in advance.When described electronic equipment 1 Successful login institute When stating cloud server, described file management system 10 will meet described in upload the compressed file of condition and be sent to this by network Cloud server.Described cloud server is mainly used in storing this compressed file.
S110, when completing to upload described compressed file, deletes described compressed file.
After described file management system 10 completes to upload described compression, described compressed file is deleted, to enter One step improves the residue memory capacity of described electronic equipment 1.
In other examples, described file management method farther includes: receives and enters described compressed file During the instruction that row is downloaded, download described compressed file.The communication of described electronic equipment 1 is connected to described cloud server, Yong Huxuan Surely the compressed file will downloaded, can complete to send the operation of download instruction, and described electronic equipment 1 is according to this download instruction pair Compressed file is downloaded.The compressed file downloaded can be stored under specific store path, or with specific title It is stored under the store path that user selectes.
In other examples, described file management method further includes: the compressed file to described download Carry out decompression contract generation decompress file.Described file management system 10 during compressed file is decompressed, According to the difference of the decompression algorithm chosen, the most different to the decompression method of compressed file accordingly.Described file management system System 10 can use the decompression method corresponding with the compression method used during compressed file to enter the compressed file downloaded Row decompresses, and can be decompressed by the compressed file that entirety is packed, or the compressed file by binary byte stream form First carry out decompressing after integration being decrypted operation again, or other any applicable decompression methods.
The title decompressing file generated can be this document by the title of the file before compressing, the decompression generated The file type of contracting file can be this document by the type of the file before compressing.
The store path decompressing file generated can be this document by the original store path before compressing.
In sum, a kind of file management method disclosed in the embodiment of the present invention, it is possible to pre-conditioned attribute will be met File corresponding to information carries out automatic compression process such that it is able to discharge the memory space of described electronic equipment 1 easily, at warp Compressed file after overcompression processes meets when uploading condition, is uploaded by this compressed file, deletes this compressed file simultaneously, to enter One step saves memory space.Therefore, described file management method can be implemented on the premise of not increasing any hardware cost, Effectively manage memory space, also shorten user and search the time of alternative document, and improve Consumer's Experience.
As it is shown on figure 3, be the functional block diagram of the preferred embodiment of file management system of the present invention.Described file management System 10 includes acquisition module 100, judge module 102, arranges module 104, compression module 106, upper transmission module 108, deletion mould Block 110, download module 112 and decompression module 114.Module alleged by the present invention refers to that the one unit 40 that can be processed is held Row and can complete the series of computation machine program segment of fixing function, it is stored in memory element 20.In the present embodiment, Function about each module will describe in detail in follow-up embodiment.
Described acquisition module 100, for obtaining the attribute information of the file of storage.
In the present embodiment, the attribute information of the file of storage during described acquisition module 100 obtains described memory element 20. Specifically, described acquisition module 100 scans described storage list every the first predetermined period (such as, a week or two weeks) Storage file in unit 20, and obtain the attribute information of the file of storage.
In the present embodiment, described attribute information includes, but are not limited to following any one or more: file type, File size, access time and the access frequency of file recently of file.Wherein, the type of file can include video, figure Picture, audio frequency etc..
In certain embodiments, described first predetermined period can the default setting of described file management system 10, it is possible to To be that user is manually arranged according to what the demand of self was carried out, described first predetermined period can be revised.
Described judge module 102, for being defined as literary composition to be compressed by meeting file corresponding to pre-conditioned attribute information Part.
In the present embodiment, described pre-conditioned can be to be arranged and stored in described in advance by the described module 104 that arranges In memory element 20.After described acquisition module 100 gets the attribute information of file, described judge module 102 may determine that Whether the attribute information of these files exists and meets described pre-conditioned attribute information.If described judge module 102 is true The attribute information of these files fixed exists and meets described pre-conditioned attribute information, then will meet described pre-conditioned genus File corresponding to property information is defined as file to be compressed.If described judge module 102 determines in the attribute information of these files Do not exist and meet described pre-conditioned attribute information, then wait that the next cycle scans the file of storage in memory element 20 again Attribute information in whether exist and meet pre-conditioned attribute information.
In the present embodiment, described arrange that module 104 arranges described pre-conditioned permissible, but be not limited to following any One or more: default file type, default file size, default access time, default access frequency etc..Such as, sentence described in The file being consistent with this default file type can be defined as file to be compressed by disconnected module 102, or file size is surpassed The file crossing default file size is defined as file to be compressed.And for example, described judge module 102 can be by the nearest visit of file Ask that the time is defined as file to be compressed early than the file of this default access time, or the access frequency of file is preset less than this The file of access frequency is defined as file to be compressed.
Preferably, described pre-conditioned for presetting the access time.It should be noted that the described default access time is permissible Periodically being updated, the renewal to the described default access time can be carried out automatically, it is also possible to manual modification.Such as, arrange The described default access time (such as, seven days) at set intervals is just updated (such as, former according to the temporal regularity preset Begin the default access time on the basis of add two days), such as, the original default access time is on June 1st, 2016, seven days it After, the described default access time is updated on June 3rd, 2016.Above are only illustration, actual application is not limited to This.
Described compression module 106, for being compressed by file to be compressed, and deletes this after generating compressed file and waits to press Contracting file.
In the present embodiment, described compression module 106 can use RAR, ZIP, TAR or other any applicable compress modes File to be compressed is compressed.
In certain embodiments, file to be compressed can be carried out batch and compress by described compression module 106, will be all of File to be compressed compresses to generate a compressed file after carrying out overall packing together.
In other embodiments, file to be compressed can also be compressed to generate many by described compression module 106 one by one Individual compressed file.During being compressed file to be compressed, described compression module 106 can be by file to be compressed Data be extracted as binary byte stream and first carry out cryptographic operation and be compressed again, to improve the safety of data.
Described compressed file can be stored under specific store path.Can also be stored in specific title and wait to press Under the store path that contracting file is identical.
In other embodiments, in order to improve the residue memory capacity of the memory element 20 of described electronic equipment 1, described in treat Compressed file is the most deleted after being compressed into compressed file.The compressed file generated can be with deletion day corresponding to file to be compressed Phase is named.
In other embodiments, in order to increase the interactivity of user and described electronic equipment 1 so that during compressed file operation Can be more humane, the display unit 30 of described electronic equipment 1 provides a graphic user interface (Graphical User Interface, GUI).File to be compressed can be exported on described graphic user interface by described file management system 10 Display.Described file to be compressed can by be with list in the way of show.User can take in the file to be compressed of display Disappear and choose some files being not desired to compression, to cancel the compression of the file that these cancellations are chosen.Preferably, acquiescence is to shown File to be compressed be all compressed.
Described judge module 102, is additionally operable to judge whether described compressed file meets and uploads condition.
In the present embodiment, described judge module 102 is described by judging that the attribute information of described compressed file determines Whether compressed file meets is uploaded condition.It is nearest that the attribute information of described compressed file includes, but not limited to described compressed file It is accessed for the time.Described condition of uploading includes, but not limited to described compressed file and is accessed for the time recently early than default Compressed file is accessed for the time.When described compressed file, to be accessed for the time recently interviewed early than described default compressed file During the time asked, described judge module 102 determines that described compressed file uploads condition described in meeting;When described compressed file is nearest The time of being accessed for is later than described default compressed file when being accessed for the time, and described judge module 102 determines described compression File uploads condition described in being unsatisfactory for.
In the present embodiment, described judge module 102 is every the second predetermined period (such as, a week or two weeks) Scan described compressed file, and obtain the attribute information of described compressed file.Described second predetermined period can be described file Management system 10 default setting, it is also possible to be that user is manually arranged according to the demand of self, the most described second pre- If the cycle can revise.Described first predetermined period can be identical with described second predetermined period, it is also possible to different.Work as institute State the second predetermined period identical with described first predetermined period time, it is (un-compressed that described judge module 102 scans described file File) and obtain this document attribute information while scan described compressed file and obtain the attribute information of this compressed file. That is, described judge module 102 is defined as file to be compressed by meeting file corresponding to pre-conditioned attribute information simultaneously, also will The compressed file meeting condition of uploading is defined as file to be uploaded.
When described judge module 102 judges that described compressed file is accessed for the time recently early than described default compression literary composition When part is accessed for the time, perform described upper transmission module 108;When described judge module 102 judges described compressed file quilt recently It is late in access when described default compressed file is accessed for the time, continues executing with described judge module 102.
Such as, being 2016-05-13 when described compressed file is accessed for the time recently, default compressed file is accessed Time be 2016-05-01, described compressed file is accessed for that it is late recently and is accessed in described default compressed file Time, the most described judge module 102 judges that described compressed file uploads condition described in being unsatisfactory for.
In other embodiments, described judge module 102 can also directly scan the compression literary composition under specific store path The attribute information of part judges this compressed file uploads condition described in whether meeting, it is also possible to directly scanning possesses specific title The attribute information of compressed file judge this compressed file uploads condition described in whether meeting.
Described upper transmission module 108, is used for uploading described compressed file.
In the present embodiment, described compressed file can be uploaded to and the communication of described electronic equipment 1 by described upper transmission module 108 The cloud server connected.When completing described compressed file is uploaded, delete described compressed file.
User can be that described cloud server sets account and password in advance.When described electronic equipment 1 Successful login institute When stating cloud server, described upper transmission module 108 will meet described in upload the compressed file of condition and be sent to this cloud by network End server.Described cloud server is mainly used in storing this compressed file.
Described removing module 110, when being additionally operable to upload described compressed file, deletes described compressed file.
After described removing module 110 completes to upload described compression, described compressed file is deleted, with further Improve the residue memory capacity of described electronic equipment 1.
In other examples, described file management system 10 farther includes described download module 112: be used for connecing When receiving the instruction that described compressed file is downloaded, download described compressed file.The communication of described electronic equipment 1 is connected to institute State cloud server, the selected compressed file that will download of user, can complete to send the operation of download instruction, described download mould Compressed file is downloaded by block 112 according to this download instruction.The compressed file downloaded can be stored in and specifically store road Under footpath, or it is stored under the store path that user selectes with specific title.
In other embodiments, described file management system further includes described decompression module 114: for right The compressed file of described download carry out decompression contract generation decompress file.Compressed file is being entered by described decompression module 114 During row decompresses, according to the difference of the decompression algorithm chosen, accordingly to the decompression method of compressed file the most not With.Described decompression module 114 can use the decompression method corresponding with the compression method used during compressed file to institute The compressed file downloaded decompresses, and the compressed file that entirety is packed can be decompressed by decompression module 114, or will The compressed file of binary byte stream form first carries out decompressing being decrypted operation again after integrating, or other are any applicable Decompression method.
The title decompressing file generated can be this document by the title of the file before compressing, the decompression generated The file type of contracting file can be this document by the type of the file before compressing.
The store path decompressing file generated can be this document by the original store path before compressing.
In sum, a kind of file management system 10 disclosed in the embodiment of the present invention, it is possible to pre-conditioned genus will be met File corresponding to property information carries out automatic compression process such that it is able to discharge the memory space of described electronic equipment 1 easily, Through overcompression process after compressed file meet upload condition time, this compressed file is uploaded, deletes this compressed file simultaneously, with Save memory space further.Therefore, described file management system 10 can be implemented in before not increasing any hardware cost Put, effectively manage memory space, also shorten user and search the time of alternative document, and improve Consumer's Experience.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method are permissible Realize by another way.Such as, device embodiment described above is only schematically, such as, and described module Dividing, be only a kind of logic function and divide, actual can have other dividing mode when realizing.
The described module illustrated as separating component can be or may not be physically separate, shows as module The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple On NE.Some or all of module therein can be selected according to the actual needs to realize the mesh of the present embodiment scheme 's.
It addition, each functional module in each embodiment of the present invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated list Unit both can realize to use the form of hardware, it would however also be possible to employ hardware adds the form of software function module and realizes.
The above-mentioned integrated unit realized with the form of software function module, can be stored in an embodied on computer readable and deposit In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions with so that a computer Unit (can be personal computer, server, or NE etc.) or processor (processor) perform the present invention each The part steps of method described in embodiment.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie In the case of the spirit or essential attributes of the present invention, it is possible to realize the present invention in other specific forms.Therefore, no matter From the point of view of which point, all should regard embodiment as exemplary, and be nonrestrictive, the scope of the present invention is by appended power Profit requires rather than described above limits, it is intended that all by fall in the implication of equivalency and scope of claim Change is included in the present invention.Should not be considered as limiting involved claim by any reference in claim.This Outward, it is clear that " including ", a word was not excluded for other unit or step, and odd number is not excluded for plural number.In system claims, statement is multiple Unit or device can also be realized by software or hardware by a unit or device.The first, the second word such as grade is used for table Show title, and be not offered as any specific order.
Finally it should be noted that above example only in order to technical scheme to be described and unrestricted, although reference The present invention has been described in detail by preferred embodiment, it will be understood by those within the art that, can be to the present invention's Technical scheme is modified or equivalent, without deviating from the spirit and scope of technical solution of the present invention.

Claims (10)

1. a file management method, is applied in electronic equipment, it is characterised in that described method includes:
Obtain the attribute information of the file of storage;
It is defined as file to be compressed by meeting file corresponding to pre-conditioned attribute information;
Described file to be compressed is compressed, and deletes this file to be compressed after generating compressed file;
When described compressed file meets and uploads condition, upload described compressed file;And
When completing described compressed file is uploaded, delete described compressed file.
2. file management method as claimed in claim 1, it is characterised in that the attribute information bag of the file of described acquisition storage Include:
Scan the file of described storage every the first predetermined period, and obtain the attribute information of the file of described storage, wherein, institute State attribute information and include following any one or more: file type, file size, the nearest of file access time and file Access frequency.
3. file management method as claimed in claim 1, it is characterised in that described pre-conditioned include following any one or Multiple: default file type, default file size, to preset the access time, preset access frequency, described will meet described default bar The file that the attribute information of part is corresponding is defined as file to be compressed and includes:
The file being consistent with described default file type is defined as file to be compressed;
The file that file size exceedes described default file size is defined as file to be compressed;
The nearest access time of file is defined as file to be compressed early than the file of described default access time;Or
The access frequency of file is defined as file to be compressed less than the file of described default access frequency.
4. file management method as claimed in claim 1, it is characterised in that described method also includes:
Scan described compressed file every the second predetermined period, judge described compression according to the attribute information of described compressed file Whether file meets condition of uploading, and wherein said condition of uploading includes that described compressed file is accessed for the time recently early than presetting Compressed file be accessed for the time.
5. the file management method as according to any one of Claims 1-4, it is characterised in that described method also includes:
When receiving the instruction that described compressed file is downloaded, download described compressed file;And
The compressed file downloaded is carried out decompression contract generation decompress file.
6. a file management system, is applied in electronic equipment, it is characterised in that described system includes:
Acquisition module, for obtaining the attribute information of the file of storage;
Judge module, for being defined as file to be compressed by meeting file corresponding to pre-conditioned attribute information;
Compression module, for being compressed by described file to be compressed, and deletes this file to be compressed after generating compressed file;
Upper transmission module, for when described compressed file meets and uploads condition, uploading described compressed file;And
Removing module, when being used for uploading described compressed file, deletes described compressed file.
7. file management system as claimed in claim 6, it is characterised in that described acquisition module:
Scan the file of described storage every the first predetermined period, obtain the attribute information of the file of described storage, wherein, described Attribute information includes following any one or more: file type, file size, the time that accesses recently of file and file Access frequency.
8. file management system as claimed in claim 6, it is characterised in that described pre-conditioned include following any one or Multiple: default file type, default file size, default access time, default access frequency, described judge module will meet institute State file corresponding to pre-conditioned attribute information to be defined as file to be compressed and include:
The file being consistent with described default file type is defined as file to be compressed;
The file that file size exceedes described default file size is defined as file to be compressed;
The nearest access time of file is defined as file to be compressed early than the file of described default access time;Or
The access frequency of file is defined as file to be compressed less than the file of described default access frequency.
9. file management system as claimed in claim 6, it is characterised in that described judge module is additionally operable to:
Scan described compressed file every the second predetermined period, judge described compression according to the attribute information of described compressed file Whether file meets condition of uploading, and wherein said condition of uploading includes that described compressed file is accessed for the time recently early than presetting Compressed file be accessed for the time.
10. the file management system as according to any one of claim 6 to 9, it is characterised in that described system also includes:
Download module, in time receiving the instruction being downloaded described compressed file, downloads described compressed file;And
Decompression module, decompresses file for the compressed file downloaded carries out decompression generation of contracing.
CN201610505669.5A 2016-06-30 2016-06-30 File management method and system Pending CN106202273A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610505669.5A CN106202273A (en) 2016-06-30 2016-06-30 File management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610505669.5A CN106202273A (en) 2016-06-30 2016-06-30 File management method and system

Publications (1)

Publication Number Publication Date
CN106202273A true CN106202273A (en) 2016-12-07

Family

ID=57462718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610505669.5A Pending CN106202273A (en) 2016-06-30 2016-06-30 File management method and system

Country Status (1)

Country Link
CN (1) CN106202273A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193496A (en) * 2017-05-22 2017-09-22 深圳天珑无线科技有限公司 A kind of memory space method for saving and device
CN107589910A (en) * 2017-09-01 2018-01-16 厦门集微科技有限公司 The method and system of the high in the clouds data management of user's custom strategies
CN108197204A (en) * 2017-12-28 2018-06-22 北京安博通科技股份有限公司 Document handling method and device
CN109120645A (en) * 2018-10-25 2019-01-01 北京大米未来科技有限公司 A kind of file uploading method, device, electronic equipment and medium
CN109165196A (en) * 2018-08-09 2019-01-08 佛山长意云信息技术有限公司 A kind of compressed file management method, device, computer equipment and storage medium
CN109582236A (en) * 2018-11-29 2019-04-05 努比亚技术有限公司 Terminal storage space management method, terminal and storage medium
CN109871361A (en) * 2018-11-26 2019-06-11 乐蜜有限公司 A kind of file uploading method, device, electronic equipment and readable storage medium storing program for executing
CN110321330A (en) * 2019-05-23 2019-10-11 深圳市金泰克半导体有限公司 Compressing file, decompression method, device and computer equipment
CN111061457A (en) * 2019-12-20 2020-04-24 上海米哈游天命科技有限公司 File uploading control method and device, server and storage medium
CN113296709A (en) * 2017-06-02 2021-08-24 伊姆西Ip控股有限责任公司 Method and apparatus for deduplication
CN113395487A (en) * 2021-06-01 2021-09-14 平安科技(深圳)有限公司 Video data storage management method and device, computer equipment and storage medium
CN113485858A (en) * 2021-06-15 2021-10-08 荣耀终端有限公司 System fault processing method of electronic equipment and electronic equipment
CN114265560A (en) * 2021-12-24 2022-04-01 金锐软件技术(杭州)有限公司 Self-standardization storage system for hundred million-level compliance index service data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060149997A1 (en) * 2004-12-30 2006-07-06 Mu Chai Systems and methods for dynamic restorating data
CN101535964A (en) * 2005-07-14 2009-09-16 微软公司 Ghosted file
CN102414673A (en) * 2009-04-24 2012-04-11 微软公司 Intelligent tiers of backup data
CN104216665A (en) * 2014-09-01 2014-12-17 上海新储集成电路有限公司 Storage management method of multi-layer unit solid state disk
CN104461785A (en) * 2014-12-15 2015-03-25 中电长城网际系统应用有限公司 Data backup method, data recovery method and device of virtual machine and physic machine
CN105025166A (en) * 2015-07-09 2015-11-04 深圳市金立通信设备有限公司 File processing method and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060149997A1 (en) * 2004-12-30 2006-07-06 Mu Chai Systems and methods for dynamic restorating data
CN101535964A (en) * 2005-07-14 2009-09-16 微软公司 Ghosted file
CN102414673A (en) * 2009-04-24 2012-04-11 微软公司 Intelligent tiers of backup data
CN104216665A (en) * 2014-09-01 2014-12-17 上海新储集成电路有限公司 Storage management method of multi-layer unit solid state disk
CN104461785A (en) * 2014-12-15 2015-03-25 中电长城网际系统应用有限公司 Data backup method, data recovery method and device of virtual machine and physic machine
CN105025166A (en) * 2015-07-09 2015-11-04 深圳市金立通信设备有限公司 File processing method and terminal

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193496A (en) * 2017-05-22 2017-09-22 深圳天珑无线科技有限公司 A kind of memory space method for saving and device
CN113296709A (en) * 2017-06-02 2021-08-24 伊姆西Ip控股有限责任公司 Method and apparatus for deduplication
CN113296709B (en) * 2017-06-02 2024-03-08 伊姆西Ip控股有限责任公司 Method and apparatus for deduplication
CN107589910A (en) * 2017-09-01 2018-01-16 厦门集微科技有限公司 The method and system of the high in the clouds data management of user's custom strategies
CN108197204A (en) * 2017-12-28 2018-06-22 北京安博通科技股份有限公司 Document handling method and device
CN108197204B (en) * 2017-12-28 2021-12-21 北京安博通科技股份有限公司 File processing method and device
CN109165196A (en) * 2018-08-09 2019-01-08 佛山长意云信息技术有限公司 A kind of compressed file management method, device, computer equipment and storage medium
CN109120645A (en) * 2018-10-25 2019-01-01 北京大米未来科技有限公司 A kind of file uploading method, device, electronic equipment and medium
CN109871361A (en) * 2018-11-26 2019-06-11 乐蜜有限公司 A kind of file uploading method, device, electronic equipment and readable storage medium storing program for executing
CN109871361B (en) * 2018-11-26 2023-05-23 北京乐我无限科技有限责任公司 File uploading method and device, electronic equipment and readable storage medium
CN109582236A (en) * 2018-11-29 2019-04-05 努比亚技术有限公司 Terminal storage space management method, terminal and storage medium
CN109582236B (en) * 2018-11-29 2023-08-25 努比亚技术有限公司 Terminal storage space management method, terminal and storage medium
CN110321330A (en) * 2019-05-23 2019-10-11 深圳市金泰克半导体有限公司 Compressing file, decompression method, device and computer equipment
CN111061457A (en) * 2019-12-20 2020-04-24 上海米哈游天命科技有限公司 File uploading control method and device, server and storage medium
CN113395487A (en) * 2021-06-01 2021-09-14 平安科技(深圳)有限公司 Video data storage management method and device, computer equipment and storage medium
CN113485858A (en) * 2021-06-15 2021-10-08 荣耀终端有限公司 System fault processing method of electronic equipment and electronic equipment
CN114265560A (en) * 2021-12-24 2022-04-01 金锐软件技术(杭州)有限公司 Self-standardization storage system for hundred million-level compliance index service data

Similar Documents

Publication Publication Date Title
CN106202273A (en) File management method and system
US8224099B2 (en) Screen data transmitting system, screen data transmitting server, screen data transmitting method and program recording medium
KR101718999B1 (en) Device and method for controlling application in wireless terminal
KR101134597B1 (en) Method and apparatus for providing web storage service storing multimedia contents and metadata separately
CN111681291A (en) Image processing method, device, equipment and computer readable storage medium
CN103428525A (en) Online inquiry and play control method and system for network videos and television programs
CN105005439A (en) Icon management method and device and mobile terminal
CN106453572A (en) Method and system for synchronizing images based on cloud server
CN110399511A (en) Image cache method, equipment, storage medium and device based on Redis
CN112836086B (en) Video processing method and device and electronic equipment
CN103309688A (en) Starting image control method and device
CN109088636B (en) Data processing method and system, electronic equipment and storage medium
CN104572707A (en) Preferable object information providing method and device
CN106933702A (en) A kind of method of intelligent terminal storage space management, device and intelligent terminal
CN110457089B (en) Data acquisition method, data acquisition device, computer readable storage medium and computer equipment
WO2012165066A1 (en) Image distribution server and image distribution control method
CN101742729A (en) RSS data acquisition system and method of mobile communication equipment terminal
TW201445322A (en) A cloud computing-based architecture for the storage, browse and processing of images
KR20160113071A (en) Method for storing a file by using a plurality of cloud storage and apparatus thereof
CN113821484A (en) File processing method and device, electronic equipment and readable storage medium
KR102236521B1 (en) Method and apparatus for processing data
CN112433779B (en) Application site preloading method, device and storage medium based on ERP system
CN113709300A (en) Display method and device
CN113010918A (en) Information processing method and device
KR20220042930A (en) Method, apparatus and computer program for providing contents list

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161207

RJ01 Rejection of invention patent application after publication