[go: up one dir, main page]

CN106599125A - Directory management method and apparatus, and terminal - Google Patents

Directory management method and apparatus, and terminal Download PDF

Info

Publication number
CN106599125A
CN106599125A CN201611092487.6A CN201611092487A CN106599125A CN 106599125 A CN106599125 A CN 106599125A CN 201611092487 A CN201611092487 A CN 201611092487A CN 106599125 A CN106599125 A CN 106599125A
Authority
CN
China
Prior art keywords
directory file
target
application
terminal
root directory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611092487.6A
Other languages
Chinese (zh)
Inventor
王伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201611092487.6A priority Critical patent/CN106599125A/en
Publication of CN106599125A publication Critical patent/CN106599125A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G06F16/113Details of archiving

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 invention discloses a directory management method and apparatus, and a terminal. The method comprises the steps of detecting whether a preset function switch used for automatically classifying stored files in the terminal is turned on or not; when it is detected that the function switch is turned on, creating target directory files named by set characters; and moving root directory files in the terminal into the target directory files corresponding to root directory file names. According to the method and the apparatus provided by embodiments of the invention, the target directory files named by the set characters are created and the root directory files in the terminal are moved into the target directory files corresponding to the root directory file names, so that the problem of disorder of the root directory files stored in the terminal is solved and the management efficiency of the root directory files is improved.

Description

一种目录管理方法、装置及终端A directory management method, device and terminal

技术领域technical field

本发明涉及电子产品技术领域,尤其涉及一种目录管理方法、装置及终端。The present invention relates to the technical field of electronic products, in particular to a catalog management method, device and terminal.

背景技术Background technique

目前,各种软件应用已经成为终端必要的一部分,用户可根据自己的喜好在终端上安装各种应用。At present, various software applications have become a necessary part of the terminal, and users can install various applications on the terminal according to their preferences.

现有技术中,当在终端内安装应用时,很多应用都会生成自己的根目录,且应用的根目录的数量往往不止一个。在根目录还可以创建存储不同数据的子目录,其中,子目录中可以存储应用使用过程中产生的数据,也可以存储应用的安装数据,或者也可以存储与应用相关的一些其他数据等。In the prior art, when applications are installed in a terminal, many applications will generate their own root directories, and the number of application root directories is often more than one. Subdirectories for storing different data can also be created in the root directory, wherein the subdirectories can store data generated during application use, application installation data, or some other data related to the application.

发明人在执行本发明的过程中,发现现有技术存在如下的缺陷:终端在使用一段时间后,由于安装的应用数量较多,内部存储的根目录会比较混乱,管理效率较低。当用户查看目录时,很难找到想要的目录,浪费查看目录的时间。In the process of implementing the present invention, the inventor found the following defects in the prior art: after the terminal has been used for a period of time, due to the large number of installed applications, the root directory of the internal storage will be confusing and the management efficiency is low. When the user views the catalog, it is difficult to find the desired catalog, wasting the time of viewing the catalog.

发明内容Contents of the invention

有鉴于此,本发明实施例提供一种目录管理方法、装置及终端,以解决终端中根目录文件混乱的技术问题。In view of this, embodiments of the present invention provide a directory management method, device, and terminal to solve the technical problem of file confusion in the root directory of the terminal.

第一方面,本发明实施例提供了一种目录管理方法,包括:In a first aspect, an embodiment of the present invention provides a directory management method, including:

检测预先设置的用于对终端中的存储文件进行自动分类的功能开关是否打开;Detecting whether the preset function switch for automatically classifying the stored files in the terminal is turned on;

当检测到所述功能开关打开时,创建以设定字符命名的目标目录文件;When it is detected that the function switch is turned on, create a target directory file named with a set character;

将所述终端中的根目录文件移动到与所述根目录文件名称相对应的目标目录文件中。Move the root directory file in the terminal to the target directory file corresponding to the name of the root directory file.

第二方面,本发明实施例还提供了一种目录管理装置,包括:In the second aspect, the embodiment of the present invention also provides a directory management device, including:

检测模块,用于检测预先设置的用于对终端中的存储文件进行自动分类的功能开关是否打开;A detection module, configured to detect whether a preset function switch for automatically classifying stored files in the terminal is turned on;

目标目录文件创建模块,用于当检测到所述功能开关打开时,创建以设定字符命名的目标目录文件;A target directory file creation module, configured to create a target directory file named after a set character when it is detected that the function switch is turned on;

根目录文件移动模块,用于将所述终端中的根目录文件移动到与所述根目录文件名称相对应的目标目录文件中。The root directory file moving module is used to move the root directory file in the terminal to the target directory file corresponding to the name of the root directory file.

第三方面,本发明实施例还提供了一种终端,包括:壳体、处理器、存储器、电路板、触摸屏和电源电路;In a third aspect, an embodiment of the present invention further provides a terminal, including: a housing, a processor, a memory, a circuit board, a touch screen, and a power supply circuit;

所述触摸屏,用于将用户操作转换成电信号输入至所述处理器,并显示可视输出信号;The touch screen is used to convert user operations into electrical signals and input them to the processor, and display visual output signals;

所述电路板安置在所述触摸屏与所述壳体围成的空间内部;The circuit board is placed inside the space enclosed by the touch screen and the housing;

所述处理器和所述存储器设置在所述电路板上;The processor and the memory are arranged on the circuit board;

所述电源电路,用于为所述终端的各个电路或器件供电;The power supply circuit is used to supply power to each circuit or device of the terminal;

所述存储器,用于存储可执行程序代码;The memory is used to store executable program codes;

所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行:The processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to perform:

检测预先设置的用于对终端中的存储文件进行自动分类的功能开关是否打开;Detecting whether the preset function switch for automatically classifying the stored files in the terminal is turned on;

当检测到所述功能开关打开时,创建以设定字符命名的目标目录文件;When it is detected that the function switch is turned on, create a target directory file named with a set character;

将所述终端中的根目录文件移动到与所述根目录文件名称相对应的目标目录文件中。Move the root directory file in the terminal to the target directory file corresponding to the name of the root directory file.

本发明实施例提供的技术方案,通过创建以设定字符命名的目标目录文件,将所述终端中的根目录文件移动到与所述根目录文件名称相对应的目标目录文件中,解决了终端中内部存储的根目录文件混乱的问题,提高了根目录文件的管理效率。The technical solution provided by the embodiment of the present invention solves the problem of terminal The problem of confusion of the root directory files in the internal storage of the system has been solved, and the management efficiency of the root directory files has been improved.

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:Other characteristics, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

图1A为本发明实施例一提供的一种目录管理的方法的流程图;FIG. 1A is a flowchart of a directory management method provided by Embodiment 1 of the present invention;

图1B为本发明实施例一提供的一种目录管理的方法中自动分类的功能开启示意图;FIG. 1B is a schematic diagram of enabling the function of automatic classification in a catalog management method provided by Embodiment 1 of the present invention;

图2为本发明实施例二提供的一种目录管理的方法的流程图;FIG. 2 is a flowchart of a directory management method provided by Embodiment 2 of the present invention;

图3为本发明实施例三提供的一种目录管理的方法的流程图;FIG. 3 is a flowchart of a directory management method provided by Embodiment 3 of the present invention;

图4为本发明实施例四提供的一种目录管理的方法的流程图;FIG. 4 is a flowchart of a directory management method provided by Embodiment 4 of the present invention;

图5为本发明实施例五提供的一种目录管理的方法的流程图;FIG. 5 is a flow chart of a directory management method provided in Embodiment 5 of the present invention;

图6为本发明实施例六提供的一种目录管理的装置结构框图;FIG. 6 is a structural block diagram of a directory management device provided by Embodiment 6 of the present invention;

图7为本发明实施例七提供的一种终端的结构示意图。FIG. 7 is a schematic structural diagram of a terminal provided by Embodiment 7 of the present invention.

具体实施方式detailed description

下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only parts related to the present invention are shown in the drawings but not all content.

实施例一Embodiment one

图1A为本发明实施例一提供的一种目录管理的方法的流程图,本实施例可适用于各种目录管理的情况,该方法可以由本发明实施例提供的目录管理装置来执行,该装置可采用软件和/或硬件的方式实现,该装置可集成在任何提供目录管理功能的设备中,例如典型的是用户终端设备,例如电脑、手机和平板电脑等,如图1A所示,具体包括:Fig. 1A is a flow chart of a method for directory management provided by Embodiment 1 of the present invention. This embodiment is applicable to various directory management situations. The method can be executed by the directory management device provided by the embodiment of the present invention. The device It can be implemented in the form of software and/or hardware, and the device can be integrated into any device that provides directory management functions, such as typical user terminal devices, such as computers, mobile phones, and tablet computers, as shown in Figure 1A, specifically including :

S110、检测预先设置的用于对终端中的存储文件进行自动分类的功能开关是否打开。S110. Detect whether a preset function switch for automatically classifying stored files in the terminal is turned on.

终端包括固定终端和移动终端,其中,固定终端可以为电脑,移动终端可以为手机或者平板电脑等。随着用户使用终端次数的增多,终端中的存储文件除了包含了终端自带的系统文件,也包含了用户使用的应用软件相对应的文件,如与QQ相对应的应用文件中包含了QQ安装文件、用户与好友的日常聊天记录、图片以及传送文件;还包含了用户保存的临时文件等。如果没有对终端中的存储文件进行整理,那么终端中的存储文件则杂乱无章。因此,在终端内预设设置用于对终端中存储文件自动分类的功能开关,可以利用该自动分类的功能开关对终端中的文件进行整理。其中,所述功能开关可以设置在终端的设置功能选项中,也可以设置在其他功能选项中,或者也可以是其他设置形式。其中,所述功能开关可以是按钮的形式,或者也可以是其他形式,对功能开关的表现形式并不作限定。The terminals include fixed terminals and mobile terminals, wherein the fixed terminals may be computers, and the mobile terminals may be mobile phones or tablet computers. With the increase in the number of times users use the terminal, the storage files in the terminal include not only the system files that come with the terminal, but also the files corresponding to the application software used by the user. For example, the application files corresponding to QQ include the QQ installation files. Files, daily chat records between users and friends, pictures, and transfer files; it also includes temporary files saved by users, etc. If the storage files in the terminal are not organized, the storage files in the terminal are messy. Therefore, a function switch for automatically classifying files stored in the terminal is preset in the terminal, and the files in the terminal can be sorted by using the function switch for automatically classifying. Wherein, the function switch may be set in the setting function option of the terminal, or in other function options, or in other setting forms. Wherein, the function switch may be in the form of a button, or may be in other forms, and the expression form of the function switch is not limited.

在本实施例中,对于功能自动分类的功能开关是否打开的检测,可以由终端的系统进行检测,也可以由终端内安装的具有管理功能的应用进行检测,或者也可以通过其他方式进行检测。并且,可以将终端自动分类的功能默认设置为开启状态,也可以根据用户个人的喜好,将终端自动分类的功能设置为自定义状态供用户选择,如图1B所示,当用户选择“开启”状态时,终端才开启自动分类的功能。In this embodiment, the detection of whether the function switch of the automatic function classification is turned on may be detected by the system of the terminal, or detected by an application with a management function installed in the terminal, or detected by other methods. In addition, the function of terminal automatic classification can be set to the enabled state by default, or according to the user's personal preference, the function of terminal automatic classification can be set to a custom state for the user to choose, as shown in Figure 1B, when the user selects "Open" state, the terminal will enable the function of automatic classification.

其中,对于终端自动分类的功能开关的形式,并不局限于图1B所示的形式,也可以是其他形式,能够实现相应的功能即可。Wherein, the form of the function switch for terminal automatic classification is not limited to the form shown in FIG. 1B , and may be other forms as long as the corresponding functions can be realized.

S120、当检测到所述功能开关打开时,创建以设定字符命名的目标目录文件。S120. When it is detected that the function switch is turned on, create a target directory file named with a set character.

具体的,终端中的系统文件具有与该系统文件相对应的根目录文件,当在终端内安装应用时,很多应用也会生成自己的根目录文件,随着用户对终端的使用,会生成更多的根目录文件与子目录文件,其中,子目录文件有可能跟生成该子目录文件的应用有着相对应的关系,存储在根目录文件中;也有可能没有跟生成该子目录文件的应用有着相对应的关系,没有存储在根目录文件中,生成独立的根目录文件。当终端检测到自动分类的功能开关打开时,可以自动创建以设定字符命名的目标目录文件。其中,设定字符可以表示为字母、数字、终端中应用的包名或者其他字符,对命名的形式可根据需要进行设定。Specifically, the system files in the terminal have root directory files corresponding to the system files. When applications are installed in the terminal, many applications will also generate their own root directory files. As the user uses the terminal, more files will be generated. There are many root directory files and subdirectory files. Among them, the subdirectory files may have a corresponding relationship with the application that generated the subdirectory file and are stored in the root directory file; or they may not have any relationship with the application that generated the subdirectory file. The corresponding relationship is not stored in the root directory file, and an independent root directory file is generated. When the terminal detects that the function switch of automatic classification is turned on, it can automatically create the target directory file named with the set characters. Wherein, the setting characters can be expressed as letters, numbers, package names applied in the terminal, or other characters, and the naming form can be set as required.

S130、将所述终端中的根目录文件移动到与所述根目录文件名称相对应的目标目录文件中。S130. Move the root directory file in the terminal to the target directory file corresponding to the name of the root directory file.

在本实施例中,当终端中已经创建了以设定字符命名的目标目录文件时,可以将终端中的根目录文件自动移动到与所述根目录文件名称相对应的目标目录文件中,从而对终端中的存储文件进行管理。具体的,当目标目录文件是以字母为命名名称时,那么根目录文件可以移动到跟根目录文件名称的首字母相同的目标目录文件中;当目标目录文件是以数字为命名名称时,那么根目录文件可以移动以相同数字命名的目标目录文件中;当目标目录文件是以其他字符为命名名称时,那么根目录文件可以移动到同样以其他字符命名的的目标目录文件中。或者当目标目录文件以应用的包名的名称命名时,将终端中应用的根目录文件移动到以应用的包名命名的目标目录文件中。In this embodiment, when a target directory file named after a set character has been created in the terminal, the root directory file in the terminal can be automatically moved to the target directory file corresponding to the name of the root directory file, thereby Manage the stored files in the terminal. Specifically, when the target directory file is named with a letter, the root directory file can be moved to the target directory file with the same initial letter as the root directory file name; when the target directory file is named with a number, then The root directory file can be moved to the target directory file named with the same number; when the target directory file is named with other characters, then the root directory file can be moved to the target directory file named with other characters. Or when the target directory file is named after the package name of the application, move the root directory file of the application in the terminal to the target directory file named after the package name of the application.

需要说明的是,本实施例中对于目标目录文件的命名并不局限于上述的命名形式,还可以是其他命名形式,并且对于终端内的根目录文件的移动方法也可以是其他的方法,可根据需要进行设置。It should be noted that in this embodiment, the naming of the target directory file is not limited to the above-mentioned naming form, and other naming forms can also be used, and the method of moving the root directory file in the terminal can also be other methods, which can be Set it up as needed.

本发明实施例一提供的目录管理的方法,通过创建以设定字符命名的目标目录文件,将所述终端中的根目录文件移动到与所述根目录文件名称相对应的目标目录文件中,解决了终端中内部存储的根目录文件混乱的问题,将根目录文件进行有序整理,提高了根目录文件的管理效率。The directory management method provided by Embodiment 1 of the present invention moves the root directory file in the terminal to the target directory file corresponding to the name of the root directory file by creating a target directory file named with a set character, It solves the problem of confusion of the root directory files stored in the terminal, organizes the root directory files in an orderly manner, and improves the management efficiency of the root directory files.

实施例二Embodiment two

图2为本发明实施例二提供的一种目录管理方法的流程图,本实施例在上述实施例的基础上,还包括:FIG. 2 is a flow chart of a directory management method provided by Embodiment 2 of the present invention. On the basis of the above embodiments, this embodiment further includes:

当所述终端中的应用调用数据时,基于存储所述数据的目标文件当前所在的位置变更所述目标文件的路径;基于变更的路径查找所述目标文件,以调用所述数据。When the application in the terminal calls the data, the path of the target file is changed based on the current location of the target file storing the data; and the target file is searched based on the changed path to call the data.

由此,通过存储数据的目标文件的路径的变更,基于变更的路径调用数据,能够精确调用数据,避免数据调用错误的现象。Thus, by changing the path of the object file storing the data, the data can be called based on the changed path, and the data can be called accurately, avoiding the phenomenon of wrong data calling.

相应的,如图2所示,本实施例提供的技术方案具体如下:Correspondingly, as shown in Figure 2, the technical solution provided by this embodiment is specifically as follows:

S210、检测预先设置的用于对终端中的存储文件进行自动分类的功能开关是否打开。S210. Detect whether a preset function switch for automatically classifying stored files in the terminal is turned on.

S220、当检测到所述功能开关打开时,创建以设定字符命名的目标目录文件。S220. When it is detected that the function switch is turned on, create a target directory file named with a set character.

S230、将所述终端中的根目录文件移动到与所述根目录文件名称相对应的目标目录文件中。S230. Move the root directory file in the terminal to the target directory file corresponding to the name of the root directory file.

S240、当所述终端中的应用调用数据时,基于存储所述数据的目标文件当前所在的位置变更所述目标文件的路径。S240. When the application in the terminal calls the data, change the path of the target file based on the current location of the target file storing the data.

在本实施例中,当终端接收到用户输入的调用数据的指令时,终端中的应用开始调用数据。其中用户输入的调用数据的指令可以是用户打开应用的操作,或者也可是用户打开应用中某个功能选项的操作,或者也可以是其他操作。当终端中的应用调用数据时,由于存储数据的目标文件的位置发生了变化,所以需要将目标文件原来的路径变更成目标文件当前的路径。表1为一种目标文件的路径信息列表,表2为另一种目标文件的路径信息列表。如表1和表2所示,表1左栏为目标文件原来的路径,表1右栏为目标文件变更后的路径;表2左栏为目标文件原来的路径,表2右栏为目标文件变更后的路径。In this embodiment, when the terminal receives an instruction to call data input by the user, the application in the terminal starts to call data. The instruction for invoking data input by the user may be an operation for the user to open an application, or an operation for the user to open a certain function option in the application, or may be other operations. When the application in the terminal calls the data, since the location of the target file storing the data has changed, it is necessary to change the original path of the target file to the current path of the target file. Table 1 is a list of path information of one kind of target file, and Table 2 is a list of path information of another kind of target file. As shown in Table 1 and Table 2, the left column of Table 1 is the original path of the target file, the right column of Table 1 is the path after the target file is changed; the left column of Table 2 is the original path of the target file, and the right column of Table 2 is the target file The changed path.

表1Table 1

目标文件原来的路径The original path of the target file 目标文件变更后的路径The changed path of the target file /storage/emulated/0/AndroidTest/storage/emulated/0/AndroidTest /storage/emulated/0/A/AndroidTest/storage/emulated/0/A/AndroidTest /storage/emulated/0/apptest/storage/emulated/0/apptest /storage/emulated/0/A/apptest/storage/emulated/0/A/apptest /storage/emulated/0/Bigboy/storage/emulated/0/Bigboy /storage/emulated/0/B/Bigboy/storage/emulated/0/B/Bigboy /storage/emulated/0/board/storage/emulated/0/board /storage/emulated/0/B/board/storage/emulated/0/B/board /storage/emulated/0/1test/storage/emulated/0/1test /storage/emulated/0/1/1test/storage/emulated/0/1/1test /storage/emulated/0/999/storage/emulated/0/999 /storage/emulated/0/9/999/storage/emulated/0/9/999 /storage/emulated/0/###/storage/emulated/0/### /storage/emulated/0/other/###/storage/emulated/0/other/### /storage/emulated/0/学习/storage/emulated/0/learning /storage/emulated/0/X/学习/storage/emulated/0/X/learning

表2Table 2

举例说明,如表1所示,“/storage/emulated/0”为终端中固有的根目录文件的路径。当终端调用目标文件“Bigboy”中的数据时,表1由于目标文件“Bigboy”移动到了目标目录文件B中,位置发生了变化,故将Bigboy”文件原来的路径(“/storage/emulated/0/Bigboy”)变更成当前所处位置的路径(“/storage/emulated/0/B/Bigboy”),基于当前所处位置的路径调用目标文件“Bigboy”中的数据。For example, as shown in Table 1, "/storage/emulated/0" is the path of the inherent root directory file in the terminal. When the terminal calls the data in the target file "Bigboy", Table 1 changes the location of the target file "Bigboy" because the target file "Bigboy" is moved to the target directory file B, so the original path of the Bigboy file ("/storage/emulated/0 /Bigboy") is changed to the path of the current location ("/storage/emulated/0/B/Bigboy"), and the data in the target file "Bigboy" is called based on the path of the current location.

在本实施例中,对于表1中其他数据的调用以及表2中数据的调用均与调用目标文件“Bigboy”中的数据方法是相同的,均需要将存储数据的目标文件的路径进行变更。In this embodiment, the calling of other data in Table 1 and the calling of data in Table 2 are the same as calling the data in the target file "Bigboy", and both need to change the path of the target file storing the data.

S250、基于变更的路径查找所述目标文件,以调用所述数据。S250. Search for the target file based on the changed path, so as to invoke the data.

在本实施例中,存储数据的目标文件的位置发生了变化,因此,基于原来路径中已经查找不到所述目标文件,需要基于变更后的路径,才能查找到所述目标文件,以调用数据。例如,表1中的目标文件“Bigboy”中的数据,终端在变更完目标文件“Bigboy”的路径后,基于变更后的路径“/storage/emulated/0/B/Bigboy”,才能调用该数据。In this embodiment, the location of the target file for storing data has changed. Therefore, the target file cannot be found in the original path, and the target file needs to be found based on the changed path to call the data. . For example, for the data in the target file "Bigboy" in Table 1, the terminal can call the data based on the changed path "/storage/emulated/0/B/Bigboy" after changing the path of the target file "Bigboy" .

本发明实施例二提供的目录管理的方法,通过存储数据的目标文件的路径的变更,基于变更的路径调用数据,能够精确调用数据,避免数据调用错误的现象。The directory management method provided by Embodiment 2 of the present invention can call data based on the changed path by changing the path of the object file storing the data, and can accurately call the data, avoiding the phenomenon of wrong data calling.

实施例三Embodiment three

图3为本发明实施例三提供的一种目录管理方法的流程图,本实施例在上述实施例的基础上,可选的,当检测到所述功能开关打开时,创建以设定字符命名的目标目录文件包括:Fig. 3 is a flow chart of a directory management method provided by Embodiment 3 of the present invention. On the basis of the above embodiments, this embodiment is optional. When it is detected that the function switch is turned on, create The target directory files include:

当检测到所述功能开关打开时,创建分别以26个英文字母命名的第一目标目录文件、分别以0到9之间的数字命名的第二目标目录文件,以及以除26个英文字母和0到9之间的数字之外的其他字符命名的第三目标目录文件。When it is detected that the function switch is turned on, create a first target directory file named after 26 English letters, a second target directory file named after a number between 0 and 9, and divide by 26 English letters and The third target directory file named with characters other than numbers between 0 and 9.

进一步,可选的,所述将所述终端中的根目录文件移动到与所述根目录文件名称相对应的目标目录文件中,包括:Further, optionally, the moving the root directory file in the terminal to the target directory file corresponding to the name of the root directory file includes:

当所述根目录文件名称的首字符为26个英文字母或0-9之间的数字中的任意一个时,将所述根目录文件移动到以所述根目录文件名称首字符命名的第一目标目录文件或第二目标目录文件中;或者;When the first character of the root directory file name is any one of 26 English letters or numbers between 0-9, move the root directory file to the first character named after the first character of the root directory file name. target directory file or a second target directory file; or;

当所述根目录文件名称的首字符为除26个英文字母和0-9之间的数字之外的字符时,将所述根目录文件移动到所述第三目标目录文件中;或者,When the first character of the root directory file name is a character other than 26 English letters and numbers between 0-9, the root directory file is moved to the third target directory file; or,

当所述根目录文件的名称为汉字时,将所述根目录文件的名称转换成拼音,将所述根目录文件移动到以所述拼音的首字符命名的第一目标目录文件中。When the name of the root directory file is a Chinese character, the name of the root directory file is converted into pinyin, and the root directory file is moved to the first target directory file named after the first character of the pinyin.

由此,通过第一目标目录文件、第二目标目录文件以及第三目标目录文件的创建,并将终端中的根目录文件移动到对应的第一目标目录文件、第二目标目录文件以及第三目标目录文件中,解决了根目录混乱的问题,提高了根目录文件管理的效率。Thus, through the creation of the first target directory file, the second target directory file and the third target directory file, the root directory file in the terminal is moved to the corresponding first target directory file, the second target directory file and the third target directory file. In the target directory file, the problem of root directory confusion is solved, and the efficiency of root directory file management is improved.

相应的,如图3所示,本实施例提供的技术方案具体如下:Correspondingly, as shown in Figure 3, the technical solution provided by this embodiment is specifically as follows:

S310、检测预先设置的用于对终端中的存储文件进行自动分类的功能开关是否打开。S310. Detect whether a preset function switch for automatically classifying stored files in the terminal is turned on.

S320、当检测到所述功能开关打开时,创建分别以26个英文字母命名的第一目标目录文件、分别以0到9之间的数字命名的第二目标目录文件,以及以除26个英文字母和0到9之间的数字之外的其他字符命名的第三目标目录文件。S320. When it is detected that the function switch is turned on, create a first target directory file named after 26 English letters, a second target directory file named after a number between 0 and 9, and divide by 26 English letters The third destination directory file named with characters other than letters and numbers between 0 and 9.

具体的,当开启终端中的自动分类的功能开关时,终端将创建以设定字符命名的目标目录文件,分别创建第一目标目录文件、第二目标目录文件与第三目标目录文件。其中,第一目标目录文件为以26个英文字母命名的目录文件,例如,创建的目录文件的名称分别为A,B,C,……,Z。第二目标目录文件为以0到9之间的数字命名的目录文件,创建的目录文件的名称分别为0,1,2,……,9。第三目标目录文件为以除26个英文字母和0到9之间的数字之外的其他字符命名的第三目标目录文件,例如,第三目标目录文件的名称为other,并且第三目标目录文件的名称还可以是其他形式。Specifically, when the automatic classification function switch in the terminal is turned on, the terminal will create target directory files named with set characters, respectively create a first target directory file, a second target directory file and a third target directory file. Wherein, the first target directory file is a directory file named with 26 English letters, for example, the names of the created directory files are A, B, C, . . . , Z, respectively. The second target directory file is a directory file named with a number between 0 and 9, and the names of the created directory files are 0, 1, 2, . . . , 9, respectively. The third target directory file is a third target directory file named with characters other than 26 English letters and numbers between 0 and 9, for example, the name of the third target directory file is other, and the third target directory The name of the file can also be in other forms.

S330、当所述根目录文件名称的首字符为26个英文字母或0-9之间的数字中的任意一个时,将所述根目录文件移动到以所述根目录文件名称首字符命名的第一目标目录文件或第二目标目录文件中。S330. When the first character of the root directory file name is any one of 26 English letters or numbers between 0-9, move the root directory file to the file named after the first character of the root directory file name Either the first target directory file or the second target directory file.

在本实施例中,具体的,当根目录文件名称的首字符为26个英文字母中的任意一个时,将根目录文件移动到以根目录文件名称首字符命名的第一目标目录文件。In this embodiment, specifically, when the first character of the root directory file name is any one of 26 English letters, the root directory file is moved to the first target directory file named with the first character of the root directory file name.

例如,终端中的根目录文件AndroidTest的首字母为A,将根目录文件AndroidTest移动到名称为A的第一目标目录文件中。又如,终端中的根目录文件apptest,其首字母为“a”,由于“a”对应的大写字母为“A”,也将该根目录文件移动到名称为A的第一目标目录文件中。For example, the initial letter of the root directory file AndroidTest in the terminal is A, and the root directory file AndroidTest is moved to the first target directory file named A. For another example, the root directory file apptest in the terminal has the initial letter "a". Since the uppercase letter corresponding to "a" is "A", the root directory file is also moved to the first target directory file named A .

当根目录文件名称的首字符为0-9之间的数字中的任意一个时,将根目录文件移动到以根目录文件名称首字符命名的第二目标目录文件中。When the first character of the file name of the root directory is any one of numbers between 0-9, the file of the root directory is moved to the second target directory file named after the first character of the file name of the root directory.

例如,当终端中的根目录文件1test的首字符为数字“1”,将根目录文件1test移动到名称为1的第二目标目录文件中。又如,根目录文件999的首字符为数字“9”,将根目录文件999移动到以9命名的第二目标目录文件中。For example, when the first character of the root directory file 1test in the terminal is the number "1", the root directory file 1test is moved to the second target directory file named 1. For another example, the first character of the root directory file 999 is the number "9", and the root directory file 999 is moved to the second target directory file named after 9.

S340:当所述根目录文件名称的首字符为除26个英文字母和0-9之间的数字之外的字符时,将所述根目录文件移动到所述第三目标目录文件中。S340: When the first character of the name of the root directory file is a character other than 26 English letters and numbers between 0-9, move the root directory file to the third target directory file.

例如,终端中的根目录文件###,由于根目录文件###名称的首字符并非26个英文字母和0-9之间的数字,将该根目录文件移动到第三目标目录文件中。For example, the root directory file ### in the terminal, since the first character of the name of the root directory file ### is not 26 English letters and numbers between 0-9, move the root directory file to the third target directory file .

S350:当所述根目录文件的名称为汉字时,将所述根目录文件的名称转换成拼音,将所述根目录文件移动到以所述拼音的首字符命名的第一目标目录文件中。S350: When the name of the root directory file is a Chinese character, convert the name of the root directory file into pinyin, and move the root directory file to a first target directory file named after the first character of the pinyin.

在本实施例中,例如,终端中的根目录文件“学习”,转换成拼音为“xuexi”,由于拼音“xuexi”的首字母为“X”,因此也将该根目录文件移动到第一目标目录文件中。In this embodiment, for example, the root directory file "learning" in the terminal is converted into pinyin as "xuexi". Since the initial letter of the pinyin "xuexi" is "X", the root directory file is also moved to the first in the target directory file.

S360:当所述终端中的应用调用数据时,基于存储所述数据的目标文件当前所在的位置变更所述目标文件的路径。S360: When the application in the terminal calls the data, change the path of the target file based on the current location of the target file storing the data.

在本实施例中,当终端中的应用调用数据时,存储数据的目标文件已经移动到了第一目标目录文件、第二目标目录文件或者第三目标目录文件中,因此基于目标文件当前所在的位置变更目标文件的路径。In this embodiment, when the application in the terminal calls the data, the target file storing the data has been moved to the first target directory file, the second target directory file or the third target directory file, so based on the current location of the target file Change the path of the object file.

例如,当终端中的应用调用数据时,数据存储在目标文件###中,目标文件###在名称为other的第三目标目录文件中,如表1所示,将目标文件###原来的路径(/storage/emulated/0/###)进行变更,变更之后的路径为/storage/emulated/0/other/###.。For example, when the application in the terminal calls the data, the data is stored in the target file ###, and the target file ### is in the third target directory file named other, as shown in Table 1, the target file ### The original path (/storage/emulated/0/###) is changed to /storage/emulated/0/other/###.

S370:基于变更的路径查找所述目标文件,以调用所述数据。S370: Find the target file based on the changed path, so as to invoke the data.

在本实施例中,例如,目标文件###变更后的路径为/storage/emulated/0/other/###,基于该路径查找目标文件###,以调用目标文件###中的数据。In this embodiment, for example, the changed path of the target file ### is /storage/emulated/0/other/###, based on this path, the target file ### is searched to call the data.

在本实施例中,对于其他数据的调用,与目标文件###中的数据调用方法相同,其他数据的调用不再累述。In this embodiment, the method for invoking other data is the same as the method for invoking data in the target file ###, and the invocation of other data will not be repeated here.

需要说明的是,S330-S350可同时执行,也可不同时执行。并且本发明实施例示例性的采用S310-S370执行一种目录管理方法,但是仅仅是一种示例,在本发明其他实施例中,可以采用S310-S350执行一种目录管理方法。It should be noted that S330-S350 may or may not be executed at the same time. Moreover, the embodiment of the present invention exemplarily adopts S310-S370 to execute a directory management method, but this is only an example. In other embodiments of the present invention, S310-S350 may be used to execute a directory management method.

本发明实施例三提供的目录管理的方法,通过分别创建第一目标目录文件、第二目标目录文件与第三目标目录文件,并将终端中的根目录文件移动到对应的第一目标目录文件、第二目标目录文件以及第三目标目录文件中,解决了根目录混乱的问题,提高了根目录文件管理的效率。The directory management method provided by Embodiment 3 of the present invention creates the first target directory file, the second target directory file and the third target directory file respectively, and moves the root directory file in the terminal to the corresponding first target directory file , the second target directory file and the third target directory file solve the problem of root directory confusion and improve the efficiency of root directory file management.

实施例四Embodiment four

图4为本发明实施例四提供的一种目录管理方法的流程图,本实施例在上述实施例的基础上,可选的,当检测到所述功能开关打开时,创建以设定字符命名的目标目录文件包括:Fig. 4 is a flow chart of a directory management method provided by Embodiment 4 of the present invention. On the basis of the above embodiments, this embodiment optionally creates a directory named after the set character when it is detected that the function switch is turned on. The target directory files include:

当检测所述功能开关打开时,创建基于应用的包名命名的第四目标目录文件;When it is detected that the function switch is turned on, create a fourth target directory file named based on the package name of the application;

所述将所述终端中的根目录文件移动到与所述根目录文件名称相对应的目标目录文件中,包括:将所述终端中的根目录文件移动到基于所述应用的包名命名的第四目标目录文件中。The moving the root directory file in the terminal to the target directory file corresponding to the name of the root directory file includes: moving the root directory file in the terminal to a file named based on the package name of the application The fourth target directory file.

由此,通过第四目标目录文件的创建,并将终端中的根目录文件移动到对应的第四目标目录文件中,使得终端中应用的根目录文件保存在同一个目标目录文件中,提高根目录文件管理的效率。Thus, by creating the fourth target directory file and moving the root directory file in the terminal to the corresponding fourth target directory file, the root directory file of the terminal application is stored in the same target directory file, improving the root Efficiency in directory file management.

相应的,如图4所示,本实施例提供的技术方案具体如下:Correspondingly, as shown in Figure 4, the technical solution provided by this embodiment is specifically as follows:

S410、检测预先设置的用于对终端中的存储文件进行自动分类的功能开关是否打开。S410. Detect whether a preset function switch for automatically classifying stored files in the terminal is turned on.

S420、当检测所述功能开关打开时,创建基于应用的包名命名的第四目标目录文件。S420. When it is detected that the function switch is turned on, create a fourth target directory file named based on the package name of the application.

示例性的,所述创建基于应用的包名命名的第四目标目录文件,包括:创建以所述应用的包名命名的第四目标目录文件;或者创建以所述应用的包名中的关键字命名的第四目标目录文件。Exemplarily, the creating the fourth target directory file named based on the package name of the application includes: creating the fourth target directory file named after the package name of the application; or creating the key in the package name of the application Word named fourth target directory file.

具体的,当用户开启终端中的自动分类的功能开关时,终端也会创建基于应用的包名命名的目标目录文件,创建第四目标目录文件。其中,创建以所述应用的包名命名的第四目标目录文件,例如,应用XXX的包名为com.tencent.mm,则创建的第四目标目录文件的名称为com.tencent.mm;创建以所述应用的包名中的关键字命名的第四目标目录文件,例如,应用XXX的包名中的关键字为tencent,则创建的第四目标目录文件的名称为tencent。Specifically, when the user turns on the automatic classification function switch in the terminal, the terminal will also create a target directory file named based on the package name of the application, and create a fourth target directory file. Wherein, create the fourth target directory file named after the package name of the application, for example, the package name of application XXX is com.tencent.mm, then the name of the fourth target directory file created is com.tencent.mm; create The fourth target directory file is named after the keyword in the package name of the application. For example, if the keyword in the package name of the application XXX is tencent, the name of the created fourth target directory file is tencent.

其中对于第四目标目录文件的创建形式还可以是形式,可根据需要进行确定。The creation form of the fourth target directory file can also be a form, which can be determined according to needs.

S430、将所述终端中应用的根目录文件移动到基于所述应用的包名命名的第四目标目录文件中。S430. Move the root directory file of the application in the terminal to a fourth target directory file named based on the package name of the application.

在本实施例中,当终端中预先存储了应用的包名与应用的根目录文件的对应关系,或者预先存储了应用的包名中的关键字与应用的根目录文件的对应关系时,当创建了基于应用的包名命名的第四目标目录文件时,直接将应用的根目录文件移动到基于应用的包名命名的第四目标目录文件中。In this embodiment, when the correspondence between the package name of the application and the root directory file of the application is pre-stored in the terminal, or the correspondence between the keywords in the package name of the application and the root directory file of the application is pre-stored, when When the fourth target directory file named based on the package name of the application is created, the root directory file of the application is directly moved to the fourth target directory file named based on the package name of the application.

具体的,由于应用的根目录文件与应用的包名对应,基于对应关系,将应用的根目录文件移动到以应用的包名命名的第四目标目录文件。或者由于应用的包名中的关键字与应用的根目录文件对应,基于对应关系,将应用的根目录文件移动到以应用的包名中的关键字命名的第四目标目录文件。Specifically, since the root directory file of the application corresponds to the package name of the application, based on the corresponding relationship, the root directory file of the application is moved to the fourth target directory file named after the package name of the application. Or because the keyword in the application package name corresponds to the application root directory file, based on the corresponding relationship, the application root directory file is moved to the fourth target directory file named after the keyword in the application package name.

例如,终端中应用XXX的包名为“com.tencent.mm”,则将终端中应用XXX的根目录文件test移动到以“com.tencent.mm”命名的第四目标目录文件中。又如,终端中应用XXX包名的关键字为tencent,则将终端中的应用XXX的根目录文件test1移动到以“tencent”命名的第四目标目录文件中。For example, if the package name of the application XXX in the terminal is "com.tencent.mm", the root directory file test of the application XXX in the terminal is moved to the fourth target directory file named "com.tencent.mm". For another example, if the keyword of the package name of the application XXX in the terminal is tencent, the root directory file test1 of the application XXX in the terminal is moved to the fourth target directory file named "tencent".

需要说明的是,本发明实施例示例性的采用S410-S430执行一种目录管理方法,但本实施例仅仅是一种示例,在本发明的其他实施例中,还可以将S410-S430与实施例二中的S240和S250执行一种目录管理方法。It should be noted that the embodiment of the present invention exemplarily adopts S410-S430 to implement a directory management method, but this embodiment is only an example, and in other embodiments of the present invention, S410-S430 can also be combined with the implementation S240 and S250 in Example 2 implement a directory management method.

本发明实施例四提供的目录管理的方法,通过创建基于应用的包名命名的第四目标目录文件,将所述终端中的根目录文件移动到基于所述应用的包名命名的第四目标目录文件中,使得终端中应用的根目录目标文件保存在同一个目标目录文件中,提供了应用的根目录文件管理的效率。In the directory management method provided in Embodiment 4 of the present invention, by creating a fourth target directory file named based on the package name of the application, the root directory file in the terminal is moved to the fourth target named based on the package name of the application In the directory file, the target file of the root directory of the application in the terminal is stored in the same target directory file, which improves the efficiency of file management of the root directory of the application.

实施例五Embodiment five

图5为本发明实施例五提供的一种目录管理方法的流程图,本实施例在上述实施例的基础上,可选的,将所述终端中的根目录文件移动到基于所述应用的包名命名的第四目标目录文件中包括:当所述终端中的应用调用数据时,获取所述应用的包名;Fig. 5 is a flowchart of a directory management method provided by Embodiment 5 of the present invention. In this embodiment, on the basis of the above embodiments, optionally, the root directory file in the terminal is moved to the application-based The fourth target directory file named by the package name includes: when the application in the terminal calls data, obtain the package name of the application;

将所述应用的根目录文件移动到基于所述应用的包名命名的第四目标目录文件中。The root directory file of the application is moved to the fourth target directory file named based on the package name of the application.

由此,通过调用数据时,获取所述应用的包名,再将所述应用的根目录文件移动到基于所述应用的包名命名的第四目标目录文件中,提高了应用的根目录文件管理的效率。Thus, when the data is called, the package name of the application is obtained, and then the root directory file of the application is moved to the fourth target directory file named based on the package name of the application, so that the root directory file of the application is improved. management efficiency.

相应的,如图5所示,本实施例提供的技术方案具体如下:Correspondingly, as shown in Figure 5, the technical solution provided by this embodiment is specifically as follows:

S510、检测预先设置的用于对终端中的存储文件进行自动分类的功能开关是否打开。S510. Detect whether a preset function switch for automatically classifying stored files in the terminal is turned on.

S520、当检测所述功能开关打开时,创建基于应用的包名命名的第四目标目录文件。S520. When it is detected that the function switch is turned on, create a fourth target directory file named based on the package name of the application.

S530、当所述终端中的应用调用数据时,获取所述应用的包名。S530. Acquire a package name of the application when the application in the terminal invokes data.

在本实施例中,终端中没有预先存储应用的根目录文件与应用的包名的对应关系,当将应用的根目录文件进行移动时,需要获取应用的包名,且当应用调用数据时,获取应用的包名。In this embodiment, the corresponding relationship between the root directory file of the application and the package name of the application is not pre-stored in the terminal. When the root directory file of the application is moved, the package name of the application needs to be obtained, and when the application calls the data, Get the package name of the application.

当终端接收到用户输入的调用数据的指令时,终端中的应用开始调用数据。其中用户输入的调用数据的指令可以是用户打开应用的操作,或者也可是用户打开应用中某个功能选项的操作,或者也可以是其他操作。When the terminal receives an instruction to call data input by the user, the application in the terminal starts to call data. The instruction for invoking data input by the user may be an operation for the user to open an application, or an operation for the user to open a certain function option in the application, or may be other operations.

当接收到用户输入的调用数据的指令,终端中的应用开始调用数据时,获取应用的包名,通过终端系统中的当前进程可以获取应用的包名,或者也可以通过其他方式。例如,用户使用终端中的应用XXX打开某个语音文件时先获取应用XXX的包名“com.tencent.mm”。When receiving an instruction to invoke data input by the user and the application in the terminal starts to invoke the data, the package name of the application can be obtained. The package name of the application can be obtained through the current process in the terminal system, or through other methods. For example, when the user uses the application XXX in the terminal to open a voice file, the package name "com.tencent.mm" of the application XXX is obtained first.

S540、将所述应用的根目录文件移动到基于所述应用的包名命名的第四目标目录文件中。S540. Move the root directory file of the application to a fourth target directory file named based on the package name of the application.

在本实施例中,基于创建的以应用的包名命名的第四目标目录文件,将所述应用的根目录文件移动到第四目标目录文件中。例如,上述用户使用终端中的应用XXX打开某个语音文件时,先获取应用XXX的包名,再将所述应用的根目录文件移动到基于所述应用的包名命名的第四目标目录文件中。In this embodiment, based on the created fourth target directory file named after the package name of the application, the root directory file of the application is moved to the fourth target directory file. For example, when the above-mentioned user uses the application XXX in the terminal to open a certain audio file, first obtain the package name of the application XXX, and then move the root directory file of the application to the fourth target directory file named based on the package name of the application middle.

S550:基于存储所述数据的目标文件当前所在的位置变更所述目标文件的路径。S550: Change the path of the target file based on the current location of the target file storing the data.

在本实施例中,存储数据的目标文件位置已经移动到了第四目标目录文件中,因此,当终端调用数据时,基于目标文件当前所在的位置变更目标文件的路径。In this embodiment, the location of the target file storing the data has been moved to the fourth target directory file. Therefore, when the terminal calls the data, the path of the target file is changed based on the current location of the target file.

例如,当终端中的应用XXX调用数据时,数据存储在目标文件test中,目标文件在以应用XXX包名命名的第四目标目录文件中。如表2所示,将目标文件test原来的路径(“/storage/emulated/0/test”)进行变更,变更之后的路径为:“/storage/emulated/0/com.tencent.mm/test”。For example, when the application XXX in the terminal calls the data, the data is stored in the target file test, and the target file is in the fourth target directory file named after the package name of the application XXX. As shown in Table 2, change the original path of the target file test ("/storage/emulated/0/test"), and the changed path is: "/storage/emulated/0/com.tencent.mm/test" .

S560、基于变更的路径查找所述目标文件,以调用所述数据。S560. Search for the target file based on the changed path, so as to invoke the data.

在本实施例中,由于存储数据的目标文件的位置发生了变化,因此,基于原来路径中已经查找不到所述目标文件,需要基于变更后的路径,才能查找到所述目标文件,以调用数据。当用户调用数据时,终端则在从变更后的第四目标目录文件查找路径,以调用数据提供给用户查看。例如表2中的目标文件“test”中的数据,终端在变更完目标文件“test”的路径后,基于变更后的路径“/storage/emulated/0/com.tencent.mm/test”,才能调用该数据。In this embodiment, since the location of the target file for storing data has changed, the target file cannot be found based on the original path, and the target file can only be found based on the changed path, so as to call data. When the user invokes the data, the terminal searches for a path from the changed fourth target directory file to provide the invoked data for the user to view. For example, for the data in the target file "test" in Table 2, after the terminal changes the path of the target file "test", based on the changed path "/storage/emulated/0/com.tencent.mm/test", it can call that data.

需要说明的是,本发明实施例示例性的采用S510-S560组成一个示例执行一种目录管理方法,但本实施例仅仅是一种示例,在本发明的其他实施例中,还可以将S510-S540组成一个示例执行一种目录管理方法。It should be noted that the embodiment of the present invention exemplarily uses S510-S560 to form an example to execute a directory management method, but this embodiment is only an example. In other embodiments of the present invention, S510-S560 can also be combined S540 constitutes an example to implement a directory management method.

本发明实施例五提供的目录管理的方法,通过在终端中的应用调用数据时,获取所述应用的包名,再将所述应用的根目录文件移动到基于所述应用的包名命名的第四目标目录文件中,提高了应用的根目录文件管理的效率。The directory management method provided by Embodiment 5 of the present invention obtains the package name of the application when the application in the terminal calls data, and then moves the root directory file of the application to a file named based on the package name of the application. In the fourth target directory file, the efficiency of application root directory file management is improved.

实施例六Embodiment six

图6是本发明实施例六提供的一种目录管理的装置结构框图,所述装置用于执行一种目录管理的方法,所述装置配置在终端中。Fig. 6 is a structural block diagram of a device for directory management provided by Embodiment 6 of the present invention, the device is used to execute a method for directory management, and the device is configured in a terminal.

如图6所示,所示装置包括检测模块61、目标目录文件创建模块62以及根目录文件移动模块63。As shown in FIG. 6 , the shown device includes a detection module 61 , a target directory file creation module 62 and a root directory file movement module 63 .

检测模块61,用于检测预先设置的用于对终端中的存储文件进行自动分类的功能开关是否打开;A detection module 61, configured to detect whether a preset function switch for automatically classifying stored files in the terminal is turned on;

目标目录文件创建模块62,用于当检测到所述功能开关打开时,创建以设定字符命名的目标目录文件;The target directory file creation module 62 is used to create a target directory file named after setting characters when it is detected that the function switch is turned on;

根目录文件移动模块63,用于将所述终端中的根目录文件移动到与所述根目录文件名称相对应的目标目录文件中。The root directory file moving module 63 is configured to move the root directory file in the terminal to the target directory file corresponding to the name of the root directory file.

在上述实施例的基础上,还包括:路径变更模块64和数据调用模块65。On the basis of the above embodiments, it also includes: a path changing module 64 and a data calling module 65 .

路径变更模块64,用于当所述终端中的应用调用数据时,基于存储所述数据的目标文件当前所在的位置变更所述目标文件的路径;A path change module 64, configured to change the path of the target file based on the current location of the target file storing the data when the application in the terminal calls the data;

数据调用模块65,用于基于变更的路径查找所述目标文件,以调用所述数据。A data calling module 65, configured to search for the target file based on the changed path, so as to call the data.

在上述实施例的基础上,所述目标目录文件创建模块62具体用于:当检测到所述功能开关打开时,创建分别以26个英文字母命名的第一目标目录文件、分别以0到9之间的数字命名的第二目标目录文件,以及以除26个英文字母和0到9之间的数字之外的其他字符命名的第三目标目录文件。On the basis of the above-mentioned embodiments, the target directory file creation module 62 is specifically configured to: when it is detected that the function switch is turned on, create a first target directory file named with 26 English letters, respectively with 0 to 9 The second target directory file named with numbers between , and the third target directory file named with characters other than 26 English letters and numbers between 0 and 9.

在上述实施例的基础上,所述根目录文件移动模块63具体用于:当所述根目录文件名称的首字符为26个英文字母或0-9之间的数字中的任意一个时,将所述根目录文件移动到以所述根目录文件名称首字符命名的第一目标目录文件或第二目标目录文件中;或者,On the basis of the foregoing embodiments, the root directory file moving module 63 is specifically configured to: when the initial character of the root directory file name is any one of 26 English letters or numbers between 0-9, the The root directory file is moved to the first target directory file or the second target directory file named after the first character of the root directory file name; or,

当所述根目录文件名称的首字符为除26个英文字母和0-9之间的数字之外的字符时,将所述根目录文件移动到所述第三目标目录文件中;或者,When the first character of the root directory file name is a character other than 26 English letters and numbers between 0-9, the root directory file is moved to the third target directory file; or,

当所述根目录文件的名称为汉字时,将所述根目录文件的名称转换成拼音,将所述根目录文件移动到以所述拼音的首字符命名的第一目标目录文件中。When the name of the root directory file is a Chinese character, the name of the root directory file is converted into pinyin, and the root directory file is moved to the first target directory file named after the first character of the pinyin.

在上述实施例的基础上,所述目标目录文件创建模块62具体用于:当检测所述功能开关打开时,创建基于应用的包名命名的第四目标目录文件;On the basis of the above embodiments, the target directory file creation module 62 is specifically configured to: create a fourth target directory file named based on the package name of the application when it is detected that the function switch is turned on;

所述根目录文件移动模块63具体用于:将所述终端中应用的根目录文件移动到基于所述应用的包名命名的第四目标目录文件中。The root directory file moving module 63 is specifically configured to: move the root directory file of the application in the terminal to the fourth target directory file named based on the package name of the application.

在上述实施例的基础上,所述创建基于应用的包名命名的第四目标目录文件,包括:创建以所述应用的包名命名的第四目标目录文件;或者创建以所述应用的包名中的关键字命名的第四目标目录文件。On the basis of the above embodiments, the creation of the fourth target directory file named based on the package name of the application includes: creating the fourth target directory file named after the package name of the application; or creating the fourth target directory file named after the package name of the application The keyword in the name names the fourth target directory file.

在上述实施例的基础上,所述将所述终端中应用的根目录文件移动到基于所述应用的包名命名的第四目标目录文件中,包括:当所述终端中的应用调用数据时,获取所述应用的包名;将所述应用的根目录文件移动到基于所述应用的包名命名的第四目标目录文件中。On the basis of the above embodiments, the moving the root directory file of the application in the terminal to the fourth target directory file named based on the package name of the application includes: when the application in the terminal invokes data , obtaining the package name of the application; moving the root directory file of the application to a fourth target directory file named based on the package name of the application.

本实施例所述目录管理的装置用于执行上述各实施例所述的目录管理的方法,其技术原理和产生的技术效果类似,这里不再赘述。The catalog management device described in this embodiment is used to implement the catalog management methods described in the above-mentioned embodiments, and its technical principles and technical effects are similar and will not be repeated here.

实施例七Embodiment seven

本发明实施例提供了一种终端,该终端中可集成本发明实施例提供的目录管理装置。图7为本发明实施例提供的一种终端的结构示意图。如图7所示,该终端可以包括:壳体(图中未示出)、存储器701、中央处理器(Central Processing Unit,CPU)702(又称处理器,以下简称CPU)、电路板(图中未示出)、触摸屏712和电源电路(图中未示出)。所述触摸屏712,用于将用户操作转换成电信号输入至所述处理器,并显示可视输出信号;所述电路板安置在所述触摸屏712与所述壳体围成的空间内部;所述CPU702和所述存储器701设置在所述电路板上;所述电源电路,用于为所述终端的各个电路或器件供电;所述存储器701,用于存储可执行程序代码;所述CPU702通过读取所述存储器701中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行:An embodiment of the present invention provides a terminal, in which the directory management device provided by the embodiment of the present invention can be integrated. FIG. 7 is a schematic structural diagram of a terminal provided by an embodiment of the present invention. As shown in FIG. 7 , the terminal may include: a housing (not shown in the figure), a memory 701, a central processing unit (Central Processing Unit, CPU) 702 (also known as a processor, hereinafter referred to as CPU), a circuit board (in the figure Not shown in), touch screen 712 and power supply circuit (not shown in the figure). The touch screen 712 is used to convert user operations into electrical signals and input them to the processor, and display visual output signals; the circuit board is placed inside the space enclosed by the touch screen 712 and the housing; The CPU702 and the memory 701 are arranged on the circuit board; the power supply circuit is used to supply power to each circuit or device of the terminal; the memory 701 is used to store executable program codes; the CPU702 passes Read the executable program code stored in the memory 701 to run the program corresponding to the executable program code, so as to execute:

检测预先设置的用于对终端中的存储文件进行自动分类的功能开关是否打开;当检测到所述功能开关打开时,创建以设定字符命名的目标目录文件;将所述终端中的根目录文件移动到与所述根目录文件名称相对应的目标目录文件中。Detect whether the pre-set function switch for automatically classifying the storage files in the terminal is turned on; when it is detected that the function switch is turned on, create a target directory file named with a set character; set the root directory in the terminal to The file is moved to the target directory file corresponding to the root directory file name.

所述终端还包括:外设接口703、RF(Radio Frequency,射频)电路705、音频电路706、扬声器711、电源管理芯片708、输入/输出(I/O)子系统709、其他输入/控制设备710以及外部端口704,这些部件通过一个或多个通信总线或信号线707来通信。The terminal also includes: a peripheral interface 703, an RF (Radio Frequency, radio frequency) circuit 705, an audio circuit 706, a speaker 711, a power management chip 708, an input/output (I/O) subsystem 709, and other input/control devices 710 and external ports 704, these components communicate via one or more communication buses or signal lines 707.

应该理解的是,图示终端700仅仅是终端的一个范例,并且终端700可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated terminal 700 is only one example of a terminal, and that the terminal 700 may have more or fewer components than shown, may combine two or more components, or may have Different component configurations. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.

下面就本实施例提供的集成有目录管理的终端进行详细的描述,该终端以手机为例。The terminal integrated with directory management provided in this embodiment will be described in detail below, and the terminal is a mobile phone as an example.

存储器701,所述存储器701可以被CPU702、外设接口703等访问,所述存储器701可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Memory 701, the memory 701 can be accessed by the CPU 702, the peripheral interface 703, etc., the memory 701 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more disk storage devices, flash memory devices , or other volatile solid-state storage devices.

外设接口703,所述外设接口703可以将设备的输入和输出外设连接到CPU702和存储器701。Peripheral interface 703 , which can connect the input and output peripherals of the device to CPU 702 and memory 701 .

I/O子系统709,所述I/O子系统709可以将设备上的输入输出外设,例如触摸屏712和其他输入/控制设备710,连接到外设接口703。I/O子系统709可以包括显示控制器7091和用于控制其他输入/控制设备710的一个或多个输入控制器7092。其中,一个或多个输入控制器7092从其他输入/控制设备710接收电信号或者向其他输入/控制设备710发送电信号,其他输入/控制设备710可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器7092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。The I/O subsystem 709 , the I/O subsystem 709 can connect input and output peripherals on the device, such as a touch screen 712 and other input/control devices 710 , to the peripheral interface 703 . I/O subsystem 709 may include a display controller 7091 and one or more input controllers 7092 for controlling other input/control devices 710 . Among them, one or more input controllers 7092 receive electrical signals from or send electrical signals to other input/control devices 710, which may include physical buttons (push buttons, rocker buttons, etc.) ), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 7092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.

触摸屏712,所述触摸屏712是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。A touch screen 712. The touch screen 712 is an input interface and an output interface between the user terminal and the user, and displays visual output to the user. The visual output may include graphics, text, icons, videos, and the like.

I/O子系统709中的显示控制器7091从触摸屏712接收电信号或者向触摸屏712发送电信号。触摸屏712检测触摸屏上的接触,显示控制器7091将检测到的接触转换为与显示在触摸屏712上的用户界面对象的交互,即实现人机交互,显示在触摸屏712上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。The display controller 7091 in the I/O subsystem 709 receives electrical signals from the touch screen 712 or sends electrical signals to the touch screen 712 . The touch screen 712 detects the contact on the touch screen, and the display controller 7091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 712, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 712 can be a running Icons for games, icons for networking to appropriate networks, etc. It is worth noting that the device may also include an optical mouse, which is a touch-sensitive surface that does not display visual output, or that is an extension of a touch-sensitive surface formed by a touchscreen.

RF电路705,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路705接收并发送RF信号,RF信号也称为电磁信号,RF电路705将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路705可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The RF circuit 705 is mainly used to establish communication between the mobile phone and the wireless network (that is, the network side), and realize data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. Specifically, the RF circuit 705 receives and sends RF signals, which are also called electromagnetic signals, and the RF circuit 705 converts electrical signals into electromagnetic signals or converts electromagnetic signals into electrical signals, and communicates with communication networks and other devices through the electromagnetic signals to communicate. RF circuitry 705 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC ( COder-DECoder, Codec) Chipset, Subscriber Identity Module (Subscriber Identity Module, SIM) and so on.

音频电路706,主要用于从外设接口703接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器711。The audio circuit 706 is mainly used to receive audio data from the peripheral interface 703 , convert the audio data into electrical signals, and send the electrical signals to the speaker 711 .

扬声器711,用于将手机通过RF电路705从无线网络接收的语音信号,还原为声音并向用户播放该声音。The speaker 711 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 705 into sound and play the sound to the user.

电源管理芯片708,用于为CPU702、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The power management chip 708 is used for power supply and power management for the hardware connected to the CPU 702 , the I/O subsystem and the peripheral interface.

本实施例提供的终端用于执行上述各实施例所述的目录管理的方法,其技术原理和产生的技术效果类似,这里不再赘述。The terminal provided in this embodiment is used to implement the catalog management methods described in the above embodiments, and its technical principles and technical effects are similar, and will not be repeated here.

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.

Claims (15)

1.一种目录管理方法,其特征在于,包括:1. A directory management method, characterized in that, comprising: 检测预先设置的用于对终端中的存储文件进行自动分类的功能开关是否打开;Detecting whether the preset function switch for automatically classifying the stored files in the terminal is turned on; 当检测到所述功能开关打开时,创建以设定字符命名的目标目录文件;When it is detected that the function switch is turned on, create a target directory file named with a set character; 将所述终端中的根目录文件移动到与所述根目录文件名称相对应的目标目录文件中。Move the root directory file in the terminal to the target directory file corresponding to the name of the root directory file. 2.根据权利要求1所述的方法,其特征在于,还包括:2. The method according to claim 1, further comprising: 当所述终端中的应用调用数据时,基于存储所述数据的目标文件当前所在的位置变更所述目标文件的路径;When the application in the terminal calls the data, changing the path of the target file based on the current location of the target file storing the data; 基于变更的路径查找所述目标文件,以调用所述数据。The target file is searched based on the changed path to call the data. 3.根据权利要求1或2所述的方法,其特征在于,所述当检测到所述功能开关打开时,创建以设定字符命名的目标目录文件,包括:3. The method according to claim 1 or 2, wherein, when it is detected that the function switch is turned on, creating a target directory file named after setting characters includes: 当检测到所述功能开关打开时,创建分别以26个英文字母命名的第一目标目录文件、分别以0到9之间的数字命名的第二目标目录文件,以及以除26个英文字母和0到9之间的数字之外的其他字符命名的第三目标目录文件。When it is detected that the function switch is turned on, create a first target directory file named after 26 English letters, a second target directory file named after a number between 0 and 9, and divide by 26 English letters and The third target directory file named with characters other than numbers between 0 and 9. 4.根据权利要求3所述的方法,其特征在于,所述将所述终端中的根目录文件移动到与所述根目录文件名称相对应的目标目录文件中,包括:4. The method according to claim 3, wherein the moving the root directory file in the terminal to the target directory file corresponding to the root directory file name comprises: 当所述根目录文件名称的首字符为26个英文字母或0-9之间的数字中的任意一个时,将所述根目录文件移动到以所述根目录文件名称首字符命名的第一目标目录文件或第二目标目录文件中;或者,When the first character of the root directory file name is any one of 26 English letters or numbers between 0-9, move the root directory file to the first character named after the first character of the root directory file name. target directory file or a second target directory file; or, 当所述根目录文件名称的首字符为除26个英文字母和0-9之间的数字之外的字符时,将所述根目录文件移动到所述第三目标目录文件中;或者,When the first character of the root directory file name is a character other than 26 English letters and numbers between 0-9, the root directory file is moved to the third target directory file; or, 当所述根目录文件的名称为汉字时,将所述根目录文件的名称转换成拼音,将所述根目录文件移动到以所述拼音的首字符命名的第一目标目录文件中。When the name of the root directory file is a Chinese character, the name of the root directory file is converted into pinyin, and the root directory file is moved to the first target directory file named after the first character of the pinyin. 5.根据权利要求1或2所述的方法,其特征在于,所述当检测到所述功能开关打开时,创建以设定字符命名的目标目录文件,包括:5. The method according to claim 1 or 2, wherein, when it is detected that the function switch is turned on, creating a target directory file named after setting characters includes: 当检测所述功能开关打开时,创建基于应用的包名命名的第四目标目录文件;When it is detected that the function switch is turned on, create a fourth target directory file named based on the package name of the application; 所述将所述终端中的根目录文件移动到与所述根目录文件名称相对应的目标目录文件中,包括:The moving the root directory file in the terminal to the target directory file corresponding to the root directory file name includes: 将所述终端中应用的根目录文件移动到基于所述应用的包名命名的第四目标目录文件中。The root directory file of the application in the terminal is moved to the fourth target directory file named based on the package name of the application. 6.根据权利要求5所述的方法,其特征在于,所述创建基于应用的包名命名的第四目标目录文件,包括:6. The method according to claim 5, wherein the creating the fourth target directory file named based on the package name of the application comprises: 创建以所述应用的包名命名的第四目标目录文件;或者Create a fourth target directory file named after the package name of the application; or 创建以所述应用的包名中的关键字命名的第四目标目录文件。Create a fourth target directory file named after the keyword in the package name of the application. 7.根据权利要求5所述的方法,其特征在于,所述将所述终端中应用的根目录文件移动到基于所述应用的包名命名的第四目标目录文件中,包括:7. The method according to claim 5, wherein the moving the root directory file of the application in the terminal to the fourth target directory file named based on the package name of the application comprises: 当所述终端中的应用调用数据时,获取所述应用的包名;When the application in the terminal invokes data, obtain the package name of the application; 将所述应用的根目录文件移动到基于所述应用的包名命名的第四目标目录文件中。The root directory file of the application is moved to the fourth target directory file named based on the package name of the application. 8.一种目录管理装置,其特征在于,包括:8. A directory management device, characterized in that it comprises: 检测模块,用于检测预先设置的用于对终端中的存储文件进行自动分类的功能开关是否打开;A detection module, configured to detect whether a preset function switch for automatically classifying stored files in the terminal is turned on; 目标目录文件创建模块,用于当检测到所述功能开关打开时,创建以设定字符命名的目标目录文件;A target directory file creation module, configured to create a target directory file named after a set character when it is detected that the function switch is turned on; 根目录文件移动模块,用于将所述终端中的根目录文件移动到与所述根目录文件名称相对应的目标目录文件中。The root directory file moving module is used to move the root directory file in the terminal to the target directory file corresponding to the name of the root directory file. 9.根据权利要求8所述的装置,其特征在于,还包括:9. The device according to claim 8, further comprising: 路径变更模块,用于当所述终端中的应用调用数据时,基于存储所述数据的目标文件当前所在的位置变更所述目标文件的路径;A path changing module, configured to change the path of the target file based on the current location of the target file storing the data when the application in the terminal calls the data; 数据调用模块,用于基于变更的路径查找所述目标文件,以调用所述数据。A data calling module, configured to search for the target file based on the changed path, so as to call the data. 10.根据权利要求8或9所述的装置,其特征在于,所述目标目录文件创建模块具体用于:10. The device according to claim 8 or 9, wherein the target directory file creation module is specifically used for: 当检测到所述功能开关打开时,创建分别以26个英文字母命名的第一目标目录文件、分别以0到9之间的数字命名的第二目标目录文件,以及以除26个英文字母和0到9之间的数字之外的其他字符命名的第三目标目录文件。When it is detected that the function switch is turned on, create a first target directory file named after 26 English letters, a second target directory file named after a number between 0 and 9, and divide by 26 English letters and The third target directory file named with characters other than numbers between 0 and 9. 11.根据权利要求10所述的装置,其特征在于,所述根目录文件移动模块具体用于:11. The device according to claim 10, wherein the root directory file moving module is specifically used for: 当所述根目录文件名称的首字符为26个英文字母或0-9之间的数字中的任意一个时,将所述根目录文件移动到以所述根目录文件名称首字符命名的第一目标目录文件或第二目标目录文件中;或者,When the first character of the root directory file name is any one of 26 English letters or numbers between 0-9, move the root directory file to the first character named after the first character of the root directory file name. target directory file or a second target directory file; or, 当所述根目录文件名称的首字符为除26个英文字母和0-9之间的数字之外的字符时,将所述根目录文件移动到所述第三目标目录文件中;或者,When the first character of the root directory file name is a character other than 26 English letters and numbers between 0-9, the root directory file is moved to the third target directory file; or, 当所述根目录文件的名称为汉字时,将所述根目录文件的名称转换成拼音,将所述根目录文件移动到以所述拼音的首字符命名的第一目标目录文件中。When the name of the root directory file is a Chinese character, the name of the root directory file is converted into pinyin, and the root directory file is moved to the first target directory file named after the first character of the pinyin. 12.根据权利要求8或9所述的装置,其特征在于,所述目标目录文件创建模块具体用于:12. The device according to claim 8 or 9, wherein the target directory file creation module is specifically used for: 当检测所述功能开关打开时,创建基于应用的包名命名的第四目标目录文件;When it is detected that the function switch is turned on, create a fourth target directory file named based on the package name of the application; 所述根目录文件移动模块具体用于:The root directory file moving module is specifically used for: 将所述终端中应用的根目录文件移动到基于所述应用的包名命名的第四目标目录文件中。The root directory file of the application in the terminal is moved to the fourth target directory file named based on the package name of the application. 13.根据权利要求12所述的装置,其特征在于,所述创建基于应用的包名命名的第四目标目录文件,包括:13. The device according to claim 12, wherein the creating the fourth target directory file named based on the package name of the application comprises: 创建以所述应用的包名命名的第四目标目录文件;或者Create a fourth target directory file named after the package name of the application; or 创建以所述应用的包名中的关键字命名的第四目标目录文件。Create a fourth target directory file named after the keyword in the package name of the application. 14.根据权利要求12所述的装置,其特征在于,所述将所述终端中应用的根目录文件移动到基于所述应用的包名命名的第四目标目录文件中,包括:14. The device according to claim 12, wherein the moving the root directory file of the application in the terminal to the fourth target directory file named based on the package name of the application comprises: 当所述终端中的应用调用数据时,获取所述应用的包名;When the application in the terminal invokes data, obtain the package name of the application; 将所述应用的根目录文件移动到基于所述应用的包名命名的第四目标目录文件中。The root directory file of the application is moved to the fourth target directory file named based on the package name of the application. 15.一种终端,其特征在于,包括:壳体、处理器、存储器、电路板、触摸屏和电源电路;15. A terminal, characterized by comprising: a housing, a processor, a memory, a circuit board, a touch screen, and a power supply circuit; 所述触摸屏,用于将用户操作转换成电信号输入至所述处理器,并显示可视输出信号;The touch screen is used to convert user operations into electrical signals and input them to the processor, and display visual output signals; 所述电路板安置在所述触摸屏与所述壳体围成的空间内部;The circuit board is placed inside the space enclosed by the touch screen and the housing; 所述处理器和所述存储器设置在所述电路板上;The processor and the memory are arranged on the circuit board; 所述电源电路,用于为所述终端的各个电路或器件供电;The power supply circuit is used to supply power to each circuit or device of the terminal; 所述存储器,用于存储可执行程序代码;The memory is used to store executable program codes; 所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行:The processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute: 检测预先设置的用于对终端中的存储文件进行自动分类的功能开关是否打开;Detecting whether the preset function switch for automatically classifying the stored files in the terminal is turned on; 当检测到所述功能开关打开时,创建以设定字符命名的目标目录文件;When it is detected that the function switch is turned on, create a target directory file named with a set character; 将所述终端中的根目录文件移动到与所述根目录文件名称相对应的目标目录文件中。Move the root directory file in the terminal to the target directory file corresponding to the name of the root directory file.
CN201611092487.6A 2016-11-30 2016-11-30 Directory management method and apparatus, and terminal Pending CN106599125A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611092487.6A CN106599125A (en) 2016-11-30 2016-11-30 Directory management method and apparatus, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611092487.6A CN106599125A (en) 2016-11-30 2016-11-30 Directory management method and apparatus, and terminal

Publications (1)

Publication Number Publication Date
CN106599125A true CN106599125A (en) 2017-04-26

Family

ID=58594768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611092487.6A Pending CN106599125A (en) 2016-11-30 2016-11-30 Directory management method and apparatus, and terminal

Country Status (1)

Country Link
CN (1) CN106599125A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107885887A (en) * 2017-12-08 2018-04-06 维沃移动通信有限公司 A kind of file memory method and mobile terminal
CN116303256A (en) * 2023-02-23 2023-06-23 联想(北京)有限公司 A data processing method, device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130210392A1 (en) * 2011-06-13 2013-08-15 Mercury Mobile, Llc Automated prompting techniques implemented via mobile devices and systems
CN103823899A (en) * 2014-03-17 2014-05-28 广东欧珀移动通信有限公司 A method for automatically organizing files and a mobile terminal
CN105373595A (en) * 2015-10-22 2016-03-02 广东欧珀移动通信有限公司 Data automatic sorting storage method and terminal
CN105653582A (en) * 2015-12-21 2016-06-08 联想(北京)有限公司 File management method of electronic equipment and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130210392A1 (en) * 2011-06-13 2013-08-15 Mercury Mobile, Llc Automated prompting techniques implemented via mobile devices and systems
CN103823899A (en) * 2014-03-17 2014-05-28 广东欧珀移动通信有限公司 A method for automatically organizing files and a mobile terminal
CN105373595A (en) * 2015-10-22 2016-03-02 广东欧珀移动通信有限公司 Data automatic sorting storage method and terminal
CN105653582A (en) * 2015-12-21 2016-06-08 联想(北京)有限公司 File management method of electronic equipment and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107885887A (en) * 2017-12-08 2018-04-06 维沃移动通信有限公司 A kind of file memory method and mobile terminal
CN107885887B (en) * 2017-12-08 2020-01-31 维沃移动通信有限公司 file storage method and mobile terminal
CN116303256A (en) * 2023-02-23 2023-06-23 联想(北京)有限公司 A data processing method, device and electronic equipment

Similar Documents

Publication Publication Date Title
JP2014194786A (en) Mobile communications device and contextual search method therewith
CN107832330B (en) A search method and terminal device
CN107562835A (en) File search method, device, mobile terminal and computer-readable recording medium
CN107436948B (en) File searching method and device and terminal
CN106502834A (en) The backup method of data, apparatus and system
CN112131457A (en) Information recommendation method, device and system and storage medium
KR102061956B1 (en) Methods, devices and systems for presenting information
WO2022161431A1 (en) Display method, apparatus, and electronic device
CN104090879A (en) Picture sharing method, device and system
CN108984064A (en) Split-screen display method, device, storage medium and electronic equipment
CN111352597A (en) Multi-screen display control method and device, electronic device and readable storage medium
CN106776385A (en) A kind of transmission method, device and terminal of log log information
CN107678823A (en) Mobile terminal application control method, device and storage medium, and mobile terminal
CN107368552A (en) Friend recommendation method and device, storage medium, server and terminal
WO2015039517A1 (en) Multimedia file search method, apparatus, and terminal device
CN107517312A (en) Wallpaper switching method and device and terminal equipment
CN110764845A (en) Application setting method and electronic device
CN107277031A (en) A network video download method, device, storage medium and terminal
CN106452644A (en) Play control method, device and terminal
CN104063400A (en) Data search method and data search device
CN107402625A (en) Touch screen scanning method, device, terminal and computer-readable storage medium
CN106529332A (en) Permission control method and apparatus for mobile terminal, and mobile terminal
CN105939411A (en) A common contact management method, device and mobile terminal
US20170277419A1 (en) Method and Electronic Device for Replying to a Message
CN109189243B (en) Input method switching method and device and user terminal

Legal Events

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

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

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

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

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

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20170426

RJ01 Rejection of invention patent application after publication