[go: up one dir, main page]

CN107016123A - File management method and terminal device - Google Patents

File management method and terminal device Download PDF

Info

Publication number
CN107016123A
CN107016123A CN201710289009.2A CN201710289009A CN107016123A CN 107016123 A CN107016123 A CN 107016123A CN 201710289009 A CN201710289009 A CN 201710289009A CN 107016123 A CN107016123 A CN 107016123A
Authority
CN
China
Prior art keywords
file
visited
database
default
folder
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
CN201710289009.2A
Other languages
Chinese (zh)
Other versions
CN107016123B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710289009.2A priority Critical patent/CN107016123B/en
Publication of CN107016123A publication Critical patent/CN107016123A/en
Application granted granted Critical
Publication of CN107016123B publication Critical patent/CN107016123B/en
Expired - Fee Related 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/17Details of further file system functions
    • G06F16/1724Details of de-fragmentation performed by the file system
    • 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/11File system administration, e.g. details of archiving or snapshots

Landscapes

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

Abstract

本发明实施例公开了一种文件管理方法及终端设备,应用于通信技术领域,其中该方法包括:响应于文件访问操作,查询预设文件夹下是否存在该文件访问操作指向的待访问文件,该预设文件夹用于存储被清理的垃圾文件;若该预设文件夹下存在该待访问文件,则将该待访问文件从该预设文件夹恢复至原始存储位置,并从该原始存储位置运行该待访问文件;若该预设文件夹下不存在该待访问文件,则按照该文件访问操作指向的存储路径,运行该待访问文件。本发明实施例可简化文件管理操作,并提高文件管理的灵活性。

The embodiment of the present invention discloses a file management method and a terminal device, which are applied in the field of communication technology, wherein the method includes: in response to a file access operation, querying whether there is a file to be accessed pointed to by the file access operation in a preset folder, The preset folder is used to store the cleaned up junk files; if the file to be accessed exists under the preset folder, the file to be accessed is restored from the preset folder to the original storage location, and the run the file to be accessed; if the file to be accessed does not exist in the preset folder, run the file to be accessed according to the storage path pointed to by the file access operation. The embodiment of the invention can simplify file management operations and improve the flexibility of file management.

Description

文件管理方法及终端设备File management method and terminal device

技术领域technical field

本发明属于通信技术领域,尤其涉及一种文件管理方法及终端设备。The invention belongs to the technical field of communication, and in particular relates to a file management method and terminal equipment.

背景技术Background technique

随着计算机技术的发展,手机、平板电脑等智能移动终端的普及率越来越高,这极大的方便了人们的生活和娱乐学习,因此人们对移动终端的依赖性也越来越强。移动终端的运行会产生大量的数据,随着使用时间的增加,已经安装的应用程序产生的数据和用户自己存储的数据会越来越多。然而,移动终端的存储空间是有限的,无法存储产生的所有数据,因此需要经常对存储空间内的数据进行清理。With the development of computer technology, the penetration rate of smart mobile terminals such as mobile phones and tablet computers is getting higher and higher, which greatly facilitates people's life, entertainment and learning, so people's dependence on mobile terminals is becoming stronger and stronger. The operation of the mobile terminal will generate a large amount of data. As the use time increases, the data generated by the installed application program and the data stored by the user will increase. However, the storage space of the mobile terminal is limited and cannot store all the generated data, so the data in the storage space needs to be cleaned up frequently.

目前,通用的做法是先根据用户的清理操作,将用户指定的文件放入回收站。然后再根据用户的删除操作,将回收站中的某个或多个文件彻底删除。如果用户想要恢复某个被删除的文件,则需要到回收站去查找并人工恢复。整个清理及恢复的过程都需要由用户来主导,操作繁琐且缺乏灵活性。At present, the common practice is to put the files specified by the user into the recycle bin according to the cleaning operation of the user. Then, according to the deletion operation of the user, one or more files in the recycle bin are completely deleted. If the user wants to restore a deleted file, he needs to go to the recycle bin to find it and restore it manually. The entire cleaning and recovery process needs to be led by the user, and the operation is cumbersome and inflexible.

发明内容Contents of the invention

本发明提供一种文件管理方法及终端设备,可简化文件管理操作,并提高文件管理的灵活性。The invention provides a file management method and terminal equipment, which can simplify file management operations and improve the flexibility of file management.

本发明实施例第一方面提供了一种文件管理方法,包括:响应于文件访问操作,查询预设文件夹下是否存在所述文件访问操作指向的待访问文件,所述预设文件夹用于存储被清理的垃圾文件;若所述预设文件夹下存在所述待访问文件,则将所述待访问文件从所述预设文件夹恢复至原始存储位置,并从所述原始存储位置运行所述待访问文件;若所述预设文件夹下不存在所述待访问文件,则按照所述文件访问操作指向的存储路径,运行所述待访问文件。The first aspect of the embodiments of the present invention provides a file management method, including: in response to a file access operation, query whether there is a file to be accessed pointed to by the file access operation under a preset folder, and the preset folder is used for storing the cleaned up junk files; if there is the file to be accessed under the preset folder, restoring the file to be accessed from the preset folder to the original storage location, and running from the original storage location The file to be accessed; if the file to be accessed does not exist in the preset folder, execute the file to be accessed according to the storage path pointed to by the file access operation.

本发明实施例第二方面提供了一种终端设备,包括:查询模块,用于响应于文件访问操作,查询预设文件夹下是否存在所述文件访问操作指向的待访问文件,所述预设文件夹用于存储被清理的垃圾文件;恢复模块,用于若所述预设文件夹下存在所述待访问文件,则将所述待访问文件从所述预设文件夹恢复至原始存储位置;访问模块,用于从所述原始存储位置运行所述待访问文件;所述访问模块,还用于若所述预设文件夹下不存在所述待访问文件,则按照所述文件访问操作指向的存储路径,运行所述待访问文件。The second aspect of the embodiment of the present invention provides a terminal device, including: a query module, configured to, in response to a file access operation, query whether there is a file to be accessed pointed to by the file access operation under a preset folder, the preset The folder is used to store the cleaned up junk files; the recovery module is used to restore the file to be accessed from the preset folder to the original storage location if the file to be accessed exists under the preset folder The access module is used to execute the file to be accessed from the original storage location; the access module is also used to perform the file access operation if the file to be accessed does not exist under the preset folder The storage path pointed to runs the file to be accessed.

从上述本发明实施例可知,通过当检测到文件访问操作时,响应于该文件访问操作,首先在专门用于存储垃圾文件的预设文件夹下查询对应的文件,如果该预设文件夹下存在文件访问操作指向的文件,则将该文件恢复至原始存储位置,简化了文件管理的步骤,使得用户不再需要对作为垃圾处理的待访问文件进行人工查找,同时也提高了文件管理的灵活性,使得文件管理更为智能化。It can be seen from the above-mentioned embodiments of the present invention that when a file access operation is detected, in response to the file access operation, the corresponding file is first queried under the preset folder specially used for storing junk files. If there is a file pointed to by the file access operation, the file will be restored to the original storage location, which simplifies the steps of file management, so that users no longer need to manually search for the files to be accessed as garbage, and also improves the flexibility of file management features, making file management more intelligent.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only are some embodiments of the present invention.

图1是本发明一实施例提供的文件管理方法的实现流程示意图;Fig. 1 is a schematic diagram of the implementation flow of a file management method provided by an embodiment of the present invention;

图2是本发明另一实施例提供的文件管理方法的实现流程示意图;Fig. 2 is a schematic diagram of the implementation flow of a file management method provided by another embodiment of the present invention;

图3是本发明一实施例提供的终端设备的结构示意图;FIG. 3 is a schematic structural diagram of a terminal device provided by an embodiment of the present invention;

图4是本发明另一实施例提供的终端设备的结构示意图;FIG. 4 is a schematic structural diagram of a terminal device provided by another embodiment of the present invention;

图5示出了一种终端设备的硬件结构图。Fig. 5 shows a hardware structure diagram of a terminal device.

具体实施方式detailed description

为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而非全部实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.

请参阅图1,图1为本发明一实施例提供的文件管理方法的实现流程示意图,该方法可应用于终端设备中,终端设备包括:智能手机、平板电脑、笔记本电脑等可在移动中使用的电子数据处理设备,或者,其他非可在移动中使用的电子数据处理设备,如:台式电脑。该方法主要包括以下步骤:Please refer to Fig. 1, Fig. 1 is a schematic diagram of the implementation flow of the file management method provided by an embodiment of the present invention, the method can be applied to terminal devices, and the terminal devices include: smart phones, tablet computers, notebook computers, etc. can be used on the move electronic data processing equipment, or other electronic data processing equipment that is not intended for mobile use, such as a desktop computer. The method mainly includes the following steps:

S101、响应于文件访问操作,查询预设文件夹下是否存在文件访问操作指向的待访问文件,预设文件夹用于存储被清理的垃圾文件;S101. In response to the file access operation, query whether there is a file to be accessed pointed to by the file access operation under the preset folder, and the preset folder is used to store the cleaned-up junk files;

文件访问操作可以是用户进行的,也可以是应用程序执行的。当文件访问操作为用户进行时,访问的文件通常为历史文件,例如:用户针对WPS、OFFICE等文件处理程序曾经打开的历史文档文件进行的文件访问操作,或者针对影音播放程序的历史播放文件进行的文件访问操作等。当文件访问操作为应用程序执行时,应用程序可根据预设的运行逻辑,在需要调用某个文件时,执行对该待调用文件的文件访问操作。File access operations can be performed by users or by applications. When the file access operation is performed by the user, the accessed file is usually a historical file, for example: the file access operation performed by the user on the historical document file opened by the file processing program such as WPS, OFFICE, or the historical playback file of the audio-visual player program file access operations, etc. When the file access operation is performed by an application program, the application program can execute the file access operation on the file to be called when a certain file needs to be called according to the preset operating logic.

具体的,响应于用户或应用程序的文件访问操作,根据该文件访问操作指向的待访问文件的标识信息,如:文件名、存储路径等可唯一标识该待访问文件的信息,查询预设的专门用于存储被清理的垃圾文件的文件夹下,是否存在文件访问操作指向的待访问文件。Specifically, in response to the file access operation of the user or application program, according to the identification information of the file to be accessed pointed to by the file access operation, such as: file name, storage path and other information that can uniquely identify the file to be accessed, query the preset Whether there is a file to be accessed pointed to by the file access operation under the folder dedicated to storing the cleaned-up junk files.

在实际应用中,可以直接根据待访问的文件的文件名,查询预设文件夹下是否存储相同文件名的文件。In practical applications, it is possible to directly query whether a file with the same file name is stored in the preset folder according to the file name of the file to be accessed.

可选的,于本发明其他一实施例中,可定期或定时对存储空间中存储的文件进行清理,将存储空间中满足预设大小条件和时间条件的文件,作为垃圾文件清理至上述预设文件夹中。或者,也可以根据用户的清理操作,将该清理操作指向的文件作为垃圾文件,清理至上述预设文件夹中。可以理解的,本实施例中的清理是指移动,而非复制,一个垃圾文件被清理后,其原始存储位置上将不再存在该垃圾文件。可选的,在清理时,可以直接将垃圾文件直接移动至上述预设文件夹中,也可以将垃圾文件进行压缩后,再移动至上述预设文件夹中。可选的,在对垃圾文件进行压缩后,可对压缩的垃圾文件重新命名,也可以继续使用压缩前的文件名。Optionally, in another embodiment of the present invention, the files stored in the storage space can be cleaned up regularly or regularly, and the files in the storage space that meet the preset size conditions and time conditions can be cleaned up as junk files to the above preset folder. Alternatively, according to the user's cleaning operation, the file pointed to by the cleaning operation may be used as a junk file and cleaned into the above-mentioned preset folder. It can be understood that cleaning in this embodiment refers to moving, rather than copying. After a junk file is cleaned, the junk file will no longer exist in its original storage location. Optionally, when cleaning, the junk files can be directly moved to the aforementioned preset folder, or the junk files can be compressed and then moved to the aforementioned preset folder. Optionally, after the junk file is compressed, the compressed junk file can be renamed, or the file name before compression can continue to be used.

S102、若预设文件夹下存在待访问文件,则将待访问文件从预设文件夹恢复至原始存储位置,并从原始存储位置运行待访问文件;S102. If there is a file to be accessed under the preset folder, restore the file to be accessed from the preset folder to the original storage location, and run the file to be accessed from the original storage location;

若预设文件夹下存在待访问文件,即说明待访问文件曾被作为垃圾文件处理过,该待访问文件已经被从原始存储位置上移走,文件访问操作指向的存储路径是错误的,则将待访问文件从预设文件夹恢复至原始存储位置,并从原始存储位置运行待访问文件。于本实施例中,当待访问文件从预设文件夹恢复至原始存储位置后,预设文件夹中将不再存在该待访问文件。If there is a file to be accessed under the preset folder, it means that the file to be accessed has been treated as a junk file, the file to be accessed has been removed from the original storage location, and the storage path pointed to by the file access operation is wrong, then Restore the file to be accessed from the preset folder to the original storage location, and run the file to be accessed from the original storage location. In this embodiment, when the file to be accessed is restored from the default folder to the original storage location, the file to be accessed will no longer exist in the default folder.

S103、若预设文件夹下不存在待访问文件,则按照文件访问操作指向的存储路径,运行待访问文件。S103. If the file to be accessed does not exist in the preset folder, run the file to be accessed according to the storage path pointed to by the file access operation.

若预设文件夹下不存在待访问文件,即说明待访问文件不曾被作为垃圾文件处理过,文件访问操作指向的存储路径是有效路径,则按照文件访问操作指向的存储路径,运行待访问文件。If there is no file to be accessed under the preset folder, it means that the file to be accessed has never been processed as a junk file, and the storage path pointed to by the file access operation is a valid path, then run the file to be accessed according to the storage path pointed to by the file access operation .

可选的,于本发明其他一实施例中,也可创建数据库,通过创建的数据库,在执行文件清理操作,将垃圾文件清理至预设文件夹下时,记录被清理至预设文件夹下的垃圾文件的相关信息,如文件名、存储路径、被清理时间等等。以及,根据文件访问操作指向的待访问文件的标识信息,通过查询创建的数据库是否存在该待访问文件的记录,来确认预设文件夹下是否存在该待访问文件。Optionally, in another embodiment of the present invention, a database can also be created. Through the created database, when the file cleaning operation is performed and the junk files are cleaned to the preset folder, the records are cleaned to the preset folder Information about junk files, such as file name, storage path, cleaning time, etc. And, according to the identification information of the file to be accessed pointed to by the file access operation, it is confirmed whether the file to be accessed exists in the preset folder by querying whether there is a record of the file to be accessed in the created database.

一方面,若该数据库中存在该待访问文件的记录,则确认该预设文件夹下存在该待访问文件,将该待访问文件从该预设文件夹恢复至原始存储位置,并从该原始存储位置运行该待访问文件。并进一步的,当将该待访问文件被从预设文件夹恢复至原始存储位置之后,在该数据库中删除该待访问文件的记录。On the one hand, if there is a record of the file to be accessed in the database, then confirm that the file to be accessed exists under the preset folder, restore the file to be accessed from the preset folder to the original storage location, and restore the file to be accessed from the original folder. The storage location executes the file to be accessed. And further, after the file to be accessed is restored from the preset folder to the original storage location, the record of the file to be accessed is deleted in the database.

另一方面,若该数据库中不存在该待访问文件的记录,则确认该预设文件夹下不存在该待访问文件,按照该文件访问操作指向的存储路径,运行该待访问文件。On the other hand, if there is no record of the file to be accessed in the database, it is confirmed that the file to be accessed does not exist under the preset folder, and the file to be accessed is run according to the storage path pointed to by the file access operation.

本发明实施例中,通过当检测到文件访问操作时,响应于该文件访问操作,首先在专门用于存储垃圾文件的预设文件夹下查询对应的文件,如果该预设文件夹下存在文件访问操作指向的文件,则将该文件恢复至原始存储位置,简化了文件管理的步骤,使得用户不再需要对作为垃圾处理的待访问文件进行人工查找,同时也提高了文件管理的灵活性,使得文件管理更为智能化。In the embodiment of the present invention, when a file access operation is detected, in response to the file access operation, the corresponding file is first searched under the preset folder specially used for storing junk files, if there is a file under the preset folder The file pointed to by the access operation will restore the file to the original storage location, which simplifies the file management steps, so that users no longer need to manually search for the files to be accessed as garbage, and also improves the flexibility of file management. Make file management more intelligent.

请参阅图2,图2为本发明另一实施例提供的文件管理方法的实现流程示意图,该方法可应用于终端设备中,终端设备包括:智能手机、平板电脑、笔记本电脑等可在移动中使用的电子数据处理设备,或者,其他非可在移动中使用的电子数据处理设备,如:台式电脑。该方法包括以下步骤:Please refer to FIG. 2. FIG. 2 is a schematic diagram of the implementation flow of a file management method provided by another embodiment of the present invention. Electronic data processing equipment used, or other electronic data processing equipment that is not intended for mobile use, such as a desktop computer. The method includes the following steps:

S201、定期或定时扫描存本地存储的文件,获取满足预设的文件大小条件及时间条件的目标文件并进行压缩;S201. Regularly or periodically scan the locally stored files, obtain and compress target files that meet preset file size conditions and time conditions;

时间条件可以但不限于包括:最后访问时间或修改时间与当前系统时间的时间差大于预设时间差。具体的,终端设备定期或定时扫描存储空间中存储的文件,获取文件大小大于预设文件大小且最后访问时间与当前系统时间的时间差大于预设时间差的目标文件,并进行压缩。The time condition may include, but is not limited to: the time difference between the last access time or modification time and the current system time is greater than a preset time difference. Specifically, the terminal device periodically or periodically scans the files stored in the storage space, obtains target files whose file size is larger than the preset file size and whose time difference between the last access time and the current system time is larger than the preset time difference, and compresses them.

可选的,文件大小条件及时间条件可由用户自定义。具体的,获取用户通过预设的UI(User Interface,用户界面)输入的文件大小阈值(如大于200M)和时间阈值(如5日内未访问的文件),并按照用户输入的文件大小阈值和时间阈值,对文件大小条件及时间条件的参数值进行设置。Optionally, the file size condition and time condition can be user-defined. Specifically, the file size threshold (such as greater than 200M) and time threshold (such as files that have not been accessed within 5 days) input by the user through the preset UI (User Interface, user interface) are obtained, and the file size threshold and time input by the user are followed. Threshold, set the parameter values of the file size condition and time condition.

可选的,预设文件夹的属性为隐藏文件,即,预设文件夹对于用户来说是不可见的。可选的,可将该预设文件夹设置在根目录下。Optionally, the attribute of the preset folder is a hidden file, that is, the preset folder is invisible to the user. Optionally, the preset folder can be set in the root directory.

可选的,可根据用户的自定义操作,设置待扫描的存储目录。即,定期或定时扫描存用户指定的本地存储目录下存储的文件,获取满足预设的文件大小条件及时间条件的目标文件并进行压缩。Optionally, the storage directory to be scanned can be set according to user-defined operations. That is, the files stored in the local storage directory specified by the user are scanned regularly or regularly, and the target files that meet the preset file size and time conditions are obtained and compressed.

S202、将压缩后的目标文件重新命名后,作为垃圾文件,清理至预设文件夹下;S202. After renaming the compressed target file, clean it into a preset folder as a junk file;

在一实际应用例中,例如,可以每日在固定的时间(如每晚3:00)扫描用户的存储目录,对满足上述文件大小条件和时间条件的文件采用如7z的压缩方式,压缩到根目录的隐藏文件reduce中,并删除被压缩的文件的源文件,以达到节省空间的目的。In a practical application example, for example, the user's storage directory can be scanned at a fixed time every day (such as 3:00 every night), and the files that meet the above file size conditions and time conditions are compressed using a compression method such as 7z. In the hidden file reduce of the root directory, and delete the source file of the compressed file to save space.

S203、删除垃圾文件的源文件,并在预设的数据库中记录垃圾文件的信息;S203. Delete the source file of the junk file, and record the information of the junk file in a preset database;

可以理解的,可在第一次执行步骤S201之前,新建一个带文件索引的数据库,用于记录被清理至预设文件夹下的压缩文件的全路径和压缩后的文件的文件名信息。全路径一般是指完整存储路径。也就是说,新建的数据库中至少记录有作为垃圾文件的压缩文件的原始完整存储路径和压缩后的文件名。然后,在每一次执行步骤S201及S202之后,将被清理到预设文件夹下的垃圾文件的原始全路径和该垃圾文件的新文件名更新到该数据库中。It can be understood that before step S201 is executed for the first time, a database with a file index can be created to record the full path of the compressed files cleaned up to the preset folder and the file name information of the compressed files. The full path generally refers to the complete storage path. That is to say, at least the original complete storage path and the compressed file name of the compressed file as the junk file are recorded in the newly created database. Then, after steps S201 and S202 are executed each time, the original full path of the junk file cleaned up to the preset folder and the new file name of the junk file are updated into the database.

像这样,通过定期或定时地自动将存储空间中满足预设条件的文件压缩后临时清理至预设的文件夹下,一方面由于文件压缩后体积变小,因此可以达到节省存储空间的目的,另一方面可以方便后期对清理的文件随时进行恢复,因此提高文件管理的灵活性,降低误删的机率。Like this, by periodically or periodically automatically compressing the files that meet the preset conditions in the storage space and temporarily clearing them to the preset folder, on the one hand, the file size becomes smaller after compression, so the purpose of saving storage space can be achieved. On the other hand, it is convenient to restore the cleaned files at any time later, thus improving the flexibility of file management and reducing the probability of accidental deletion.

S204、响应于文件访问操作,在预设的数据库中,查询是否存在与文件访问操作指向的待访问文件的全路径一致的目标全路径;S204. In response to the file access operation, query whether there is a target full path consistent with the full path of the file to be accessed pointed to by the file access operation in the preset database;

文件访问操作可以是用户进行的,也可以是应用程序执行的。当文件访问操作为用户进行时,访问的文件通常为历史文件,例如:用户针对WPS、OFFICE等文件处理程序曾经打开的历史文档文件进行的文件访问操作,或者针对影音播放程序的历史播放文件进行的文件访问操作等。当文件访问操作为应用程序执行时,应用程序可根据预设的运行逻辑,在需要调用某个文件时,执行对该待调用文件的文件访问操作。File access operations can be performed by users or by applications. When the file access operation is performed by the user, the accessed file is usually a historical file, for example: the file access operation performed by the user on the historical document file opened by the file processing program such as WPS, OFFICE, or the historical playback file of the audio-visual player program file access operations, etc. When the file access operation is performed by an application program, the application program can execute the file access operation on the file to be called when a certain file needs to be called according to the preset operating logic.

具体的,响应于用户或应用程序的文件访问操作,根据该文件访问操作指向的待访问文件的全路径,在预设的数据库中查询是否存在与该全路径一致的目标全路径。Specifically, in response to the file access operation of the user or the application program, according to the full path of the file to be accessed pointed to by the file access operation, whether there is a target full path consistent with the full path is queried in a preset database.

S205、若数据库中存在目标全路径,则确认预设文件夹下存在待访问文件,根据数据库中目标全路径关联的文件名,从预设文件夹下获取与关联的文件名对应的压缩文件;S205. If the full target path exists in the database, confirm that there are files to be accessed under the preset folder, and obtain the compressed file corresponding to the associated file name from the preset folder according to the file name associated with the full target path in the database;

若预设的数据库中存在与待访问文件的全路径一致的目标全路径,即说明待访问文件曾被作为垃圾文件处理过,该待访问文件已经被从原始存储位置上移走,文件访问操作指向的存储路径是错误的,则从数据库中查询与目标全路径关联的文件名,根据查询到的文件名从预设文件夹下获取与该文件名对应的压缩文件。If there is a target full path consistent with the full path of the file to be accessed in the preset database, it means that the file to be accessed has been treated as a junk file, the file to be accessed has been removed from the original storage location, and the file access operation If the storage path pointed to is wrong, query the file name associated with the full path of the target from the database, and obtain the compressed file corresponding to the file name from the preset folder according to the queried file name.

S206、根据目标全路径,将获取的压缩文件解压后放入目标全路径对应的原始存储位置,并从原始存储位置运行待访问文件;S206. According to the full path of the target, decompress the obtained compressed file and put it into the original storage location corresponding to the full path of the target, and execute the file to be accessed from the original storage location;

具体的,通过解压获取的压缩文件得到原待访问文件,然后根据该压缩文件(即,经过压缩的待访问文件)的目标全路径,将解压出的原待访问文件恢复至原始存储位置,并运行。可以理解的,此时,该待访问文件的访问时间将被更新为当前系统时间。Specifically, the original file to be accessed is obtained by decompressing the obtained compressed file, and then according to the target full path of the compressed file (that is, the compressed file to be accessed), the decompressed original file to be accessed is restored to the original storage location, and run. It can be understood that at this time, the access time of the file to be accessed will be updated to the current system time.

S207、从预设文件夹中删除压缩文件,并在数据库中删除待访问文件的记录;S207, delete the compressed file from the preset folder, and delete the record of the file to be accessed in the database;

可以理解的,将已被恢复的压缩文件从预设的文件夹中删除,可以避免出现重复文件,从而防止存储空间被无端浪费。同时,在数据库中删除待访问文件的记录,这样当下一次用户或应用程序对该待访问文件进行访问操作时,由于数据库中已查询不到该文件的记录,因此可从原存储位置直接运行。Understandably, deleting the compressed files that have been restored from the preset folder can avoid duplicate files, thereby preventing storage space from being wasted for no reason. At the same time, delete the record of the file to be accessed in the database, so that when the user or application program accesses the file to be accessed next time, since the record of the file has not been queried in the database, it can be directly run from the original storage location.

在实际应用中,步骤“从预设文件夹中删除压缩文件”、“在数据库中删除待访问文件的记录”以及“从原始存储位置运行待访问文件”可以同时执行,也可以不同时执行,本实施例不做具体限定。In practical applications, the steps of "deleting the compressed file from the preset folder", "deleting the record of the file to be accessed in the database" and "running the file to be accessed from the original storage location" may be executed simultaneously or not at the same time, This embodiment does not make specific limitations.

S208、若数据库中不存在目标全路径,则确认预设文件夹下不存在待访问文件,按照文件访问操作指向的存储路径,运行待访问文件;S208. If the target full path does not exist in the database, confirm that there is no file to be accessed under the preset folder, and run the file to be accessed according to the storage path pointed to by the file access operation;

数据库中不存在目标全路径,即说明预设文件夹下不存在待访问文件,待访问文件不曾被作为垃圾文件处理过,文件访问操作指向的存储路径是有效路径,则按照文件访问操作指向的存储路径,运行待访问文件。There is no target full path in the database, which means that there is no file to be accessed under the preset folder, and the file to be accessed has never been treated as a junk file. If the storage path pointed to by the file access operation is a valid path, then follow the Store the path and run the file to be accessed.

S209、定期删除预设文件夹下,在预设文件夹中的存储时长大于预设时长的压缩文件,并在数据库中清除被定期删除的压缩文件的记录。S209. Periodically delete the compressed files in the preset folder whose storage duration is longer than the preset duration, and clear the records of the periodically deleted compressed files in the database.

具体的,数据库中还记录有被清理至预设文件夹下的压缩文件的被清理时间(或,压缩时间)用户可通过预设的UI设置每隔多长时间,对预设文件夹下多久没有用过的压缩文件进行清理,在数据库中查询这个时间以前压缩过的文件,然后在预设文件夹reduce中删掉相关文件,并在数据库中清掉对应的数据记录,以释放存储空间,提高存储空间的利用率。Specifically, the database also records the cleaning time (or compression time) of the compressed files that are cleaned up to the preset folder. Clean up unused compressed files, query the database for files compressed before this time, delete related files in the preset folder reduce, and clear the corresponding data records in the database to free up storage space. Improve storage space utilization.

本发明实施例中,一方面,通过定期将存储空间中存储的符合预设文件大小条件和时间条件的文件压缩后放入预设文件夹下,可以达到节省空间的目的;另一方面,当检测到文件访问操作时,响应于该文件访问操作,首先通过查询数据库,查询专门用于存储垃圾文件的预设文件夹下是否存在对应的文件,如果存在,则将该文件恢复至原始存储位置,简化了文件管理的步骤,使得用户不再需要对作为垃圾处理的待访问文件进行人工查找,同时也提高了文件管理的灵活性,使得文件管理更为智能化。In the embodiment of the present invention, on the one hand, the purpose of saving space can be achieved by periodically compressing the files stored in the storage space that meet the preset file size conditions and time conditions and putting them into the preset folder; on the other hand, when When a file access operation is detected, in response to the file access operation, first query the database to see if there is a corresponding file in the preset folder specially used to store junk files, and if so, restore the file to the original storage location , simplifies the steps of file management, so that users no longer need to manually search for files to be accessed as garbage, and also improves the flexibility of file management, making file management more intelligent.

请参阅图3,图3是本发明一实施例提供的终端设备的结构示意图,为了便于说明,仅示出了与本发明实施例相关的部分。图3示例的终端设备可以是前述图1所示实施例提供的文件管理方法的执行主体。图3示例的终端设备,主要包括:Please refer to FIG. 3 . FIG. 3 is a schematic structural diagram of a terminal device provided by an embodiment of the present invention. For ease of description, only parts related to the embodiment of the present invention are shown. The terminal device illustrated in FIG. 3 may be the execution subject of the file management method provided in the embodiment shown in FIG. 1 . The terminal equipment shown in Figure 3 mainly includes:

查询模块301,用于响应于文件访问操作,查询预设文件夹下是否存在该文件访问操作指向的待访问文件,该预设文件夹用于存储被清理的垃圾文件;The query module 301 is configured to, in response to a file access operation, query whether there is a file to be accessed pointed to by the file access operation under a preset folder, where the preset folder is used to store cleaned-up junk files;

恢复模块302,用于若该预设文件夹下存在该待访问文件,则将该待访问文件从该预设文件夹恢复至原始存储位置;A restoring module 302, configured to restore the file to be accessed from the preset folder to the original storage location if the file to be accessed exists under the preset folder;

访问模块303,用于从该原始存储位置运行该待访问文件;An access module 303, configured to execute the file to be accessed from the original storage location;

访问模块303,还用于若该预设文件夹下不存在该待访问文件,则按照该文件访问操作指向的存储路径,运行该待访问文件。The access module 303 is further configured to run the file to be accessed according to the storage path pointed to by the file access operation if the file to be accessed does not exist in the preset folder.

具体的,文件访问操作可以是用户进行的,也可以是应用程序执行的。当文件访问操作为用户进行时,访问的文件通常为历史文件,例如:用户针对WPS、OFFICE等文件处理程序曾经打开的历史文档文件进行的文件访问操作,或者针对影音播放程序的历史播放文件进行的文件访问操作等。当文件访问操作为应用程序执行时,应用程序可根据预设的运行逻辑,在需要调用某个文件时,执行对该待调用文件的文件访问操作。Specifically, the file access operation may be performed by a user or by an application program. When the file access operation is performed by the user, the accessed file is usually a historical file, for example: the file access operation performed by the user on the historical document file opened by the file processing program such as WPS, OFFICE, or the historical playback file of the audio-visual player program file access operations, etc. When the file access operation is performed by an application program, the application program can execute the file access operation on the file to be called when a certain file needs to be called according to the preset operating logic.

通过查询模块301响应于用户或应用程序的文件访问操作,查询预设文件夹下是否存在该文件访问操作指向的待访问文件,该预设文件夹用于存储被清理的垃圾文件。若该预设文件夹下存在该待访问文件,则通过恢复模块302将该待访问文件从该预设文件夹恢复至原始存储位置,然后通过访问模块303从该原始存储位置运行该待访问文件。若该预设文件夹下不存在该待访问文件,则通过访问模块303按照该文件访问操作指向的存储路径,运行该待访问文件。In response to a file access operation by a user or an application program, the query module 301 queries whether there is a file to be accessed pointed to by the file access operation under a preset folder, and the preset folder is used for storing cleaned-up junk files. If the file to be accessed exists under the preset folder, the file to be accessed is restored to the original storage location from the preset folder by the recovery module 302, and then the file to be accessed is run from the original storage location by the access module 303 . If the file to be accessed does not exist in the preset folder, the file to be accessed is run through the access module 303 according to the storage path pointed to by the file access operation.

本实施例未尽之细节,请参阅前述图1所示实施例的描述,此处不再赘述。For details not covered in this embodiment, please refer to the description of the embodiment shown in FIG. 1 above, and details are not repeated here.

需要说明的是,以上图3示例的终端设备的实施方式中,各功能模块的划分仅是举例说明,实际应用中可以根据需要,例如相应硬件的配置要求或者软件的实现的便利考虑,而将上述功能分配由不同的功能模块完成,即将终端设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。而且,实际应用中,本实施例中的相应的功能模块可以是由相应的硬件实现,也可以由相应的硬件执行相应的软件完成。本说明书提供的各个实施例都可应用上述描述原则,以下不再赘述。It should be noted that, in the embodiment of the terminal device illustrated in FIG. 3 above, the division of each functional module is only an example. In actual applications, it can be considered according to needs, such as the configuration requirements of corresponding hardware or the convenience of software implementation. The above function allocation is completed by different function modules, that is, the internal structure of the terminal device is divided into different function modules, so as to complete all or part of the functions described above. Moreover, in practical applications, the corresponding functional modules in this embodiment may be implemented by corresponding hardware, or may be completed by corresponding hardware executing corresponding software. Each of the embodiments provided in this specification can apply the above-mentioned description principle, which will not be described in detail below.

