CN110019040A - A kind of file processing method, mobile terminal and storage medium - Google Patents

A kind of file processing method, mobile terminal and storage medium Download PDF

Info

Publication number
CN110019040A
CN110019040A CN201811126817.8A CN201811126817A CN110019040A CN 110019040 A CN110019040 A CN 110019040A CN 201811126817 A CN201811126817 A CN 201811126817A CN 110019040 A CN110019040 A CN 110019040A
Authority
CN
China
Prior art keywords
file
processed
terminal device
mobile terminal
process instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811126817.8A
Other languages
Chinese (zh)
Other versions
CN110019040B (en
Inventor
彭学锋
潘腾蛟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811126817.8A priority Critical patent/CN110019040B/en
Publication of CN110019040A publication Critical patent/CN110019040A/en
Application granted granted Critical
Publication of CN110019040B publication Critical patent/CN110019040B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed 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 application is suitable for media transport technology field, provide a kind of file processing method, mobile terminal and storage medium, the described method includes: after mobile terminal and terminal device establish connection, if monitoring the process instruction to the file in the mobile terminal memory space that the terminal device issues, then obtain the information of file to be processed corresponding with the process instruction, information based on file to be processed corresponding with the process instruction, file in file to be processed corresponding with the process instruction and the file to be processed is handled, after the completion of file process in the file to be processed and the file to be processed, processing result is sent to the terminal device, when terminal device side handles the file in mobile terminal memory space, it can be dropped by the application The number of the information interaction of low terminal device and mobile terminal, to improve the success rate of file processing.

Description

A kind of file processing method, mobile terminal and storage medium
Technical field
The application belongs to media transport technology field more particularly to a kind of file processing method, mobile terminal and calculating Machine readable storage medium storing program for executing.
Background technique
Media transmission protocol (Media Transfer Protocol, MTP) is one based on picture transfer protocol (PTP) Customized Extended Protocol.It is established after MTP connect in main equipment (such as terminal device) with from equipment (such as mobile terminal), institute The file or folder in the memory space from equipment can be handled by stating main equipment, for example, deleting, shearing, is multiple The processing such as system.
Currently, the main equipment with it is described be based on MTP from equipment and connect when, in the main equipment side, to described from setting When file in standby memory space carries out relevant treatment, the main equipment and described need between equipment according to file The quantity of documents of interior storage carries out frequent information exchange, can realize that the relevant treatment of file, this mode are easy to There is the problem of file processing failure or file data loss.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of file processing method, mobile terminal and computer-readable deposits Storage media, with solve in terminal device side, the file to mobile terminal memory space is handled at present when often fail or The problem of person's loss of data.
The first aspect of the embodiment of the present application provides a kind of file processing method, comprising:
After mobile terminal and terminal device establish connection, depositing to the mobile terminal for the terminal device sending is monitored Store up the process instruction of the file in space;
If monitoring the process instruction to the file in the mobile terminal memory space that the terminal device issues, Then obtain the information of file to be processed corresponding with the process instruction;
Based on the information of file to be processed corresponding with the process instruction, to corresponding with the process instruction wait locate File in reason file and the file to be processed is handled;
After the completion of file process in the file to be processed and the file to be processed, processing result is sent out The terminal device is given, the processing result is used to indicate the terminal device and updates virtual media library, the virtual media Library is that the media library on the mobile terminal is mapped to the virtual library on the terminal device.
The second aspect of the embodiment of the present application provides a kind of mobile terminal, comprising:
Monitoring unit, for after mobile terminal and terminal device establish connection, monitoring pair that the terminal device issues The process instruction of file in the mobile terminal memory space;
Information acquisition unit, if for monitoring that the terminal device issues in the mobile terminal memory space The process instruction of file then obtains the information of file to be processed corresponding with the process instruction;
Processing unit, for the information based on file to be processed corresponding with the process instruction, to the processing The file in corresponding file to be processed and the file to be processed is instructed to be handled;
Interactive unit is completed for the file process in the file to be processed and the file to be processed Afterwards, processing result is sent to the terminal device, the processing result is used to indicate the terminal device and updates virtual media Library, the virtual media library are that the media library on the mobile terminal is mapped to the virtual library on the terminal device.
The third aspect of the embodiment of the present application provides a kind of mobile terminal, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program The step of realizing the method that the embodiment of the present application first aspect provides.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the computer program realizes the embodiment of the present application when being executed by one or more processors On the one hand the step of the method provided.
5th aspect of the embodiment of the present application provides a kind of computer program product, and the computer program product includes Computer program, the computer program realize that the embodiment of the present application first aspect provides when being executed by one or more processors The method the step of.
The embodiment of the present application provides a kind of file processing method, is applied to mobile terminal, and the embodiment of the present application provides File processing method in, terminal device side can issue the process instruction to file, and mobile terminal side is according to end The process instruction to file that end equipment side issues, file to be processed corresponding to process instruction carry out relevant place Reason sends out processing result after the completion of the file in the file to be processed and the file to be processed is all handled The terminal device is given, since in the treatment process to file, only mobile terminal side is to file to be processed After the completion of interior All Files processing, just processing result can be sent to terminal device, in this way, avoiding terminal device and movement Frequent information exchange between terminal, can be avoided data-transmission interruptions or loss of data.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation process schematic diagram of file processing method provided by the embodiments of the present application;
Fig. 2 is the implementation process schematic diagram of another file processing method provided by the embodiments of the present application;
Fig. 3 is a kind of schematic block diagram of mobile terminal provided by the embodiments of the present application;
Fig. 4 is the schematic block diagram of another mobile terminal provided by the embodiments of the present application.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step, Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment And be not intended to limit the application.As present specification and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate technical solution described herein, the following is a description of specific embodiments.
Fig. 1 is a kind of implementation process schematic diagram of file processing method provided by the embodiments of the present application, as shown, should Method may comprise steps of:
Step S101, after mobile terminal and terminal device establish connection, monitor that the terminal device issues to described The process instruction of file in mobile terminal memory space.
In the embodiment of the present application, mobile terminal and terminal device can be based on universal serial bus (Universal Serial Bus, USB) connection is established, upon establishment of a connection, information exchange, example can be carried out based on media transmission protocol (MTP) Such as, it in terminal device side completes that the relevant treatment of the file in mobile terminal memory space can be delete processing, cut Cut processing, replication processes etc..Mobile terminal side can monitor the information that terminal device is sent to mobile terminal, for example, monitoring To the process instruction of the file in mobile terminal memory space.
It is described after mobile terminal and terminal device establish connection as the another embodiment of the application, monitor the terminal Equipment issue include: to the process instruction of the file in the mobile terminal memory space
After mobile terminal and terminal device establish connection by USB interface, monitors the terminal device and passed based on media The duplicate instructions or shearing instruction to the file in the mobile terminal memory space that defeated agreement issues.
In the embodiment of the present application, connection is established by USB interface, can be UMS mode, be also possible to MTP mode, UMS indicates that mass-memory unit, MTP indicate media transmission protocol, and the embodiment of the present application is used for MTP mode, the processing of monitoring Instruction is the process instruction to the file in mobile terminal memory space that terminal device is issued based on media transmission protocol, when So, process instruction, which can be, deletes instruction, duplicate instructions, shearing instruction etc..
It should be noted that be illustrated by taking file as an example in the embodiment of the present application, it, can also be at end in practical application End equipment side carries out relevant processing to the file stored in mobile terminal memory space, can refer to the subsequent place to file The related description of reason, details are not described herein.
Step S102, if monitor that the terminal device issues to the file in the mobile terminal memory space Process instruction then obtains the information of file to be processed corresponding with the process instruction.
In the embodiment of the present application, when monitoring that terminal device issues to the file in mobile terminal memory space When process instruction, need to obtain the information of the corresponding file to be processed of process instruction from terminal device side, in terminal device After establishing the connection based on MTP protocol between mobile terminal, the file stored in the memory space of mobile terminal side can be with shape At media library, meanwhile, in terminal device side, the file stored in the memory space of mobile terminal can be also shown, only, at end End equipment side shows to be virtual media library, and user operates on the virtual media library that terminal device side is shown, example Such as, choose virtual folder A, to virtual folder A carry out delete operation, when user in terminal device side to virtual media library In virtual folder A when carrying out delete operation, process instruction can be sent to mobile terminal, mobile terminal will monitor described The deletion to the file A in the mobile terminal memory space that terminal device issues instructs, at this point, mobile terminal side is obtained Take the information of to be processed file A corresponding with the deletion instruction.For example, the routing information of file A to be processed.
Step S103, based on the information of file to be processed corresponding with the process instruction, to the process instruction File in corresponding file to be processed and the file to be processed is handled.
It in the embodiment of the present application, is not to file A itself when carrying out delete processing to file A to be processed Delete processing is carried out, but, delete processing is carried out to the All Files stored in file A and file A.For example, terminal It is to virtual media library that equipment side user, which issues, (media library on mobile terminal is mapped to the virtual library on terminal device) In the instruction deleted of file A to be processed, correspondingly, mobile terminal side is needed to storing text to be processed in actual media library Part presss from both sides A and All Files or file progress delete processing in file A to be processed.That is, user is in terminal device side Process instruction is issued by virtual media library, mobile terminal side carries out relevant processing to the file in true media library.
Step S104 will after the completion of file process in the file to be processed and the file to be processed Processing result is sent to the terminal device, and the processing result is used to indicate the terminal device and updates virtual media library, institute Stating virtual media library is the virtual library that the media library on the mobile terminal is mapped on the terminal device.
In the embodiment of the present application, mobile terminal side in file to be processed All Files or file delete After the completion of removing or shear or replicating, processing result can be just sent to the terminal device, terminal device side can be more New virtual media library.In this way, the media library of mobile terminal side and the virtual media library of terminal device side are still completely right It answers.
Need to illustrate that a bit, the delete operation in the embodiment of the present application indicates to press from both sides file to be processed and this document Interior All Files carry out delete processing, and the duplication operation in the embodiment of the present application is indicated to file to be processed and this document After All Files in folder are replicated, it is also necessary to by the All Files in file and this document to be processed folder after duplication Paste destination folder (for example, file under desktop, root, desktop or root).Cutting in the embodiment of the present application Cutting operation indicates after shearing to the All Files in file to be processed and this document folder, it is also necessary to by after shearing to Processing file and this document folder in All Files paste destination folder, while need to delete under original route wait locate Manage file.
In file processing method provided by the embodiments of the present application, terminal device side can issue the processing to file Instruction, the process instruction to file that mobile terminal side is issued according to terminal device side, it is corresponding to process instruction to It handles file and carries out relevant processing, at the file whole in the file to be processed and the file to be processed After the completion of reason, processing result is sent to the terminal device, due in the treatment process to file, only mobile terminal Processing result can be just sent to terminal device after the completion of handling the All Files in file to be processed by side, in this way, Frequent information exchange between terminal device and mobile terminal is avoided, can be avoided data-transmission interruptions or loss of data.
Fig. 2 is the implementation process schematic diagram of another file processing method provided by the embodiments of the present application, as shown, This method may comprise steps of:
Step S201 obtains the operating system of the terminal device after mobile terminal and terminal device establish connection Version.
Step S202 monitors the terminal device if the version of the operating system of the terminal device is default version The process instruction to the file in mobile terminal memory space issued.
In the embodiment of the present application, since MTP protocol expression is a kind of agreement, in practical applications, it is based on MTP protocol It can produce different process flows, therefore, just will appear between the operating system of terminal device and the process flow of MTP protocol There is a problem of it is compatible, so, can be assisted based on MTP in order to establish between the terminal device of connection and mobile terminal View carries out the processing of file, can obtain the operating system of terminal device in mobile terminal side.It is determined according to operating system Corresponding process flow, the operating system that can will be compatible with the embodiment of the present application are set as the operating system of default version, If the version of the operating system of the terminal device is default version, can be according to processing stream provided by the embodiments of the present application Journey starts to monitor the process instruction to the file in mobile terminal memory space that the terminal device issues.
Step S203, if monitor that the terminal device issues to the file in the mobile terminal memory space Process instruction is based on media transmission protocol, obtains file to be processed corresponding with the process instruction from the terminal device Handle, destination folder path handle.
In the embodiment of the present application, when process instruction is to delete instruction, mobile terminal side can be based on media transmission Agreement obtains the corresponding file handle to be processed of the process instruction from terminal device side.When process instruction be shearing or When duplicate instructions, need to obtain from terminal device side corresponding with the process instruction to be processed based on media transmission protocol File handle, destination folder path handle.
In file I/O, data read from a file, usually want call operation system function and transmit filename, And a path to this document is selected to open file, which fetches a serial number, i.e. file handle.This document handle for The file of opening is unique basis of characterization.A block number evidence is read from file, need to call function ReadFile, and will be literary The address of part handle in memory and the byte number to be copied send operating system to.After completion task, then by calling system Function unite to close this document.
Destination folder indicates file to be copied or to be clipped to, for example, file B is copied to file C In, then file C means that destination folder.
Step S204 is looked by file handle to be processed, destination folder path handle from the media library of mobile terminal The information of the information and destination folder that obtain file to be processed is ask, the information of the file to be processed includes: to be processed The title of file, the path of file to be processed, the title of the file stored in file to be processed, in file to be processed The information in the path of the file of storage, the destination folder includes: the path of destination folder.
In the embodiment of the present application, it if process instruction is to delete instruction, needs to be obtained according to file handle to be processed The title of file to be processed, the path of file to be processed, the title of the file stored in file to be processed, text to be processed The path of the file stored in part folder;If process instruction is shearing or duplicate instructions, it is also necessary in above-mentioned acquisition text to be processed The path of destination folder is obtained on the basis of the relevant information of part folder further according to destination folder path handle.
It might have stored multistage file in file D to be processed, for example, storing file a, text in file D to be processed Part folder D1, file D2, file b and file c are stored in file D1, file d is stored in file D2, then to be processed The entitled file D to be processed of file, the path of file D to be processed, the name of the file stored in file to be processed Claim a, b, c, d, (path of the file stored in file to be processed shows text in the path of the file stored in file to be processed The path of the files or file at different levels that are stored in part folder D).
Step S205, based on the information of file to be processed corresponding with the process instruction, to the process instruction File in corresponding file to be processed and the file to be processed is handled.
In the embodiment of the present application, described to be based on and the process instruction pair when the process instruction is duplicate instructions The information for the file to be processed answered, to file to be processed corresponding with the process instruction and the file to be processed Interior file carries out processing
Based on the path of the destination folder, destination folder identical with the title of file to be processed is created, and Based on the path of the file stored in the file to be processed, stores in destination folder and stored in file to be processed File;
It is described based on file to be processed corresponding with the process instruction when the process instruction is shearing instruction Information carries out processing packet to the file in file to be processed corresponding with the process instruction and the file to be processed It includes:
Based on the path of the destination folder, destination folder identical with the title of file to be processed is created, and Based on the path of the file stored in the file to be processed, stores in destination folder and stored in file to be processed File;
Based on the path of the file stored in file to be processed, storage successfully text is deleted in file to be processed Part;
After the All Files stored in file to be processed store successfully in destination folder, by file to be processed It deletes.
It is described based on file to be processed corresponding with the process instruction when the process instruction is to delete instruction Information carries out processing packet to the file in file to be processed corresponding with the process instruction and the file to be processed It includes:
Based on the path of the file stored in file to be processed, file is deleted in file to be processed;
After the All Files stored in file to be processed are deleted successfully, file to be processed is deleted.
Step S206 will after the completion of file process in the file to be processed and the file to be processed Processing result update is sent to the terminal device, the processing into the media library of the mobile terminal, and by processing result As a result it is used to indicate the terminal device and updates virtual media library, the virtual media library is the media library on the mobile terminal The virtual library being mapped on the terminal device.
In the embodiment of the present application, the file process in the file to be processed and the file to be processed is complete Processing result is updated and is sent to the terminal device into the media library of the mobile terminal, and by processing result by Cheng Hou, is moved The media library of dynamic terminal is the real embodiment of the file stored in mobile terminal memory space, and the virtual media library of terminal device is The media library of mobile terminal is mapped to the virtual library of terminal device side, i.e., stores in the mobile terminal that terminal device side is shown File be not true file, but mobile terminal mapping virtual file on the terminal device.In order to guarantee terminal The virtual library that equipment is shown can be really corresponding with the media library of mobile terminal side, need in the file to be processed and After the completion of file process in the file to be processed, processing result is updated into the media library of the mobile terminal, together When, processing result is sent to the terminal device, in this way, the virtual media library that shows of terminal device side and mobile terminal one It is completely corresponding when the file of side storage.User can carry out relevant operation in the virtual media library of terminal device, to move Dynamic terminal side carries out true relevant operation, and mobile terminal returns after having carried out true relevant operation by operating result Back to terminal device, the user of terminal device side can be in terminal device side at any time in mobile terminal memory space File carries out relevant treatment.
In addition, it is also necessary to which a bit of explanation, the embodiment of the present application is mainly described from mobile terminal side, mobile terminal It is all that the driving layer of mobile terminal side is real when obtaining information from terminal device, or when sending information to terminal device Existing, and mobile terminal side to the processing of file is realized by the ccf layer of mobile terminal side.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit It is fixed.
Fig. 3 is that the schematic block diagram for the mobile terminal that one embodiment of the application provides only is shown and this Shen for ease of description It please the relevant part of embodiment.
The mobile terminal 3 can be the software unit being built in the mobile terminals such as mobile phone, tablet computer, notebook, hard Part unit or the unit of soft or hard combination can also be used as independent pendant and be integrated into the mobile phone, tablet computer, notebook etc. In mobile terminal.
The mobile terminal 3 includes:
Monitoring unit 31, for after mobile terminal and terminal device establish connection, monitoring what the terminal device issued To the process instruction of the file in the mobile terminal memory space;
Information acquisition unit 32, if for monitoring that the terminal device issues in the mobile terminal memory space File process instruction, then obtain the information of corresponding with process instruction file to be processed;
Processing unit 33, for the information based on file to be processed corresponding with the process instruction, to the place Reason instructs the file in corresponding file to be processed and the file to be processed to be handled;
Interactive unit 34 is completed for the file process in the file to be processed and the file to be processed Afterwards, processing result is sent to the terminal device, the processing result is used to indicate the terminal device and updates virtual media Library, the virtual media library are that the media library on the mobile terminal is mapped to the virtual library on the terminal device.
Optionally, the mobile terminal 3 further include:
Updating unit 35 is completed for the file process in the file to be processed and the file to be processed Afterwards, processing result is updated into the media library of the mobile terminal.
Optionally, the monitoring unit 31 is also used to:
After mobile terminal and terminal device establish connection by USB interface, monitors the terminal device and passed based on media The duplicate instructions or shearing instruction to the file in the mobile terminal memory space that defeated agreement issues.
Optionally, the information acquisition unit 32 is also used to:
The information of file to be processed corresponding with the process instruction and the information of destination folder are obtained, it is described wait locate The information of reason file includes: the title of file to be processed, the path of file to be processed, stores in file to be processed The path of the file stored in the title of file, file to be processed, the information of the destination folder include: destination folder Path.
Optionally, the information acquisition unit 32 includes:
Handle acquiring module 321 obtains and the process instruction for being based on media transmission protocol from the terminal device Corresponding file handle to be processed, destination folder path handle;
Enquiry module 322, for passing through file handle to be processed, destination folder path handle, from mobile terminal Media library inquiry obtains the information of file to be processed and the information of destination folder.
Optionally, when the process instruction is duplicate instructions, the processing unit 33 is also used to:
Based on the path of the destination folder, destination folder identical with the title of file to be processed is created, and Based on the path of the file stored in the file to be processed, stores in destination folder and stored in file to be processed File;
Optionally, when the process instruction is shearing instruction, the processing unit 33 is also used to:
Based on the path of the destination folder, destination folder identical with the title of file to be processed is created, and Based on the path of the file stored in the file to be processed, stores in destination folder and stored in file to be processed File;
Based on the path of the file stored in file to be processed, storage successfully text is deleted in file to be processed Part;
After the All Files stored in file to be processed store successfully in destination folder, by file to be processed It deletes.
Optionally, the monitoring unit 31 includes:
Version obtains module 311, the version of the operating system for obtaining the terminal device;
Monitoring modular 312 monitors the end if the version of the operating system for the terminal device is default version The process instruction to the file in mobile terminal memory space that end equipment issues.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of the mobile terminal is divided into different functional unit or module, to complete All or part of function described above.Each functional unit in embodiment, module can integrate in one processing unit, It is also possible to each unit to physically exist alone, can also be integrated in one unit with two or more units, above-mentioned collection At unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function Unit, module specific name be also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above-mentioned shifting The specific work process for moving unit in terminal, module, can refer to corresponding processes in the foregoing method embodiment, no longer superfluous herein It states.
Fig. 4 is the schematic block diagram for the mobile terminal that the another embodiment of the application provides.As shown in figure 4, the shifting of the embodiment Dynamic terminal 4 includes: one or more processors 40, memory 41 and is stored in the memory 41 and can be in the processing The computer program 42 run on device 40.The processor 40 realizes that above-mentioned each method is real when executing the computer program 42 Apply the step in example, such as step S101 to S104 shown in FIG. 1.Alternatively, the processor 40 executes the computer program The function of each module/unit in above-mentioned mobile terminal embodiment, such as the function of module 31 to 34 shown in Fig. 3 are realized when 42.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the application.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 42 in the mobile terminal 4 is described.For example, the computer program 42 can be divided It is cut into monitoring unit, information acquisition unit, processing unit, interactive unit.
Monitoring unit, for after mobile terminal and terminal device establish connection, monitoring pair that the terminal device issues The process instruction of file in the mobile terminal memory space;
Information acquisition unit, if for monitoring that the terminal device issues in the mobile terminal memory space The process instruction of file then obtains the information of file to be processed corresponding with the process instruction;
Processing unit, for the information based on file to be processed corresponding with the process instruction, to the processing The file in corresponding file to be processed and the file to be processed is instructed to be handled;
Interactive unit is completed for the file process in the file to be processed and the file to be processed Afterwards, processing result is sent to the terminal device, the processing result is used to indicate the terminal device and updates virtual media Library, the virtual media library are that the media library on the mobile terminal is mapped to the virtual library on the terminal device.
Other units or module can refer to the description in embodiment shown in Fig. 3, and details are not described herein.
The mobile terminal includes but are not limited to processor 40, memory 41.It will be understood by those skilled in the art that figure 4 be only an example of mobile terminal 4, does not constitute the restriction to mobile terminal 4, may include more more or less than illustrating Component, perhaps combine certain components or different components, for example, the mobile terminal can also include input equipment, it is defeated Equipment, network access equipment, bus etc. out.
The processor 40 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 41 can be the internal storage unit of the mobile terminal 4, such as the hard disk or interior of mobile terminal 4 It deposits.The memory 41 is also possible to the External memory equipment of the mobile terminal 4, such as be equipped on the mobile terminal 4 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the mobile terminal 4 Member also includes External memory equipment.The memory 41 is for storing needed for the computer program and the mobile terminal Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
In embodiment provided herein, it should be understood that disclosed mobile terminal and method can pass through it Its mode is realized.For example, mobile terminal embodiment described above is only schematical, for example, the module or list Member division, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or Component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point is shown The mutual coupling or direct-coupling or communication connection shown or discussed can be through some interfaces, between device or unit Coupling or communication connection are connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code Dish, CD, computer storage, 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 described The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and Telecommunication signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all Comprising within the scope of protection of this application.

Claims (10)

1. a kind of file processing method characterized by comprising
After mobile terminal and terminal device establish connection, it is empty to monitor storing to the mobile terminal for the terminal device sending The process instruction of interior file;
If monitoring the process instruction to the file in the mobile terminal memory space that the terminal device issues, obtain Take the information of file to be processed corresponding with the process instruction;
Based on the information of file to be processed corresponding with the process instruction, to text to be processed corresponding with the process instruction File in part folder and the file to be processed is handled;
After the completion of file process in the file to be processed and the file to be processed, processing result is sent to The terminal device, the processing result are used to indicate the terminal device and update virtual media library, and the virtual media library is Media library on the mobile terminal is mapped to the virtual library on the terminal device.
2. file processing method as described in claim 1, which is characterized in that the file to be processed and it is described to After the completion of file process in processing file, further includes:
Processing result is updated into the media library of the mobile terminal.
3. file processing method as described in claim 1, which is characterized in that described to be established in mobile terminal and terminal device After connection, monitor the terminal device sending includes: to the process instruction of the file in the mobile terminal memory space
After mobile terminal and terminal device establish connection by USB interface, monitors the terminal device and assisted based on media transmission Discuss the duplicate instructions or shearing instruction to the file in the mobile terminal memory space issued.
4. file processing method as claimed in claim 3, which is characterized in that the acquisition is corresponding with the process instruction The information of file to be processed includes:
Obtain the information of file to be processed corresponding with the process instruction and the information of destination folder, the text to be processed The information of part folder includes: the title of file to be processed, the path of file to be processed, the file stored in file to be processed Title, the file stored in file to be processed path, the information of the destination folder includes: the road of destination folder Diameter.
5. file processing method as claimed in claim 4, which is characterized in that the acquisition is corresponding with the process instruction The information of file to be processed and the information of destination folder include:
Based on media transmission protocol, from the terminal device obtain file handle to be processed corresponding with the process instruction, Destination folder path handle;
By file handle to be processed, destination folder path handle, obtained from the media library inquiry of mobile terminal to be processed The information of file and the information of destination folder.
6. file processing method as claimed in claim 4, which is characterized in that when the process instruction is duplicate instructions, The information based on file to be processed corresponding with the process instruction, to text to be processed corresponding with the process instruction File in part folder and the file to be processed carries out processing
Based on the path of the destination folder, destination folder identical with the title of file to be processed is created, and is based on The path of the file stored in the file to be processed, stores the text stored in file to be processed in destination folder Part;
When the process instruction is shearing instruction, the letter based on file to be processed corresponding with the process instruction Breath, carries out processing packet to the file in file to be processed corresponding with the process instruction and the file to be processed It includes:
Based on the path of the destination folder, destination folder identical with the title of file to be processed is created, and is based on The path of the file stored in the file to be processed, stores the text stored in file to be processed in destination folder Part;
Based on the path of the file stored in file to be processed, is deleted in file to be processed and store successful file;
After the All Files stored in file to be processed store successfully in destination folder, file to be processed is deleted It removes.
7. such as file processing method as claimed in any one of claims 1 to 6, which is characterized in that monitoring the terminal device Before the process instruction to the file in the mobile terminal memory space issued, further includes:
Obtain the version of the operating system of the terminal device;
If the version of the operating system of the terminal device is default version, the whole to movement of the terminal device sending is monitored Hold the process instruction of the file in memory space.
8. a kind of mobile terminal characterized by comprising
Monitoring unit, for after mobile terminal and terminal device establish connection, monitoring that the terminal device issues to described The process instruction of file in mobile terminal memory space;
Information acquisition unit, if for monitoring that the terminal device issues to the file in the mobile terminal memory space The process instruction of folder then obtains the information of file to be processed corresponding with the process instruction;
Processing unit, for the information based on file to be processed corresponding with the process instruction, to the process instruction File in corresponding file to be processed and the file to be processed is handled;
Interactive unit will after the completion of for file process in the file to be processed and the file to be processed Processing result is sent to the terminal device, and the processing result is used to indicate the terminal device and updates virtual media library, institute Stating virtual media library is the virtual library that the media library on the mobile terminal is mapped on the terminal device.
9. a kind of mobile terminal, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence realizes the step such as any one of claim 1 to 7 the method when the computer program is executed by one or more processors Suddenly.
CN201811126817.8A 2018-09-26 2018-09-26 Folder processing method, mobile terminal and storage medium Active CN110019040B (en)

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 true CN110019040A (en) 2019-07-16
CN110019040B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
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 (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090222456A1 (en) * 2008-03-03 2009-09-03 Samsung Electronics Co., Ltd. Apparatus for storing and processing contents and method of transmitting object meta information on contents using media transfer protocol from the apparatus
US20130132600A1 (en) * 2011-11-22 2013-05-23 Samsung Electronics Co., Ltd Apparatus and method of a portable terminal for performing communication with a device supporting media transfer protocol
CN106649596A (en) * 2016-11-24 2017-05-10 歌尔科技有限公司 Method and device for displaying folder catalogue in intelligent terminal
CN106991130A (en) * 2017-03-07 2017-07-28 广东欧珀移动通信有限公司 A kind of document handling method, device and intelligent terminal
CN107168905A (en) * 2017-05-11 2017-09-15 广东欧珀移动通信有限公司 A kind of document display method, device, storage medium and mobile terminal
CN107526835A (en) * 2017-09-06 2017-12-29 广东欧珀移动通信有限公司 Data connection processing method, data connection processing unit and intelligent terminal
CN107577822A (en) * 2017-10-13 2018-01-12 广东欧珀移动通信有限公司 A kind of method of data synchronization, data synchronization unit and mobile terminal
CN107609119A (en) * 2017-09-13 2018-01-19 广东欧珀移动通信有限公司 Document handling method, mobile terminal and computer-readable recording medium
CN107766488A (en) * 2017-10-17 2018-03-06 广东欧珀移动通信有限公司 A kind of information query method, terminal, computer-readable recording medium
CN108038112A (en) * 2017-09-28 2018-05-15 广东欧珀移动通信有限公司 Document handling method, mobile terminal and computer-readable recording medium
CN108268330A (en) * 2018-01-16 2018-07-10 深圳市天珑移动技术有限公司 Document transmission method, mobile terminal and computer readable storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090222456A1 (en) * 2008-03-03 2009-09-03 Samsung Electronics Co., Ltd. Apparatus for storing and processing contents and method of transmitting object meta information on contents using media transfer protocol from the apparatus
US20130132600A1 (en) * 2011-11-22 2013-05-23 Samsung Electronics Co., Ltd Apparatus and method of a portable terminal for performing communication with a device supporting media transfer protocol
CN106649596A (en) * 2016-11-24 2017-05-10 歌尔科技有限公司 Method and device for displaying folder catalogue in intelligent terminal
CN106991130A (en) * 2017-03-07 2017-07-28 广东欧珀移动通信有限公司 A kind of document handling method, device and intelligent terminal
CN107168905A (en) * 2017-05-11 2017-09-15 广东欧珀移动通信有限公司 A kind of document display method, device, storage medium and mobile terminal
CN107526835A (en) * 2017-09-06 2017-12-29 广东欧珀移动通信有限公司 Data connection processing method, data connection processing unit and intelligent terminal
CN107609119A (en) * 2017-09-13 2018-01-19 广东欧珀移动通信有限公司 Document handling method, mobile terminal and computer-readable recording medium
CN108038112A (en) * 2017-09-28 2018-05-15 广东欧珀移动通信有限公司 Document handling method, mobile terminal and computer-readable recording medium
CN107577822A (en) * 2017-10-13 2018-01-12 广东欧珀移动通信有限公司 A kind of method of data synchronization, data synchronization unit 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

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
山有木兮卿有意: "电脑(Linux/Windows)使用SSH远程登录安卓(Android)手机实现无线传输和管理文件", 《HTTPS://BLOG.CSDN.NET/ZHANGHUODING/ARTICLE/DETAILS/72848307》 *
赵红毅: "基于Android平台的PC控制系统的设计与实现", 《万方学位论文》 *

Cited By (2)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN110019040B (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN109376126A (en) A kind of file or folder processing method, mobile terminal and storage medium
CN109639465A (en) Warning information storage method and device based on cloud platform
CN109359091A (en) File management method, device, terminal and computer readable storage medium
CN110069495A (en) Date storage method, device and terminal device
CN105868231A (en) Cache data updating method and device
CN109547574A (en) A kind of data transmission method and relevant apparatus
CN108038112A (en) Document handling method, mobile terminal and computer-readable recording medium
CN109460412A (en) Data aggregation method, device, equipment and storage medium
CN110019040A (en) A kind of file processing method, mobile terminal and storage medium
CN110515731A (en) A kind of data processing method, apparatus and system
CN113296871A (en) Method, equipment and system for processing container group instance
CN109857571A (en) Clipbook control method and device
CN109348434A (en) A kind of sending method of scene information, sending device and terminal device
CN108399136A (en) A kind of control method of serial line interface, device and host
CN108763577A (en) node processing method and device, storage medium and electronic equipment
CN107888663A (en) A kind of method of distribution of document, equipment and computer-readable medium
CN108965786A (en) A kind of electronic whiteboard content sharing method and device
CN108830596A (en) The acquisition device and terminal device of a kind of acquisition methods of information, information
KR100763526B1 (en) Device and method for management of application context
CN109271266A (en) Document transmission method, device and terminal device
CN109783072A (en) Method for processing business, device, terminal device and computer readable storage medium
CN108494700A (en) Across link data transmission method, device, computer equipment and storage medium
CN109104481A (en) file integrity detection method, file integrity detection device and terminal device
CN108289165A (en) A kind of implementation method, device and terminal device controlling camera based on mobile phone
CN105701047B (en) A kind of multi-channel data transmission and virtual restoration method

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