CN110019040B - Folder processing method, mobile terminal and storage medium - Google Patents
Folder processing method, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN110019040B CN110019040B CN201811126817.8A CN201811126817A CN110019040B CN 110019040 B CN110019040 B CN 110019040B CN 201811126817 A CN201811126817 A CN 201811126817A CN 110019040 B CN110019040 B CN 110019040B
- Authority
- CN
- China
- Prior art keywords
- folder
- processed
- mobile terminal
- processing
- terminal device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/162—Delete operations
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/182—Distributed file systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
- Telephone Function (AREA)
Abstract
本申请适用于媒体传输技术领域,提供了一种文件夹处理方法、移动终端及存储介质,所述方法包括:在移动终端与终端设备建立连接后,若监测到所述终端设备发出的对所述移动终端存储空间内的文件夹的处理指令,则获取与所述处理指令对应的待处理文件夹的信息,基于与所述处理指令对应的待处理文件夹的信息,对与所述处理指令对应的待处理文件夹以及所述待处理文件夹内的文件进行处理,在所述待处理文件夹以及所述待处理文件夹内的文件处理完成后,将处理结果发送给所述终端设备,在终端设备一侧对移动终端存储空间内的文件夹进行处理时,通过本申请可以降低终端设备和移动终端之间信息交互的次数,从而提高文件夹处理的成功率。
The present application is applicable to the technical field of media transmission, and provides a folder processing method, a mobile terminal and a storage medium. the processing instruction of the folder in the storage space of the mobile terminal, then obtain the information of the to-be-processed folder corresponding to the processing instruction, and based on the information of the to-be-processed folder corresponding to the processing instruction, The corresponding to-be-processed folder and the files in the to-be-processed folder are processed, and after the to-be-processed folder and the files in the to-be-processed folder are processed, the processing result is sent to the terminal device, When the folder in the storage space of the mobile terminal is processed on the side of the terminal device, the application can reduce the number of information exchanges between the terminal device and the mobile terminal, thereby improving the success rate of folder processing.
Description
技术领域technical field
本申请属于媒体传输技术领域,尤其涉及一种文件夹处理方法、移动终端及计算机可读存储介质。The present application belongs to the technical field of media transmission, and in particular, relates to a folder processing method, a mobile terminal and a computer-readable storage medium.
背景技术Background technique
媒体传输协议(Media Transfer Protocol,MTP)是一个基于图片传输协议(PTP)的自定义扩展协议。在主设备(例如终端设备)与从设备(例如移动终端)建立MTP连接后,所述主设备可以对所述从设备的存储空间中的文件或文件夹进行处理,例如,删除、剪切、复制等处理。The Media Transfer Protocol (MTP) is a custom extension protocol based on the Picture Transfer Protocol (PTP). After a master device (such as a terminal device) establishes an MTP connection with a slave device (such as a mobile terminal), the master device can process files or folders in the storage space of the slave device, for example, delete, cut, Copy and so on.
目前,所述主设备和所述从设备基于MTP连接时,在所述主设备一侧,对所述从设备的存储空间中的文件夹进行相关处理时,所述主设备和所述从设备之间需要根据文件夹内存储的文件数量进行频繁的信息交互,才能够实现文件夹的相关处理,这种方式很容易出现文件夹处理失败或文件数据丢失的问题。At present, when the master device and the slave device are connected based on MTP, when the master device performs related processing on a folder in the storage space of the slave device, the master device and the slave device It is necessary to carry out frequent information exchange according to the number of files stored in the folder to realize the related processing of the folder. This method is prone to the problem of folder processing failure or file data loss.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请实施例提供了一种文件夹处理方法、移动终端及计算机可读存储介质,以解决目前在终端设备一侧对移动终端存储空间的文件夹进行处理时经常失败或者数据丢失的问题。In view of this, the embodiments of the present application provide a folder processing method, a mobile terminal, and a computer-readable storage medium, so as to solve the problem that the current processing of the folder in the storage space of the mobile terminal on the side of the terminal device often fails or data is lost. The problem.
本申请实施例的第一方面提供了一种文件夹处理方法,包括:A first aspect of the embodiments of the present application provides a folder processing method, including:
在移动终端与终端设备建立连接后,监测所述终端设备发出的对所述移动终端存储空间内的文件夹的处理指令;After the connection between the mobile terminal and the terminal device is established, monitoring the processing instruction sent by the terminal device to the folder in the storage space of the mobile terminal;
若监测到所述终端设备发出的对所述移动终端存储空间内的文件夹的处理指令,则获取与所述处理指令对应的待处理文件夹的信息;If monitoring the processing instruction of the folder in the storage space of the mobile terminal sent by the terminal device, obtain the information of the to-be-processed folder corresponding to the processing instruction;
基于与所述处理指令对应的待处理文件夹的信息,对与所述处理指令对应的待处理文件夹以及所述待处理文件夹内的文件进行处理;processing the to-be-processed folder corresponding to the processing instruction and the files in the to-be-processed folder based on the information of the to-be-processed folder corresponding to the processing instruction;
在所述待处理文件夹以及所述待处理文件夹内的文件处理完成后,将处理结果发送给所述终端设备,所述处理结果用于指示所述终端设备更新虚拟媒体库,所述虚拟媒体库为所述移动终端上的媒体库映射到所述终端设备上的虚拟库。After the processing of the to-be-processed folder and the files in the to-be-processed folder is completed, the processing result is sent to the terminal device, and the processing result is used to instruct the terminal device to update the virtual media library. The media library is a virtual library mapped from the media library on the mobile terminal to the terminal device.
本申请实施例的第二方面提供了一种移动终端,包括:A second aspect of the embodiments of the present application provides a mobile terminal, including:
监测单元,用于在移动终端与终端设备建立连接后,监测所述终端设备发出的对所述移动终端存储空间内的文件夹的处理指令;a monitoring unit, configured to monitor, after the connection between the mobile terminal and the terminal device is established, the processing instruction sent by the terminal device to the folder in the storage space of the mobile terminal;
信息获取单元,用于若监测到所述终端设备发出的对所述移动终端存储空间内的文件夹的处理指令,则获取与所述处理指令对应的待处理文件夹的信息;an information acquisition unit, configured to acquire the information of the to-be-processed folder corresponding to the processing instruction if the processing instruction for the folder in the storage space of the mobile terminal sent by the terminal device is monitored;
处理单元,用于基于与所述处理指令对应的待处理文件夹的信息,对与所述处理指令对应的待处理文件夹以及所述待处理文件夹内的文件进行处理;a processing unit, configured to process the to-be-processed folder corresponding to the processing instruction and the files in the to-be-processed folder based on the information of the to-be-processed folder corresponding to the processing instruction;
交互单元,用于在所述待处理文件夹以及所述待处理文件夹内的文件处理完成后,将处理结果发送给所述终端设备,所述处理结果用于指示所述终端设备更新虚拟媒体库,所述虚拟媒体库为所述移动终端上的媒体库映射到所述终端设备上的虚拟库。an interaction unit, configured to send a processing result to the terminal device after the to-be-processed folder and the files in the to-be-processed folder are processed, and the processing result is used to instruct the terminal device to update the virtual media library, where the virtual media library is a virtual library mapped from the media library on the mobile terminal to the terminal device.
本申请实施例的第三方面提供了一种移动终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现本申请实施例第一方面提供的所述方法的步骤。A third aspect of the embodiments of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program The steps of the method provided in the first aspect of the embodiments of the present application are implemented.
本申请实施例的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被一个或多个处理器执行时实现本申请实施例第一方面提供的所述方法的步骤。A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by one or more processors, implements the first embodiment of the present application Aspects provide the steps of the method.
本申请实施例的第五方面提供了一种计算机程序产品,所述计算机程序产品包括计算机程序,所述计算机程序被一个或多个处理器执行时实现本申请实施例第一方面提供的所述方法的步骤。A fifth aspect of the embodiments of the present application provides a computer program product, the computer program product includes a computer program, and when the computer program is executed by one or more processors, the above-mentioned methods provided in the first aspect of the embodiments of the present application are implemented. steps of the method.
本申请实施例提供了一种文件夹处理方法,应用于移动终端,本申请实施例提供的文件夹处理方法中,终端设备一侧可以发出对文件夹的处理指令,移动终端一侧根据终端设备一侧发出的对文件夹的处理指令,对处理指令对应的待处理文件夹进行相关的处理,在所述待处理文件夹以及所述待处理文件夹内的文件全部处理完成后,将处理结果发送给所述终端设备,由于在对文件夹的处理过程中,只有移动终端一侧在对待处理文件夹内的所有文件处理完成后,才会将处理结果发送给终端设备,这样,避免了终端设备和移动终端之间频繁的信息交互,能够避免数据传输中断或者数据丢失。The embodiment of the present application provides a folder processing method, which is applied to a mobile terminal. In the folder processing method provided by the embodiment of the present application, the terminal device side can issue a processing instruction for the folder, and the mobile terminal side can send a folder processing instruction according to the terminal device. The processing instruction for the folder issued by one side, perform related processing on the to-be-processed folder corresponding to the processing instruction, after the to-be-processed folder and the files in the to-be-processed folder are all processed, the processing result Send to the terminal device, because in the process of processing the folder, only the mobile terminal side will send the processing result to the terminal device after all files in the to-be-processed folder are processed, so that the terminal device can be avoided. Frequent information exchange between devices and mobile terminals can avoid data transmission interruption or data loss.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only for the present application. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是本申请实施例提供的一种文件夹处理方法的实现流程示意图;FIG. 1 is a schematic diagram of an implementation flowchart of a folder processing method provided by an embodiment of the present application;
图2是本申请实施例提供的另一种文件夹处理方法的实现流程示意图;FIG. 2 is a schematic diagram of an implementation flow of another folder processing method provided by an embodiment of the present application;
图3是本申请实施例提供的一种移动终端的示意框图;3 is a schematic block diagram of a mobile terminal provided by an embodiment of the present application;
图4是本申请实施例提供的另一种移动终端的示意框图。FIG. 4 is a schematic block diagram of another mobile terminal provided by an embodiment of the present application.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are set forth in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described feature, integer, step, operation, element and/or component, but does not exclude one or more other features , whole, step, operation, element, component and/or the presence or addition of a collection thereof.
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the specification of the application herein is for the purpose of describing particular embodiments only and is not intended to limit the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural unless the context clearly dictates otherwise.
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items .
如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be contextually interpreted as "when" or "once" or "in response to determining" or "in response to detecting" . Similarly, the phrases "if it is determined" or "if the [described condition or event] is detected" may be interpreted, depending on the context, to mean "once it is determined" or "in response to the determination" or "once the [described condition or event] is detected. ]" or "in response to detection of the [described condition or event]".
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions described in the present application, the following specific embodiments are used for description.
图1是本申请实施例提供的一种文件夹处理方法的实现流程示意图,如图所示,该方法可以包括以下步骤:FIG. 1 is a schematic diagram of an implementation flowchart of a folder processing method provided by an embodiment of the present application. As shown in the figure, the method may include the following steps:
步骤S101,在移动终端与终端设备建立连接后,监测所述终端设备发出的对所述移动终端存储空间内的文件夹的处理指令。Step S101, after the mobile terminal establishes a connection with the terminal device, monitor the processing instruction sent by the terminal device to the folder in the storage space of the mobile terminal.
在本申请实施例中,移动终端和终端设备可以基于通用串行总线(UniversalSerial Bus,USB)建立连接,在建立连接后,可以基于媒体传输协议(MTP)进行信息交互,例如,在终端设备一侧完成对移动终端存储空间内的文件夹的相关处理,可以是删除处理、剪切处理、复制处理等。移动终端一侧可以监测终端设备发送给移动终端的信息,例如,监测对移动终端存储空间内的文件夹的处理指令。In this embodiment of the present application, the mobile terminal and the terminal device may establish a connection based on a Universal Serial Bus (Universal Serial Bus, USB), and after the connection is established, information exchange may be performed based on the Media Transfer Protocol (MTP). The side completes the relevant processing on the folder in the storage space of the mobile terminal, which may be deletion processing, cutting processing, copying processing, and the like. The mobile terminal side can monitor the information sent by the terminal device to the mobile terminal, for example, monitor the processing instruction for the folder in the storage space of the mobile terminal.
作为本申请又一实施例,所述在移动终端与终端设备建立连接后,监测所述终端设备发出的对所述移动终端存储空间内的文件夹的处理指令包括:As yet another embodiment of the present application, after the mobile terminal establishes a connection with the terminal device, monitoring the processing instruction sent by the terminal device to the folder in the storage space of the mobile terminal includes:
在移动终端与终端设备通过USB接口建立连接后,监测所述终端设备基于媒体传输协议发出的对所述移动终端存储空间内的文件夹的复制指令或剪切指令。After the connection between the mobile terminal and the terminal device is established through the USB interface, the copy instruction or cut instruction of the folder in the storage space of the mobile terminal sent by the terminal device based on the media transmission protocol is monitored.
在本申请实施例中,通过USB接口建立连接,可以是UMS模式,也可以是MTP模式,UMS表示大容量存储设备,MTP表示媒体传输协议,本申请实施例用于MTP模式,监测的处理指令为终端设备基于媒体传输协议发出的对移动终端存储空间内的文件夹的处理指令,当然,处理指令可以是删除指令、复制指令、剪切指令等。In the embodiment of the present application, the connection is established through the USB interface, which may be in the UMS mode or the MTP mode, where UMS represents a mass storage device, and MTP represents a media transmission protocol. It is a processing instruction for the folder in the storage space of the mobile terminal sent by the terminal device based on the media transmission protocol. Of course, the processing instruction may be a deletion instruction, a copy instruction, a cut instruction, and the like.
需要说明的是,本申请实施例中以文件夹为例进行说明,实际应用中,也可以在终端设备一侧对移动终端存储空间内存储的文件进行相关的处理,可参照后续对文件夹的处理的相关说明,在此不再赘述。It should be noted that, in the embodiments of this application, a folder is used as an example for description. In practical applications, the files stored in the storage space of the mobile terminal may also be processed on the side of the terminal device. Refer to the subsequent description of the folder. The related description of the processing will not be repeated here.
步骤S102,若监测到所述终端设备发出的对所述移动终端存储空间内的文件夹的处理指令,则获取与所述处理指令对应的待处理文件夹的信息。Step S102, if a processing instruction for a folder in the storage space of the mobile terminal sent by the terminal device is monitored, information of the to-be-processed folder corresponding to the processing instruction is acquired.
在本申请实施例中,当监测到终端设备发出的对移动终端存储空间内的文件夹的处理指令时,需要从终端设备一侧获取处理指令对应的待处理文件夹的信息,在终端设备和移动终端之间建立基于MTP协议的连接后,移动终端一侧存储空间中存储的文件可以形成媒体库,同时,在终端设备一侧,也会显示移动终端的存储空间中存储的文件,只是,在终端设备一侧显示的为虚拟媒体库,用户在终端设备一侧显示的虚拟媒体库上进行操作,例如,选中虚拟文件夹A,对虚拟文件夹A进行删除操作,当用户在终端设备一侧对虚拟媒体库中的虚拟文件夹A进行删除操作时,会向移动终端发送处理指令,移动终端就会监测到所述终端设备发出的对所述移动终端存储空间内的文件夹A的删除指令,此时,移动终端一侧获取与所述删除指令对应的待处理文件夹A的信息。例如,待处理文件夹A的路径信息。In the embodiment of the present application, when monitoring a processing instruction for a folder in the storage space of the mobile terminal sent by the terminal device, it is necessary to obtain the information of the to-be-processed folder corresponding to the processing instruction from the terminal device. After the connection based on the MTP protocol is established between the mobile terminals, the files stored in the storage space of the mobile terminal can form a media library, and at the same time, the files stored in the storage space of the mobile terminal will also be displayed on the side of the terminal device. The virtual media library is displayed on the side of the terminal device. The user operates on the virtual media library displayed on the side of the terminal device. For example, select virtual folder A and delete the virtual folder A. When the side deletes the virtual folder A in the virtual media library, it will send a processing instruction to the mobile terminal, and the mobile terminal will monitor the deletion of the folder A in the storage space of the mobile terminal sent by the terminal device. instruction, at this time, the mobile terminal side obtains the information of the to-be-processed folder A corresponding to the deletion instruction. For example, the path information of the to-be-processed folder A.
步骤S103,基于与所述处理指令对应的待处理文件夹的信息,对与所述处理指令对应的待处理文件夹以及所述待处理文件夹内的文件进行处理。Step S103, based on the information of the to-be-processed folder corresponding to the processing instruction, process the to-be-processed folder corresponding to the processing instruction and the files in the to-be-processed folder.
在本申请实施例中,在对待处理文件夹A进行删除处理时,并不是对文件夹A本身进行删除处理,而是,对文件夹A以及文件夹A内存储的所有文件进行删除处理。例如,终端设备一侧用户发出的为对虚拟媒体库(移动终端上的媒体库映射到终端设备上的虚拟库)中待处理文件夹A删除的指令,相应的,移动终端一侧需要对实际的媒体库中存储待处理文件夹A以及待处理文件夹A内的所有文件或文件夹进行删除处理。即,用户在终端设备一侧通过虚拟媒体库发出处理指令,移动终端一侧对真实的媒体库中的文件进行相关的处理。In the embodiment of the present application, when the to-be-processed folder A is deleted, the folder A itself is not deleted, but the folder A and all files stored in the folder A are deleted. For example, the user on the terminal device side sends an instruction to delete the to-be-processed folder A in the virtual media library (the media library on the mobile terminal is mapped to the virtual library on the terminal device). Accordingly, the mobile terminal side needs to The to-be-processed folder A and all files or folders in the to-be-processed folder A are stored in the media library of the to-be-processed folder A for deletion processing. That is, the user sends a processing instruction through the virtual media library on the terminal device side, and the mobile terminal side performs related processing on the files in the real media library.
步骤S104,在所述待处理文件夹以及所述待处理文件夹内的文件处理完成后,将处理结果发送给所述终端设备,所述处理结果用于指示所述终端设备更新虚拟媒体库,所述虚拟媒体库为所述移动终端上的媒体库映射到所述终端设备上的虚拟库。Step S104, after the to-be-processed folder and the files in the to-be-processed folder are processed, send a processing result to the terminal device, where the processing result is used to instruct the terminal device to update the virtual media library, The virtual media library is a virtual library mapped from the media library on the mobile terminal to the terminal device.
在本申请实施例中,移动终端一侧在对待处理文件夹内的所有文件或文件夹删除、或者剪切、或者复制完成后,才会将处理结果发送给所述终端设备,终端设备一侧会更新虚拟媒体库。这样,移动终端一侧的媒体库和终端设备一侧的虚拟媒体库仍然是完全对应的。In this embodiment of the present application, the mobile terminal sends the processing result to the terminal device only after all files or folders in the folder to be processed are deleted, cut, or copied. The virtual media library is updated. In this way, the media library on the mobile terminal side and the virtual media library on the terminal device side are still completely corresponding.
需要说明一点,本申请实施例中的删除操作表示对待处理的文件夹以及该文件夹内的所有文件进行删除处理,本申请实施例中的复制操作表示对待处理文件夹以及该文件夹内的所有文件进行复制后,还需要将复制后的待处理文件夹以及该文件夹内的所有文件粘贴到目标文件夹(例如,桌面、根目录、桌面或根目录下的文件夹)。本申请实施例中的剪切操作表示对待处理文件夹以及该文件夹内的所有文件进行剪切后,还需要将剪切后的待处理文件夹以及该文件夹内的所有文件粘贴到目标文件夹,同时需要删除原路径下的待处理文件夹。It should be noted that the delete operation in the embodiment of the present application means that the folder to be processed and all files in the folder are deleted, and the copy operation in the embodiment of the present application means the folder to be processed and all the files in the folder. After the files are copied, the copied to-be-processed folder and all files in the folder also need to be pasted to the target folder (for example, the desktop, the root directory, the desktop or a folder under the root directory). The cut operation in this embodiment of the present application means that after the folder to be processed and all files in the folder are cut, the cut folder to be processed and all files in the folder need to be pasted to the target file folder, and you need to delete the to-be-processed folder in the original path.
本申请实施例提供的文件夹处理方法中,终端设备一侧可以发出对文件夹的处理指令,移动终端一侧根据终端设备一侧发出的对文件夹的处理指令,对处理指令对应的待处理文件夹进行相关的处理,在所述待处理文件夹以及所述待处理文件夹内的文件全部处理完成后,将处理结果发送给所述终端设备,由于在对文件夹的处理过程中,只有移动终端一侧在对待处理文件夹内的所有文件处理完成后,才会将处理结果发送给终端设备,这样,避免了终端设备和移动终端之间频繁的信息交互,能够避免数据传输中断或者数据丢失。In the folder processing method provided by the embodiment of the present application, the terminal device side may issue a processing instruction for the folder, and the mobile terminal side, according to the processing instruction for the folder issued by the terminal device side, performs the processing instruction corresponding to the pending processing instruction. The folder performs related processing. After the to-be-processed folder and the files in the to-be-processed folder are all processed, the processing result is sent to the terminal device. Because during the processing of the folder, only The mobile terminal will only send the processing results to the terminal device after all files in the to-be-processed folder are processed. In this way, frequent information exchanges between the terminal device and the mobile terminal are avoided, and data transmission interruption or data transmission can be avoided. lost.
图2是本申请实施例提供的另一种文件夹处理方法的实现流程示意图,如图所示,该方法可以包括以下步骤:FIG. 2 is a schematic flowchart of the implementation of another folder processing method provided by an embodiment of the present application. As shown in the figure, the method may include the following steps:
步骤S201,在移动终端与终端设备建立连接后,获取所述终端设备的操作系统的版本。Step S201, after the mobile terminal establishes a connection with the terminal device, obtain the version of the operating system of the terminal device.
步骤S202,若所述终端设备的操作系统的版本为预设版本,则监测所述终端设备发出的对移动终端存储空间内的文件夹的处理指令。Step S202, if the version of the operating system of the terminal device is a preset version, monitor the processing instruction sent by the terminal device to the folder in the storage space of the mobile terminal.
在本申请实施例中,由于MTP协议表示的为一种协议,在实际应用中,基于MTP协议可以产生不同的处理流程,因此,就会出现终端设备的操作系统与MTP协议的处理流程之间存在兼容的问题,所以,为了能够使得建立连接的终端设备和移动终端之间能够基于MTP协议进行文件夹的处理,可以在移动终端一侧获取终端设备的操作系统。根据操作系统确定相应的处理流程,可以将能够兼容本申请实施例的操作系统设置为预设版本的操作系统,若所述终端设备的操作系统的版本为预设版本,则可以按照本申请实施例提供的处理流程,开始监测所述终端设备发出的对移动终端存储空间内的文件夹的处理指令。In the embodiment of the present application, since the MTP protocol represents a protocol, in practical applications, different processing flows can be generated based on the MTP protocol. Therefore, there will be a gap between the operating system of the terminal device and the processing flow of the MTP protocol. There is a compatibility problem. Therefore, in order to enable folder processing based on the MTP protocol between the terminal device that establishes the connection and the mobile terminal, the operating system of the terminal device can be obtained on the mobile terminal side. The corresponding processing flow is determined according to the operating system, and the operating system compatible with the embodiments of the present application may be set as the operating system of the preset version. If the version of the operating system of the terminal device is the preset version, the operating system may be implemented according to the present application. The processing flow provided in the example starts to monitor the processing instruction sent by the terminal device to the folder in the storage space of the mobile terminal.
步骤S203,若监测到所述终端设备发出的对所述移动终端存储空间内的文件夹的处理指令,基于媒体传输协议,从所述终端设备获取与所述处理指令对应的待处理文件夹句柄、目标文件夹路径句柄。Step S203, if the processing instruction for the folder in the storage space of the mobile terminal sent by the terminal device is monitored, based on the media transfer protocol, obtain the handle of the to-be-processed folder corresponding to the processing instruction from the terminal device , the target folder path handle.
在本申请实施例中,当处理指令为删除指令时,移动终端一侧可以基于媒体传输协议,从终端设备一侧获取所述处理指令对应的待处理文件夹句柄。当处理指令为剪切或复制指令时,需要基于媒体传输协议,从终端设备一侧获取与所述处理指令对应的待处理文件夹句柄、目标文件夹路径句柄。In the embodiment of the present application, when the processing instruction is a deletion instruction, the mobile terminal side may obtain the to-be-processed folder handle corresponding to the processing instruction from the terminal device side based on the media transmission protocol. When the processing instruction is a cut or copy instruction, it is necessary to obtain the to-be-processed folder handle and the target folder path handle corresponding to the processing instruction from the terminal device side based on the media transmission protocol.
在文件I/O中,要从一个文件读取数据,通常要调用操作系统函数并传送文件名,并选一个到该文件的路径打开文件,该函数取回一个顺序号,即文件句柄。该文件句柄对于打开的文件是唯一的识别依据。要从文件中读取一块数据,需要调用函数ReadFile,并将文件句柄在内存中的地址和要拷贝的字节数传送给操作系统。当完成任务后,再通过调用系统函数来关闭该文件。In file I/O, to read data from a file, you usually call an operating system function and pass the file name, and choose a path to the file to open the file. The function retrieves a sequence number, the file handle. The file handle is uniquely identifying the open file. To read a piece of data from a file, you need to call the function ReadFile, and transfer the address of the file handle in memory and the number of bytes to be copied to the operating system. When the task is completed, the file is closed by calling the system function.
目标文件夹表示待复制或者待剪切到的文件夹,例如,将文件夹B复制到文件夹C中,那么文件夹C就表示目标文件夹。The target folder represents the folder to be copied or cut to. For example, if folder B is copied to folder C, then folder C represents the target folder.
步骤S204,通过待处理文件夹句柄、目标文件夹路径句柄,从移动终端的媒体库查询获得待处理文件夹的信息和目标文件夹的信息,所述待处理文件夹的信息包括:待处理文件夹的名称、待处理文件夹的路径、待处理文件夹中存储的文件的名称、待处理文件夹中存储的文件的路径,所述目标文件夹的信息包括:目标文件夹的路径。Step S204, through the handle of the folder to be processed and the path handle of the target folder, query and obtain the information of the to-be-processed folder and the information of the target folder from the media library of the mobile terminal, and the information of the to-be-processed folder includes: the to-be-processed file The name of the folder, the path of the to-be-processed folder, the name of the file stored in the to-be-processed folder, and the path of the file stored in the to-be-processed folder, and the information of the target folder includes: the path of the target folder.
在本申请实施例中,若处理指令为删除指令,则需要根据待处理文件夹句柄获得待处理文件夹的名称、待处理文件夹的路径、待处理文件夹中存储的文件的名称、待处理文件夹中存储的文件的路径;若处理指令为剪切或者复制指令,还需要在上述获得待处理文件夹的相关信息的基础上再根据目标文件夹路径句柄获得目标文件夹的路径。In this embodiment of the present application, if the processing instruction is a deletion instruction, the name of the to-be-processed folder, the path of the to-be-processed folder, the name of the file stored in the to-be-processed folder, the to-be-processed folder's handle, the The path of the file stored in the folder; if the processing instruction is a cut or copy instruction, it is also necessary to obtain the path of the target folder according to the path handle of the target folder on the basis of obtaining the relevant information of the to-be-processed folder above.
待处理文件夹D内可能存储了多级文件,例如,待处理文件夹D中存储了文件a、文件夹D1、文件夹D2、文件夹D1中存储了文件b和文件c,文件夹D2中存储了文件d,那么待处理文件夹的名称为待处理文件夹D,待处理文件夹D的路径,待处理文件夹中存储的文件的名称a、b、c、d,待处理文件夹中存储的文件的路径(待处理文件中存储的文件的路径表明了文件夹D中存储的各级文件或者文件夹的路径)。There may be multiple levels of files stored in the to-be-processed folder D. For example, the to-be-processed folder D stores the file a, the folder D1, the folder D2, the folder D1 stores the file b and the file c, and the folder D2 stores the file. If file d is stored, the name of the folder to be processed is folder D to be processed, the path of folder D to be processed, the names of the files a, b, c, and d stored in the folder to be processed, the folder to be processed The path of the stored file (the path of the file stored in the to-be-processed file indicates the path of all levels of files or folders stored in the folder D).
步骤S205,基于与所述处理指令对应的待处理文件夹的信息,对与所述处理指令对应的待处理文件夹以及所述待处理文件夹内的文件进行处理。Step S205 , based on the information of the to-be-processed folder corresponding to the processing instruction, process the to-be-processed folder corresponding to the processing instruction and the files in the to-be-processed folder.
在本申请实施例中,当所述处理指令为复制指令时,所述基于与所述处理指令对应的待处理文件夹的信息,对与所述处理指令对应的待处理文件夹以及所述待处理文件夹内的文件进行处理包括:In the embodiment of the present application, when the processing instruction is a copy instruction, based on the information of the to-be-processed folder corresponding to the processing instruction, the to-be-processed folder corresponding to the processing instruction and the to-be-processed folder Processing files within a folder for processing includes:
基于所述目标文件夹的路径,创建与待处理文件夹的名称相同的目标文件夹,并基于所述待处理文件夹中存储的文件的路径,在目标文件夹中存储待处理文件夹中存储的文件;Based on the path of the target folder, a target folder with the same name as the folder to be processed is created, and based on the path of the file stored in the folder to be processed, the folder to be processed is stored in the target folder. document;
当所述处理指令为剪切指令时,所述基于与所述处理指令对应的待处理文件夹的信息,对与所述处理指令对应的待处理文件夹以及所述待处理文件夹内的文件进行处理包括:When the processing instruction is a cut instruction, based on the information of the to-be-processed folder corresponding to the processing instruction, the to-be-processed folder corresponding to the processing instruction and the files in the to-be-processed folder are processed. Processing includes:
基于所述目标文件夹的路径,创建与待处理文件夹的名称相同的目标文件夹,并基于所述待处理文件夹中存储的文件的路径,在目标文件夹中存储待处理文件夹中存储的文件;Based on the path of the target folder, a target folder with the same name as the folder to be processed is created, and based on the path of the file stored in the folder to be processed, the folder to be processed is stored in the target folder. document;
基于待处理文件夹中存储的文件的路径,在待处理文件夹中删除存储成功的文件;Based on the path of the file stored in the to-be-processed folder, delete the successfully stored file in the to-be-processed folder;
在待处理文件夹中存储的所有文件在目标文件夹中存储成功后,将待处理文件夹删除。After all files stored in the to-be-processed folder are successfully stored in the target folder, the to-be-processed folder is deleted.
当所述处理指令为删除指令时,所述基于与所述处理指令对应的待处理文件夹的信息,对与所述处理指令对应的待处理文件夹以及所述待处理文件夹内的文件进行处理包括:When the processing instruction is a deletion instruction, the to-be-processed folder corresponding to the processing instruction and the files in the to-be-processed folder are processed based on the information of the to-be-processed folder corresponding to the processing instruction. Processing includes:
基于待处理文件夹中存储的文件的路径,在待处理文件夹中删除文件;Delete files in the pending folder based on the path of the file stored in the pending folder;
在待处理文件夹中存储的所有文件删除成功后,将待处理文件夹删除。After all files stored in the to-be-processed folder are successfully deleted, the to-be-processed folder is deleted.
步骤S206,在所述待处理文件夹以及所述待处理文件夹内的文件处理完成后,将处理结果更新到所述移动终端的媒体库中,并将处理结果发送给所述终端设备,所述处理结果用于指示所述终端设备更新虚拟媒体库,所述虚拟媒体库为所述移动终端上的媒体库映射到所述终端设备上的虚拟库。Step S206, after the processing of the to-be-processed folder and the files in the to-be-processed folder is completed, update the processing result to the media library of the mobile terminal, and send the processing result to the terminal device. The processing result is used to instruct the terminal device to update a virtual media library, where the virtual media library is a media library on the mobile terminal mapped to a virtual library on the terminal device.
在本申请实施例中,在所述待处理文件夹以及所述待处理文件夹内的文件处理完成后,将处理结果更新到所述移动终端的媒体库中,并将处理结果发送给所述终端设备,移动终端的媒体库为移动终端存储空间中存储的文件的真实体现,终端设备的虚拟媒体库为移动终端的媒体库映射到终端设备一侧的虚拟库,即终端设备一侧显示的移动终端中存储的文件并不是真实的文件,而是移动终端映射在终端设备上的虚拟的文件。为了保证终端设备显示的虚拟库能够与移动终端一侧的媒体库真实对应,需要在所述待处理文件夹以及所述待处理文件夹内的文件处理完成后,将处理结果更新到所述移动终端的媒体库中,同时,将处理结果发送给所述终端设备,这样,终端设备一侧显示的虚拟媒体库与移动终端一侧存储的文件时完全对应的。用户可以在终端设备的虚拟媒体库中进行相关操作,从而移动终端一侧进行真实的相关操作,移动终端在进行了真实的相关操作后,在将操作结果返回给终端设备,终端设备一侧的用户就可以在终端设备一侧随时对移动终端存储空间内的文件进行相关处理。In the embodiment of the present application, after the to-be-processed folder and the files in the to-be-processed folder are processed, the processing result is updated to the media library of the mobile terminal, and the processing result is sent to the Terminal equipment, the media library of the mobile terminal is the real embodiment of the files stored in the storage space of the mobile terminal, and the virtual media library of the terminal equipment is the virtual library that the media library of the mobile terminal is mapped to the side of the terminal equipment, that is, the virtual library displayed on the side of the terminal equipment The files stored in the mobile terminal are not real files, but virtual files mapped by the mobile terminal on the terminal device. In order to ensure that the virtual library displayed by the terminal device can truly correspond to the media library on the mobile terminal side, it is necessary to update the processing result to the mobile terminal after the to-be-processed folder and the files in the to-be-processed folder are processed. In the media library of the terminal, at the same time, the processing result is sent to the terminal device, so that the virtual media library displayed on the side of the terminal device completely corresponds to the files stored on the side of the mobile terminal. The user can perform related operations in the virtual media library of the terminal device, so that the mobile terminal side performs real related operations. After the mobile terminal performs the real related operations, the operation result is returned to the terminal device. The user can then perform related processing on the files in the storage space of the mobile terminal at any time on the side of the terminal device.
另外,还需要说明的一点,本申请实施例主要从移动终端一侧进行描述,移动终端在从终端设备获取信息时,或者将信息发送给终端设备时,都是移动终端一侧的驱动层实现的,而移动终端一侧对文件夹的处理是通过移动终端一侧的框架层实现。In addition, it should be noted that the embodiments of this application are mainly described from the mobile terminal side. When the mobile terminal obtains information from the terminal device or sends information to the terminal device, it is implemented by the driver layer on the mobile terminal side. , and the processing of the folder on the mobile terminal side is implemented through the framework layer on the mobile terminal side.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
图3是本申请一实施例提供的移动终端的示意框图,为了便于说明,仅示出与本申请实施例相关的部分。FIG. 3 is a schematic block diagram of a mobile terminal provided by an embodiment of the present application. For convenience of description, only parts related to the embodiment of the present application are shown.
该移动终端3可以是内置于手机、平板电脑、笔记本等移动终端内的软件单元、硬件单元或者软硬结合的单元,也可以作为独立的挂件集成到所述手机、平板电脑、笔记本等移动终端中。The
所述移动终端3包括:The
监测单元31,用于在移动终端与终端设备建立连接后,监测所述终端设备发出的对所述移动终端存储空间内的文件夹的处理指令;a
信息获取单元32,用于若监测到所述终端设备发出的对所述移动终端存储空间内的文件夹的处理指令,则获取与所述处理指令对应的待处理文件夹的信息;The
处理单元33,用于基于与所述处理指令对应的待处理文件夹的信息,对与所述处理指令对应的待处理文件夹以及所述待处理文件夹内的文件进行处理;a
交互单元34,用于在所述待处理文件夹以及所述待处理文件夹内的文件处理完成后,将处理结果发送给所述终端设备,所述处理结果用于指示所述终端设备更新虚拟媒体库,所述虚拟媒体库为所述移动终端上的媒体库映射到所述终端设备上的虚拟库。The
可选的,所述移动终端3还包括:Optionally, the
更新单元35,用于在所述待处理文件夹以及所述待处理文件夹内的文件处理完成后,将处理结果更新到所述移动终端的媒体库中。The updating
可选的,所述监测单元31还用于:Optionally, the
在移动终端与终端设备通过USB接口建立连接后,监测所述终端设备基于媒体传输协议发出的对所述移动终端存储空间内的文件夹的复制指令或剪切指令。After the connection between the mobile terminal and the terminal device is established through the USB interface, the copy instruction or cut instruction of the folder in the storage space of the mobile terminal sent by the terminal device based on the media transmission protocol is monitored.
可选的,所述信息获取单元32还用于:Optionally, the
获取与所述处理指令对应的待处理文件夹的信息和目标文件夹的信息,所述待处理文件夹的信息包括:待处理文件夹的名称、待处理文件夹的路径、待处理文件夹中存储的文件的名称、待处理文件夹中存储的文件的路径,所述目标文件夹的信息包括:目标文件夹的路径。Obtain the information of the folder to be processed and the information of the target folder corresponding to the processing instruction, where the information of the folder to be processed includes: the name of the folder to be processed, the path of the folder to be processed, and the information of the folder to be processed. The name of the stored file, the path of the file stored in the to-be-processed folder, and the information of the target folder includes: the path of the target folder.
可选的,所述信息获取单元32包括:Optionally, the
句柄获取模块321,用于基于媒体传输协议,从所述终端设备获取与所述处理指令对应的待处理文件夹句柄、目标文件夹路径句柄;A
查询模块322,用于通过待处理文件夹句柄、目标文件夹路径句柄,从移动终端的媒体库查询获得待处理文件夹的信息和目标文件夹的信息。The
可选的,当所述处理指令为复制指令时,所述处理单元33还用于:Optionally, when the processing instruction is a copy instruction, the
基于所述目标文件夹的路径,创建与待处理文件夹的名称相同的目标文件夹,并基于所述待处理文件夹中存储的文件的路径,在目标文件夹中存储待处理文件夹中存储的文件;Based on the path of the target folder, a target folder with the same name as the folder to be processed is created, and based on the path of the file stored in the folder to be processed, the folder to be processed is stored in the target folder. document;
可选的,当所述处理指令为剪切指令时,所述处理单元33还用于:Optionally, when the processing instruction is a cutting instruction, the
基于所述目标文件夹的路径,创建与待处理文件夹的名称相同的目标文件夹,并基于所述待处理文件夹中存储的文件的路径,在目标文件夹中存储待处理文件夹中存储的文件;Based on the path of the target folder, a target folder with the same name as the folder to be processed is created, and based on the path of the file stored in the folder to be processed, the folder to be processed is stored in the target folder. document;
基于待处理文件夹中存储的文件的路径,在待处理文件夹中删除存储成功的文件;Based on the path of the file stored in the to-be-processed folder, delete the successfully stored file in the to-be-processed folder;
在待处理文件夹中存储的所有文件在目标文件夹中存储成功后,将待处理文件夹删除。After all files stored in the to-be-processed folder are successfully stored in the target folder, the to-be-processed folder is deleted.
可选的,所述监测单元31包括:Optionally, the
版本获取模块311,用于获取所述终端设备的操作系统的版本;a
监测模块312,用于若所述终端设备的操作系统的版本为预设版本,则监测所述终端设备发出的对移动终端存储空间内的文件夹的处理指令。The
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述移动终端的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述移动终端中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. Module completion, that is, dividing the internal structure of the mobile terminal into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above mobile terminal, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
图4是本申请又一实施例提供的移动终端的示意框图。如图4所示,该实施例的移动终端4包括:一个或多个处理器40、存储器41以及存储在所述存储器41中并可在所述处理器40上运行的计算机程序42。所述处理器40执行所述计算机程序42时实现上述各个方法实施例中的步骤,例如图1所示的步骤S101至S104。或者,所述处理器40执行所述计算机程序42时实现上述移动终端实施例中各模块/单元的功能,例如图3所示模块31至34的功能。FIG. 4 is a schematic block diagram of a mobile terminal provided by another embodiment of the present application. As shown in FIG. 4 , the
示例性的,所述计算机程序42可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器41中,并由所述处理器40执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序42在所述移动终端4中的执行过程。例如,所述计算机程序42可以被分割成监测单元、信息获取单元、处理单元、交互单元。Exemplarily, the
监测单元,用于在移动终端与终端设备建立连接后,监测所述终端设备发出的对所述移动终端存储空间内的文件夹的处理指令;a monitoring unit, configured to monitor, after the connection between the mobile terminal and the terminal device is established, the processing instruction sent by the terminal device to the folder in the storage space of the mobile terminal;
信息获取单元,用于若监测到所述终端设备发出的对所述移动终端存储空间内的文件夹的处理指令,则获取与所述处理指令对应的待处理文件夹的信息;an information acquisition unit, configured to acquire the information of the to-be-processed folder corresponding to the processing instruction if the processing instruction for the folder in the storage space of the mobile terminal sent by the terminal device is monitored;
处理单元,用于基于与所述处理指令对应的待处理文件夹的信息,对与所述处理指令对应的待处理文件夹以及所述待处理文件夹内的文件进行处理;a processing unit, configured to process the to-be-processed folder corresponding to the processing instruction and the files in the to-be-processed folder based on the information of the to-be-processed folder corresponding to the processing instruction;
交互单元,用于在所述待处理文件夹以及所述待处理文件夹内的文件处理完成后,将处理结果发送给所述终端设备,所述处理结果用于指示所述终端设备更新虚拟媒体库,所述虚拟媒体库为所述移动终端上的媒体库映射到所述终端设备上的虚拟库。an interaction unit, configured to send a processing result to the terminal device after the to-be-processed folder and the files in the to-be-processed folder are processed, and the processing result is used to instruct the terminal device to update the virtual media library, where the virtual media library is a virtual library mapped from the media library on the mobile terminal to the terminal device.
其它单元或者模块可参照图3所示的实施例中的描述,在此不再赘述。For other units or modules, reference may be made to the description in the embodiment shown in FIG. 3 , and details are not described herein again.
所述移动终端包括但不仅限于处理器40、存储器41。本领域技术人员可以理解,图4仅仅是移动终端4的一个示例,并不构成对移动终端4的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述移动终端还可以包括输入设备、输出设备、网络接入设备、总线等。The mobile terminal includes but is not limited to the
所述处理器40可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The
所述存储器41可以是所述移动终端4的内部存储单元,例如移动终端4的硬盘或内存。所述存储器41也可以是所述移动终端4的外部存储设备,例如所述移动终端4上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器41还可以既包括所述移动终端4的内部存储单元也包括外部存储设备。所述存储器41用于存储所述计算机程序以及所述移动终端所需的其他程序和数据。所述存储器41还可以用于暂时地存储已经输出或者将要输出的数据。The
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的移动终端和方法,可以通过其它的方式实现。例如,以上所描述的移动终端实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed mobile terminal and method may be implemented in other manners. For example, the mobile terminal embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components. May be combined or may be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括是电载波信号和电信信号。The integrated modules/units, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the present application can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable media Excluded are electrical carrier signals and telecommunication signals.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that: it can still be used for the above-mentioned implementations. The technical solutions described in the examples are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the application, and should be included in the within the scope of protection of this application.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811126817.8A CN110019040B (en) | 2018-09-26 | 2018-09-26 | Folder processing method, mobile terminal and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811126817.8A CN110019040B (en) | 2018-09-26 | 2018-09-26 | Folder processing method, mobile terminal and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110019040A CN110019040A (en) | 2019-07-16 |
| CN110019040B true CN110019040B (en) | 2022-04-12 |
Family
ID=67188452
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811126817.8A Active CN110019040B (en) | 2018-09-26 | 2018-09-26 | Folder processing method, mobile terminal and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110019040B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111354050A (en) * | 2020-02-25 | 2020-06-30 | 安徽以萨数据技术有限公司 | Android-based picture compression method and device and storage medium |
| CN114610239A (en) * | 2022-03-14 | 2022-06-10 | 深圳依时货拉拉科技有限公司 | Method and device for operating file in portable memory by mobile terminal |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106649596A (en) * | 2016-11-24 | 2017-05-10 | 歌尔科技有限公司 | Method and device for displaying folder catalogue in intelligent terminal |
| CN107168905A (en) * | 2017-05-11 | 2017-09-15 | 广东欧珀移动通信有限公司 | A kind of document display method, device, storage medium and mobile terminal |
| CN107577822A (en) * | 2017-10-13 | 2018-01-12 | 广东欧珀移动通信有限公司 | A data synchronization method, data synchronization device and mobile terminal |
| CN107609119A (en) * | 2017-09-13 | 2018-01-19 | 广东欧珀移动通信有限公司 | File processing method, mobile terminal, and computer-readable storage medium |
| CN107766488A (en) * | 2017-10-17 | 2018-03-06 | 广东欧珀移动通信有限公司 | A kind of information query method, terminal, computer-readable recording medium |
| CN108268330A (en) * | 2018-01-16 | 2018-07-10 | 深圳市天珑移动技术有限公司 | Document transmission method, mobile terminal and computer readable storage medium |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101490688B1 (en) * | 2008-03-03 | 2015-02-06 | 삼성전자주식회사 | Apparatus for storing and processing contents and method of transmitting object meta information about contents using media transfer protocol from the apparatus |
| KR20130056539A (en) * | 2011-11-22 | 2013-05-30 | 삼성전자주식회사 | Apparatas and method for performing communication with media transfer protocol supported device in a portable terminal |
| CN106991130A (en) * | 2017-03-07 | 2017-07-28 | 广东欧珀移动通信有限公司 | A file processing method, device and intelligent terminal |
| CN107526835B (en) * | 2017-09-06 | 2019-05-24 | Oppo广东移动通信有限公司 | Data connection processing method, data connection processing device and intelligent terminal |
| CN108038112B (en) * | 2017-09-28 | 2020-01-10 | Oppo广东移动通信有限公司 | File processing method, mobile terminal and computer readable storage medium |
-
2018
- 2018-09-26 CN CN201811126817.8A patent/CN110019040B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106649596A (en) * | 2016-11-24 | 2017-05-10 | 歌尔科技有限公司 | Method and device for displaying folder catalogue in intelligent terminal |
| CN107168905A (en) * | 2017-05-11 | 2017-09-15 | 广东欧珀移动通信有限公司 | A kind of document display method, device, storage medium and mobile terminal |
| CN107609119A (en) * | 2017-09-13 | 2018-01-19 | 广东欧珀移动通信有限公司 | File processing method, mobile terminal, and computer-readable storage medium |
| CN107577822A (en) * | 2017-10-13 | 2018-01-12 | 广东欧珀移动通信有限公司 | A data synchronization method, data synchronization device and mobile terminal |
| CN107766488A (en) * | 2017-10-17 | 2018-03-06 | 广东欧珀移动通信有限公司 | A kind of information query method, terminal, computer-readable recording medium |
| CN108268330A (en) * | 2018-01-16 | 2018-07-10 | 深圳市天珑移动技术有限公司 | Document transmission method, mobile terminal and computer readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110019040A (en) | 2019-07-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109359091B (en) | File management method, device, terminal and computer readable storage medium | |
| CN111078140B (en) | Nuclear power station file uploading management method and device, terminal equipment and medium | |
| WO2021008412A1 (en) | Control method and system for internet of things device | |
| CN108038112B (en) | File processing method, mobile terminal and computer readable storage medium | |
| CN109068059B (en) | Method for calling camera, mobile terminal and storage medium | |
| CN109376126B (en) | File or folder processing method, mobile terminal and storage medium | |
| WO2020113421A1 (en) | Method for mounting file system, terminal device, and storage medium | |
| CN109995805A (en) | An intelligent robot management method, terminal device and medium | |
| CN111290684A (en) | Image display method, image display device and terminal equipment | |
| CN111367870A (en) | A picture book sharing method, device and system | |
| CN110086836B (en) | Method and apparatus for obtaining metadata | |
| CN108959565A (en) | Method, device and server for filtering webpage content | |
| CN110019040B (en) | Folder processing method, mobile terminal and storage medium | |
| CN113296871A (en) | Method, equipment and system for processing container group instance | |
| CN108920945B (en) | Method, device, terminal device and storage medium for obtaining and deleting root authority | |
| CN109271266B (en) | File transfer method, device and terminal device | |
| CN111756618B (en) | Group chat processing method and device, electronic equipment and readable storage medium | |
| CN109298956B (en) | File transmission method and device and terminal equipment | |
| CN118672685A (en) | Target file redirection method and device and computer equipment | |
| CN107770265B (en) | A kind of method of data synchronization, data synchronization unit and mobile terminal | |
| CN109271543B (en) | Thumbnail display method, device, terminal, and computer-readable storage medium | |
| CN112099655A (en) | Implementation method, device, computer equipment and storage medium for voice mouse mobile office | |
| EP2813947B1 (en) | Electronic device and method for mounting file system using virtual block device | |
| WO2024152666A1 (en) | Dynamic configuration method and apparatus for message template, and computer device and storage medium | |
| CN111309516A (en) | Method for recovering management data of intelligent household equipment and terminal equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |