CN108108421A - File management method, device, storage medium and electronic equipment - Google Patents
File management method, device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN108108421A CN108108421A CN201711351071.6A CN201711351071A CN108108421A CN 108108421 A CN108108421 A CN 108108421A CN 201711351071 A CN201711351071 A CN 201711351071A CN 108108421 A CN108108421 A CN 108108421A
- Authority
- CN
- China
- Prior art keywords
- file
- application
- stub
- determined
- electronic equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/119—Details of migration of file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/162—Delete operations
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)
- Human Computer Interaction (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
Abstract
This application discloses a kind of file management method, device, storage medium and electronic equipments.The file management method includes:Obtain file destination of the separate storage outside default file folder in electronic equipment, the file type of file destination is determined according to preset keyword, if it is determined that the file type of file destination is system file, system file is then moved into system folder, if it is determined that the file type of file destination is Stub File, then judge whether the corresponding application of Stub File is unloaded, it is if it is determined that unloaded, then clear up Stub File, or if it is determined that not unloading, then Stub File is moved into the corresponding application file of the application presss from both sides.Scattered file destination beyond the embodiment of the present application file orderly to regulations is handled in order, so that these scattered file destinations respectively return its position, to reduce the project during file management, so that file management show it is more beautiful, it is more convenient to slide locating file, file management can be more effectively carried out.
Description
Technical field
This application involves mobile communication technology field more particularly to mobile device technology fields, and in particular to a kind of file
Management method, device, storage medium and electronic equipment.
Background technology
With the continuous development of computer technology and electronic technology, various types of intelligent electronic devices have become people
Indispensable component in work, studying and living.In intelligent electronic device, by running the application of various functions,
User can easily realize the functions such as instant messaging, web page browsing, network social intercourse.Using the process of the electronic equipments such as mobile phone
In, in installation in application, can correspond to establishment applies relevant file, in addition to the orderly file of regulations, also have many zero
Scattered file, these fragmented files are large number of, and along with original file, quantity of documents present in electronic equipment is with regard to non-
Chang Keguan, project is excessive during causing file management, and sliding locating file becomes pretty troublesome.Therefore it need to be further improved.
The content of the invention
The embodiment of the present application provides a kind of file management method, device, storage medium and electronic equipment, can be more effectively
Carry out file management.
The embodiment of the present application provides a kind of file management method, applied in electronic equipment, which is characterized in that the method
Including:
Obtain file destination of the separate storage outside default file folder in the electronic equipment;
The file type of the file destination is determined according to preset keyword, wherein, the file type includes system text
Part and Stub File;
If it is determined that the file type of the file destination is system file, then the system file is moved into system file
Folder;
If it is determined that the file type of the file destination is Stub File, then judge that the corresponding application of the Stub File is
It is no unloaded;
If it is determined that the corresponding application of the Stub File is unloaded, then the Stub File is cleared up;Or
If it is determined that corresponding apply of the Stub File does not unload, then it is corresponding the Stub File to be moved into the application
Application file presss from both sides.
The embodiment of the present application also provides a kind of document management apparatus, and described device includes:
Acquisition module, for obtaining file destination of the separate storage outside default file folder in the electronic equipment;
Determining module, for determining the file type of the file destination according to preset keyword, wherein, the files classes
Type includes system file and Stub File;
First processing module, for if it is determined that the file type of the file destination is system file, then by the system
File moves into system folder;
First judgment module, for if it is determined that the file type of the file destination is then judged described residual for Stub File
Stay the corresponding application of file whether unloaded;
Second processing module, for if it is determined that the Stub File it is corresponding application it is unloaded, then clear up it is described residual text
Part;Or
If it is determined that corresponding apply of the Stub File does not unload, then it is corresponding the Stub File to be moved into the application
Application file presss from both sides.
The embodiment of the present application also provides a kind of storage medium, is stored thereon with computer program, when the computer program
When running on computers so that the computer performs file management method as described above.
The embodiment of the present application also provides a kind of electronic equipment, and including memory and processor, the processor passes through calling
The computer program stored in the memory, for performing file management method as described above.
The embodiment of the present application by obtaining the file destination of separate storage in electronic equipment outside default file folder, according to
Preset keyword determines the file type of the file destination, wherein, the file type includes system file and Stub File,
If it is determined that the file type of the file destination is system file, then the system file is moved into system folder, however, it is determined that
The file type of the file destination is Stub File, then judges whether the corresponding application of the Stub File is unloaded, if sentencing
It is unloaded to determine the corresponding application of the Stub File, then clears up the Stub File or if it is determined that the Stub File corresponds to
Application do not unload, then the Stub File is moved into the corresponding application file of the application presss from both sides.The embodiment of the present application is to regulations
Scattered file destination beyond orderly file is handled in order so that and these scattered file destinations respectively return its position,
To reduce the project during file management so that file management show it is more beautiful, slide locating file it is more convenient, can
To be more effectively carried out file management.
Description of the drawings
Below in conjunction with the accompanying drawings, it is described in detail by the specific embodiment to the application, the technical solution of the application will be made
And other beneficial effects are apparent.
Fig. 1 is a kind of flow diagram of file management method provided by the embodiments of the present application.
Fig. 2 is a kind of another flow diagram of file management method provided by the embodiments of the present application.
Fig. 3 is a kind of structure diagram of document management apparatus provided by the embodiments of the present application.
Fig. 4 is a kind of another structure diagram of document management apparatus provided by the embodiments of the present application.
Fig. 5 is the structure diagram of a kind of electronic equipment provided by the embodiments of the present application.
Fig. 6 is another structure diagram of a kind of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, the technical solution in the embodiment of the present application is carried out clear, complete
Site preparation describes.It is understood that specific embodiment described herein is only used for explaining the application rather than the limit to the application
It is fixed.In addition, part relevant with the application rather than entire infrastructure are illustrated only for ease of description, in attached drawing.Based on the application
In embodiment, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, shall fall in the protection scope of this application.
Term " first " and " second " in the application etc. are for distinguishing different objects rather than specific suitable for describing
Sequence.In addition, term " comprising " and " having " and their any deformations, it is intended that cover non-exclusive include.Such as comprising
The step of process of series of steps or module, method, system, product or equipment are not limited to list or module, and
It is optionally to further include the step of not listing or module or optionally further include for these processes, method, product or equipment
Intrinsic other steps or module.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments
It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
A kind of executive agent of file management method provided by the embodiments of the present application can be provided by the embodiments of the present application
A kind of document management apparatus or be integrated with the document management apparatus electronic equipment (for example smart mobile phone, tablet computer,
Desktop computer, laptop, intelligent wearable device etc.), the side of hardware or software may be employed in the document management apparatus
Formula is realized.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of file management method provided by the embodiments of the present application.The side
Method is applied in electronic equipment, the described method includes:
Step 101, file destination of the separate storage outside default file folder in electronic equipment is obtained.
Wherein, in intelligent electronic device, by running the application of various functions, user can easily realize Instant Messenger
The functions such as letter, web page browsing, network social intercourse.During the electronic equipments such as mobile phone are used, in installation in application, wound can be corresponded to
It builds using relevant file, in addition to the orderly file of regulations, also has many scattered files, these fragmented file quantity
It is numerous.
In the electronic device, the software of general meeting installation file management class, for carrying out pipe to the file in electronic equipment
Reason.File management relates generally to logical organization and the physical organization of file, the structure of catalogue and management.Called file management, just
It is one group of software that file consolidation management is realized in system, the file that is managed and more required to implement file management
The general name of data structure is the mechanism for being responsible for access and management fileinfo in system.From the point of view of system perspective, file system is
Tissue, distribution and recycling are carried out to the memory space of file memory, is responsible for the storage of file, retrieval, shared and protection.From with
From the point of view of the angle of family, file system mainly realizes " take and deposit by name ", and the user of file system is only it is to be understood that the file of required file
Name, so that it may the information in accessing file, without knowing where these files store actually.
Wherein, system/app catalogues, data/app catalogues, data/data catalogues, Data/ can be related to using installation
Several catalogues such as dalvik-cache catalogues.Wherein, the application program that system/app catalogues can be carried with correspondence system.
Data/app catalogues can correspond to the catalogue of user application installation, the installation file of user application be replicated during installation
To this catalogue, for example the installation file is apk (AndroidPackage, Android application installation package) file.Data/data catalogues
It can be used for the data for storing application program.
Data/dalvik-cache catalogues can be used for the cache file for storing application operation needs, for example install and cache,
Unloading caching etc..For example, Android application installation process is:Apk installation kits are replicated under data/app catalogues, decompresses and scans peace
Dress bag, the dex files decompressed in installation kit, (dex files are the executable files of dalvik virtual machines, and size is about
The a quarter of original apk file sizes) dalvik-cache catalogues are saved in, and created under data/data catalogues corresponding
Using data directory.Android application uninstall process is to delete the file created in installation process under corresponding catalogue and catalogue.
Generally, when installing third-party application, can generally be created under data catalogues one this using corresponding file,
Folder name is generated by the third-party application, generally not with other applications generate folder name bear the same name, for example, data
PandaReader, for panda reading associated documents.
For example, file management class software is installed in mobile phone, then it, can be in file management catalogue when file opening manages
Under view and pressed from both sides using corresponding application file, for example see the file of entitled PandaReader.Except file, may be used also
To see other scattered files, such as log.txt, debug9.txt, blink.log under file management catalogue,
The files such as kgmusic.ver, Thunder.txt, com.baidu.appsearch.log.lck, wesync_qqpim.dat.
Wherein it is possible to by the file of Naming conventions in file management catalogue be set as default file press from both sides, such as with
The corresponding application file folder of Apply Names, the corresponding system folder of system file, the corresponding cache file folder of cache file etc.
The file of Naming conventions is arranged to default file folder, outside default file folder in the file management of scanning electron equipment
File, to obtain file destination of the separate storage outside default file folder in electronic equipment.
Step 102, the file type of the file destination is determined according to preset keyword, wherein, the file type bag
Include system file and Stub File.If it is determined that the file type of the file destination is system file, then step 106 is performed.If
Determine that the file type of the file destination for Stub File, then performs step 103.
Wherein, the file type of file destination of the separate storage outside default file folder can include system file
And Stub File.
For example, filename includes the file of the keywords such as log, debug, such as log.txt, debug9.txt,
Blink.log, these files are cell phone system journal files, are that system is dished out automatically in cell phone system operational process, belong to
Some system files inherently generated.For example the keywords such as log, debug are arranged to the default key of identifying system file
Word when the filename of the file destination of acquisition includes log, debug when preset keywords, determines the text of the file destination
Part type is system file, then performs step 106.
For example, filename includes the file of the corresponding keyword of Apply Names, such as kgmusic.ver (the related texts of KuGoo
Part), Thunder.txt (sudden peal of thunder associated documents), com.baidu.appsearch.log.lck (Baidu's associated documents),
Wesync_qqpim.dat (QQ associated documents), these files can be seen to be from title applies relevant text with some
Part, these may not unload clean Stub File using relevant file with some for some unloaded application.It such as will
The corresponding keyword of Apply Names is arranged to preset keyword of the identification using Stub File, when the file of the file destination of acquisition
When name includes Apply Names corresponding preset keyword, determine that the file type of the file destination for Stub File, is then held
Row step 103.
Step 103, judge whether the corresponding application of the Stub File is unloaded.If it is determined that the Stub File is corresponding
Using unloaded, then step 104 is performed.If it is determined that corresponding apply of the Stub File does not unload, then step 105 is performed.
Wherein, however, it is determined that the file type of the file destination is Stub File, then needs to determine whether the residual text
Whether the corresponding application of part is unloaded.
In some embodiments, it is described to judge whether the corresponding application of the Stub File is unloaded, including:
Judge in the desktop icons of the electronic equipment with the presence or absence of the icon of application corresponding with the Stub File;
If there is the icon of application corresponding with the Stub File in the desktop icons of the electronic equipment, it is determined that institute
The corresponding application of Stub File is stated not unload;
If the icon of application corresponding with the Stub File is not present in the desktop icons of the electronic equipment, it is determined that
The corresponding application of the Stub File is unloaded.
For example, by taking the kgmusic.ver in mobile phone this file destination as an example, it is not present if detected in mobile phone desktop
KuGoo music icon then judges that the corresponding applications of the kgmusic.ver are unloaded, then performs step 104.If detect mobile phone
There are KuGoo music icon in desktop, then judge that the corresponding applications of the kgmusic.ver do not unload, then perform step 105.
In some embodiments, it is described to judge whether the corresponding application of the Stub File is unloaded, including:
Judge the application file folder to match in the electronic equipment with the presence or absence of application corresponding with the Stub File;
If there is the application file folder that application corresponding with the Stub File matches in the electronic equipment, it is determined that
Corresponding apply of the Stub File does not unload;
It to be pressed from both sides if there is no the application files that application corresponding with the Stub File matches in the electronic equipment, really
It is unloaded to determine the corresponding application of the Stub File.
For example, by taking the kgmusic.ver in mobile phone this file destination as an example, if detect be not present in mobile phone and this
The file name assignable application file folder of the same name of file destination, then judge that the corresponding applications of the kgmusic.ver are unloaded,
Then perform step 104.Exist and the file name of the file destination assignable application file of the same name if detected in mobile phone
Folder then judges that the corresponding applications of the kgmusic.ver do not unload, then performs step 105.
Step 104, the Stub File is cleared up.
For example, if it is determined that file type for Stub File file destination it is corresponding application it is unloaded, then clear up the text
Part type is the file destination of Stub File.For example, the corresponding KuGoo of kgmusic.ver files is judged using unloaded, then
Delete the kgmusic.ver files.
Step 105, the Stub File is moved into the corresponding application file of the application to press from both sides.
For example, if it is determined that file type does not unload for the corresponding application of file destination of Stub File, by the files classes
Type moves into the corresponding application file folder of the application for the file destination of Stub File.For example, judge the kgmusic.ver files
Corresponding KuGoo application does not unload, then the kgmusic.ver files are moved into KuGoo applies in corresponding application file folder, such as
Folder name is moved into be known as in the file of kgmusic.
In addition, it is pressed from both sides the file type is moved into the corresponding application file of the application for the file destination of Stub File
Afterwards, the store path that the file destination is updated in store path records list is corresponded to.Step 106, by the system file
Move into system folder.
For example, the system folder of one entitled " system file " is created under file management catalogue, entitled " the system text
The storage location of the system folder of part " can be located in system/app catalogues, data/app catalogues, data/data catalogues
Arbitrary catalogue under.If it is determined that the file type of the file destination is system file, it is system file by the file type
File destination move into entitled " system file " system folder.
In addition, after the file type is moved into the system folder for the file destination of system file, it is corresponding
The store path of the file destination is updated in store path records list.In some embodiments, it is described if it is determined that the mesh
The file type of file is marked as system file, before the system file is moved into system folder, is further included:
Judge whether the file size of the system file reaches threshold value;
If the file size of the system file is not up to threshold value, the system file is moved into system folder.
In some embodiments, after whether the file size for judging the system file reaches threshold value, further include:
If the file size of the system file reaches threshold value, judge whether the corresponding application of the system file has unloaded
It carries;
If it is determined that the corresponding application of the system file is unloaded, then the system file is cleared up;Or
If it is determined that corresponding apply of the system file does not unload, then the system file is moved into system folder.
The alternative embodiment that any combination forms the application may be employed in above-mentioned all technical solutions, not another herein
One repeats.
Referring to Fig. 2, Fig. 2 is a kind of another flow diagram of file management method provided by the embodiments of the present application.Institute
Method is stated to be applied in electronic equipment, the described method includes:
Step 201, file destination of the separate storage outside default file folder in electronic equipment is obtained.Wherein, step 201
Step 101 is seen, details are not described herein.
Step 202, the file type of the file destination is determined according to preset keyword, wherein, the file type bag
Include system file and Stub File.If it is determined that the file type of the file destination is system file, then step 206 is performed.If
Determine that the file type of the file destination for Stub File, then performs step 203.
Wherein, the file type of file destination of the separate storage outside default file folder can include system file
And Stub File.
For example, filename includes the file of the keywords such as log, debug, such as log.txt, debug9.txt,
Blink.log, these files are cell phone system journal files, are that system is dished out automatically in cell phone system operational process, belong to
Some system files inherently generated.For example the keywords such as log, debug are arranged to the default key of identifying system file
Word when the filename of the file destination of acquisition includes log, debug when preset keywords, determines the text of the file destination
Part type is system file, then performs step 206.
For example, filename includes the file of the corresponding keyword of Apply Names, such as kgmusic.ver (the related texts of KuGoo
Part), Thunder.txt (sudden peal of thunder associated documents), com.baidu.appsearch.log.lck (Baidu's associated documents),
Wesync_qqpim.dat (QQ associated documents), these files can be seen to be from title applies relevant text with some
Part, these may not unload clean Stub File using relevant file with some for some unloaded application.It such as will
The corresponding keyword of Apply Names is arranged to preset keyword of the identification using Stub File, when the file of the file destination of acquisition
When name includes Apply Names corresponding preset keyword, determine that the file type of the file destination for Stub File, is then held
Row step 203.
Step 203, judge whether the corresponding application of the Stub File is unloaded.If it is determined that the Stub File is corresponding
Using unloaded, then step 204 is performed.If it is determined that corresponding apply of the Stub File does not unload, then step 205 is performed.
Wherein, however, it is determined that the file type of the file destination is Stub File, then needs to determine whether the residual text
Whether the corresponding application of part is unloaded.
In some embodiments, it is described to judge whether the corresponding application of the Stub File is unloaded, including:
Judge in the desktop icons of the electronic equipment with the presence or absence of the icon of application corresponding with the Stub File;
If there is the icon of application corresponding with the Stub File in the desktop icons of the electronic equipment, it is determined that institute
The corresponding application of Stub File is stated not unload;
If the icon of application corresponding with the Stub File is not present in the desktop icons of the electronic equipment, it is determined that
The corresponding application of the Stub File is unloaded.
For example, by taking the kgmusic.ver in mobile phone this file destination as an example, it is not present if detected in mobile phone desktop
KuGoo music icon then judges that the corresponding applications of the kgmusic.ver are unloaded, then performs step 204.If detect mobile phone
There are KuGoo music icon in desktop, then judge that the corresponding applications of the kgmusic.ver do not unload, then perform step 205.
In some embodiments, it is described to judge whether the corresponding application of the Stub File is unloaded, including:
Judge the application file folder to match in the electronic equipment with the presence or absence of application corresponding with the Stub File;
If there is the application file folder that application corresponding with the Stub File matches in the electronic equipment, it is determined that
Corresponding apply of the Stub File does not unload;
It to be pressed from both sides if there is no the application files that application corresponding with the Stub File matches in the electronic equipment, really
It is unloaded to determine the corresponding application of the Stub File.
For example, by taking the kgmusic.ver in mobile phone this file destination as an example, if detect be not present in mobile phone and this
The file name assignable application file folder of the same name of file destination, then judge that the corresponding applications of the kgmusic.ver are unloaded,
Then perform step 204.Exist and the file name of the file destination assignable application file of the same name if detected in mobile phone
Folder then judges that the corresponding applications of the kgmusic.ver do not unload, then performs step 205.
Step 204, the Stub File is cleared up.
For example, if it is determined that file type for Stub File file destination it is corresponding application it is unloaded, then clear up the text
Part type is the file destination of Stub File.For example, the corresponding KuGoo of kgmusic.ver files is judged using unloaded, then
Delete the kgmusic.ver files.
Step 205, the Stub File is moved into the corresponding application file of the application to press from both sides.
For example, if it is determined that file type does not unload for the corresponding application of file destination of Stub File, by the files classes
Type moves into the corresponding application file folder of the application for the file destination of Stub File.For example, judge the kgmusic.ver files
Corresponding KuGoo application does not unload, then the kgmusic.ver files are moved into KuGoo applies in corresponding application file folder, such as
Folder name is moved into be known as in the file of kgmusic.
In addition, it is pressed from both sides the file type is moved into the corresponding application file of the application for the file destination of Stub File
Afterwards, the store path that the file destination is updated in store path records list is corresponded to.
Step 206, judge whether the file size of the system file reaches threshold value.If so, perform step 207.If
It is no, then perform step 209.
Wherein, however, it is determined that the file type of the file destination is system file, then determines whether the file type
Whether the file size for the file destination of system file reaches threshold value.If the file type is the file destination of system file
File size to threshold value, then illustrate that the file destination is larger, if had been stored in electronic equipment, occupancy equipment can be compared
Memory space then needs to determine whether the service condition of the file destination, then performs step 207.If the file type is
The file size of the file destination of system file does not arrive threshold value, illustrates that the device memory that the file destination occupies is little, then performs step
Rapid 209.Step 207, judge whether the corresponding application of the system file is unloaded.If so, perform step 208.If it is not, then
Perform step 209.
For example, using operationally generate journal file, registration table when system files, can to the system file into
Row application identities, to record the system file as which application generation.In addition, using the journal file operationally generated,
The system files such as registration table can find out the keywords such as the title of related application in system file records content, can also lead to
It crosses and searches the keyword in system file record content to determine the corresponding application of the system file.
In some embodiments, it is described to judge whether the corresponding application of the system file is unloaded, including:
Judge in the desktop icons of the electronic equipment with the presence or absence of the icon of application corresponding with the system file;
If there is the icon of application corresponding with the system file in the desktop icons of the electronic equipment, it is determined that institute
The corresponding application of system file is stated not unload;
If the icon of application corresponding with the system file is not present in the desktop icons of the electronic equipment, it is determined that
The corresponding application of the system file is unloaded.
In some embodiments, it is described to judge whether the corresponding application of the system file is unloaded, including:
Judge the application file folder to match in the electronic equipment with the presence or absence of application corresponding with the system file;
If there is the application file folder that application corresponding with the system file matches in the electronic equipment, it is determined that
Corresponding apply of the system file does not unload;
It to be pressed from both sides if there is no the application files that application corresponding with the system file matches in the electronic equipment, really
It is unloaded to determine the corresponding application of the system file.Step 208, the system file is cleared up.
For example, the file destination that the file type is system file is deleted, with release device memory.
Step 209, the system file is moved into system folder.
For example, the system folder of one entitled " system file " is created under file management catalogue, entitled " the system text
The storage location of the system folder of part " can be located in system/app catalogues, data/app catalogues, data/data catalogues
Arbitrary catalogue under.If it is determined that the file type is not up to threshold value for the file size of the file destination of system file, by institute
State the system folder that the file destination that file type is system file moves into entitled " system file ".
For example, the system folder of one entitled " system file " is created under file management catalogue, entitled " the system text
The storage location of the system folder of part " can be located in system/app catalogues, data/app catalogues, data/data catalogues
Arbitrary catalogue under.If it is determined that the file type does not unload for the corresponding application of file destination of system file, by the text
Part type moves into the system folder of entitled " system file " for the file destination of system file.
In addition, after the file type is moved into the system folder for the file destination of system file, it is corresponding
The store path of the file destination is updated in store path records list.
The embodiment of the present application by obtaining the file destination of separate storage in electronic equipment outside default file folder, according to
Preset keyword determines the file type of the file destination, wherein, the file type includes system file and Stub File,
If it is determined that the file type of the file destination is system file, then the system file is moved into system folder, however, it is determined that
The file type of the file destination is Stub File, then judges whether the corresponding application of the Stub File is unloaded, if sentencing
It is unloaded to determine the corresponding application of the Stub File, then clears up the Stub File or if it is determined that the Stub File corresponds to
Application do not unload, then the Stub File is moved into the corresponding application file of the application presss from both sides.The embodiment of the present application is to regulations
Scattered file destination beyond orderly file is handled in order so that and these scattered file destinations respectively return its position,
To reduce the project during file management so that file management show it is more beautiful, slide locating file it is more convenient, can
To be more effectively carried out file management.
The embodiment of the present application also provides a kind of document management apparatus, referring to Fig. 3, Fig. 3 is provided by the embodiments of the present application
A kind of structure diagram of document management apparatus.The document management apparatus 40 include acquisition module 41, determining module 42, first
Processing module 47, the first judgment module 43 and Second processing module 44.
Wherein, the acquisition module 41, for obtaining in the electronic equipment separate storage outside default file folder
File destination.
The determining module 42, for determining the file type of the file destination according to preset keyword, wherein, it is described
File type includes system file and Stub File.
The first processing module 47, for if it is determined that the file type of the file destination is system file, then by institute
It states system file and moves into system folder.
First judgment module 43, for if it is determined that the file type of the file destination is then judged for Stub File
Whether the corresponding application of the Stub File is unloaded.
The Second processing module 44, for if it is determined that the corresponding application of the Stub File is unloaded, then described in cleaning
Stub File;Or
If it is determined that corresponding apply of the Stub File does not unload, then it is corresponding the Stub File to be moved into the application
Application file presss from both sides.
Referring to Fig. 4, Fig. 4 is a kind of another structure diagram of document management apparatus provided by the embodiments of the present application.Institute
Stating document management apparatus 40 includes acquisition module 41, determining module 42, and the first judgment module 43 is with, Second processing module 44, and the
Two judgment modules 45, the 3rd judgment module 46 and first processing module 4.
Wherein, wherein, the acquisition module 41 presss from both sides it for obtaining separate storage in the electronic equipment in default file
Outer file destination.
The determining module 42, for determining the file type of the file destination according to preset keyword, wherein, it is described
File type includes system file and Stub File.
First judgment module 43, for if it is determined that the file type of the file destination is then judged for Stub File
Whether the corresponding application of the Stub File is unloaded.
In some embodiments, first judgment module 43, is used for:
Judge in the desktop icons of the electronic equipment with the presence or absence of the icon of application corresponding with the Stub File;
If there is the icon of application corresponding with the Stub File in the desktop icons of the electronic equipment, it is determined that institute
The corresponding application of Stub File is stated not unload;
If the icon of application corresponding with the Stub File is not present in the desktop icons of the electronic equipment, it is determined that
The corresponding application of the Stub File is unloaded.
In some embodiments, first judgment module 43, is used for:
Judge the application file folder to match in the electronic equipment with the presence or absence of application corresponding with the Stub File;
If there is the application file folder that application corresponding with the Stub File matches in the electronic equipment, it is determined that
Corresponding apply of the Stub File does not unload;
It to be pressed from both sides if there is no the application files that application corresponding with the Stub File matches in the electronic equipment, really
It is unloaded to determine the corresponding application of the Stub File.
The Second processing module 44, for if it is determined that the corresponding application of the Stub File is unloaded, then described in cleaning
Stub File;Or
If it is determined that corresponding apply of the Stub File does not unload, then it is corresponding the Stub File to be moved into the application
Application file presss from both sides.
Second judgment module 45, for judging whether the file size of the system file reaches threshold value;
The first processing module 47, if the file size for the system file is not up to threshold value, by the system
File of uniting moves into system folder.
3rd judgment module 46 if the file size for the system file reaches threshold value, judges the system
Whether the corresponding application of file of uniting is unloaded;
The first processing module 47, be additionally operable to if it is determined that the system file it is corresponding application it is unloaded, then clear up institute
State system file;Or
If it is determined that corresponding apply of the system file does not unload, then the system file is moved into system folder.
The document management apparatus 40 of the embodiment of the present application presss from both sides it by obtaining separate storage in electronic equipment in default file
Outer file destination determines the file type of the file destination according to preset keyword, wherein, the file type is including being
System file and Stub File, however, it is determined that the file type of the file destination is system file, then moves into the system file
System folder, however, it is determined that the file type of the file destination is Stub File, then judges that the Stub File is corresponding and answer
With whether unloaded, if it is determined that the corresponding application of the Stub File is unloaded, then clear up the Stub File or if it is determined that
Corresponding apply of the Stub File does not unload, then the Stub File is moved into the corresponding application file of the application presss from both sides.This
Application embodiment document management apparatus 40 is located in order by the scattered file destination beyond the file orderly to regulations
Reason so that these scattered file destinations respectively return its position, to reduce the project during file management, so that file management is shown
Show it is more beautiful, slide locating file it is more convenient, file management can be more effectively carried out.
The alternative embodiment that any combination forms the application may be employed in above-mentioned all technical solutions, not another herein
One repeats.
The embodiment of the present application also provides a kind of electronic equipment, and including memory, processor and storage are on a memory and can
The computer program run on a processor, the processor call the computer program stored in the memory, hold
File management method described in row the application any embodiment.
The electronic equipment can be the equipment such as smart mobile phone, tablet computer, palm PC.As shown in figure 5, electronic equipment
500 include there are one or more than one processing core processor 501, there are one or more than one computer-readable storage medium
The memory 502 of matter and storage are on a memory and the computer program that can run on a processor.Wherein, processor 501 with
Memory 502 is electrically connected.
Processor 501 is the control centre of electronic equipment 500, utilizes various interfaces and the entire electronic equipment of connection
Various pieces, by operation or load store, application program in memory 502 and calling is stored in memory 502
Data, perform electronic equipment various functions and processing data, so as to electronic equipment carry out integral monitoring.
In the embodiment of the present application, the processor 501 in electronic equipment 500 can be according to the steps, by one or one
The corresponding instruction of process of a above application program is loaded into memory 502, and is stored in by processor 501 to run
Application program in reservoir 502, so as to fulfill various functions:
Obtain file destination of the separate storage outside default file folder in the electronic equipment;
The file type of the file destination is determined according to preset keyword, wherein, the file type includes system text
Part and Stub File;
If it is determined that the file type of the file destination is system file, then the system file is moved into system file
Folder;
If it is determined that the file type of the file destination is Stub File, then judge that the corresponding application of the Stub File is
It is no unloaded;
If it is determined that the corresponding application of the Stub File is unloaded, then the Stub File is cleared up;Or
If it is determined that corresponding apply of the Stub File does not unload, then it is corresponding the Stub File to be moved into the application
Application file presss from both sides.
In some embodiments, processor 501 judges whether the corresponding application of the Stub File is unloaded for described,
Including:
Judge in the desktop icons of the electronic equipment with the presence or absence of the icon of application corresponding with the Stub File;
If there is the icon of application corresponding with the Stub File in the desktop icons of the electronic equipment, it is determined that institute
The corresponding application of Stub File is stated not unload;
If the icon of application corresponding with the Stub File is not present in the desktop icons of the electronic equipment, it is determined that
The corresponding application of the Stub File is unloaded.
In some embodiments, processor 501 judges whether the corresponding application of the Stub File is unloaded for described,
Including:
Judge the application file folder to match in the electronic equipment with the presence or absence of application corresponding with the Stub File;
If there is the application file folder that application corresponding with the Stub File matches in the electronic equipment, it is determined that
Corresponding apply of the Stub File does not unload;
It to be pressed from both sides if there is no the application files that application corresponding with the Stub File matches in the electronic equipment, really
It is unloaded to determine the corresponding application of the Stub File.
In some embodiments, processor 501 is used for described if it is determined that the file type of the file destination is system text
Part before the system file is moved into system folder, further includes:
Judge whether the file size of the system file reaches threshold value;
If the file size of the system file is not up to threshold value, the system file is moved into system folder.
In some embodiments, whether processor 501 reaches threshold for the file size for judging the system file
After value, further include:
If the file size of the system file reaches threshold value, judge whether the corresponding application of the system file has unloaded
It carries;
If it is determined that the corresponding application of the system file is unloaded, then the system file is cleared up;Or
If it is determined that corresponding apply of the system file does not unload, then the system file is moved into system folder.
In some embodiments, as shown in fig. 6, electronic equipment 500 further includes:Display screen 503, radio circuit 504, audio
Circuit 505, input unit 506, Wireless Fidelity (WiFi) module 507 and sensor 508.Wherein, processor 501 is respectively with showing
Display screen 503, radio circuit 504, voicefrequency circuit 505, input unit 506, Wireless Fidelity (WiFi) module 507 and sensor
508 are electrically connected.It will be understood by those skilled in the art that electronic devices structure shown in Fig. 6 is not formed to electronic equipment
Restriction, can include that more or fewer components either combine some components or different components is arranged than illustrating.
Display screen 503 is each available for the information and electronic equipment for showing by information input by user or being supplied to user
Kind graphical user interface, these graphical user interface can be made of figure, text, icon, video and its any combination.It is aobvious
When display screen 503 is touching display screen, the part that can also be used as input unit realizes input function.
Radio circuit 504 can be used for transceiving radio frequency signal, to pass through wireless communication and the network equipment or other electronic equipments
Wireless telecommunications are established, the receiving and transmitting signal between the network equipment or other electronic equipments.
Voicefrequency circuit 505 can be used for providing the audio interface between user and electronic equipment by loud speaker, microphone.
Input unit 506 can be used for receive input number, character information or user's characteristic information (such as fingerprint) and
Generate the keyboard related with user setting and function control, mouse, operation lever, optics or the input of trace ball signal.
Wireless Fidelity (WiFi) module 507 can be used for short range wireless transmission, and user can be helped to send and receive e-mail, is clear
It lookes at and website and accesses streaming video etc., it has provided wireless broadband internet to the user and has accessed.
Electronic equipment 500 may also include at least one sensor 508, for example, acceleration transducer, gyroscope and other
Sensor etc..
Although not shown in Fig. 6, electronic equipment 500 can also include camera, bluetooth module, power supply etc., herein no longer
It repeats.
In the above-described embodiments, all emphasize particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
In the embodiment of the present application, the document management apparatus belongs to same with a kind of file management method in foregoing embodiments
One design, can run the either method provided in the file management method embodiment on the document management apparatus,
Specific implementation process refers to the file management method embodiment, and details are not described herein again.
The embodiment of the present application also provides a kind of storage medium, and the storage medium is stored with computer program, when the meter
When calculation machine program is run on computers so that the computer performs the file management method in any of the above-described embodiment.
It should be noted that for herein described file management method, this field common test personnel are appreciated that
It realizes all or part of flow of file management method described in the embodiment of the present application, is that can phase be controlled by computer program
The hardware of pass is completed, and the computer program can be stored in a computer readable storage medium, be such as stored in electronic equipment
Memory in, and by the electronic equipment at least one processor perform, may include in the process of implementation such as the file
The flow of the embodiment of management method.Wherein, the storage medium can be magnetic disc, CD, read-only memory (ROM, Read
Only Memory), random access memory (RAM, Random Access Memory) etc..
For the document management apparatus of the embodiment of the present application, each function module can be integrated in a processing core
In piece or modules are individually physically present, can also two or more modules be integrated in a module.On
The form realization that hardware had both may be employed in integrated module is stated, can also be realized in the form of software function module.The collection
If into module realized in the form of software function module and be independent production marketing or in use, can also be stored in
In one computer readable storage medium, the storage medium is for example read-only memory, disk or CD etc..
Above to a kind of file management method, device, storage medium and the electronic equipment that the embodiment of the present application is provided into
It has gone and has been discussed in detail, the principle and implementation of this application are described for specific case used herein, implements above
The explanation of example is only intended to help the technical solution and its core concept that understand the application;Those of ordinary skill in the art should
Understand:It can still modify to the technical solution recorded in foregoing embodiments or to which part technical characteristic
Carry out equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is not made to depart from each embodiment of the application
The scope of technical solution.
Claims (12)
1. a kind of file management method, applied in electronic equipment, which is characterized in that the described method includes:
Obtain file destination of the separate storage outside default file folder in the electronic equipment;
The file type of the file destination is determined according to preset keyword, wherein, the file type include system file and
Stub File;
If it is determined that the file type of the file destination is system file, then the system file is moved into system folder;
If it is determined that the file type of the file destination is Stub File, then whether the corresponding application of the Stub File is judged
Unloading;
If it is determined that the corresponding application of the Stub File is unloaded, then the Stub File is cleared up;Or
If it is determined that corresponding apply of the Stub File does not unload, then the Stub File is moved into the corresponding application of the application
File.
2. file management method as described in claim 1, which is characterized in that described to judge the corresponding application of the Stub File
It is whether unloaded, including:
Judge in the desktop icons of the electronic equipment with the presence or absence of the icon of application corresponding with the Stub File;
If there is the icon of application corresponding with the Stub File in the desktop icons of the electronic equipment, it is determined that described residual
The corresponding application of file is stayed not unload;
If the icon of application corresponding with the Stub File is not present in the desktop icons of the electronic equipment, it is determined that described
The corresponding application of Stub File is unloaded.
3. file management method as claimed in claim 2, which is characterized in that described to judge the corresponding application of the Stub File
It is whether unloaded, including:
Judge the application file folder to match in the electronic equipment with the presence or absence of application corresponding with the Stub File;
If there is the application file folder that application corresponding with the Stub File matches in the electronic equipment, it is determined that described
The corresponding application of Stub File does not unload;
If there is no the application file folders that application corresponding with the Stub File matches in the electronic equipment, it is determined that institute
It is unloaded to state the corresponding application of Stub File.
4. file management method as described in claim 1, which is characterized in that described if it is determined that the files classes of the file destination
Type is system file, before the system file is moved into system folder, is further included:
Judge whether the file size of the system file reaches threshold value;
If the file size of the system file is not up to threshold value, the system file is moved into system folder.
5. file management method as claimed in claim 4, which is characterized in that the file size for judging the system file
After whether reaching threshold value, further include:
If the file size of the system file reaches threshold value, judge whether the corresponding application of the system file is unloaded;
If it is determined that the corresponding application of the system file is unloaded, then the system file is cleared up;Or
If it is determined that corresponding apply of the system file does not unload, then the system file is moved into system folder.
6. a kind of document management apparatus, which is characterized in that described device includes:
Acquisition module, for obtaining file destination of the separate storage outside default file folder in the electronic equipment;
Determining module, for determining the file type of the file destination according to preset keyword, wherein, the file type bag
Include system file and Stub File;
First processing module, for if it is determined that the file type of the file destination is system file, then by the system file
Move into system folder;
First judgment module, for if it is determined that the file type of the file destination for Stub File, then judges the residual text
Whether the corresponding application of part is unloaded;
Second processing module, for if it is determined that the Stub File it is corresponding application it is unloaded, then clear up the Stub File;Or
Person
If it is determined that corresponding apply of the Stub File does not unload, then the Stub File is moved into the corresponding application of the application
File.
7. document management apparatus as claimed in claim 6, which is characterized in that first judgment module is used for:
Judge in the desktop icons of the electronic equipment with the presence or absence of the icon of application corresponding with the Stub File;
If there is the icon of application corresponding with the Stub File in the desktop icons of the electronic equipment, it is determined that described residual
The corresponding application of file is stayed not unload;
If the icon of application corresponding with the Stub File is not present in the desktop icons of the electronic equipment, it is determined that described
The corresponding application of Stub File is unloaded.
8. document management apparatus as claimed in claim 2, which is characterized in that first judgment module is used for:
Judge the application file folder to match in the electronic equipment with the presence or absence of application corresponding with the Stub File;
If there is the application file folder that application corresponding with the Stub File matches in the electronic equipment, it is determined that described
The corresponding application of Stub File does not unload;
If there is no the application file folders that application corresponding with the Stub File matches in the electronic equipment, it is determined that institute
It is unloaded to state the corresponding application of Stub File.
9. document management apparatus as claimed in claim 6, which is characterized in that described device further includes:
Second judgment module, for judging whether the file size of the system file reaches threshold value;
The first processing module, if the file size for the system file is not up to threshold value, by the system file
Move into system folder.
10. document management apparatus as claimed in claim 9, which is characterized in that described device further includes:
3rd judgment module if the file size for the system file reaches threshold value, judges that the system file corresponds to
Application it is whether unloaded;
The first processing module, be additionally operable to if it is determined that the system file it is corresponding application it is unloaded, then clear up the system
File;Or
If it is determined that corresponding apply of the system file does not unload, then the system file is moved into system folder.
11. a kind of storage medium, is stored thereon with computer program, which is characterized in that when the computer program is in computer
During upper operation so that the computer performs such as claim 1-5 any one of them file management methods.
12. a kind of electronic equipment, including memory and processor, which is characterized in that the processor is by calling the storage
The computer program stored in device, for performing such as claim 1-5 any one of them file management methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711351071.6A CN108108421B (en) | 2017-12-15 | 2017-12-15 | File management method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711351071.6A CN108108421B (en) | 2017-12-15 | 2017-12-15 | File management method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108108421A true CN108108421A (en) | 2018-06-01 |
CN108108421B CN108108421B (en) | 2020-07-03 |
Family
ID=62217191
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711351071.6A Active CN108108421B (en) | 2017-12-15 | 2017-12-15 | File management method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108108421B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030101383A1 (en) * | 2001-11-29 | 2003-05-29 | Carlson Barry L. | Automatic file system maintainer |
US7984249B2 (en) * | 2006-10-02 | 2011-07-19 | Samsung Electronics Co., Ltd. | Method for writing a file by different writing schemes according to file characteristics and electronic device using the method |
CN102662741A (en) * | 2012-04-05 | 2012-09-12 | 华为技术有限公司 | Method, device and system for realizing virtual desktop |
CN106127045A (en) * | 2016-06-21 | 2016-11-16 | 中国农业大学 | File fingerprint identifies and introduction method and system automatically |
CN106202166A (en) * | 2016-06-24 | 2016-12-07 | 北京奇虎科技有限公司 | The method for cleaning of file, device and corresponding client |
CN106406755A (en) * | 2016-08-31 | 2017-02-15 | 宇龙计算机通信科技(深圳)有限公司 | Application file storage method and terminal |
CN106557570A (en) * | 2016-11-18 | 2017-04-05 | 广州炫智电子科技有限公司 | File management method and device under a kind of Android system |
-
2017
- 2017-12-15 CN CN201711351071.6A patent/CN108108421B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030101383A1 (en) * | 2001-11-29 | 2003-05-29 | Carlson Barry L. | Automatic file system maintainer |
US7984249B2 (en) * | 2006-10-02 | 2011-07-19 | Samsung Electronics Co., Ltd. | Method for writing a file by different writing schemes according to file characteristics and electronic device using the method |
CN102662741A (en) * | 2012-04-05 | 2012-09-12 | 华为技术有限公司 | Method, device and system for realizing virtual desktop |
CN106127045A (en) * | 2016-06-21 | 2016-11-16 | 中国农业大学 | File fingerprint identifies and introduction method and system automatically |
CN106202166A (en) * | 2016-06-24 | 2016-12-07 | 北京奇虎科技有限公司 | The method for cleaning of file, device and corresponding client |
CN106406755A (en) * | 2016-08-31 | 2017-02-15 | 宇龙计算机通信科技(深圳)有限公司 | Application file storage method and terminal |
CN106557570A (en) * | 2016-11-18 | 2017-04-05 | 广州炫智电子科技有限公司 | File management method and device under a kind of Android system |
Also Published As
Publication number | Publication date |
---|---|
CN108108421B (en) | 2020-07-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104040496B (en) | Terminal and application recovery method | |
US9317280B2 (en) | Method, equipment and system of incremental update | |
CN107329985B (en) | Page collection method and device and mobile terminal | |
CN108228305A (en) | Display methods, device, storage medium and the electronic equipment of five application page | |
CN108363792A (en) | Link generation method, device, storage medium and the electronic equipment of five application page | |
CN104461504A (en) | Managing method of terminal application program | |
CN105868056B (en) | Obtain the method, apparatus and secure virtual machine of deleted document in Windows virtual machine | |
CN107171894A (en) | The method of terminal device, distributed high in the clouds detecting system and pattern detection | |
CN109309696A (en) | Portfolios method, sender, recipient and storage medium | |
CN112114849B (en) | Resource updating method and device | |
CN108345478A (en) | application processing method, device, storage medium and electronic equipment | |
CN112363871A (en) | Data file returning method, device and storage medium | |
CN107402846B (en) | File processing method and device | |
US10783073B2 (en) | Chronologically ordered out-of-place update key-value storage system | |
CN114661527A (en) | Data backup method and device, electronic equipment and storage medium | |
CN103020187A (en) | Mobile terminal and fast file management method thereof | |
CN104008096B (en) | A kind of application operating method and apparatus based on browser | |
CN111090623B (en) | Data auditing method and device, electronic equipment and storage medium | |
CN108733830A (en) | A kind of intelligence file classifying method and device | |
CN106201198B (en) | Lookup method, device and the mobile terminal of terminal applies | |
CN110020297A (en) | A kind of loading method of web page contents, apparatus and system | |
CN108108421A (en) | File management method, device, storage medium and electronic equipment | |
CN108132844A (en) | Plug-in download method and device | |
WO2007056364A1 (en) | Apparatus and associated methods for reducing application startup latency | |
CN107506112B (en) | Data processing method and device and terminal equipment |
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: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |