CN110083576B - Cache directory identification method and device - Google Patents

Cache directory identification method and device Download PDF

Info

Publication number
CN110083576B
CN110083576B CN201910371062.6A CN201910371062A CN110083576B CN 110083576 B CN110083576 B CN 110083576B CN 201910371062 A CN201910371062 A CN 201910371062A CN 110083576 B CN110083576 B CN 110083576B
Authority
CN
China
Prior art keywords
directory
application
cache
target
translations
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.)
Active
Application number
CN201910371062.6A
Other languages
Chinese (zh)
Other versions
CN110083576A (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.)
Zhengzhou Apas Technology Co ltd
Original Assignee
Zhuhai Tianyan Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Tianyan Technology Co ltd filed Critical Zhuhai Tianyan Technology Co ltd
Priority to CN201910371062.6A priority Critical patent/CN110083576B/en
Publication of CN110083576A publication Critical patent/CN110083576A/en
Application granted granted Critical
Publication of CN110083576B publication Critical patent/CN110083576B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06F16/162Delete operations
    • 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
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1737Details of further file system functions for reducing power consumption or coping with limited storage space, e.g. in mobile devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/58Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation

Landscapes

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

Abstract

The embodiment of the application provides a method and a device for identifying a cache directory, wherein the method comprises the following steps: acquiring application information corresponding to each installed application in a terminal; translating the application information according to languages respectively to obtain translations of the application information corresponding to the languages and storing the translations; a newly added target directory in the real-time monitoring terminal is monitored, translations of various languages are respectively matched with the target directory, and a newly added cache directory and corresponding target application are obtained; and adding the cache directories into a directory list, and displaying the junk files in each cache directory in the directory list by taking the target application as a unit after the third-party application scans according to the directory list. The method and the device monitor the newly added directories through the translations of the application information in the terminal, identify more cache directories corresponding to the matched installed applications, scan more junk files according to the identified cache directories in terminal systems of different languages, and improve the cleaning effect of the junk files.

Description

Cache directory identification method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for identifying a cache directory.
Background
With the development of mobile terminals, especially intelligent mobile terminals, more and more application programs (applications for short) are being developed to meet various requirements. Typically, most users will install many types of applications to meet the varying needs of their clothing and housing.
When the mobile terminal runs the application software, most of the application software stores a large number of files, such as log files, picture cache files, and other multimedia files, in a common storage space (i.e., sdcard) of the mobile terminal. Due to the existence of the file, the storage space of the mobile terminal is greatly wasted, so that the performance of the mobile terminal is reduced, for example, the running speed of the mobile terminal is reduced.
In order to solve the problem that the performance of the mobile terminal is reduced due to the fact that a large number of files generated by each application software are stored in the mobile terminal, the files stored in the mobile terminal need to be cleaned. However, currently, when a file stored in a mobile terminal is cleaned, a cache directory corresponding to each file, that is, a storage location of each temporary file in the terminal, is identified first, and then, the file in the storage location is traversed and whether deletion is to be performed is determined.
At present, a manual operation mode is often adopted to identify the cache directory, however, the identification speed is slow, the cost is high, and the coverage rate is limited.
Disclosure of Invention
The embodiment of the application aims to provide a cache directory identification method and a cache directory identification device, so that the cache directory corresponding to each application is identified in a terminal, more temporary files in the cache directory are cleaned after being scanned, and a larger storage space is provided for the terminal.
In order to solve the above technical problem, the embodiment of the present application is implemented as follows:
according to a first aspect of the embodiments of the present application, there is provided a method for identifying a cache directory, which is applied to a terminal device, the method including:
respectively acquiring application information corresponding to the installed applications in the terminal; the application information comprises a package name, an application name and a manufacturer name;
translating the application information according to languages respectively to obtain translations of the application information corresponding to the languages and storing the translations;
a target directory newly added in the real-time monitoring terminal is monitored, translations of all languages are respectively matched with the target directory, and the matched target directory is used as a cache directory;
and adding the cache directories into a directory list, and respectively displaying the junk files in each cache directory in the directory list by taking the target application corresponding to the cache directory as a unit after the third-party application scans according to the directory list.
In an embodiment of the present application, the method includes:
and respectively carrying out similarity matching on the translated texts of the languages and the directory names in the terminal SD card, and adding the successfully matched directory names into a scanning list.
In an embodiment of the present application, when the application information is translated according to languages, word libraries corresponding to the languages are called to translate the application information respectively, and the translated text of each language is structurally stored in the server.
In an embodiment of the present application, when the translations in the respective languages are respectively matched with the target directory, the translations in the respective languages are converted according to the names of humps, and capitalized characters after the names of humps are respectively matched with the target directory, so as to obtain the newly added cache directory.
In an embodiment of the present application, when the translations in the different languages are respectively matched with the target directory,
traversing according to the level corresponding to the target directory;
matching the translated text of each language with the participles corresponding to the target directory;
and taking the target directory with the matching rate larger than a set threshold value as the cache directory, and taking the installed application corresponding to the translation as the target application.
In an embodiment of the present application, when the spam files in the cache directories in the directory list are respectively displayed,
respectively scanning the cache directories in the directory list, and respectively determining junk files under the cache directories;
and integrating the junk files according to the target applications, and respectively displaying the junk files corresponding to the cache directories under each target application.
According to a second aspect of embodiments of the present application, there is provided an apparatus for identifying a cache directory, the apparatus including:
the acquisition module is used for respectively acquiring application information corresponding to the installed applications in the terminal; the application information comprises a package name, an application name and a manufacturer name;
the translation module is used for translating the application information according to languages respectively to obtain translations of the application information corresponding to the languages and storing the translations;
the monitoring module is used for monitoring a newly added target directory in the terminal in real time, matching the translations of all languages with the target directory respectively and taking the matched target directory as a cache directory;
and the display module is used for adding the cache directories into a directory list, and after scanning is carried out by a third-party application according to the directory list, displaying the junk files in the cache directories in the directory list by taking the target application corresponding to the cache directories as a unit.
In an embodiment of the present application, the apparatus includes:
and the matching module is used for respectively carrying out similarity matching on the translations of the languages and the directory names in the terminal SD card and adding the successfully matched directory names into the scanning list.
In an embodiment of the present application, in the translation module, when the application information is translated according to languages, word libraries corresponding to the languages are called to translate the application information respectively, and translations of the languages are structurally stored in the server.
In an embodiment of the present application, in the monitoring module, when the translations of each language are respectively matched with the target directory, the translations of each language are converted according to the name of the hump, and capitalized characters after the name of the hump are respectively matched with the target directory, so as to obtain the newly added cache directory.
In an embodiment of the present application, the monitoring module further includes,
the traversal unit is used for respectively traversing according to the levels corresponding to the target directory;
the participle matching unit is used for matching the translations of all languages with the participles corresponding to the target directory;
and the judging unit is used for taking the target directory with the matching rate larger than a preset threshold value as the cache directory and taking the installed application corresponding to the translation as the target application.
In an embodiment of the present application, when the display module is used to display the garbage files in each cache directory in the directory list,
the scanning unit is used for respectively scanning according to the cache directories in the directory list and respectively determining junk files under the cache directories;
and the display unit is used for integrating the junk files according to the target applications and respectively displaying the junk files corresponding to the cache directories under each target application.
According to the technical scheme provided by the embodiment of the application, the embodiment of the application respectively acquires the application information corresponding to the installed applications in the terminal; translating the application information according to languages respectively to obtain translations of the application information corresponding to the languages and storing the translations; a newly added target directory in the real-time monitoring terminal is monitored, translations of all languages are respectively matched with the target directory, and a newly added cache directory and corresponding target application are obtained; and adding the cache directories into a directory list, scanning by a third-party application according to the directory list, and displaying garbage files in each cache directory in the directory list by taking the target application as a unit. According to the method and the device, after the application information in the terminal is translated, the newly added directory is monitored according to the translated text, and more cache directories corresponding to the installed application are identified after matching, so that a scanning engine of a third party can scan more junk files according to the identified cache directories in terminal systems of different languages, and the cleaning effect of the junk files is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present specification, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 is a flow diagram of a method for identifying a cache directory according to one embodiment of the present application;
fig. 2 is a structural schematic diagram of an electronic device corresponding to the cache directory identification method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an apparatus for identifying a cache directory according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present specification, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the protection scope of the present specification.
The embodiment of the application provides a cache directory identification method and device.
First, a method for identifying a cache directory provided in an embodiment of the present application is described below.
It should be noted that the method provided in the embodiment of the present application is applicable to a terminal device, and in practical application, the terminal device may include: smart phones, tablet computers, smart watches, notebook/desktop computers, and the like, which are not limited in this application.
When the mobile terminal runs the application software, most of the application software stores a large number of files in the public storage space of the mobile terminal, and the generated cache files occupy a large amount of storage space along with the continuous running of each application software, so that the performance of the mobile terminal is reduced. In order to solve the problem, after the cache directory of each application software in the mobile terminal is identified, the cache files stored in the cache directory are cleaned. The cache directories corresponding to the application software respectively have correspondingly set rules, and the rules are difficult to unify, so that naming is performed according to the application names, naming is performed according to abbreviations of the application names, naming is performed according to transliterations of the application names, and the like. The method comprises the steps of obtaining and analyzing application information corresponding to each installed application in a terminal, translating each application information according to different languages, and matching a translated text with a newly added target directory corresponding to each installed application; if one or more translations are successfully matched with the newly added target directory, it is indicated that the target directory associated with the installed application corresponding to the translation is the cache directory of the application, and the cache directory needs to be added into the directory list for the third-party scanning engine to scan. When a scanning engine of a subsequent third party scans, the files in the cache directory are used as junk files to be displayed in association with the installed application, so that the corresponding cache directory in the terminal of the installed application is identified more, more junk files are identified in a multi-language environment for a user to clean, and the cleaning effect is improved.
Fig. 1 is a flowchart of a cache directory identification method according to an embodiment of the present application, and as shown in fig. 1, the method may include the following steps:
in step 101, respectively acquiring application information corresponding to each installed application in a terminal; the application information comprises a package name, an application name and a manufacturer name;
reading all applications installed in the terminal through corresponding interfaces of a terminal system, and extracting application information corresponding to the applications respectively, wherein the application information comprises the following steps: the package name, the developer or vendor name of the application, and the application name may also include the version number of the application, the font size or font size abbreviation corresponding to the developer or vendor name of the application, and the like. Specifically, the directory structures corresponding to the installed applications are read respectively, the directory names of the directories and the description documents in the directories are subjected to semantic analysis, the feature words in the description documents and the directory names are analyzed, and the application information such as manufacturer names or versions is obtained from the fields obtained through analysis.
Step 102: translating the application information according to languages respectively to obtain translations of the application information corresponding to the languages and storing the translations;
and calling a translation library corresponding to each established language, translating the application information according to the language according to the translation library, and storing the translations of each language at the server end according to the language, namely, the server end stores the application information in the form of the translations of each language in a structured manner.
In other embodiments, the transliterated phrases corresponding to the target application are added to the application information, which is then matched with the newly added target directory.
In other embodiments, after hump naming conversion is performed on the translated text, capitalized characters after hump naming are added into application information as phrases, and then the application information is matched with the newly added target directory. If the application name corresponding to the target application is 'WeChat', calling an English translation library to translate the application name into 'MicroMessage', converting the application name into 'MicroMessage' through hump naming, converting the capital characters 'MM' into the small letters 'MM' and adding the small letters 'MM' into the application information of the target application, subsequently matching 'MM' in the application information with the newly-added target directory, if the matching is successful, the successfully-matched target directory is the newly-added cache directory, and 'MM' is the corresponding target directory.
In another embodiment, the method further comprises the following steps: and directly performing static matching in the terminal SD card according to the application information, namely performing similarity matching with each directory name in the terminal SD card according to the translations of each language. The method specifically comprises the following steps: and directly traversing the application name, the manufacturer name, the package name and the like in the application information in the SD card, and if the matching is successful, adding the successfully matched directory name as a cache directory into a scanning list for a subsequent scanning engine to scan.
Step 103: a newly added target directory in the real-time monitoring terminal is matched with the translations of all languages respectively, and the newly added target directory is used as a cache directory;
in this embodiment, each installed application is dynamically analyzed, whether a newly added target directory appears in the terminal is detected in real time, and once it is detected that a newly added directory appears in the terminal, the following two situations can be provided:
1. a new application is installed in the terminal; the newly added directory is a library file, a running file, a source file, a resource file and the like which are newly applied. However, at this time, the application is not completely installed, and the application information cannot be acquired, so that matching cannot be performed.
2. The method comprises the following steps that no new application is installed in a terminal, and a cache directory is established by the installed application: the installed application generates corresponding temporary files such as downloaded resource content, displayed pictures, videos and the like when running, the cache files are generally stored in a cache directory after being displayed, and the temporary files cannot be called and become junk files unless corresponding pages in the application are called again.
Generally, when the target application is called for the first time, that is, when the target application performs page display and generates a temporary file for the first time, the cache directory is automatically established. In other cases, some target applications have multiple cache directories, and if a log corresponding to a certain target application needs to record related log events called according to time, the current date is used as the file name of the cache directory, and at this time, multiple cache directories for storing related log files are needed, and each cache directory stores temporary files such as logs in a certain time period. In addition, in order to facilitate log search or storage, the corresponding cache directories store logs according to a predetermined size, and as the target application continuously runs, newly-built cache directories store generated logs one by one, so that one target application also corresponds to a plurality of cache directories at this time. In the embodiment, each target application is monitored in real time and is correspondingly added with a newly added target directory when running, and the cache directory is identified and then added into a directory list.
In this embodiment, the translations in the languages are respectively matched with the target directory, that is, translations in the languages such as the file name, the manufacturer name, the package name, and the like are respectively matched with the target directory, because the target directory is newly added, and the installed application is not a program directory storing an existing operating file corresponding to the installed application, the newly added target directory is a temporary file generated when the installed application is called and the page display is performed, and thus, a successfully matched target directory is a cache directory corresponding to each application.
In this embodiment, a prefix matching manner is adopted for matching, if the matching rate of the translation and the target directory is greater than a predetermined threshold, matching is successful, and the target directory is a cache directory for storing the temporal files generated by the applications during operation.
When the translations of all languages are respectively matched with the target directory, the target directory is respectively traversed and split according to the directory levels, namely the translations are divided according to the wildcard character '/', and the translations are matched with the translations from the participles of the root directory according to the levels corresponding to the target directory; and taking the target directory with the matching rate larger than a set threshold value as the cache directory, and taking the installed application corresponding to the translation as the target application.
Step 104: and adding the cache directories into a directory list, and respectively displaying the junk files in each cache directory in the directory list by taking the target application corresponding to the cache directory as a unit after the third-party application scans the directory list.
And adding the extracted cache directories into a directory list of the terminal for storage, scanning the cache files correspondingly stored under each cache directory in the directory list by a file scanning engine of a third party according to the directory list, scanning the cache files after scanning, recording the scanned cache files, performing integration statistics by taking the cache directories as a unit, integrating each cache directory by taking the corresponding target application as a unit, and displaying the cache directory respectively corresponding to a certain target application and the cache files corresponding to each cache directory after integration.
After each cache directory is displayed by taking a target application as a unit, the cache directories can be cleaned according to user trigger, and the cache directories triggered by users or all the cache directories under a certain target application are received, so that all temporary files under the cache directories are deleted as junk files, and a large amount of residual space is cleaned in the terminal. When the user trigger is not received, all the cache directories corresponding to the target applications are selected, and all temporary files under all the cache directories in the terminal are deleted as junk files.
The method comprises the steps of respectively acquiring application information corresponding to installed applications in a terminal; translating the application information according to languages respectively to obtain translations of the application information corresponding to the languages and storing the translations; a newly added target directory in the real-time monitoring terminal is monitored, translations of all languages are respectively matched with the target directory, and a newly added cache directory and corresponding target application are obtained; and adding the cache directories into a directory list, and displaying the junk files in each cache directory in the directory list by taking the target application as a unit after the third-party application scans according to the directory list. According to the method and the device, after the application information in the terminal is translated, the newly added directories are monitored according to the translated text, and more cache directories corresponding to the installed application are identified after matching, so that a scanning engine of a third party can scan more junk files according to the identified cache directories in terminal systems of different languages, and the cleaning effect of the junk files is improved.
In another optional embodiment of the present invention, when performing cache directory identification in the terminal:
step 201: respectively acquiring application information corresponding to the installed applications in the terminal; the application information comprises a package name, an application name and a manufacturer name;
in this embodiment, analyzing the directory structure of the terminal to obtain the application information corresponding to the application, for example, a "WeChat" application installed in the terminal, includes: package name, publisher, application name
Bag name: com
The application name is as follows: WeChat
The publisher: tencent science and technology
Step 202: translating the application information according to languages respectively to obtain translations of the application information corresponding to the languages and storing the translations;
calling translation libraries corresponding to the given languages, and translating the application information according to the languages according to the translation libraries, in the embodiment, taking english as an example, calling the translation libraries of english, namely a translation engine, and translating the application information of the target application 'WeChat' according to the context, so that the translation of the application information is as follows:
bag name: com
The application name is as follows: wechat/micromessage
The publisher: tencent Technology (Shenzhen) Company Limited
After the corresponding translation is obtained, the translation corresponding to other languages is structurally stored in the server side.
In this embodiment, the transliterated phrase weixin corresponding to the application name is added to the application information for subsequent matching with the newly added target directory. Meanwhile, hump naming conversion is carried out on the translated text MicroMessage to obtain 'MicroMessage', and the lower case 'mm' converted from the capital letters is added into the application information. Then the english translation corresponding to the application information at this time is:
bag name: com
The application name is as follows: wechat/micromessage/weixin/mm
The publisher: tencent Technology (Shenzhen) Company Limited
And the English translation and the translations of other languages are respectively structured and stored in the server section.
Step 203: a target directory is newly added in the real-time monitoring terminal, translations of all languages are respectively matched with the target directory, and the matched target directory is used as a cache directory;
in the embodiment, the newly added target directory is "tend/MicroMsg/WeiXin", and when the target directory is traversed and split according to the level, the target directory is divided according to the wildcard "/", so that the participle tend, MicroMsg and WeiXin are obtained, wherein the participle tend corresponds to the directory "tend/", the participle MicroMsg corresponds to the directory "tend/MicroMsg", and the participle WeiXin corresponds to the directory "tend/MicroMsg".
And respectively matching the obtained participles tencent, MicroMsg and WeiXin with each translation, respectively matching the items of the application name and the publisher of the English translation corresponding to the application information of the target application WeChat with each participle of the target directory successfully, but detecting that the target directory corresponding to the fields of the tencent and the MicroMsg is not a newly added directory, and taking the target directory corresponding to the field WeiXin as a matched cache directory.
In other embodiments, the directory in the SD card may also be scanned in a static manner, similarity matching is performed between the translations of the languages and the directory names in the terminal SD card, and the directory names that are successfully matched are added to the scan list.
The method specifically comprises the following steps: traversing according to an English translation corresponding to a name in target application 'WeChat' application information, traversing a first-level directory in the SDcard, wherein in 'com.tencent.mm', the 'tencent' is the original directory of the WeChat, and the next level is continuously pushed if the 'tencent' is not a newly added target directory; continuously traversing the device SDCARD according to the next level of mm according to the package name com. Decomposing the field 'mm', checking whether the field is the initial letter of the directory or the hump letter, continuously traversing the next level, finding that 'MicroMsg' has the hump conversion style initial letter, if the mm corresponds to the MicroMsg, and taking the corresponding directory 'tencent/MicroMsg' generated by the target application 'WeChat' as a cache directory.
Step 204: and adding the cache directories into a directory list, and respectively displaying the junk files in each cache directory in the directory list by taking the target application corresponding to the cache directory as a unit after a third party scans the cache directories according to the directory list.
In this embodiment, the identified cache directory "tencent/micromasg/WeiXin" is added to the directory list buffer.
And (4) the file scanning engine of the third party calls the directory list buffer. When a file scanning engine of a third party scans a cache directory 'tend/MicroMsg/WeiXin', and a corresponding target application is 'WeChat', all temporary files under 'WeChat' are integrated and displayed according to each cache directory by taking the 'WeChat' of the target application as a unit, namely icons of each cache directory 'tend/MicroMsg/WeiXin', 'tend/MicroMsg/CDNtemp', 'tend/MicroMsg/6 ginssotspanta' and the like are respectively displayed when garbage files under the 'WeChat' of the target application are displayed, and after the icons of each cache directory are triggered, the garbage files under the cache directories can be displayed for a user to delete after selection.
Certainly, in other embodiments, format analysis may be performed on the corresponding junk files in each cache directory in a unified manner, each junk file is classified and displayed according to the format \ size, and the junk files in the category can be displayed after the icons in the category are triggered, so that the junk files in the category can be deleted after being selected by the user.
According to the technical scheme provided by the embodiment of the application, the embodiment of the application respectively acquires the application information corresponding to the installed applications in the terminal; translating the application information according to languages respectively to obtain translations of the application information corresponding to the languages and storing the translations; a newly added target directory in the real-time monitoring terminal is monitored, translations of all languages are respectively matched with the target directory, and a newly added cache directory and corresponding target application are obtained; and adding the cache directories into a directory list, and displaying the junk files in the cache directories in the directory list by taking the target application as a unit after a third party scans the cache directories according to the directory list. According to the method and the device, after the application information in the terminal is translated, the newly added directory is monitored according to the translated text, and more cache directories corresponding to the installed application are identified after matching, so that a scanning engine of a third party can scan more junk files according to the identified cache directories in terminal systems of different languages, and the junk file cleaning effect is improved.
Fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 2, at the hardware level, the electronic device includes a processor, and optionally an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 2, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form a cache directory identification device on a logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
respectively acquiring application information corresponding to the installed applications in the terminal; the application information comprises a package name, an application name and a manufacturer name;
translating the application information according to languages respectively to obtain translations of the application information corresponding to the languages and storing the translations;
a target directory newly added in the real-time monitoring terminal is monitored, translations of all languages are respectively matched with the target directory, and the matched target directory is used as a cache directory;
and adding the cache directories into a directory list, and respectively displaying the junk files in each cache directory in the directory list by taking the target application corresponding to the cache directory as a unit after a third party scans the cache directories according to the directory list.
The method for identifying the cache directory in the terminal in the picture according to the embodiment shown in fig. 2 of the present application may be applied to a processor, or implemented by the processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in ram, flash, rom, prom, or eprom, registers, among other storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may further execute the method in fig. 1, and implement the functions of the identification apparatus for a cache directory in the embodiment shown in fig. 1, which are not described herein again in this embodiment of the present application.
Of course, besides the software implementation, the electronic device in the present specification does not exclude other implementation manners, such as a logic device or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or a logic device.
Fig. 3 is a schematic structural diagram of an apparatus for icon optimization in a desktop according to an embodiment of the present application. Referring to fig. 3, in a software implementation, an apparatus 300 for optimizing icons in a picture may include: an acquisition module 301, a translation module 302, a monitoring module 303, and a presentation module 304, wherein,
an obtaining module 301, configured to obtain application information corresponding to each installed application in a terminal; the application information comprises a package name, an application name and a manufacturer name;
the translation module 302 is configured to translate the application information according to languages, so as to obtain translations of the application information corresponding to the languages and store the translations;
the monitoring module 303 is configured to monitor a newly added target directory in the terminal in real time, match the translations of the languages with the target directory, and use the matched target directory as a cache directory;
a display module 304, configured to add the cache directory into a directory list, and after scanning the third-party application according to the directory list, respectively display the junk files in each cache directory in the directory list by using a target application corresponding to the cache directory as a unit.
The device further comprises:
and the matching module is used for respectively carrying out similarity matching on the translations of the languages and the directory names in the terminal SD card and adding the successfully matched directory names into the scanning list.
In the translation module 302, when the application information is translated according to languages, word libraries corresponding to the languages are called to translate the application information, and the translated text of each language is structurally stored in the server.
In the monitoring module 303, when the translations in the respective languages are respectively matched with the target directory, the translations in the respective languages are converted according to the names of humps, and the capitalized characters after the names of humps are respectively matched with the target directory, so as to obtain the newly added cache directory.
The monitoring module 303 further includes, for example,
the traversal unit is used for respectively traversing according to the levels corresponding to the target directory;
the participle matching unit is used for matching the translations of all languages with the participles corresponding to the target directory;
and the judging unit is used for taking the target directory with the matching rate larger than a preset threshold value as the cache directory and taking the installed application corresponding to the translation as the target application.
The display module 304 is configured to, when displaying the junk files in each cache directory in the directory list,
the scanning unit is used for respectively scanning according to the cache directories in the directory list and respectively determining junk files under the cache directories;
and the display unit is used for integrating the junk files according to the target applications and respectively displaying the junk files corresponding to the cache directories under each target application.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present description are described in a progressive manner, and similar parts between the embodiments are referred to each other, and each embodiment focuses on different points from other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.

Claims (10)

1. A method for identifying a cache directory, the method comprising:
respectively acquiring application information corresponding to the installed applications in the terminal; the application information comprises a package name, an application name and a manufacturer name;
translating the application information according to languages respectively to obtain translations of the application information corresponding to the languages and storing the translations;
according to the translations of the languages, similarity matching is carried out between the translations and directory names in the terminal SD card, and the directory names which are successfully matched are used as cache directories;
a newly added target directory is added in the real-time monitoring terminal, translations of all languages are respectively matched with the target directory, and the matched target directory is used as a cache directory, wherein the target directory comprises the newly added directory in the operation process of the installed application;
and after the third-party application scans according to the directory list, displaying the junk files in each cache directory in the directory list by taking the target application corresponding to the cache directory as a unit, and cleaning the junk files in the cache directory after display.
2. The method according to claim 1, wherein when the application information is translated according to languages, a lexicon corresponding to each language is called to translate the application information, and translations of each language are structurally stored in a server.
3. The method according to claim 1 or 2, wherein when the translations of the respective languages are respectively matched with the target directory, the translations of the respective languages are converted according to hump naming, and capitalized characters after hump naming are respectively matched with the target directory to obtain the newly added cache directory.
4. The method according to claim 1, wherein when said translation of each language is matched with said target directory,
traversing according to the level corresponding to the target directory;
matching the translated text of each language with the participles corresponding to the target directory;
and taking the target directory with the matching rate larger than a set threshold value as the cache directory, and taking the installed application corresponding to the translation as the target application.
5. The method according to claim 1 or 4, wherein when the garbage files in each cache directory in the directory list are respectively exposed,
respectively scanning the cache directories in the directory list, and respectively determining junk files under the cache directories;
and integrating the junk files according to the target applications, and respectively displaying the junk files corresponding to the cache directories under each target application.
6. An apparatus for identifying a cache directory, the apparatus comprising:
the acquisition module is used for respectively acquiring application information corresponding to the installed applications in the terminal; the application information comprises a package name, an application name and a manufacturer name;
the translation module is used for translating the application information according to languages respectively to obtain translations of the application information corresponding to the languages and storing the translations;
the matching module is used for respectively carrying out similarity matching on the translations of the languages and the directory names in the terminal SD card and taking the successfully matched directory names as a cache directory;
the monitoring module is used for monitoring a newly added target directory in a terminal in real time, matching translations of all languages with the target directory respectively, and taking the matched target directory as a cache directory, wherein the target directory comprises the newly added directory in the installed application running process;
and the display module is used for adding the cache directory into a directory list for scanning by a third-party application, and after the third-party application scans according to the directory list, the display module respectively displays the junk files in each cache directory in the directory list by taking the target application corresponding to the cache directory as a unit, and cleans the junk files in the cache directory after display.
7. The apparatus according to claim 6, wherein when the translation module translates the application information according to languages, the translation module calls word libraries corresponding to the languages to translate the application information, and stores translations of the languages in a server in a structured manner.
8. The apparatus according to claim 6 or 7, wherein in the monitoring module, when the translations in each language are respectively matched with the target directory, the translations in each language are converted according to hump naming, and capitalized characters after hump naming are respectively matched with the target directory to obtain the newly added cache directory.
9. The apparatus of claim 6, wherein the monitoring module further comprises,
the traversal unit is used for respectively traversing according to the levels corresponding to the target directory;
the participle matching unit is used for matching the translations of all languages with the participles corresponding to the target directory;
and the judging unit is used for taking the target directory with the matching rate larger than a preset threshold value as the cache directory and taking the installed application corresponding to the translation as the target application.
10. The apparatus according to claim 6 or 9, wherein the presentation module is configured to, when presenting the junk files in each cache directory in the directory list respectively,
the scanning unit is used for respectively scanning according to the cache directories in the directory list and respectively determining junk files under the cache directories;
and the display unit is used for integrating the junk files according to the target applications and respectively displaying the junk files corresponding to the cache directories under each target application.
CN201910371062.6A 2019-05-06 2019-05-06 Cache directory identification method and device Active CN110083576B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910371062.6A CN110083576B (en) 2019-05-06 2019-05-06 Cache directory identification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910371062.6A CN110083576B (en) 2019-05-06 2019-05-06 Cache directory identification method and device

Publications (2)

Publication Number Publication Date
CN110083576A CN110083576A (en) 2019-08-02
CN110083576B true CN110083576B (en) 2021-07-23

Family

ID=67418736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910371062.6A Active CN110083576B (en) 2019-05-06 2019-05-06 Cache directory identification method and device

Country Status (1)

Country Link
CN (1) CN110083576B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111160045B (en) * 2019-12-27 2021-03-23 苏州亿歌网络科技有限公司 Game resource file translation method, device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102654872A (en) * 2011-03-03 2012-09-05 腾讯科技(深圳)有限公司 Method and device for cleaning junk files generated by application programs
CN103559299A (en) * 2013-11-14 2014-02-05 贝壳网际(北京)安全技术有限公司 Method, device and mobile terminal for cleaning up files
CN104317741A (en) * 2014-11-13 2015-01-28 北京奇虎科技有限公司 Recognition and cleaning method and system of cache directories
CN104317740A (en) * 2014-11-13 2015-01-28 北京奇虎科技有限公司 Method and device for cleaning cache directory/document based on sandbox technology
CN105426401A (en) * 2015-10-30 2016-03-23 成都狮之吼科技有限公司 Method and system for cleaning junk file generated by application

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446985B (en) * 2014-06-30 2018-12-14 北京金山安全软件有限公司 Cache folder identification method and device
CN105224574B (en) * 2014-06-30 2019-02-19 北京金山安全软件有限公司 Method and device for automatically identifying junk files
CN104391850A (en) * 2014-07-31 2015-03-04 珠海市君天电子科技有限公司 Method and device for cleaning garbage files of disks, and terminal device
CN105447115A (en) * 2015-11-13 2016-03-30 北京金山安全软件有限公司 Method and device for cleaning junk files and electronic equipment
CN107066604B (en) * 2017-04-25 2020-12-01 西安阳易信息技术有限公司 Junk file cleaning method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102654872A (en) * 2011-03-03 2012-09-05 腾讯科技(深圳)有限公司 Method and device for cleaning junk files generated by application programs
CN103559299A (en) * 2013-11-14 2014-02-05 贝壳网际(北京)安全技术有限公司 Method, device and mobile terminal for cleaning up files
CN104317741A (en) * 2014-11-13 2015-01-28 北京奇虎科技有限公司 Recognition and cleaning method and system of cache directories
CN104317740A (en) * 2014-11-13 2015-01-28 北京奇虎科技有限公司 Method and device for cleaning cache directory/document based on sandbox technology
CN105426401A (en) * 2015-10-30 2016-03-23 成都狮之吼科技有限公司 Method and system for cleaning junk file generated by application