本发明实施例中,通过当检测到文件访问操作时,响应于该文件访问操作,首先在专门用于存储垃圾文件的预设文件夹下查询对应的文件,如果该预设文件夹下存在文件访问操作指向的文件,则将该文件恢复至原始存储位置,简化了文件管理的步骤,使得用户不再需要对作为垃圾处理的待访问文件进行人工查找,同时也提高了文件管理的灵活性,使得文件管理更为智能化。In the embodiment of the present invention, when a file access operation is detected, in response to the file access operation, the corresponding file is first searched under the preset folder specially used for storing junk files, if there is a file under the preset folder The file pointed to by the access operation will restore the file to the original storage location, which simplifies the file management steps, so that users no longer need to manually search for the files to be accessed as garbage, and also improves the flexibility of file management. Make file management more intelligent.

请参阅图4,本发明又一实施例提供的终端设备的结构示意图,为了便于说明,仅示出了与本发明实施例相关的部分。图4示例的终端设备可以是前述图1和图2所示实施例提供的文件管理方法的执行主体。图4示例的终端设备,与图3所示实施例中的终端设备的不同之处主要在于:Please refer to FIG. 4 , which is a schematic structural diagram of a terminal device provided by another embodiment of the present invention. For ease of description, only parts related to the embodiment of the present invention are shown. The terminal device illustrated in FIG. 4 may be the execution subject of the file management method provided in the embodiments shown in FIG. 1 and FIG. 2 . The difference between the terminal device illustrated in Figure 4 and the terminal device in the embodiment shown in Figure 3 mainly lies in:

进一步地,查询模块301包括:Further, query module 301 includes:

数据库查询模块3011,用于响应于该文件访问操作,在预设的数据库中,查询是否存在该待访问文件的记录,该数据库用于记录被清理至该预设文件夹下的垃圾文件的信息;The database query module 3011 is configured to, in response to the file access operation, query whether there is a record of the file to be accessed in a preset database, and the database is used to record the information of the junk files cleaned up under the preset folder ;

确认模块3012,用于若该数据库中存在该待访问文件的记录,则确认该预设文件夹下存在该待访问文件,以及若该数据库中不存在该待访问文件的记录,则确认该预设文件夹下不存在该待访问文件;Confirmation module 3012, configured to confirm that the file to be accessed exists under the preset folder if there is a record of the file to be accessed in the database, and if there is no record of the file to be accessed in the database, then confirm that the file to be accessed is Assume that the file to be accessed does not exist under the folder;

该终端设备还包括:The terminal equipment also includes:

记录删除模块401,用于在该数据库中删除该待访问文件的记录。The record deletion module 401 is configured to delete the record of the file to be accessed in the database.

具体的,通过数据库查询模块3011响应于用户或应用程序的文件访问操作,在预设的数据库中,查询是否存在该待访问文件的记录,该数据库用于记录被清理至该预设文件夹下的垃圾文件的信息。若该数据库中存在该待访问文件的记录,则通过确认模块3012确认该预设文件夹下存在该待访问文件,然后通过恢复模块302将该待访问文件从该预设文件夹恢复至原始存储位置,并通过记录删除模块401在该数据库中删除该待访问文件的记录,通过访问模块303从该原始存储位置运行该待访问文件。若该数据库中不存在该待访问文件的记录,则通过确认模块3012确认该预设文件夹下不存在该待访问文件,然后通过访问模块303按照该文件访问操作指向的存储路径,运行该待访问文件。Specifically, through the database query module 3011, in response to the file access operation of the user or the application program, in the preset database, query whether there is a record of the file to be accessed, and the database is used for the record to be cleared to the preset folder information about junk files. If there is a record of the file to be accessed in the database, confirm that the file to be accessed exists under the preset folder through the confirmation module 3012, and then restore the file to be accessed from the preset folder to the original storage through the recovery module 302 location, and delete the record of the file to be accessed in the database through the record deletion module 401, and run the file to be accessed from the original storage location through the access module 303. If there is no record of the file to be accessed in the database, confirm that the file to be accessed does not exist under the preset folder through the confirmation module 3012, and then run the file to be accessed by the access module 303 according to the storage path pointed to by the file access operation. Access files.

进一步地,该终端设备还包括:Further, the terminal equipment also includes:

扫描模块402,用于定期或定时扫描本地存储的文件,获取满足预设的文件大小条件及时间条件的目标文件;The scanning module 402 is used to regularly or periodically scan the files stored locally to obtain target files that meet preset file size conditions and time conditions;

压缩模块403,用于对该目标文件进行压缩;A compression module 403, configured to compress the target file;

清理模块404,用于将压缩后的目标文件作为该垃圾文件,清理至该预设文件夹下,以及删除该垃圾文件的源文件;A cleaning module 404, configured to use the compressed target file as the junk file, clean it up to the preset folder, and delete the source file of the junk file;

记录模块405,用于在该数据库中记录该垃圾文件的信息。The recording module 405 is configured to record the information of the junk file in the database.

具体的,通过扫描模块402定期或定时扫描本地存储的文件,获取满足预设的文件大小条件及时间条件的目标文件。然后,通过压缩模块403对该目标文件进行压缩,通过清理模块404将压缩后的目标文件作为该垃圾文件,清理至该预设文件夹下,并删除该垃圾文件的源文件。同时,记录模块405在该数据库中记录该垃圾文件的信息。Specifically, the scanning module 402 regularly or regularly scans files stored locally to obtain target files that meet preset file size conditions and time conditions. Then, the target file is compressed by the compression module 403, and the compressed target file is used as the junk file by the cleaning module 404, cleaned up to the preset folder, and the source file of the junk file is deleted. At the same time, the recording module 405 records the information of the junk file in the database.

可选的,通过扫描模块402获取用户通过预设的UI输入的文件大小阈值和时间阈值,并按照用户输入的文件大小阈值和时间阈值,对文件大小条件及时间条件的参数值进行设置。以及根据用户的自定义操作,设置待扫描的存储目录。Optionally, the scanning module 402 acquires the file size threshold and time threshold input by the user through the preset UI, and sets the parameter values of the file size condition and time condition according to the file size threshold and time threshold input by the user. And according to user-defined operations, set the storage directory to be scanned.

进一步地,该终端设备还包括:Further, the terminal equipment also includes:

重命名模块406,用于在清理模块404将压缩后的目标文件作为该垃圾文件,清理至该预设文件夹下之前,为该压缩后的目标文件重新命名;The renaming module 406 is used to rename the compressed target file before the cleaning module 404 uses the compressed target file as the garbage file and cleans it under the preset folder;

其中,该数据库中记录的垃圾文件的信息包括:该目标文件的原始全路径和压缩后重新命名的文件名;Wherein, the junk file information recorded in the database includes: the original full path of the target file and the file name renamed after compression;

则,数据库查询模块3011,具体用于在该数据库中,查询是否存在与该待访问文件的全路径一致的目标全路径;Then, the database query module 3011 is specifically used to query whether there is a target full path consistent with the full path of the file to be accessed in the database;

确认模块3012,具体用于若该数据库中存在该目标全路径,则确认该预设文件夹下存在该待访问文件,以及若该数据库中不存在该目标全路径,则确认该预设文件夹下不存在该待访问文件;Confirmation module 3012, specifically for confirming that the file to be accessed exists under the preset folder if the full path of the target exists in the database, and confirming the preset folder if the full path of the target does not exist in the database The file to be accessed does not exist under

恢复模块302,具体用于根据该数据库中该目标全路径关联的文件名,从该预设文件夹下获取与该关联的文件名对应的压缩文件,以及根据该目标全路径,将获取的压缩文件解压后放入该目标全路径对应的该原始存储位置,并从该预设文件夹中删除该压缩文件。The recovery module 302 is specifically configured to obtain the compressed file corresponding to the associated file name from the preset folder according to the file name associated with the target full path in the database, and to obtain the compressed file corresponding to the target full path according to the target full path. After the file is decompressed, put it into the original storage location corresponding to the full path of the target, and delete the compressed file from the preset folder.

具体的,通过重命名模块406在清理模块404将压缩后的目标文件作为该垃圾文件,清理至该预设文件夹下之前,为该压缩后的目标文件重新命名。该数据库中记录的垃圾文件的信息包括:该目标文件的原始全路径和压缩后重新命名的文件名。当执行数据库查询操作时,通过数据库查询模块3011在该数据库中,查询是否存在与该待访问文件的全路径一致的目标全路径。若该数据库中存在该目标全路径,则通过确认模块3012确认该预设文件夹下存在该待访问文件,然后通过恢复模块302根据该数据库中该目标全路径关联的文件名,从该预设文件夹下获取与该关联的文件名对应的压缩文件,以及根据该目标全路径,将获取的压缩文件解压后放入该目标全路径对应的该原始存储位置,并从该预设文件夹中删除该压缩文件,同时,将被恢复的文件的访问时间更新为当前系统时间。若该数据库中不存在该目标全路径,则通过确认模块3012确认该预设文件夹下不存在该待访问文件。Specifically, the renaming module 406 renames the compressed target file before the cleaning module 404 cleans the compressed target file into the preset folder as the junk file. The garbage file information recorded in the database includes: the original full path of the target file and the file name renamed after compression. When performing a database query operation, the database query module 3011 is used to query whether there is a target full path consistent with the full path of the file to be accessed. If the target full path exists in the database, confirm that the file to be accessed exists under the preset folder through the confirmation module 3012, and then restore the file name associated with the target full path in the database through the recovery module 302, from the preset Obtain the compressed file corresponding to the associated file name under the folder, and according to the full path of the target, decompress the obtained compressed file and put it into the original storage location corresponding to the full path of the target, and from the preset folder Delete the compressed file, and at the same time, update the access time of the restored file to the current system time. If the target full path does not exist in the database, the confirmation module 3012 confirms that the file to be accessed does not exist in the preset folder.

进一步地,扫描模块402,具体用于定期或定时扫描存储空间中存储的文件,获取文件大小大于预设文件大小且最后访问时间与当前系统时间的时间差大于预设时间差的目标文件。Further, the scanning module 402 is specifically configured to regularly or periodically scan files stored in the storage space to obtain target files whose file size is larger than a preset file size and whose time difference between the last access time and the current system time is larger than the preset time difference.

进一步地,该终端设备还包括:Further, the terminal equipment also includes:

清理模块404,还用于定期删除该预设文件夹下,在该预设文件夹中的存储时长大于预设时长的文件,并在该数据库中清除被定期删除的文件的记录。The cleaning module 404 is further configured to periodically delete files under the preset folder whose storage duration is longer than the preset duration, and clear the records of the regularly deleted files in the database.

可选的,通过清理模块404根据用户在UI界面的自定义操作,确定每隔多长时间,对预设文件夹下多久没有用过的压缩文件进行清理。根据确定的结果,通过清理模块404定期删除该预设文件夹下,在该预设文件夹中的存储时长大于预设时长的文件,并在该数据库中清除被定期删除的文件的记录。Optionally, the cleaning module 404 determines how often the compressed files that have not been used in the preset folder are cleaned up according to user-defined operations on the UI interface. According to the determined result, the cleaning module 404 periodically deletes the files under the preset folder and the storage duration in the preset folder is longer than the preset duration, and clears the records of the regularly deleted files in the database.

进一步地,该预设文件夹的属性为隐藏文件,并被设置在根目录下。Further, the attribute of the preset folder is a hidden file, and is set under the root directory.

本实施例未尽之细节,请参阅前述图1和图2所示实施例的描述,此处不再赘述。For details not covered in this embodiment, please refer to the description of the embodiment shown in FIG. 1 and FIG. 2 above, and details will not be repeated here.

本发明实施例中,一方面,通过定期将存储空间中存储的符合预设文件大小条件和时间条件的文件压缩后放入预设文件夹下,可以达到节省空间的目的;另一方面,当检测到文件访问操作时,响应于该文件访问操作,首先通过查询数据库,查询专门用于存储垃圾文件的预设文件夹下是否存在对应的文件,如果存在,则将该文件恢复至原始存储位置,简化了文件管理的步骤,使得用户不再需要对作为垃圾处理的待访问文件进行人工查找,同时也提高了文件管理的灵活性,使得文件管理更为智能化。In the embodiment of the present invention, on the one hand, the purpose of saving space can be achieved by periodically compressing the files stored in the storage space that meet the preset file size conditions and time conditions and putting them into the preset folder; on the other hand, when When a file access operation is detected, in response to the file access operation, first query the database to see if there is a corresponding file in the preset folder specially used to store junk files, and if so, restore the file to the original storage location , simplifies the steps of file management, so that users no longer need to manually search for files to be accessed as garbage, and also improves the flexibility of file management, making file management more intelligent.

请参阅图5,图5为本发明实施例提供的用于执行上述文件管理方法的终端设备的结构示意图。Please refer to FIG. 5 . FIG. 5 is a schematic structural diagram of a terminal device for performing the above-mentioned file management method provided by an embodiment of the present invention.

本实施例中所描述的终端设备,包括:The terminal equipment described in this embodiment includes:

至少一个输入设备51;至少一个输出设备52;至少一个处理器53,例如中央处理器;以及,存储器54。at least one input device 51 ; at least one output device 52 ; at least one processor 53 , such as a central processing unit; and, a memory 54 .

上述输入设备51、输出设备52、处理器53和存储器54通过总线55连接。The aforementioned input device 51 , output device 52 , processor 53 and memory 54 are connected through a bus 55 .

其中,输入设备51具体可为摄像头、触控面板、物理按键或者鼠标等等。输出设备52具体可为显示屏。Wherein, the input device 51 may specifically be a camera, a touch panel, a physical button or a mouse, and the like. The output device 52 may specifically be a display screen.

存储器54可以是高速随机存取记忆体(RAM,Random Access Memory)存储器,也可为非不稳定的存储器(non-volatile memory),例如磁盘存储器。存储器54用于存储一组可执行程序代码,处理器53与存储器54耦合,上述输入设备51、输出设备52和处理器53用于调用存储器54中存储的可执行程序代码,执行如下操作:The memory 54 can be a high-speed random access memory (RAM, Random Access Memory) memory, or a non-volatile memory (non-volatile memory), such as a disk memory. The memory 54 is used to store a set of executable program codes, and the processor 53 is coupled to the memory 54. The above-mentioned input device 51, output device 52 and processor 53 are used to call the executable program codes stored in the memory 54, and perform the following operations:

通过处理器53执行该代码,执行如前述图1及图2所示实施例中描述的文件管理方法。The code is executed by the processor 53 to execute the file management method described in the embodiment shown in FIG. 1 and FIG. 2 .

具体地,即执行响应于文件访问操作,查询预设文件夹下是否存在该文件访问操作指向的待访问文件,该预设文件夹用于存储被清理的垃圾文件;若该预设文件夹下存在该待访问文件,则将该待访问文件从该预设文件夹恢复至原始存储位置,并从该原始存储位置运行该待访问文件;若该预设文件夹下不存在该待访问文件,则按照该文件访问操作指向的存储路径,运行该待访问文件。Specifically, in response to the file access operation, query whether there is a file to be accessed pointed to by the file access operation under the preset folder, the preset folder is used to store the cleaned up junk files; if the preset folder is If the file to be accessed exists, restore the file to be accessed from the preset folder to the original storage location, and run the file to be accessed from the original storage location; if the file to be accessed does not exist under the preset folder, Then run the file to be accessed according to the storage path pointed to by the file access operation.

进一步地,处理器53还执行响应于该文件访问操作,在预设的数据库中,查询是否存在该待访问文件的记录,该数据库用于记录被清理至该预设文件夹下的垃圾文件的信息;若该数据库中存在该待访问文件的记录,则确认该预设文件夹下存在该待访问文件;若该数据库中不存在该待访问文件的记录,则确认该预设文件夹下不存在该待访问文件;以及在将该待访问文件从该预设文件夹恢复至原始存储位置之后,还包括:在该数据库中删除该待访问文件的记录。Further, the processor 53 also executes in response to the file access operation, in the preset database, inquires whether there is a record of the file to be accessed, and the database is used to record the garbage files cleaned up under the preset folder. information; if there is a record of the file to be accessed in the database, then confirm that the file to be accessed exists under the preset folder; if there is no record of the file to be accessed in the database, then confirm that there is no file under the preset folder There is the file to be accessed; and after restoring the file to be accessed from the preset folder to the original storage location, further comprising: deleting the record of the file to be accessed in the database.

进一步地,处理器53还执行定期或定时扫描本地存储的文件,获取满足预设的文件大小条件及时间条件的目标文件并进行压缩;将压缩后的目标文件作为该垃圾文件,清理至该预设文件夹下;删除该垃圾文件的源文件,并在该数据库中记录该垃圾文件的信息。Further, the processor 53 also executes regular or regular scans of locally stored files, obtains and compresses target files that meet preset file size conditions and time conditions; uses the compressed target files as the junk files, and cleans them up to the preset target files. Under the setting folder; delete the source file of the garbage file, and record the information of the garbage file in the database.

进一步地,处理器53在将压缩后的目标文件作为该垃圾文件,清理至该预设文件夹下之前,还执行为该压缩后的目标文件重新命名;响应于该文件访问操作,在该数据库中,查询是否存在与该待访问文件的全路径一致的目标全路径;若该数据库中存在该目标全路径,则确认该预设文件夹下存在该待访问文件,根据该数据库中该目标全路径关联的文件名,从该预设文件夹下获取与该关联的文件名对应的压缩文件;根据该目标全路径,将获取的压缩文件解压后放入该目标全路径对应的该原始存储位置,并从该预设文件夹中删除该压缩文件;若该数据库中不存在该目标全路径,则确认该预设文件夹下不存在该待访问文件。Further, before the processor 53 cleans the compressed target file under the preset folder as the junk file, it also performs renaming for the compressed target file; in response to the file access operation, in the database Query whether there is a target full path consistent with the full path of the file to be accessed; if the full path of the target exists in the database, then confirm that the file to be accessed exists under the preset folder, and according to the The file name associated with the path, obtain the compressed file corresponding to the associated file name from the preset folder; according to the full path of the target, decompress the obtained compressed file and put it into the original storage location corresponding to the full path of the target , and delete the compressed file from the preset folder; if the target full path does not exist in the database, then confirm that the file to be accessed does not exist in the preset folder.

进一步地,处理器53还执行定期或定时扫描存储空间中存储的文件,获取文件大小大于预设文件大小且最后访问时间与当前系统时间的时间差大于预设时间差的目标文件。Further, the processor 53 also executes periodic or regular scanning of the files stored in the storage space to obtain target files whose file size is larger than the preset file size and whose time difference between the last access time and the current system time is larger than the preset time difference.

进一步地,处理器53还执行定期删除该预设文件夹下,在该预设文件夹中的存储时长大于预设时长的文件,并在该数据库中清除被定期删除的文件的记录。Further, the processor 53 also executes to periodically delete the files under the preset folder whose storage duration is longer than the preset duration, and clears the records of the regularly deleted files in the database.

在本申请所提供的多个实施例中,应该理解到,所揭露的终端设备和方法,可以通过其它的方式实现。例如,以上所描述的实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信链接可以是通过一些接口,模块的间接耦合或通信链接,可以是电性,机械或其它的形式。In the multiple embodiments provided in this application, it should be understood that the disclosed terminal device and method may be implemented in other ways. For example, the above-described embodiments are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication link shown or discussed may be through some interfaces, and the indirect coupling or communication link between modules may be in electrical, mechanical or other forms.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.

所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes.

需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本发明所必须的。It should be noted that, for the sake of simplicity of description, the aforementioned method embodiments are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

以上为对本发明所提供的文件管理方法及终端设备的描述,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。The above is the description of the file management method and terminal equipment provided by the present invention. For those of ordinary skill in the art, according to the idea of the embodiment of the present invention, there will be changes in the specific implementation and application range. In summary, The contents of this description should not be construed as limiting the present invention.

Claims (10)

1. a kind of file management method, it is characterised in that methods described includes:
In response to file access operation, the lower text to be visited pointed to the presence or absence of the file access operation of inquiry default file folder Part, the default file is pressed from both sides for storing the garbage files being cleaned;
If there is the file to be visited under the default file folder, the file to be visited is pressed from both sides extensive from the default file It is multiple to run the file to be visited to original storage position, and from the original storage position;
If the default file folder is lower to be not present the file to be visited, the storage road pointed to according to the file access operation Footpath, runs the file to be visited.
2. file management method as claimed in claim 1, it is characterised in that described in response to file access operation, inquiry is pre- If the file to be visited pointed under file with the presence or absence of the file access operation, including:
In response to the file access operation, in default database, inquiry whether there is the record of the file to be visited, The database is used for the information for recording the garbage files being cleaned to the default file under pressing from both sides;
If there is the record of the file to be visited in the database, confirm that the default file folder is lower and wait to visit in the presence of described in Ask file;
If the record of the file to be visited is not present in the database, confirm that the default file folder is lower in the absence of described File to be visited;
Then, it is described to recover the file to be visited to original storage position from default file folder, in addition to:Institute State the record that the file to be visited is deleted in database.
3. file management method as claimed in claim 2, it is characterised in that methods described also includes:
The file that regular or timing scan is locally stored, obtains the target text for meeting default file size condition and time conditions Part is simultaneously compressed;
Using the file destination after compression as the garbage files, under cleaning to default file folder;
The source file of the garbage files is deleted, and records the information of the garbage files in the database.
4. file management method as claimed in claim 3, it is characterised in that
The file destination using after compression is as the garbage files, before clearing up to default file folder, including:For File destination after the compression is renamed;
The information of the garbage files recorded in the database includes:After the original complete trails of the file destination and compression again The filename of name;
Then, described in default database, inquiry whether there is the record of the file to be visited, including:
In the database, inquiry whether there is the target complete trails consistent with the complete trails of the file to be visited;
If there is the record of the file to be visited in the database, confirm that the default file folder is lower in the presence of described File to be visited, the file to be visited is recovered to original storage position from default file folder, including:
If there is the target complete trails in the database, confirm there is the text to be visited under the default file folder Part, the filename that the target complete trails according to the database is associated is closed from lower obtain of default file folder with described The corresponding compressed file of filename of connection;
It is corresponding described original by the target complete trails is put into after the compressed file decompression of acquisition according to the target complete trails Storage location, and delete the compressed file from default file folder;
If the record of the file to be visited is not present in the database, confirm to be not present under the default file folder The file to be visited, including:
If the target complete trails is not present in the database, confirm that the default file folder is lower in the absence of described to be visited File.
5. file management method as claimed in claim 3, it is characterised in that described periodically or in timing scan memory space to deposit The file of storage, obtains the file destination for meeting default file size condition and time conditions, including:
The file periodically or in timing scan memory space stored, obtains file size and is more than default file size and last access Time and the time difference of present system time are more than the file destination of preset time difference.
6. the file management method as described in any one of claim 1 to 5, it is characterised in that methods described also includes:
Periodically delete under the default file folder, the storage duration in default file folder is more than the file of preset duration, And the record for the file being periodically deleted is removed in the database.
7. the file management method as described in any one of claim 1 to 5, it is characterised in that the default file folder Attribute is hidden file, and is set under the root directory.
8. a kind of terminal device, it is characterised in that the terminal device includes:
Enquiry module, in response to file access operation, inquiry default file folder is lower to whether there is the file access operation The file to be visited pointed to, the default file is pressed from both sides for storing the garbage files being cleaned;
Recovery module, if for there is the file to be visited under default file folder, by the file to be visited from institute Default file folder is stated to recover to original storage position;
Access modules, for running the file to be visited from the original storage position;
The access modules, if being additionally operable to, the default file folder is lower to be not present the file to be visited, according to the file The store path that operation is pointed to is accessed, the file to be visited is run.
9. terminal device as claimed in claim 8, it is characterised in that
The enquiry module includes:
Database query module, in response to the file access operation, in default database, inquiry whether there is institute The record of file to be visited is stated, the database is used for the letter for recording the garbage files being cleaned to the default file under pressing from both sides Breath;
Module is confirmed, if for there is the record of the file to be visited in the database, confirming the default file folder Under there is the file to be visited, and if the record of the file to be visited is not present in the database, confirm described Default file folder is lower to be not present the file to be visited;
The terminal device also includes:
Record deletion module, the record for deleting the file to be visited in the database;
Scan module, the file being locally stored for regular or timing scan, it is timely that acquisition meets default file size condition Between condition file destination;
Compression module, for being compressed to the file destination;
Cleaning modul, for the file destination after compression as the garbage files, to be cleared up to default file folder, with And delete the source file of the garbage files;
Logging modle, the information for recording the garbage files in the database;
Renamer module, for regarding the file destination after compression as the garbage files, cleaning to institute in the cleaning modul It is that the file destination after the compression is renamed before stating under default file folder;
Wherein, the information of the garbage files recorded in the database includes:The original complete trails of the file destination and compression The filename renamed afterwards;
Then, the database query module, specifically in the database, inquiry whether there is and the file to be visited The consistent target complete trails of complete trails;
The confirmation module, if specifically for there is the target complete trails in the database, confirming the default file There is the file to be visited under folder, and if the target complete trails is not present in the database, confirm described default The file to be visited is not present under file;
The recovery module, the filename associated specifically for the target complete trails according to the database, from described pre- If obtaining compressed file corresponding with the filename of the association under file, and according to the target complete trails, it will obtain Compressed file decompression after be put into the corresponding original storage position of the target complete trails, and from default file folder Delete the compressed file;
Wherein, the scan module, specifically for the file stored in regular or timing scan memory space, obtains file size Time difference more than default file size and last access time and present system time is more than the poor file destination of preset time.
10. the terminal device as described in any one of claim 9, it is characterised in that the terminal device also includes:
The cleaning modul, is additionally operable to periodically delete under the default file folder, the storage duration in default file folder More than the file of preset duration, and the record for the file being periodically deleted is removed in the database;
The attribute of the default file folder is hidden file, and is set under the root directory.
CN201710289009.2A 2017-04-27 2017-04-27 File management method and terminal device Expired - Fee Related CN107016123B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710289009.2A CN107016123B (en) 2017-04-27 2017-04-27 File management method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710289009.2A CN107016123B (en) 2017-04-27 2017-04-27 File management method and terminal device

