CN104462296A - File managing method and device and terminal - Google Patents

File managing method and device and terminal Download PDF

Info

Publication number
CN104462296A
CN104462296A CN201410708601.8A CN201410708601A CN104462296A CN 104462296 A CN104462296 A CN 104462296A CN 201410708601 A CN201410708601 A CN 201410708601A CN 104462296 A CN104462296 A CN 104462296A
Authority
CN
China
Prior art keywords
file
directory
filename
modification time
date modification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410708601.8A
Other languages
Chinese (zh)
Other versions
CN104462296B (en
Inventor
王芳
牛坤
朱瑞贤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410708601.8A priority Critical patent/CN104462296B/en
Publication of CN104462296A publication Critical patent/CN104462296A/en
Application granted granted Critical
Publication of CN104462296B publication Critical patent/CN104462296B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Abstract

The invention relates to a file managing method and device and a terminal, and belongs to the technical field of computers. The file managing method comprises the steps of acquiring the latest modification time of all files in a current media database, determining first files according to the latest modification time of the files, acquiring file names and file paths of all the first files, and generating a recently-used file directory according to the file names and file paths of all the first files. According to the method, the latest modification time of all the files in the current media database is acquired, the first files are determined according to the latest modification time of the files, the file names and file paths of all the first files are acquired, and the recently-used file directory is acquired according to the file names and file paths of all the first files. Due to the fact that the recently-used file directory is generated according to the latest modification time, a user can find newly-added files from the recently-used file directory when looking for the newly-added files, the finding process is easy, and the finding efficiency is high. Thus, the file managing effect is good.

Description

The management method of file, device and terminal
Technical field
The present invention relates to field of computer technology, particularly a kind of management method of file, device and terminal.
Background technology
Along with the development of science and technology, terminal storage the user of management document is used to get more and more.Wherein, when managing the file of terminal, usually according to the classification pre-set, the file stored is put under in different split catalogs, user can under different split catalogs locating file, thus realize management to file.Such as, be music catalog, installation kit catalogue and videogram three kinds by Divide File, thus the music file in storage file can be divided to music catalog, installation kit Divide File is to compressed package catalogue, and video file is divided to videogram.When user needs to check music file, corresponding file can be searched under music catalog.
Realizing in process of the present invention, inventor finds that correlation technique at least exists following problem:
Due to when management document; usually have under newly-increased file do not belong to the split catalog divided; as the file that some have just been downloaded or have received; also may not carry out document classification; when user needs the file searching this kind; need manually to search from whole file directory or application catalog, thus cause search procedure more complicated, search efficiency is low.Therefore, the management effect of file is not good.
Summary of the invention
For overcoming Problems existing in correlation technique, the invention provides a kind of management method of file, device and terminal.
According to the first aspect of the embodiment of the present invention, provide a kind of management method of file, the method comprises:
Obtain the up-to-date modification time of All Files in current media data storehouse;
According to the up-to-date modification time of each file, determine the first file, described first file refer to up-to-date modification time be positioned at current time before the file of preset time period;
Obtain filename and the file path of each first file;
According to filename and the file path of each first file, generate and use file directory recently.
In conjunction with first aspect, in the first possible implementation of first aspect, the described filename according to each first file and file path, generate after using file directory recently, described method also comprises:
At the file management page, display uses the icon of file directory recently;
When the clicking operation to described icon being detected, show described nearest use file directory, described nearest use file directory comprises the directory entry generated by filename and file path.
In conjunction with the first possible implementation of first aspect, in the implementation that the second of first aspect is possible, after the described nearest use file directory of described display, described method also comprises:
When receiving the clicking operation of any one directory entry in nearest use file directory, according to the file path corresponding to described directory entry, open corresponding file.
In conjunction with first aspect, in the third possible implementation of first aspect, described method also comprises:
Send file scan instruction to media scanner, by described media scanner according to described file scan instruction, current memory space is scanned;
The end of scan notice of the scanned rear transmission of receiving media scanner;
According to described end of scan notice and scanning result, described nearest use file directory is upgraded.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, described according to described end of scan notice and scanning result, described nearest use file directory is upgraded, comprising:
According to described end of scan notice and scanning result, obtain the file do not comprised in current media data storehouse;
Obtain the up-to-date modification time of each non-include file in current media data storehouse;
According to the up-to-date modification time of each non-include file, determine the second file, described first file refer to up-to-date modification time be positioned at current time before the file of preset time period;
Obtain filename and the file path of each second file;
According to filename and the file path of each second file, upgrade described nearest use file directory.
According to the second aspect of the embodiment of the present invention, provide a kind of management devices of file, this device comprises:
First acquisition module, for obtaining the up-to-date modification time of All Files in current media data storehouse;
Determination module, for the up-to-date modification time according to each file, determines the first file, described first file refer to up-to-date modification time be positioned at current time before the file of preset time period;
Second acquisition module, for obtaining filename and the file path of each first file;
Generation module, for according to the filename of each first file and file path, generates and uses file directory recently.
In conjunction with second aspect, in the first possible implementation of second aspect, described device also comprises:
First display module, at the file management page, shows the icon using file directory recently;
Second display module, for when the clicking operation to described icon being detected, shows described nearest use file directory, and described nearest use file directory comprises the directory entry generated by filename and file path.
In conjunction with the first possible implementation of second aspect, in the implementation that the second of second aspect is possible, described device also comprises:
Opening module, for when receiving the clicking operation of any one directory entry in nearest use file directory, according to the file path corresponding to described directory entry, opening corresponding file.
In conjunction with second aspect, in the third possible implementation of second aspect, described device also comprises:
Sending module, for sending file scan instruction to media scanner, by described media scanner according to described file scan instruction, scans current memory space;
Receiver module, the end of scan for the scanned rear transmission of receiving media scanner notifies;
Update module, for according to described end of scan notice and scanning result, upgrades described nearest use file directory.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation of second aspect, described update module, for according to described end of scan notice and scanning result, obtains the file do not comprised in current media data storehouse; Obtain the up-to-date modification time of each non-include file in current media data storehouse; According to the up-to-date modification time of each non-include file, determine the second file, described first file refer to up-to-date modification time be positioned at current time before the file of preset time period; Obtain filename and the file path of each second file; According to filename and the file path of each second file, upgrade described nearest use file directory.
According to the third aspect of the embodiment of the present invention, provide a kind of terminal, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the up-to-date modification time of All Files in current media data storehouse;
According to the up-to-date modification time of each file, determine the first file, described first file refer to up-to-date modification time be positioned at current time before the file of preset time period;
Obtain filename and the file path of each first file;
According to filename and the file path of each first file, generate and use file directory recently.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By obtaining the up-to-date modification time of All Files in current media data storehouse, according to the up-to-date modification time of each file, determine the first file, obtain filename and the file path of each first file, according to filename and the file path of each first file, generate and use file directory recently.Due to the up-to-date modification time according to file, generate and use file directory recently, user is when searching newly-increased file, and can search from using file directory recently, thus make search procedure simple, search efficiency is high.Therefore, the management effect of file is better.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the present invention.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows embodiment according to the invention, and is used from instructions one and explains principle of the present invention.
Fig. 1 is the process flow diagram of the management method of a kind of file according to an exemplary embodiment.
Fig. 2 is the process flow diagram of the management method of a kind of file according to an exemplary embodiment.
Fig. 3 is the schematic diagram of a kind of file management interface according to an exemplary embodiment.
Fig. 4 is the schematic diagram of a kind of file management interface according to an exemplary embodiment.
Fig. 5 is the schematic diagram of the management devices of a kind of file according to an exemplary embodiment.
Fig. 6 is the schematic diagram of the management devices of a kind of file according to an exemplary embodiment.
Fig. 7 is the schematic diagram of the management devices of a kind of file according to an exemplary embodiment.
Fig. 8 is the schematic diagram of the management devices of a kind of file according to an exemplary embodiment.
Fig. 9 is the block diagram of a kind of terminal according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
Fig. 1 is the process flow diagram of the management method of a kind of file according to an exemplary embodiment, and the management method of this file is applied to terminal.As shown in Figure 1, this method for processing business comprises the following steps.
In a step 101, the up-to-date modification time of All Files in current media data storehouse is obtained.
In a step 102, according to the up-to-date modification time of each file, determine the first file, the first file refer to up-to-date modification time be positioned at current time before the file of preset time period.
In step 103, filename and the file path of each first file is obtained.
At step 104, according to filename and the file path of each first file, generate and use file directory recently.
The method that the embodiment of the present invention provides, by obtaining the up-to-date modification time of All Files in current media data storehouse, according to the up-to-date modification time of each file, determine the first file, obtain filename and the file path of each first file, according to filename and the file path of each first file, generate and use file directory recently.Due to the up-to-date modification time according to file, generate and use file directory recently, user is when searching newly-increased file, and can search from using file directory recently, thus make search procedure simple, search efficiency is high.Therefore, the management effect of file is better.
As a kind of embodiment, according to filename and the file path of each first file, generate after using file directory recently, method also comprises:
At the file management page, display uses the icon of file directory recently;
When the clicking operation to icon being detected, display uses file directory recently, uses file directory to comprise the directory entry generated by filename and file path recently.
As a kind of embodiment, after display uses file directory recently, method also comprises:
When receiving the clicking operation of any one directory entry in nearest use file directory, the file path corresponding to directory entry, opens corresponding file.
As a kind of embodiment, the method also comprises:
Send file scan instruction to media scanner, by media scanner according to file scan instruction, current memory space is scanned;
The end of scan notice of the scanned rear transmission of receiving media scanner;
According to end of scan notice and scanning result, upgrade using file directory recently.
As a kind of embodiment, according to end of scan notice and scanning result, to using file directory to upgrade recently, comprising:
According to end of scan notice and scanning result, obtain the file do not comprised in current media data storehouse;
Obtain the up-to-date modification time of each non-include file in current media data storehouse;
According to the up-to-date modification time of each non-include file, determine the second file, the first file refer to up-to-date modification time be positioned at current time before the file of preset time period;
Obtain filename and the file path of each second file;
According to filename and the file path of each second file, upgrade and use file directory recently.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation optional embodiment of the present invention, this is no longer going to repeat them.
Fig. 2 is the process flow diagram of a kind of method for processing business according to an exemplary embodiment, and this method for processing business is applied to terminal.As shown in Figure 2, this method for processing business comprises the following steps.
In step 201, the up-to-date modification time of All Files in current media data storehouse is obtained.
The present embodiment does not do concrete restriction to the mode of the up-to-date modification time obtaining All Files in current media data storehouse, includes but not limited to: open a background thread, is read the attribute information of current media data storehouse file by this thread; Obtain the up-to-date modification time of file attribute information file.Wherein, can comprise filename, the up-to-date modification time of file and file path etc. in file attribute information, the present embodiment does not do concrete restriction to the content in file attribute information.
Such as, the up-to-date modification time of file is comprised for file attribute information.Open a background thread, this background thread can scan the file in current media data storehouse, thus reads the attribute information of each file, and obtains the up-to-date modification time of file in file attribute information.
Wherein, by obtaining the up-to-date modification time of file, can determine which file is the file of amendment recently or the file of interpolation recently according to the up-to-date modification time of file, the present embodiment does not do concrete restriction to this.
In step 202., according to the up-to-date modification time of each file, determine the first file, the first file refer to up-to-date modification time be positioned at current time before the file of preset time period.
Need due to follow-up the file up-to-date modification time being positioned at current slot, join and use in file directory recently.Therefore, according to the up-to-date modification time of each file, the first file can be determined, namely determines most recently used file in this step.
The present embodiment, not to the up-to-date modification time according to each file, is determined that the mode of the first file does concrete restriction, is included but not limited to: obtain current time, determine the time period length between the up-to-date modification time of arbitrary file to current time; If this time period length is less than or equal to Preset Time segment length, this file is defined as the first file, if this time period length is greater than Preset Time segment length, determines that this file is not the first file.
Such as, it is 10 days for Preset Time segment length.If the up-to-date modification time of arbitrary file is October 10, and current time is October 15.Because up-to-date modification time to the time period length of current time of this file is 5 days, be less than 10 days of preset time period.Therefore, this file can be defined as the first file.Otherwise, if the up-to-date modification time of arbitrary file is October 1, because up-to-date modification time to the time period length of current time of this file is 14 days, be greater than 10 days of preset time period.Therefore, can determine that this file is not the first file.
In step 203, filename and the file path of each first file is obtained.
From in above-mentioned steps 201, the information such as the up-to-date modification time of filename, file path and file in file attribute information, can be comprised.Therefore, by reading the attribute information of each first file, thus obtain filename and the file path of each first file.Certainly, alternate manner can also be adopted to obtain filename and the file path of each first file, and the present embodiment does not do concrete restriction to this.
In step 204, according to filename and the file path of each first file, generate and use file directory recently.
The present embodiment to according to the filename of each first file and file path, does not generate and uses the mode of file directory to do concrete restriction recently, include but not limited to: the directory entry determining to use recently file directory according to the filename of each first file; Each directory entry is associated with corresponding file path, generates and use file directory recently.
Wherein, the file name information of the first file can be comprised in directory entry.Such as, the nearest use file directory of generation can be as shown in Figure 3.Wherein, each directory entry is associated with corresponding file path.
Above-mentioned steps 201 to step 204 is the processes using file directory according to the file generated in current media data storehouse recently, because the file in media database may ceaselessly change.Therefore, can pre-set one-period, when each cycle starts, use file directory recently according to the file generated in media database, thus adapt to the change of media database file, the present embodiment does not do concrete restriction to this.
In addition, owing to using file directory to generate recently, or file system carries and uses file directory recently.Therefore, in step, according to the filename of each first file and file path, the directory entry do not comprised in existing nearest use file directory can be generated, the directory entry of generation is added in existing nearest use file directory.
It should be noted that, because system is when managing file, usually file can be classified.When user needs to check a certain class file, the entrance of this class file first can be shown in administration page.If detect, user clicks this entrance, can open the file directory of this class file.For said circumstances, the present embodiment additionally provides a kind of method opening use file directory recently, and detailed process can with reference to following steps.
In step 205, at the file management page, display uses the icon of file directory recently.
Wherein, use the icon of file directory can be pre-set by system recently, manually can be arranged by user, the present embodiment does not do concrete restriction to this yet.In addition, can also show the icon of other class files catalogues in the file management page, the present embodiment does not do concrete restriction to this.Such as, as shown in Figure 4.The icon of music file catalogue can be shown, the icon etc. of video file catalogue in the file management page.
In step 206, when the clicking operation to icon being detected, display uses file directory recently, uses file directory to comprise the directory entry generated by filename and file path recently.
Because user can open catalogue corresponding to icon by clickable icon, therefore, when the clicking operation of user to icon being detected, can show and use file directory recently.Wherein, according to above-mentioned steps 204, due to according to the filename of each first file and file path, the directory entry using file directory recently can be generated.Therefore, the directory entry that can comprise and being generated by filename and file path is used in file directory recently.
In addition, because user needs the file retrieving needs in file directory usually, when retrieving the file of needs, the file of needs is opened by directory entry.Therefore, after display recently uses file directory, when receiving when using the clicking operation of any one directory entry in file directory recently, can file path corresponding to directory entry, open corresponding file, the present embodiment does not do concrete restriction to this.
It should be noted that, what take due to media database is the part of current memory space, and except media database, current memory space other parts also may store file.Therefore, conveniently user searches the file in the storage space except media database, the present embodiment additionally provides a kind of method managed the file in the storage space outside media database, detailed process is as follows: send file scan instruction to media scanner, by media scanner according to file scan instruction, current memory space is scanned; The end of scan notice of the scanned rear transmission of receiving media scanner; According to end of scan notice and scanning result, upgrade using file directory recently.
Wherein, can arrange one-period, when each cycle starts, send file scan instruction from trend media scanner, by media scanner according to file scan instruction, scan current memory space, the present embodiment does not do concrete restriction to this.After media scanner is scanned, end of scan notice can be sent to file system.According to end of scan notice, file system can know that scan procedure terminates, and according to scanning result, can upgrade using file directory recently.
The present embodiment to according to end of scan notice and scanning result, is not done concrete restriction to the mode using file directory to upgrade recently, is included but not limited to: according to end of scan notice and scanning result, obtain the file do not comprised in current media data storehouse; Obtain the up-to-date modification time of each non-include file in current media data storehouse; According to the up-to-date modification time of each non-include file, determine the second file, the first file refer to up-to-date modification time be positioned at current time before the file of preset time period; Obtain filename and the file path of each second file; According to filename and the file path of each second file, upgrade and use file directory recently.
Wherein, the filename scanned can be comprised in scanning result.Filename in the filename scanned and current media data storehouse is compared, determines the filename lacked in current media data storehouse, thus the file that do not comprise in current media data storehouse can be determined.Certainly, can also adopt the file do not comprised in alternate manner determination current media data storehouse, the present embodiment is to determining that the mode of the file do not comprised in current media data storehouse does concrete restriction.
Each file do not comprised also may correspond to one group of attribute information, and the present embodiment does not do concrete restriction to this.About the up-to-date modification time according to each non-include file, determine the mode of the second file, the present embodiment does not do concrete restriction to this, and detailed process with reference to the content in above-mentioned steps 201 to step 202, can repeat no more herein.The present embodiment does not do concrete restriction to each filename of the second file of acquisition and the mode of file path, includes but not limited to obtain the filename in the attribute information of each second file and file path.
The present embodiment is not to according to the filename of each second file and file path, upgrade and use the mode of file directory to do concrete restriction recently, include but not limited to: determine corresponding directory entry according to the filename of each second file, each directory entry is associated with corresponding file path; Under nearest use file directory, adding the directory entry determined, thus completing the renewal to using file directory recently.
The method that the embodiment of the present invention provides, by obtaining the up-to-date modification time of All Files in current media data storehouse, according to the up-to-date modification time of each file, determine the first file, obtain filename and the file path of each first file, according to filename and the file path of each first file, generate and use file directory recently.Due to the up-to-date modification time according to file, generate and use file directory recently, user is when searching newly-increased file, and can search from using file directory recently, thus make search procedure simple, search efficiency is high.Therefore, the management effect of file is better.
Fig. 5 is the structural representation of the management devices of a kind of file according to an exemplary embodiment, and with reference to Fig. 5, this device comprises the first acquisition module 501, determination module 502, second acquisition module 503 and generation module 504.
This first acquisition module 501 is configured to the up-to-date modification time obtaining All Files in current media data storehouse;
This determination module 502 is configured to the up-to-date modification time according to each file, determines the first file, described first file refer to up-to-date modification time be positioned at current time before the file of preset time period;
This second acquisition module 503 is configured to the filename and the file path that obtain each first file;
This generation module 504 is configured to filename according to each first file and file path, generates and uses file directory recently.
In one embodiment, see Fig. 6, this device also comprises the first display module 505 and the second display module 506.
This first display module 505 is configured at the file management page, and display uses the icon of file directory recently;
This second display module 506 is configured to when the clicking operation to described icon being detected, shows described nearest use file directory, and described nearest use file directory comprises the directory entry generated by filename and file path.
In one embodiment, see Fig. 7, this device also comprises opens module 507.
This is opened module 507 and is configured to, when receiving the clicking operation of any one directory entry in nearest use file directory, according to the file path corresponding to described directory entry, open corresponding file.
In one embodiment, see Fig. 8, this device also comprises sending module 508, receiver module 509 and update module 510.
This sending module 508 is configured to send file scan instruction to media scanner, by described media scanner according to described file scan instruction, scans current memory space;
This receiver module 509 is configured to the end of scan notice of the scanned rear transmission of receiving media scanner;
This update module 510 is configured to, according to described end of scan notice and scanning result, upgrade described nearest use file directory.
In one embodiment, this update module 510 is configured to, according to described end of scan notice and scanning result, obtain the file do not comprised in current media data storehouse; Obtain the up-to-date modification time of each non-include file in current media data storehouse; According to the up-to-date modification time of each non-include file, determine the second file, described first file refer to up-to-date modification time be positioned at current time before the file of preset time period; Obtain filename and the file path of each second file; According to filename and the file path of each second file, upgrade described nearest use file directory.
The device that the embodiment of the present invention provides, by obtaining the up-to-date modification time of All Files in current media data storehouse, according to the up-to-date modification time of each file, determine the first file, obtain filename and the file path of each first file, according to filename and the file path of each first file, generate and use file directory recently.Due to the up-to-date modification time according to file, generate and use file directory recently, user is when searching newly-increased file, and can search from using file directory recently, thus make search procedure simple, search efficiency is high.Therefore, the management effect of file is better.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Fig. 9 is the block diagram of a kind of terminal 900 for managing file according to an exemplary embodiment.Such as, terminal 900 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 9, terminal 900 can comprise following one or more assembly: processing components 902, storer 904, power supply module 906, multimedia groupware 908, audio-frequency assembly 910, I/O (Input/Output, I/O) interface 99, sensor module 914, and communications component 916.
The integrated operation of the usual control terminal 900 of processing components 902, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 902 can comprise one or more processor 920 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 902 can comprise one or more module, and what be convenient between processing components 902 and other assemblies is mutual.Such as, processing components 902 can comprise multi-media module, mutual with what facilitate between multimedia groupware 908 and processing components 902.
Storer 904 is configured to store various types of data to be supported in the operation of terminal 900.The example of these data comprises for any application program of operation in terminal 900 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 904 can be realized by the volatibility of any type or non-volatile memory device or their combination, as SRAM (Static Random Access Memory, static RAM), EEPROM (Electrically-Erasable Programmable Read-Only Memory, Electrically Erasable Read Only Memory), EPROM (Erasable Programmable Read Only Memory, Erasable Programmable Read Only Memory EPROM), PROM (Programmable Read-Only Memory, programmable read only memory), ROM (Read-Only Memory, ROM (read-only memory)), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 906 is terminal 900 provide electric power.Power supply module 906 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for terminal 900 and be associated.
Multimedia groupware 908 is included in the screen providing an output interface between described terminal 900 and user.In certain embodiments, screen can comprise LCD (Liquid Crystal Display, liquid crystal display) and TP (Touch Panel, touch panel).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 908 comprises a front-facing camera and/or post-positioned pick-up head.When terminal 900 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 910 is configured to export and/or input audio signal.Such as, audio-frequency assembly 910 comprises a MIC (Microphone, microphone), and when terminal 900 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 904 further or be sent via communications component 916.In certain embodiments, audio-frequency assembly 910 also comprises a loudspeaker, for output audio signal.
I/O interface 99 is for providing interface between processing components 902 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 914 comprises one or more sensor, for providing the state estimation of various aspects for terminal 900.Such as, sensor module 914 can detect the opening/closing state of terminal 900, the relative positioning of assembly, such as assembly is display and the keypad of terminal 900, the position of all right sense terminals 900 of sensor module 914 or terminal 900 1 assemblies changes, the presence or absence that user contacts with terminal 900, the temperature variation of terminal 900 orientation or acceleration/deceleration and terminal 900.Sensor module 914 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 914 can also comprise optical sensor, as CMOS (Complementary Metal Oxide Semiconductor, CMOS (Complementary Metal Oxide Semiconductor)) or CCD (Charge-coupled Device, charge coupled cell) imageing sensor, for using in imaging applications.In certain embodiments, this sensor module 914 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 916 is configured to the communication being convenient to wired or wireless mode between terminal 900 and other equipment.Terminal 900 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 916 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 916 also comprises NFC (Near Field Communication, near-field communication) module, to promote junction service.Such as, can based on RFID (Radio Frequency Identification in NFC module, radio-frequency (RF) identification) technology, IrDA (Infra-red Data Association, Infrared Data Association) technology, UWB (Ultra Wideband, ultra broadband) technology, BT (Bluetooth, bluetooth) technology and other technologies realize.
In the exemplary embodiment, terminal 900 can by one or more ASIC (Application Specific Integrated Circuit, application specific integrated circuit), DSP (Digital signal Processor, digital signal processor), DSPD (Digital signal Processor Device, digital signal processing appts), PLD (Programmable Logic Device, programmable logic device (PLD)), FPGA) (Field Programmable Gate Array, field programmable gate array), controller, microcontroller, microprocessor or other electronic components realize, for performing said method.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 904 of instruction, above-mentioned instruction can perform said method by the processor 920 of terminal 900.Such as, described non-transitory computer-readable recording medium can be ROM, RAM (Random Access Memory, random access memory), CD-ROM (Compact Disc Read-Only Memory, compact disc read-only memory), tape, floppy disk and optical data storage devices etc.
The terminal that the embodiment of the present invention provides, by obtaining the up-to-date modification time of All Files in current media data storehouse, according to the up-to-date modification time of each file, determine the first file, obtain filename and the file path of each first file, according to filename and the file path of each first file, generate and use file directory recently.Due to the up-to-date modification time according to file, generate and use file directory recently, user is when searching newly-increased file, and can search from using file directory recently, thus make search procedure simple, search efficiency is high.Therefore, the management effect of file is better.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of management method of file, described method comprises:
Obtain the up-to-date modification time of All Files in current media data storehouse;
According to the up-to-date modification time of each file, determine the first file, described first file refer to up-to-date modification time be positioned at current time before the file of preset time period;
Obtain filename and the file path of each first file;
According to filename and the file path of each first file, generate and use file directory recently.
The non-transitory computer-readable recording medium that the embodiment of the present invention provides, by obtaining the up-to-date modification time of All Files in current media data storehouse, according to the up-to-date modification time of each file, determine the first file, obtain filename and the file path of each first file, according to filename and the file path of each first file, generate and use file directory recently.Due to the up-to-date modification time according to file, generate and use file directory recently, user is when searching newly-increased file, and can search from using file directory recently, thus make search procedure simple, search efficiency is high.Therefore, the management effect of file is better.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the present invention or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can be.

Claims (11)

1. a management method for file, is characterized in that, described method comprises:
Obtain the up-to-date modification time of All Files in current media data storehouse;
According to the up-to-date modification time of each file, determine the first file, described first file refer to up-to-date modification time be positioned at current time before the file of preset time period;
Obtain filename and the file path of each first file;
According to filename and the file path of each first file, generate and use file directory recently.
2. method according to claim 1, is characterized in that, the described filename according to each first file and file path, and generate after using file directory recently, described method also comprises:
At the file management page, display uses the icon of file directory recently;
When the clicking operation to described icon being detected, show described nearest use file directory, described nearest use file directory comprises the directory entry generated by filename and file path.
3. method according to claim 2, is characterized in that, after the described nearest use file directory of described display, described method also comprises:
When receiving the clicking operation of any one directory entry in nearest use file directory, according to the file path corresponding to described directory entry, open corresponding file.
4. method according to claim 1, is characterized in that, described method also comprises:
Send file scan instruction to media scanner, by described media scanner according to described file scan instruction, current memory space is scanned;
The end of scan notice of the scanned rear transmission of receiving media scanner;
According to described end of scan notice and scanning result, described nearest use file directory is upgraded.
5. method according to claim 4, is characterized in that, described according to described end of scan notice and scanning result, upgrades, comprising described nearest use file directory:
According to described end of scan notice and scanning result, obtain the file do not comprised in current media data storehouse;
Obtain the up-to-date modification time of each non-include file in current media data storehouse;
According to the up-to-date modification time of each non-include file, determine the second file, described first file refer to up-to-date modification time be positioned at current time before the file of preset time period;
Obtain filename and the file path of each second file;
According to filename and the file path of each second file, upgrade described nearest use file directory.
6. a management devices for file, is characterized in that, described device comprises:
First acquisition module, for obtaining the up-to-date modification time of All Files in current media data storehouse;
Determination module, for the up-to-date modification time according to each file, determines the first file, described first file refer to up-to-date modification time be positioned at current time before the file of preset time period;
Second acquisition module, for obtaining filename and the file path of each first file;
Generation module, for according to the filename of each first file and file path, generates and uses file directory recently.
7. device according to claim 6, is characterized in that, described device also comprises:
First display module, at the file management page, shows the icon using file directory recently;
Second display module, for when the clicking operation to described icon being detected, shows described nearest use file directory, and described nearest use file directory comprises the directory entry generated by filename and file path.
8. device according to claim 7, is characterized in that, described device also comprises:
Opening module, for when receiving the clicking operation of any one directory entry in nearest use file directory, according to the file path corresponding to described directory entry, opening corresponding file.
9. device according to claim 6, is characterized in that, described device also comprises:
Sending module, for sending file scan instruction to media scanner, by described media scanner according to described file scan instruction, scans current memory space;
Receiver module, the end of scan for the scanned rear transmission of receiving media scanner notifies;
Update module, for according to described end of scan notice and scanning result, upgrades described nearest use file directory.
10. device according to claim 9, is characterized in that, described update module, for according to described end of scan notice and scanning result, obtains the file do not comprised in current media data storehouse; Obtain the up-to-date modification time of each non-include file in current media data storehouse; According to the up-to-date modification time of each non-include file, determine the second file, described first file refer to up-to-date modification time be positioned at current time before the file of preset time period; Obtain filename and the file path of each second file; According to filename and the file path of each second file, upgrade described nearest use file directory.
11. 1 kinds of terminals, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the up-to-date modification time of All Files in current media data storehouse;
According to the up-to-date modification time of each file, determine the first file, described first file refer to up-to-date modification time be positioned at current time before the file of preset time period;
Obtain filename and the file path of each first file;
According to filename and the file path of each first file, generate and use file directory recently.
CN201410708601.8A 2014-11-28 2014-11-28 File management method and device and terminal Active CN104462296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410708601.8A CN104462296B (en) 2014-11-28 2014-11-28 File management method and device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410708601.8A CN104462296B (en) 2014-11-28 2014-11-28 File management method and device and terminal

Publications (2)

Publication Number Publication Date
CN104462296A true CN104462296A (en) 2015-03-25
CN104462296B CN104462296B (en) 2020-12-04

Family

ID=52908331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410708601.8A Active CN104462296B (en) 2014-11-28 2014-11-28 File management method and device and terminal

Country Status (1)

Country Link
CN (1) CN104462296B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488131A (en) * 2015-11-25 2016-04-13 小米科技有限责任公司 File opening method and apparatus
CN105630969A (en) * 2015-12-24 2016-06-01 北京金山安全软件有限公司 File display method and device and electronic equipment
CN105893498A (en) * 2016-03-30 2016-08-24 努比亚技术有限公司 Method and device for achieving screen capture and method and device for searching for images
CN107015992A (en) * 2016-01-28 2017-08-04 珠海金山办公软件有限公司 A kind of document display method and device
CN107729400A (en) * 2017-09-21 2018-02-23 金蝶软件(中国)有限公司 Open method, apparatus, computer equipment and the storage medium of history document
CN108133048A (en) * 2018-01-16 2018-06-08 广东欧珀移动通信有限公司 file ordering method, device and mobile terminal
CN108228894A (en) * 2018-02-05 2018-06-29 腾讯科技(深圳)有限公司 Check the method, apparatus and terminal for using file recently
CN109359092A (en) * 2018-09-27 2019-02-19 腾讯科技(深圳)有限公司 File management method, desktop display method, device, terminal and medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101147115A (en) * 2005-03-22 2008-03-19 微软公司 Operating system program launch menu search
US20110067109A1 (en) * 2005-01-31 2011-03-17 Microsoft Corporation System and method of caching decisions on when to scan for malware
CN102999268A (en) * 2012-11-29 2013-03-27 广东欧珀移动通信有限公司 Dynamic unlocking method and dynamic unlocking device based on application and use times and mobile terminal
CN103092471A (en) * 2013-01-04 2013-05-08 深圳市中兴移动通信有限公司 Implement method and terminal for dynamic function menus
CN103150343A (en) * 2013-02-05 2013-06-12 珠海市君天电子科技有限公司 Method and system for managing downloaded files
CN103353821A (en) * 2013-06-09 2013-10-16 广东欧珀移动通信有限公司 System and method for managing desktop application program icons of mobile terminal
CN103649945A (en) * 2011-06-20 2014-03-19 微软公司 Automatic synchronization of most recently used document lists
CN103902589A (en) * 2012-12-28 2014-07-02 腾讯科技(深圳)有限公司 Method and device for managing downloaded files
CN104133822A (en) * 2013-07-15 2014-11-05 腾讯科技(深圳)有限公司 Method and device for scanning files in memory
US20140343896A1 (en) * 2013-05-15 2014-11-20 Google Inc. Determining Sensor Information in the Background On a Mobile Device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110067109A1 (en) * 2005-01-31 2011-03-17 Microsoft Corporation System and method of caching decisions on when to scan for malware
CN101147115A (en) * 2005-03-22 2008-03-19 微软公司 Operating system program launch menu search
CN103649945A (en) * 2011-06-20 2014-03-19 微软公司 Automatic synchronization of most recently used document lists
CN102999268A (en) * 2012-11-29 2013-03-27 广东欧珀移动通信有限公司 Dynamic unlocking method and dynamic unlocking device based on application and use times and mobile terminal
CN103902589A (en) * 2012-12-28 2014-07-02 腾讯科技(深圳)有限公司 Method and device for managing downloaded files
CN103092471A (en) * 2013-01-04 2013-05-08 深圳市中兴移动通信有限公司 Implement method and terminal for dynamic function menus
CN103150343A (en) * 2013-02-05 2013-06-12 珠海市君天电子科技有限公司 Method and system for managing downloaded files
US20140343896A1 (en) * 2013-05-15 2014-11-20 Google Inc. Determining Sensor Information in the Background On a Mobile Device
CN103353821A (en) * 2013-06-09 2013-10-16 广东欧珀移动通信有限公司 System and method for managing desktop application program icons of mobile terminal
CN104133822A (en) * 2013-07-15 2014-11-05 腾讯科技(深圳)有限公司 Method and device for scanning files in memory

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
DONGHEE LEE等: "LRFU: a spectrum of policies that subsumes the least recently used and least frequently used policies", 《IEEE TRANSACTIONS ON COMPUTERS》 *
刘洪武: "基于Linux内核的智能日志生成系统", 《计算机工程》 *
唐诗: "大海也捞针,文件查找不求人", 《电脑知识与技术(经验技巧)》 *
绒绒メ兔: "iTunes怎么添加、同步音乐", 《百度经验》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488131A (en) * 2015-11-25 2016-04-13 小米科技有限责任公司 File opening method and apparatus
CN105630969A (en) * 2015-12-24 2016-06-01 北京金山安全软件有限公司 File display method and device and electronic equipment
CN105630969B (en) * 2015-12-24 2019-05-10 北京金山安全软件有限公司 File display method and device and electronic equipment
CN107015992A (en) * 2016-01-28 2017-08-04 珠海金山办公软件有限公司 A kind of document display method and device
WO2017166953A1 (en) * 2016-03-30 2017-10-05 努比亚技术有限公司 Method, device, mobile terminal and storage medium for realizing screenshot capturing and image display
CN105893498A (en) * 2016-03-30 2016-08-24 努比亚技术有限公司 Method and device for achieving screen capture and method and device for searching for images
CN105893498B (en) * 2016-03-30 2019-05-21 努比亚技术有限公司 A kind of method and apparatus that realizing screenshotss, the method and apparatus for searching picture
CN107729400A (en) * 2017-09-21 2018-02-23 金蝶软件(中国)有限公司 Open method, apparatus, computer equipment and the storage medium of history document
CN108133048A (en) * 2018-01-16 2018-06-08 广东欧珀移动通信有限公司 file ordering method, device and mobile terminal
CN108133048B (en) * 2018-01-16 2020-09-25 Oppo广东移动通信有限公司 File sorting method and device and mobile terminal
CN108228894A (en) * 2018-02-05 2018-06-29 腾讯科技(深圳)有限公司 Check the method, apparatus and terminal for using file recently
CN109359092A (en) * 2018-09-27 2019-02-19 腾讯科技(深圳)有限公司 File management method, desktop display method, device, terminal and medium
CN109359092B (en) * 2018-09-27 2023-05-26 腾讯科技(深圳)有限公司 File management method, desktop display method, device, terminal and medium

Also Published As

Publication number Publication date
CN104462296B (en) 2020-12-04

Similar Documents

Publication Publication Date Title
CN104462296A (en) File managing method and device and terminal
CN104834665A (en) Target picture acquiring method and device
CN105337847A (en) Instant messaging information processing method, device and equipment
CN105488112A (en) Information pushing method and device
CN105426386A (en) File synchronization method and apparatus, and terminal device
CN104216971A (en) Method and device for indexing applications
CN104268129A (en) Message reply method and message reply device
CN104850849A (en) Method, device and terminal for sending character
CN105094904A (en) Application program installation method and device
CN105354017A (en) Information processing method and apparatus
CN104615663A (en) File sorting method and device and terminal
CN105389113A (en) Gesture-based application control method and apparatus and terminal
CN105138564A (en) Data file reading method and apparatus
CN104539812A (en) Recommendation information acquisition method, terminal and server
CN104391877A (en) Method, device, terminal and server for searching subjects
CN104636064A (en) Gesture generating method and device
CN105242837A (en) Application page acquisition method and terminal
CN105117006A (en) Information input method and apparatus
CN104243607A (en) Method and device for acquiring equipment information
CN104679386A (en) Method and device for carrying out sound recording processing
CN104486295A (en) Audio playing method and device
CN105426065A (en) Browsing position marking method and device
CN104951522A (en) Searching method and device
CN104317911A (en) File uploading method and device
CN104780256A (en) Address book management method and device and intelligent terminal

Legal Events

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