Also Published As

Publication number Publication date
CN110083576A (en) 2019-08-02

Similar Documents

Publication Publication Date Title
CN110362370B (en) Webpage language switching method and device and terminal equipment
US10025694B1 (en) Monitoring activity of software development kits using stack trace analysis
US20240143904A1 (en) Human-Computer Interaction Method And Apparatus Thereof
CN107203574B (en) Aggregation of data management and data analysis
CN105824830B (en) Method, client and equipment for displaying page
CN111367595B (en) Data processing method, program running method, device and processing equipment
KR20110041136A (en) System and method for processing auto scroll
CN110489032B (en) Dictionary query method for electronic book and electronic equipment
WO2017211202A1 (en) Method, device, and terminal device for extracting data
CN110083576B (en) Cache directory identification method and device
US8751508B1 (en) Contextual indexing of applications
CN110232155B (en) Information recommendation method for browser interface and electronic equipment
CN116451271A (en) Automatic privacy policy extraction method for application software
CN113435950B (en) Bill processing method and device
CN107168627B (en) Text editing method and device for touch screen
CN115437930A (en) Identification method of webpage application fingerprint information and related equipment
CN112416500B (en) Information processing method and electronic equipment
WO2017175247A1 (en) Method and system for generating content from search results rendered by a search engine
KR20130103239A (en) Method, server and terminal for providing web browsing service having translation
CN108459928B (en) Related data association visualization method, terminal device and storage medium
CN112748930A (en) Compilation detection method, device, equipment and storage medium
US20150324333A1 (en) Systems and methods for automatically generating hyperlinks
CN110851346A (en) Method, device and equipment for detecting boundary problem of query statement and storage medium
CN109840273B (en) Method and device for generating file
CN107704374B (en) Test method and device

Legal Events

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

Effective date of registration: 20220720

Address after: No.16 and 17, unit 1, North District, Kailin center, No.51 Jinshui East Road, Zhengzhou area (Zhengdong), Henan pilot Free Trade Zone, Zhengzhou City, Henan Province, 450000

Patentee after: Zhengzhou Apas Technology Co.,Ltd.

Address before: E301-27, building 1, No.1, hagongda Road, Tangjiawan Town, Zhuhai City, Guangdong Province

Patentee before: ZHUHAI TIANYAN TECHNOLOGY Co.,Ltd.