Publications (2)

Publication Number Publication Date
CN107016123A true CN107016123A (en) 2017-08-04
CN107016123B CN107016123B (en) 2020-01-10

Family

ID=59448591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710289009.2A Expired - Fee Related CN107016123B (en) 2017-04-27 2017-04-27 File management method and terminal device

Country Status (1)

Country Link
CN (1) CN107016123B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170767A (en) * 2017-12-25 2018-06-15 苏州人为峰软件科技有限公司 Smartphone data method for sorting
CN108647291A (en) * 2018-05-07 2018-10-12 深圳市创梦天地科技有限公司 Mobile terminal file management method, device, electronic equipment and readable storage medium storing program for executing
CN109429076A (en) * 2017-08-31 2019-03-05 杭州海康威视系统技术有限公司 The broadcasting Caton processing method and device of multi-medium data
CN109656875A (en) * 2018-12-05 2019-04-19 广东小天才科技有限公司 Storage space classification management method and device, terminal and storage medium
CN110941597A (en) * 2018-09-21 2020-03-31 北京奇虎科技有限公司 Method and device for cleaning decompressed file, computing equipment and computer storage medium
CN111656352A (en) * 2018-03-15 2020-09-11 华为技术有限公司 Application data protection method and terminal
CN112380226A (en) * 2020-11-10 2021-02-19 北京梧桐车联科技有限责任公司 Data loading method and device, electronic equipment and storage medium
WO2021090091A1 (en) * 2019-11-08 2021-05-14 International Business Machines Corporation Continuous storage of data in system with limited storage capacity

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355743A (en) * 2007-07-23 2009-01-28 上海市莘格高级中学 Recycle bin for deleted files in mobile phone
CN101377786A (en) * 2007-08-30 2009-03-04 三星电子株式会社 Image forming apparatus, image forming system and file managing method thereof
CN103019891A (en) * 2012-12-24 2013-04-03 珠海金山办公软件有限公司 Method and system for restoring deleted file
CN105279236A (en) * 2015-09-25 2016-01-27 北京金山安全软件有限公司 File cleaning method and device and electronic equipment
US9411687B2 (en) * 2011-06-03 2016-08-09 Apple Inc. Methods and apparatus for interface in multi-phase restore

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101355743A (en) * 2007-07-23 2009-01-28 上海市莘格高级中学 Recycle bin for deleted files in mobile phone
CN101377786A (en) * 2007-08-30 2009-03-04 三星电子株式会社 Image forming apparatus, image forming system and file managing method thereof
US9411687B2 (en) * 2011-06-03 2016-08-09 Apple Inc. Methods and apparatus for interface in multi-phase restore
CN103019891A (en) * 2012-12-24 2013-04-03 珠海金山办公软件有限公司 Method and system for restoring deleted file
CN105279236A (en) * 2015-09-25 2016-01-27 北京金山安全软件有限公司 File cleaning method and device and electronic equipment

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109429076A (en) * 2017-08-31 2019-03-05 杭州海康威视系统技术有限公司 The broadcasting Caton processing method and device of multi-medium data
CN108170767A (en) * 2017-12-25 2018-06-15 苏州人为峰软件科技有限公司 Smartphone data method for sorting
CN111656352A (en) * 2018-03-15 2020-09-11 华为技术有限公司 Application data protection method and terminal
CN108647291B (en) * 2018-05-07 2021-11-02 深圳市创梦天地科技有限公司 Mobile terminal file management method and device, electronic equipment and readable storage medium
CN108647291A (en) * 2018-05-07 2018-10-12 深圳市创梦天地科技有限公司 Mobile terminal file management method, device, electronic equipment and readable storage medium storing program for executing
CN110941597A (en) * 2018-09-21 2020-03-31 北京奇虎科技有限公司 Method and device for cleaning decompressed file, computing equipment and computer storage medium
CN110941597B (en) * 2018-09-21 2023-10-31 北京奇虎科技有限公司 Method and device for cleaning decompressed file, computing equipment and computer storage medium
CN109656875A (en) * 2018-12-05 2019-04-19 广东小天才科技有限公司 Storage space classification management method and device, terminal and storage medium
US11221925B2 (en) 2019-11-08 2022-01-11 International Business Machines Corporation Continuous storage of data in a system with limited storage capacity
WO2021090091A1 (en) * 2019-11-08 2021-05-14 International Business Machines Corporation Continuous storage of data in system with limited storage capacity
CN114667495A (en) * 2019-11-08 2022-06-24 国际商业机器公司 Continuous storage of data in a system with limited storage capacity
GB2604809A (en) * 2019-11-08 2022-09-14 Ibm Continuous storage of data in system with limited storage capacity
GB2604809B (en) * 2019-11-08 2023-08-02 Ibm Continuous storage of data in system with limited storage capacity
CN114667495B (en) * 2019-11-08 2025-02-14 国际商业机器公司 Continuous storage of data in a system with limited storage capacity
CN112380226A (en) * 2020-11-10 2021-02-19 北京梧桐车联科技有限责任公司 Data loading method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107016123B (en) 2020-01-10

Similar Documents

Publication Publication Date Title
CN107016123A (en) File management method and terminal device
CN109254733B (en) Method, device and system for storing data
US8819587B1 (en) Methods of managing items in a shared workspace
CN105094707B (en) A kind of data storage, read method and device
JP4850832B2 (en) Method for managing data storage and data storage management system
CN103995855B (en) Method and device for storing data
CN111460285A (en) Information processing method, apparatus, electronic device and storage medium
US12259874B2 (en) Custom metadata tag inheritance based on a filesystem directory tree or object storage bucket
CN103902632A (en) File system building method and device in key-value storage system, and electronic device
CN103973731B (en) The recycle bin management method and device of a kind of cloud storage
CN104199967A (en) Method and device for recovering mobile phone files
CN100576209C (en) Linked Data Indexing, Retrieval, Storage and Presentation Control Information System Construction Method
CN108694188B (en) A method and related device for updating index data
CN105302922B (en) A kind of distributed file system snapshot implementing method
CN103577329A (en) Snapshot management method and device
CN112363871A (en) Data file returning method, device and storage medium
CN114706867A (en) Data synchronization method and device, electronic equipment and storage medium
CN114281779A (en) Data synchronization method and device, computer equipment and storage medium
CN108280215A (en) A kind of hybrid update method of the electric business index file based on Solr
CN103064908A (en) Method for rapidly removing repeated list through a memory
CN106528690A (en) Method for accessing storage medium by application and mobile terminal
CN105701179A (en) Windows access method of distributed file system based on UniWhale
CN111767284B (en) Data processing method, device, storage medium and server
CN112272137A (en) Mass data management in communication applications through multiple mailboxes
CN104246716B (en) The processing method and equipment of memory space object

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200110