WO2020156117A1 - 文件处理方法和装置以及终端 - Google Patents

文件处理方法和装置以及终端 Download PDF

Info

Publication number
WO2020156117A1
WO2020156117A1 PCT/CN2020/071714 CN2020071714W WO2020156117A1 WO 2020156117 A1 WO2020156117 A1 WO 2020156117A1 CN 2020071714 W CN2020071714 W CN 2020071714W WO 2020156117 A1 WO2020156117 A1 WO 2020156117A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
processed
temporary folder
processing instruction
files
Prior art date
Application number
PCT/CN2020/071714
Other languages
English (en)
French (fr)
Inventor
谭新
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2020156117A1 publication Critical patent/WO2020156117A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions

Definitions

  • the present disclosure relates to the field of communications, and in particular to a file processing method and device, and a terminal.
  • terminal users can install various applications (such as Tencent QQ, WeChat, Weibo, etc.) in mobile terminals, so that user interaction can be realized through the installed applications.
  • applications such as Tencent QQ, WeChat, Weibo, etc.
  • files can be processed in the file manager.
  • file directories in the file manager are displayed in a traditional hierarchical relationship, the end user A file directory can only process files in one file directory. If you want to process files in another file directory, you need to exit the current file directory and enter another file In the directory, if the end user needs to send video files and music files to WeChat friends, the video files and music files are located in different file directories in the file manager.
  • the end user needs to enter the video file directory first and then In the video file directory, the video file to be sent is sent to the WeChat friend, and then the terminal user enters the music file directory, and sends the music file to be sent to the WeChat friend in the music file directory.
  • the end user finds some good websites (ie website A, website B, and website C) while browsing the web, and needs to share these good websites with Tencent QQ friends, then the end user can enter first Website A shares website A with the Tencent QQ friend, then enters website B and shares website B with the Tencent QQ friend, and finally enters website C and shares website C with the Tencent QQ friend.
  • the terminal user needs to send the chat records of multiple WeChat friends (such as friend F1 and friend F2) to a designated friend, they need to enter the chat interface of friend F1 first, and send the chat record of friend F1 to The designated friend then enters the chat interface of the friend F2, and sends the chat history of the friend F2 to the designated friend.
  • embodiments of the present disclosure propose a file processing method and device, and a terminal.
  • a file processing method including:
  • a file processing device applied to a terminal including:
  • the first receiving module is configured to receive file storage operations for multiple files to be processed
  • a recording module configured to record file information of the file to be processed in a preset temporary folder in response to the file storage operation
  • the second receiving module is configured to receive a file processing instruction for at least one file information in the temporary folder.
  • the execution module is configured to execute a corresponding file processing operation on the file to be processed corresponding to the at least one file information in response to the file processing instruction.
  • the embodiments of the present disclosure also provide a terminal, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program being executed by the processor When realizing the steps of the file processing method described in the present disclosure.
  • the embodiments of the present disclosure also provide a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the file processing method described in the present disclosure is implemented. step.
  • the file storage operation for multiple files to be processed is first received, and then in response to the file storage operation, the file information of the file to be processed is recorded in a preset temporary folder; A file processing instruction of at least one file information in the temporary folder; finally, in response to the file processing instruction, a corresponding file processing operation is performed on the to-be-processed file corresponding to the at least one file information.
  • the present disclosure can record file information of files to be processed in a temporary folder, so that terminal users can perform file processing on multiple files to be processed in the temporary folder, and realize batch processing of different files. Thereby improving the efficiency of file processing and improving the user experience.
  • Fig. 1 shows a flowchart of a file processing method provided in an embodiment of the present disclosure
  • Figure 2 shows a schematic diagram of starting a temporary folder provided in an embodiment of the present disclosure
  • FIG. 3 shows another schematic diagram of starting a temporary folder provided in an embodiment of the present disclosure
  • FIG. 4 shows a schematic diagram of a generated file processing instruction provided in an embodiment of the present disclosure
  • FIG. 5 shows a flowchart of another generated file processing instruction provided in an embodiment of the present disclosure
  • FIG. 6 shows a flowchart of another file processing method provided in an embodiment of the present disclosure
  • FIG. 7 shows a flowchart of another file processing method provided in an embodiment of the present disclosure.
  • FIG. 8 shows a structural block diagram of the first file processing apparatus provided in an embodiment of the present disclosure
  • FIG. 9 shows a structural block diagram of a second file processing apparatus provided in an embodiment of the present disclosure.
  • FIG. 10 shows a structural block diagram of a third file processing apparatus provided in an embodiment of the present disclosure.
  • FIG. 11 shows a structural block diagram of a fourth file processing apparatus provided in an embodiment of the present disclosure.
  • FIG. 12 shows a schematic diagram of the hardware structure of a terminal provided in an embodiment of the present disclosure.
  • Step 101 Receive file storage operations for multiple files to be processed.
  • the file to be processed can be a video file, an audio file, a text file, an image file, a web page link, etc., which is not limited in the present disclosure.
  • the plurality of files to be processed may include at least one of the following: files in different application programs, and files in different file directories.
  • this step may receive file storage operations for the multiple files to be processed in different applications, wherein the multiple files to be processed
  • the corresponding application programs may all be different.
  • the application programs corresponding to the multiple files to be processed may also be partially the same.
  • the applications corresponding to the files to be processed S1, S2, S3, S4, S5, and S6 are " "NetEase Open Class", “WeChat”, “Tencent QQ”, “Kugou Music”, “Celebrity History Class”, “Today's Headline”, at this time, the file storage operations in this step include: in "NetEase Open Class” Perform file storage operations on the files to be processed S1, perform file storage operations on the files to be processed S2 in "WeChat”, perform file storage operations on the files to be processed S3 in "Tencent QQ”, perform file storage operations on the files to be processed S4 in "Kugou Music” File storage operation, file storage operation for file S5 to be processed in "Celebrity History Lesson", file storage operation for file S6 to be processed in "Today's Headline"; in another case, files S1 and S2 to be processed correspond to The application program
  • the file in this step is stored Operations include: file storage operations for files S1 and S2 to be processed in "NetEase Open Class”, file storage operations for file S3 to be processed in "WeChat”, and files S4, S5 and S6 to be processed in "Kugou Music” Perform file storage operations.
  • this step may receive file storage operations for multiple files to be processed in different file directories, where the file directories corresponding to the multiple files to be processed They may all be different, and of course, the file directories corresponding to the multiple files to be processed may also be partially the same.
  • the multiple files to be processed include R1, R2, R3, and R4, in one case, the file directories corresponding to the files R1, R2, R3, and R4 to be processed are "video directory" and "audio directory", respectively.
  • the file storage operations in this step include: file storage operations for the file to be processed R1 in the "video directory", and file R2 for the file to be processed in the "audio directory” Storage operation, file storage operation for the file to be processed R3 in the "text directory”, file storage operation for the file to be processed R4 in the "image directory”; in another case, the file directory corresponding to the files R1 and R3 to be processed Is the "video directory", and the file directory corresponding to the files R2 and R4 to be processed is the "audio directory”.
  • the file storage operation in this step includes: performing file storage operations on the files R1 and R3 to be processed in the "video directory” , Perform file storage operations on the files R2 and R4 to be processed in the "audio directory".
  • the multiple files to be processed include files in different applications and files in different file directories
  • this step can be received in different applications according to the method described above, and the files in the different applications
  • the file storage operation of, and the file storage operation of receiving files in different file directories, the specific process will not be repeated.
  • the floating window of the temporary folder is displayed.
  • the file control interface is opened, and the folder identifier of the temporary folder is triggered in the file control interface to start the temporary folder.
  • the floating window of the temporary folder is displayed on the screen of the mobile terminal; in another possible implementation manner, it can be added in the “settings” of the terminal in advance
  • the sliding switch button of the temporary folder can be preset to be closed when the sliding switch button is slid to the left, and the temporary folder is activated when the sliding switch is slid to the right In this way, the terminal user can slide the sliding switch button to the right so that the floating window of the temporary folder is displayed on the interface of the mobile terminal.
  • the window size and window position of the temporary folder can be adjusted according to user needs.
  • the above process of activating the temporary folder is just an example. Not limited.
  • the file storage operation can be to drag and drop the multiple pending files into the temporary folder.
  • the pending file is a web link
  • the file to be processed is a text file
  • the file storage operation can also be Right-click the file to be processed to display the operation list, and then select "Send to Temporary Folder" in the operation list.
  • the above-mentioned file storage operation is only an example, and this disclosure does not limit this.
  • Step 102 In response to the file storage operation, record file information of the file to be processed in a preset temporary folder.
  • the file information may include a file identifier and file path information, or the file information may include a file identifier.
  • the mobile terminal can generate the partial paragraph when the user performs the file storage operation on the partial paragraph
  • the file ID can be recorded in the temporary folder, where the file ID can be composed of the first few characters of the part of the paragraph, or the file ID can be composed of the keywords of the part of the paragraph, or the The file identification can be generated by the mobile terminal according to the storage order of the text in the temporary folder.
  • the file identification of the partial paragraph can be set as the third text, etc.;
  • the file to be processed is a webpage link
  • the mobile terminal can generate a file identifier corresponding to the webpage link, so as to record the file identifier in the temporary folder, where:
  • the file identifier can be determined according to the content of the webpage. For example, if the file to be processed is a link to the vivo official website, the file identifier is the vivo official website.
  • the above example is only an example, and this disclosure does not limit this.
  • Step 103 Receive a file processing instruction for at least one piece of file information in the temporary folder.
  • this step can receive the file processing instruction for at least one file information in the floating window, and further, can receive the identification of at least one file in the floating window.
  • the file processing instruction wherein, at least one file identifier in the temporary folder can be selected, and after the selection of at least one file identifier in the temporary folder is completed, all the files are obtained from the preset processing instruction.
  • the at least one file identifier corresponds to the file processing instruction of the file to be processed.
  • the preset processing instruction may include a file sharing instruction, a file compression instruction, a file renaming instruction, a file moving into a safe, a file cutting instruction, etc.
  • the floating window of the temporary folder can be enlarged to display the floating window of the temporary folder on the entire screen of the terminal, where the temporary folder
  • the floating window displays a list of file identifiers including video 1, video 2, text 1, text 2, audio 1, audio 2, and the vivo official website.
  • the file to be processed corresponding to the at least one file identifier is video 1, video, and audio 1.
  • the user can select the check box corresponding to the at least one file identifier from the file identifier list, and obtain the file processing for video 1, video 2, and audio 1 in the preset processing instructions at the bottom of the floating window Instruction, for example, if the file processing instruction is a file sharing instruction, the user can trigger "share” in the floating window. For another example, if the file processing instruction is a file compression instruction, the user can trigger "compression" in the floating window.
  • the mobile terminal may receive a file processing instruction generated according to a user's drag operation on the at least one file identifier, and the drag operation is dragging and dropping at least one file identifier in the temporary folder to For the operation of the chat interface, it should be noted that the file processing instruction can be determined according to the drag mode of the drag operation.
  • the drag operation is a single-finger drag operation
  • it is determined that the file processing instruction is file sharing Instruction
  • the drag operation is a two-finger drag operation
  • determine that the file processing instruction is a file cut instruction
  • determine that the file processing instruction is a file compression instruction, etc.
  • the floating window of the temporary folder displays Video 1, Video 2, Audio 1, and Audio 2.
  • the target application launched by the end user is WeChat, and the target contact "King Ming" chat interface.
  • a corresponding check box (not shown in Figure 5) can be set for each file identifier, so that after the user has checked the at least one file identifier in the temporary folder, Uniformly drag and drop the checked file identifiers to the chat interface of the target contact "Wang Ming" with one hand, thereby avoiding that the file to be processed in the related technology is a file in a different application or a file in a different file directory At the time, the problem of file processing cannot be performed in batches.
  • Step 104 In response to the file processing instruction, perform a corresponding file processing operation on the file to be processed corresponding to the at least one file information.
  • the file to be processed in the case that the file processing instruction is a file sharing instruction, the file to be processed can be shared; in the case that the file processing instruction is a file copy instruction, the file to be processed can be copied;
  • the command is a file compression command, the file to be processed can be compressed;
  • the file processing command is a file cut command, the file to be processed can be cut;
  • the file processing command is a file move
  • the safe cabinet instruction the file to be processed can be moved to the safe cabinet; in the case where the file processing instruction is a file renaming instruction, the file to be processed can be renamed, etc.
  • the file processing instruction is a file sharing instruction
  • the present disclosure can also record the file types corresponding to the multiple files to be processed in the temporary folder, in this way, at least one The file to be processed corresponding to the file identifier is shared according to the corresponding file format. If the file to be processed is of the video type, the file to be processed can be shared according to the video type; if the file to be processed is of the audio type, then The file to be processed can be shared according to the audio type; if the file to be processed is of the text type, the file to be processed can be shared according to the text type, etc.
  • the present disclosure can receive the closing trigger operation of the temporary folder, thereby emptying the temporary folder according to the closing trigger operation to reduce resource occupation, and It is convenient for end users to use the emptied folder when starting the temporary folder next time.
  • the file control interface can be opened, so that the folder identifier of the temporary folder is triggered again in the file control interface to close the temporary folder; in another possible
  • file storage operations of multiple files to be processed can be received, and in response to the file storage operation, the file information of the files to be processed is recorded in a preset temporary folder, thereby A file processing instruction for the at least one file information in the temporary folder may be received, and in response to the file processing instruction, a corresponding file processing operation is performed on the to-be-processed file corresponding to the at least one file information.
  • the present disclosure can record file information of files to be processed in a temporary folder, so that terminal users can process multiple files to be processed in the temporary folder, and realize batch processing of different files. Thereby improving the efficiency of file processing and improving the user experience.
  • the file information includes the file identification and file path information as an example for description, which may specifically include the following steps:
  • Step 601 Receive file storage operations for multiple files to be processed.
  • the file to be processed can be dragged and dropped into the preset temporary folder by the user's finger.
  • the file storage operation can also be other operation gestures, such as right-clicking on the file to be processed Display the operation list, and select "Send to Temporary Folder" in the operation list, which is not specifically limited in the embodiment of the present disclosure.
  • Step 601 can refer to step 101, which will not be repeated here.
  • Step 602 In response to the file storage operation, record the file identification and file path information of the file to be processed in a preset temporary folder.
  • Step 603 Receive a file processing instruction identifying at least one file in the temporary folder.
  • the file processing instruction for at least one file identification in the floating window can be received in this step, wherein the file identification can be displayed in the temporary In the floating window of the folder, and the bottom position of the floating window can be set with preset processing instructions, and a selection box corresponding to the file identifier for the user to view.
  • the bottom position can be understood as the home button side of the mobile terminal One end.
  • the file identification can be sorted according to the storage time of the file storage operation, or the file identification can be sorted first according to the file type of the corresponding file to be processed, and then the files to be processed of the same file type are stored according to the file storage operation. Sort by time.
  • the file type of the file to be processed includes video type, audio type, and text type, and the priority of the file to be processed of the video type is the highest, the priority of the file to be processed of the audio type is the second highest, and the priority of the text type is the second highest.
  • the priority of processing files is the lowest.
  • the pending files of the video type can be displayed first, and the pending files of the video type are sorted according to the storage time of the file storage operation, and then the pending files of the audio type are displayed, and the audio Types of pending files are sorted according to the storage time of the file storage operation, and finally the text-type pending files are displayed, and the text-type pending files are sorted according to the storage time of the file storage operation.
  • the above examples are only examples. This application There is no restriction on this.
  • the mobile terminal may receive a file processing instruction generated according to a user's drag operation on the at least one file identifier, and the drag operation is dragging and dropping at least one file identifier in the temporary folder to For the operation of the chat interface, it should be noted that the file processing instruction can be determined according to the drag mode of the drag operation.
  • the drag operation is a single-finger drag operation
  • it is determined that the file processing instruction is file sharing Instruction
  • the drag operation is a two-finger drag operation
  • determine that the file processing instruction is a file cut instruction
  • determine that the file processing instruction is a file compression instruction, etc. .
  • Step 603 can refer to step 103, which will not be repeated here.
  • Step 604 In response to the file processing instruction, obtain a file to be processed corresponding to the at least one file identifier according to the file path information.
  • Step 605 Perform a corresponding file processing operation on the acquired file to be processed.
  • file storage operations of multiple files to be processed can be received, and in response to the file storage operation, the file identification and file of the file to be processed are recorded in a preset temporary folder.
  • the path information can thereby receive the file processing instruction of the at least one file identifier in the temporary folder, and in response to the file processing instruction, perform a corresponding file processing operation on the to-be-processed file corresponding to the at least one file identifier.
  • the present disclosure can record the file identification and file path information of the file to be processed in a temporary folder, so that a terminal user can perform file processing on multiple files to be processed in the temporary folder, and realize that different files can be processed. Perform batch processing, thereby improving file processing efficiency and improving user experience.
  • FIG. 7 there is shown a flowchart of a file processing method provided in an embodiment of the present disclosure.
  • This embodiment takes the file information including the file identifier as an example for description, which may specifically include:
  • Step 701 Receive file storage operations for multiple files to be processed.
  • the file to be processed can be dragged and dropped into the preset temporary folder by the user's finger.
  • the file storage operation can also be other operation gestures, such as right-clicking on the file to be processed Display the operation list, and select "Send to Temporary Folder" in the operation list, which is not specifically limited in the embodiment of the present disclosure.
  • Step 701 can refer to step 101, which will not be repeated here.
  • Step 702 In response to the file storage operation, record the file identifier of the file to be processed in a preset temporary folder.
  • Step 703 Move the multiple files to be processed to the temporary folder.
  • the file identification there is an identification file correspondence between the file identification and the file to be processed, so that when a file processing instruction for at least one file identification by the user is received in a subsequent step, the temporary The file to be processed corresponding to the at least one file identifier is obtained in the folder; in another possible implementation manner, since the file to be processed is moved to the temporary folder, the file to be processed can be recorded in the temporary folder.
  • the storage path information in the folder allows the file to be processed corresponding to the at least one file identifier to be directly obtained in the temporary folder in the subsequent steps according to the storage path information.
  • Step 704 Receive a file processing instruction identifying at least one file in the temporary folder.
  • the file processing instruction for at least one file identification in the floating window can be received in this step, wherein the file identification can be displayed in the temporary In the floating window of the folder, and at the bottom of the floating window, preset processing instructions and a selection box corresponding to the file identifier can be set for the user to view.
  • the file processing instruction is triggered from the preset processing instruction in the floating window.
  • the file identification can be sorted according to the storage time of the file storage operation, or the file identification can be sorted first according to the file type of the corresponding file to be processed, and then the files to be processed of the same file type are stored according to the file storage operation. Sort by time.
  • the file type of the file to be processed includes video type, audio type, and text type, and the priority of the file to be processed of the video type is the highest, the priority of the file to be processed of the audio type is the second highest, and the priority of the text type is the second highest.
  • the priority of processing files is the lowest.
  • the pending files of the video type can be displayed first, and the pending files of the video type are sorted according to the storage time of the file storage operation, and then the pending files of the audio type are displayed, and the audio Types of pending files are sorted according to the storage time of the file storage operation, and finally the text-type pending files are displayed, and the text-type pending files are sorted according to the storage time of the file storage operation.
  • the above examples are only examples. This application There is no restriction on this.
  • the mobile terminal may receive a file processing instruction generated according to a user's drag operation on the at least one file identifier, and the drag operation is dragging and dropping at least one file identifier in the temporary folder to For the operation of the chat interface, it should be noted that the file processing instruction can be determined according to the drag mode of the drag operation.
  • the drag operation is a single-finger drag operation
  • it is determined that the file processing instruction is file sharing Instruction
  • the drag operation is a two-finger drag operation
  • determine that the file processing instruction is a file cut instruction
  • determine that the file processing instruction is a file compression instruction, etc. .
  • Step 704 can refer to step 103, which will not be repeated here.
  • Step 705 In response to the file processing instruction, obtain a file to be processed corresponding to the at least one file identifier in the temporary folder.
  • the file to be processed corresponding to the at least one file identifier can be obtained based on the identification file correspondence described in step 703;
  • the at least one file identifier and the storage path information can be obtained from the temporary folder. At least one file identifier corresponds to the file to be processed, avoiding the step of obtaining the file to be processed at the initial position of the file.
  • Step 706 Perform a corresponding file processing operation on the acquired file to be processed.
  • file storage operations of multiple files to be processed can be received, and in response to the file storage operation, the file identification of the file to be processed is recorded in a preset temporary folder, and Move the multiple files to be processed to the temporary folder, so that the file processing instruction identified by the at least one file in the temporary folder can be received, and in response to the file processing instruction, the file processing instruction corresponding to the at least one file can be identified.
  • the processing file executes the corresponding file processing operation.
  • the present disclosure can record the file identification of the file to be processed in the temporary folder, so that the terminal user can perform file processing on multiple files to be processed in the temporary folder, and realize batch processing of different files. Thereby improving the efficiency of file processing and improving the user experience.
  • FIG. 8 there is shown a structural block diagram of a file processing apparatus 800 provided in an embodiment of the present disclosure.
  • the device is applied to a terminal, and may specifically include:
  • the first receiving module 801 is configured to receive file storage operations for multiple files to be processed
  • the recording module 802 is configured to record file information of the file to be processed in a preset temporary folder in response to the file storage operation;
  • the second receiving module 803 is configured to receive a file processing instruction for at least one file information in the temporary folder
  • the execution module 804 is configured to execute a corresponding file processing operation on the file to be processed corresponding to the at least one file information in response to the file processing instruction.
  • the second receiving module 803 is configured to receive file processing for at least one file identification in the temporary folder instruction;
  • the execution module 804 includes:
  • the first obtaining submodule 8041 is configured to obtain the file to be processed corresponding to the at least one file identifier according to the file path information in response to the file processing instruction;
  • the first execution sub-module 8042 is configured to execute corresponding file processing operations on the acquired files to be processed.
  • the device further includes:
  • the moving module 805 is configured to move the multiple files to be processed to the temporary folder
  • the second receiving module 803 is configured to receive a file processing instruction identified by at least one file in the temporary folder;
  • the execution module 804 includes:
  • the second obtaining sub-module 8043 is configured to obtain the file to be processed corresponding to the at least one file identifier in the temporary folder in response to the file processing instruction;
  • the second execution sub-module 8044 is configured to execute corresponding file processing operations on the acquired files to be processed.
  • the plurality of files to be processed includes at least one of the following: files in different application programs, and files in different file directories.
  • the second receiving module 803 is configured to, after selecting at least one file identifier in the temporary folder, obtain the file of the file to be processed corresponding to the at least one file identifier from a preset processing instruction Processing instructions.
  • the second receiving module 803 is configured to, when displaying the chat interface of the target contact, receive a file processing instruction generated according to a drag operation of the user on the at least one file identifier; the drag operation is the temporary At least one file identifier in the folder is dragged to the chat interface.
  • the device further includes:
  • the display module 806 is used to display the floating window corresponding to the temporary folder
  • the second receiving module 803 is configured to receive a file processing instruction for at least one file information in the floating window.
  • the apparatuses provided in FIGS. 8 to 11 in the embodiments of the present disclosure can implement each process in the method embodiments of FIGS.
  • file storage operations of multiple files to be processed can be received, and in response to the file storage operation, the file information of the files to be processed is recorded in a preset temporary folder, thereby A file processing instruction for the at least one file information in the temporary folder may be received, and in response to the file processing instruction, a corresponding file processing operation is performed on the to-be-processed file corresponding to the at least one file information.
  • the present disclosure can record file information of files to be processed in a temporary folder, so that terminal users can process multiple files to be processed in the temporary folder, and realize batch processing of different files. Thereby improving the efficiency of file processing and improving the user experience.
  • FIG. 12 is a schematic diagram of the hardware structure of a terminal in various embodiments of the present disclosure.
  • the terminal 1200 includes but is not limited to: a radio frequency unit 1201, a network module 1202, a sound output unit 1203, an input unit 1204, a sensor 1205, a display unit 1206, a user input unit 1207, an interface unit 1208, a memory 1209, a processor 1210, and a power supply 1211 and other parts.
  • a radio frequency unit 1201 includes but is not limited to: a radio frequency unit 1201, a network module 1202, a sound output unit 1203, an input unit 1204, a sensor 1205, a display unit 1206, a user input unit 1207, an interface unit 1208, a memory 1209, a processor 1210, and a power supply 1211 and other parts.
  • terminal structure shown in FIG. 12 does not constitute a limitation on the terminal, and the terminal may include more or fewer components than shown in the figure, or combine some components, or arrange different components.
  • terminals include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and ped
  • the user input unit 1207 is configured to receive file storage operations for multiple files to be processed; and receive file processing instructions for at least one file information in the temporary folder.
  • the processor 1210 is configured to record file information of the file to be processed in a preset temporary folder in response to a file storage operation; and in response to a file processing instruction, execute a corresponding file on the file to be processed corresponding to the at least one file information Processing operation.
  • the file processing method and device can receive file storage operations of multiple files to be processed, and in response to the file storage operation, record the file identification and the file identification of the file to be processed in a preset temporary folder.
  • the file is processed so as to receive the file processing instruction of the at least one file identifier in the temporary folder, and in response to the file processing instruction, perform a corresponding file processing operation on the file to be processed corresponding to the at least one file identifier.
  • the present disclosure can record the file identification of the file to be processed and the file to be processed in a temporary folder, so that the terminal user can perform file processing on multiple files to be processed in the temporary folder, and realize that different files can be processed. Perform batch processing, thereby improving file processing efficiency and improving user experience.
  • the radio frequency unit 1201 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, after receiving the downlink data from the base station, it is processed by the processor 1210; Uplink data is sent to the base station.
  • the radio frequency unit 1201 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 1201 can also communicate with the network and other devices through a wireless communication system.
  • the terminal provides users with wireless broadband Internet access through the network module 1202, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the sound output unit 1203 can convert the sound data received by the radio frequency unit 1201 or the network module 1202 or stored in the memory 1209 into sound signals and output them as sound. Moreover, the sound output unit 1203 may also provide sound output related to a specific function performed by the terminal 1200 (for example, call signal reception sound, message reception sound, etc.).
  • the sound output unit 1203 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 1204 is used to receive audio or video signals.
  • the input unit 1204 may include a graphics processing unit (GPU) 12041 and a microphone 12042, and the graphics processor 12041 is configured to respond to still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame can be displayed on the display unit 1206.
  • the image frame processed by the graphics processor 12041 may be stored in the memory 1209 (or other storage medium) or sent via the radio frequency unit 1201 or the network module 1202.
  • the microphone 12042 can receive sound, and can process such sound into sound data.
  • the processed sound data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 1201 in the case of a telephone conversation mode.
  • the terminal 1200 further includes at least one sensor 1205, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 12061 according to the brightness of the ambient light.
  • the proximity sensor can turn off the display panel 12061 or the backlight when the terminal 1200 is moved to the ear. .
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify terminal posture (such as horizontal and vertical screen switching, related games, Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 1205 can also include fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, infrared Sensors, etc., will not be repeated here.
  • the display unit 1206 is used to display information input by the user or information provided to the user.
  • the display unit 1206 may include a display panel 12061, and the display panel 12061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 1207 can be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the terminal.
  • the user input unit 1207 includes a touch panel 12071 and other input devices 12072.
  • the touch panel 12071 also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on or near the touch panel 12071. operating).
  • the touch panel 12071 may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it
  • the processor 1210 receives and executes the command sent by the processor 1210.
  • the touch panel 12071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 1207 may also include other input devices 12072.
  • other input devices 12072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 12071 can cover the display panel 12061.
  • the touch panel 12071 detects a touch operation on or near it, it transmits it to the processor 1210 to determine the type of the touch event, and then the processor 1210 determines the type of the touch event according to the touch.
  • the type of event provides a responsive visual output on the display panel 12061.
  • the touch panel 12071 and the display panel 12061 are used as two independent components to realize the input and output functions of the terminal, in some embodiments, the touch panel 12071 and the display panel 12061 can be integrated to realize the input and output of the terminal.
  • the output function is not limited here.
  • the interface unit 1208 is an interface for connecting an external device to the terminal 1200.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, sound input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 1208 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the terminal 1200 or can be used to communicate between the terminal 1200 and the external device. Transfer data between.
  • the memory 1209 can be used to store software programs and various data.
  • the memory 1209 may mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as voice data, phone book, etc.) created by the use of mobile phones.
  • the memory 1209 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 1210 is the control center of the terminal. It uses various interfaces and lines to connect the various parts of the entire terminal. It executes the terminal's operation by running or executing software programs or modules stored in the memory 1209, and calling data stored in the memory 1209. Various functions and processing data to monitor the terminal as a whole.
  • the processor 1210 may include one or more processing units; optionally, the processor 1210 may integrate an application processor and a modem processor.
  • the application processor mainly processes the operating system, user interface, and application programs, etc.
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 1210.
  • the terminal 1200 may also include a power supply 1211 (such as a battery) for supplying power to various components.
  • a power supply 1211 (such as a battery) for supplying power to various components.
  • the power supply 1211 may be logically connected to the processor 1210 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
  • the terminal 1200 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present disclosure further provides a terminal, including a processor 1210, a memory 1209, a computer program stored on the memory 1209 and running on the processor 1210, and the computer program is implemented when the processor 1210 is executed
  • a terminal including a processor 1210, a memory 1209, a computer program stored on the memory 1209 and running on the processor 1210, and the computer program is implemented when the processor 1210 is executed
  • the embodiments of the present disclosure also provide a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the above-mentioned file processing method embodiment is implemented. Repeat it again.
  • the aforementioned computer-readable storage medium such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disks, or optical disks, etc.
  • the technical solution of the present disclosure can be embodied in the form of a software product in essence or the part that contributes to the related technology.
  • the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk). ) Includes several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present disclosure.

Landscapes

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

Abstract

本公开提供了一种文件处理方法和装置以及终端,所述方法包括:首先接收对多个待处理文件的文件存储操作,接着响应于所述文件存储操作,在预设的临时文件夹中记录所述待处理文件的文件信息;然后接收对所述临时文件夹中的至少一个文件信息的文件处理指令;最后响应于所述文件处理指令,对所述至少一个文件信息对应的待处理文件执行对应的文件处理操作。

Description

文件处理方法和装置以及终端
相关申请的交叉引用
本申请主张在2019年1月31日在中国提交的中国专利申请号No.201910100747.7的优先权,其全部内容通过引用包含于此。
技术领域
本公开涉及通信领域,尤其涉及一种文件处理方法和装置以及终端。
背景技术
随着移动终端的普及,人们的生活越来越依赖移动终端。目前,终端用户可以在移动终端中安装各种应用程序(如腾讯QQ、微信以及微博等),从而可以通过安装的应用程序实现用户交互。
由于在用户交互过程中,可能需要对终端中存储的文件进行文件处理(如分享文件、复制文件、剪切文件、压缩文件等)。在相关技术中,在一种场景下,可以在文件管理器中对文件进行文件处理,考虑到文件管理器中的文件目录都是以传统的层级关系展示的,这样,终端用户在进入到某一个文件目录时只能对该某一个文件目录下的文件进行文件处理,若要对另一个文件目录下的文件进行文件处理,则需要退出当前的该某一个文件目录,并进入到另一个文件目录中,如若终端用户需要发送视频文件和音乐文件至微信好友,则由于视频文件和音乐文件位于文件管理器中的不同文件目录下,此时,终端用户需要先进入视频文件目录,并在该视频文件目录中将需要发送的视频文件发送至该微信好友,然后,终端用户进入音乐文件目录,并在该音乐文件目录中将需要发送的音乐文件发送至该微信好友。在另一种场景下,终端用户在浏览网页时发现了一些不错的网站(即网站A、网站B和网站C),并需要将这些不错的网站分享给腾讯QQ好友,则终端用户可以首先进入网站A并将网站A分享至该腾讯QQ好友,再进入网站B并将网站B分享给该腾讯QQ好友,最后进入网站C并将网站C分享给该腾讯QQ好友。在又一种场景下,若终端用户需要发送多个微信好友(如好友F1和好友F2)的聊天 记录至指定好友,则需要首先进入好友F1的聊天界面,并将好友F1的聊天记录发送至该指定好友,然后进入好友F2的聊天界面,并将好友F2的聊天记录发送至该指定好友。可见,上述对文件处理的操作过程十分繁琐,无法同时对不同文件进行批量处理,从而降低了用户的处理效率以及用户体验。
发明内容
为了解决上述问题,本公开实施例提出一种文件处理方法和装置以及终端。
根据本公开实施例的第一方面,提供了一种文件处理方法,所述方法包括:
接收对多个待处理文件的文件存储操作;
响应于所述文件存储操作,在预设的临时文件夹中记录所述待处理文件的文件信息;
接收对所述临时文件夹中的至少一个文件信息的文件处理指令;以及
响应于所述文件处理指令,对所述至少一个文件信息对应的待处理文件执行对应的文件处理操作。
根据本公开实施例的第二方面,提供了一种文件处理装置,应用于终端,所述装置包括:
第一接收模块,用于接收对多个待处理文件的文件存储操作;
记录模块,用于响应于所述文件存储操作,在预设的临时文件夹中记录所述待处理文件的文件信息;
第二接收模块,用于接收对所述临时文件夹中的至少一个文件信息的文件处理指令;以及
执行模块,用于响应于所述文件处理指令,对所述至少一个文件信息对应的待处理文件执行对应的文件处理操作。
第三方面,本公开实施例还提供了一种终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现本公开所述的文件处理方法的步骤。
第四方面,本公开实施例还提供了一种计算机可读存储介质,所述计算 机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现本公开所述的文件处理方法的步骤。
在本公开实施例中,首先接收对多个待处理文件的文件存储操作,接着响应于所述文件存储操作,在预设的临时文件夹中记录所述待处理文件的文件信息;然后接收对所述临时文件夹中的至少一个文件信息的文件处理指令;最后响应于所述文件处理指令,对所述至少一个文件信息对应的待处理文件执行对应的文件处理操作。可见,本公开可以通过将待处理文件的文件信息记录在临时文件夹中,使得终端用户可以在该临时文件夹中对多个待处理文件进行文件处理,实现了可以对不同文件进行批量处理,从而提高了文件处理效率,并提高了用户的使用体验。
附图说明
为了更清楚地说明本公开实施例的技术方案,下面将对本公开实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1示出了本公开实施例中提供的一种文件处理方法的流程图;
图2示出了本公开实施例中提供的一种启动临时文件夹的示意图;
图3示出了本公开实施例中提供的另一种启动临时文件夹的示意图;
图4示出了本公开实施例中提供的一种生成文件处理指令的示意图;
图5示出了本公开实施例中提供的另一种生成文件处理指令的流程图;
图6示出了本公开实施例中提供的另一种文件处理方法的流程图;
图7示出了本公开实施例中提供的又一种文件处理方法的流程图;
图8示出了本公开实施例中提供的第一种文件处理装置的结构框图;
图9示出了本公开实施例中提供的第二种文件处理装置的结构框图;
图10示出了本公开实施例中提供的第三种文件处理装置的结构框图;
图11示出了本公开实施例中提供的第四种文件处理装置的结构框图;以及
图12示出了本公开实施例中提供的终端的硬件结构示意图。
具体实施方式
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
下面结合具体实施例对本公开进行详细说明。
参照图1,示出了本公开实施例中提供的一种文件处理方法的流程图,具体可以包括如下步骤:
步骤101,接收对多个待处理文件的文件存储操作。
在本步骤中,该待处理文件可以为视频文件、音频文件、文本文件、图像文件以及网页链接等,本公开对此不作限定。
在本公开实施例中,该多个待处理文件可以包括以下至少一种:不同应用程序中的文件,不同文件目录下的文件。
其中,在该多个待处理文件包括不同应用程序中的文件的情况下,本步骤可以接收在不同应用程序中,对该多个待处理文件的文件存储操作,其中,该多个待处理文件对应的应用程序可以均不同,当然,该多个待处理文件对应的应用程序也可以为部分相同。示例地,若多个待处理文件包括S1、S2、S3、S4、S5和S6,则在一种情况下,待处理文件S1、S2、S3、S4、S5和S6对应的应用程序分别为“网易公开课”、“微信”、“腾讯QQ”、“酷狗音乐”、“名人历史课”、“今日头条”,此时,本步骤中的文件存储操作包括:在“网易公开课”中对待处理文件S1进行文件存储操作、在“微信”中对待处理文件S2进行文件存储操作、在“腾讯QQ”中对待处理文件S3进行文件存储操作、在“酷狗音乐”中对待处理文件S4进行文件存储操作、在“名人历史课”中对待处理文件S5进行文件存储操作、在“今日头条”中对待处理文件S6进行文件存储操作;在另一种情况下,待处理文件S1和S2对应的应用程序为“网易公开课”,待处理文件S3对应的应用程序为“微信”,待处理文件S4、S5和S6对应的应用程序为“酷狗音乐”,此时,本步骤中的文件存储操作包括:在“网易公开课”中对待处理文件S1和S2进行文件存储操作、在 “微信”中对待处理文件S3进行文件存储操作、在“酷狗音乐”中对待处理文件S4、S5和S6进行文件存储操作。
在该多个待处理文件包括不同文件目录下的文件的情况下,本步骤可以接收对不同文件目录下的多个待处理文件的文件存储操作,其中,该多个待处理文件对应的文件目录可以均不同,当然,该多个待处理文件对应的文件目录也可以为部分相同。示例地,若多个待处理文件包括R1、R2、R3和R4,则在一种情况下,待处理文件R1、R2、R3和R4对应的文件目录分别为“视频目录”、“音频目录”、“文本目录”和“图像目录”,此时,本步骤中的文件存储操作包括:在“视频目录”中对待处理文件R1进行文件存储操作、在“音频目录”中对待处理文件R2进行文件存储操作、在“文本目录”中对待处理文件R3进行文件存储操作、在“图像目录”中对待处理文件R4进行文件存储操作;在另一种情况下,待处理文件R1和R3对应的文件目录为“视频目录”,待处理文件R2和R4对应的文件目录为“音频目录”,此时,本步骤中的文件存储操作包括:在“视频目录”中对待处理文件R1和R3进行文件存储操作、在“音频目录”中对待处理文件R2和R4进行文件存储操作。
在该多个待处理文件包括不同应用程序中的文件,和不同文件目录下的文件的情况下,本步骤可以按照上述所述的方法接收在不同应用程序中,对该不同应用程序中的文件的文件存储操作,以及接收对不同文件目录下的文件的文件存储操作,具体过程不再赘述。
在本公开实施例中,在接收到对临时文件夹的启动触发操作时,显示该临时文件夹的悬浮窗口。在一种可能的实现方式中,如图2所示,在启动文件管理器后,打开文件控制界面,从而在文件控制界面中触发临时文件夹的文件夹标识以启动该临时文件夹,在终端用户触发该文件夹标识后,如图3所示,在该移动终端的屏幕上显示该临时文件夹的悬浮窗口;在另一种可能的实现方式中,可以预先在终端的“设置”中添加该临时文件夹的滑动开关按钮,并且可以预设为在该滑动开关按钮滑动至左侧时,该临时文件夹为关闭状态,在该滑动开关按钮滑动至右侧时,该临时文件夹为启动状态,这样,终端用户可以将该滑动开关按钮滑动至右侧以使得在移动终端的界面上显示该临时文件夹的悬浮窗口。需要说明的是,在通过上述方式启动该临时文件 夹后,可以根据用户需求调整该临时文件夹的窗口大小,以及窗口位置等,上述启动该临时文件夹的过程只是举例说明,本公开对此不作限定。
通过上述方式启动该临时文件夹的悬浮窗口后,该文件存储操作可以为分别将该多个待处理文件拖拽至临时文件夹中,如在该待处理文件为网页链接时,可以双指长按该网页并向临时文件夹中拖拽,又如在该待处理文件为文本文件时,可以单指长按该文本文件并向临时文件夹中拖拽;该文件存储操作还可以为对该待处理文件进行右键单击以展示操作列表,从而在操作列表中选择“发送到临时文件夹”,上述文件存储操作的方式只是举例说明,本公开对此不作限定。
步骤102,响应于所述文件存储操作,在预设的临时文件夹中记录所述待处理文件的文件信息。
在本公开实施例中,该文件信息可以包括文件标识和文件路径信息,或者该文件信息可以包括文件标识。
需要说明的是,在该待处理文件为文本文件时,若终端用户需要进行文件处理的文本文件为部分段落,则在用户对该部分段落进行该文件存储操作时,移动终端可以生成该部分段落的文件标识,从而将该文件标识记录在该临时文件夹中,其中,该文件标识可以由该部分段落的前几位字符构成,或者该文件标识可以由该部分段落的关键词构成,或者该文件标识可以为移动终端按照临时文件夹中的文本存储顺序生成,如该临时文件夹中已存储有第一文本和第二文本,则可以将该部分段落的文件标识设置为第三文本等;在该待处理文件为网页链接时,若用户对该网页链接进行该文件存储操作,则移动终端可以生成该网页链接对应的文件标识,从而将该文件标识记录在该临时文件夹中,其中,该文件标识可以根据网页内容确定,例如,若该待处理文件为vivo官网的链接,则该文件标识即为vivo官网,上述示例只是举例说明,本公开对此不作限定。
步骤103,接收对所述临时文件夹中的至少一个文件信息的文件处理指令。
由于本申请可以显示所述临时文件夹对应的悬浮窗口,从而本步骤可以接收对悬浮窗口中的至少一个文件信息的文件处理指令,进一步地,可以接 收对该悬浮窗口中的至少一个文件标识的文件处理指令,其中,可以对所述临时文件夹中的至少一个文件标识进行选取操作,并在对所述临时文件夹中的至少一个文件标识选取完成后,从预设处理指令中,获取所述至少一个文件标识对应的待处理文件的文件处理指令。示例地,该预设处理指令可以包括文件分享指令、文件压缩指令、文件重命名指令、文件移入至保密柜指令以及文件剪切指令等。如图4所示,为了便于用户对临时文件夹中的文件标识操作,可以将该临时文件夹的悬浮窗口拉大以在终端整个屏幕展示该临时文件夹的悬浮窗口,其中,该临时文件夹的悬浮窗口展示有包括视频1、视频2、文本1、文本2、音频1、音频2以及vivo官网的文件标识列表,在该至少一个文件标识对应的待处理文件为视频1、视频和音频1时,用户可以从该文件标识列表中勾选该至少一个文件标识对应的勾选框,并在悬浮窗口的底部位置的预设处理指令中,获取对视频1、视频2和音频1的文件处理指令,例如该文件处理指令为文件分享指令,则用户可以触发悬浮窗口中的“分享”,又如,该文件处理指令为文件压缩指令,则用户可以触发悬浮窗口中的“压缩”等。
另外,由于该临时文件夹的悬浮窗口可以悬浮展示,因此,可以启动用户需要进行信息交互的目标应用程序,并进入需要执行文件处理指令的目标联系人的聊天界面,从而在移动终端展示目标联系人的聊天界面时,移动终端可以接收根据用户对所述至少一个文件标识的拖拽操作生成的文件处理指令,所述拖拽操作为将所述临时文件夹中的至少一个文件标识拖拽至所述聊天界面的操作,需要说明的是,可以根据执行拖拽操作的拖拽方式确定该文件处理指令,如在该拖拽操作为单指拖拽操作时,确定该文件处理指令为文件分享指令,在该拖拽操作为双指拖拽操作时,确定该文件处理指令为文件剪切指令,在该拖拽操作为三指拖拽操作时,确定该文件处理指令为文件压缩指令等等。示例地,如图5所示,该临时文件夹的悬浮窗口中展示有视频1、视频2和音频1以及音频2,终端用户启动的目标应用程序为微信,且打开了与目标联系人“王明”的聊天界面,此时,若用户想要将视频1对应的待处理文件分享至该目标联系人“王明”,则可以将该视频1的文件标识单指拖拽至该目标联系人“王明”的聊天界面,从而移动终端可以接收根据该单 指拖拽操作生成的文件分享指令,通过同样方式可以将该临时文件夹中的其他文件分享至目标联系人“王明”,当然,为了避免用户进行多次拖拽,还可以对每一个文件标识设置对应的勾选框(图5中未画出),从而用户在临时文件夹中对该至少一个文件标识完成勾选后,统一将勾选后的文件标识单手拖拽至该目标联系人“王明”的聊天界面,从而避免了相关技术中在该待处理文件为不同应用程序中的文件或者不同文件目录下的文件时,无法批量进行文件处理的问题,上述示例只是举例说明,本公开对此不作限定。
步骤104,响应于所述文件处理指令,对所述至少一个文件信息对应的待处理文件执行对应的文件处理操作。
其中,在该文件处理指令为文件分享指令的情况下,可以将该待处理文件进行分享;在该文件处理指令为文件复制指令的情况下,可以将该待处理文件进行复制;在该文件处理指令为文件压缩指令的情况下,可以将该待处理文件进行压缩;在该文件处理指令为文件剪切指令的情况下,可以将该待处理文件进行剪切;在该文件处理指令为文件移入至保密柜指令的情况下,可以将该待处理文件移入至保密柜;在该文件处理指令为文件重命名指令的情况下,可以将该待处理文件进行重命名等等。
需要说明的是,在该文件处理指令为文件分享指令的情况下,由于本公开还可以在该临时文件夹中记录该多个待处理文件对应的文件类型,这样,本步骤可以将该至少一个文件标识对应的待处理文件,按照对应的文件形式进行文件分享操作,如若该待处理文件为视频类型,则可以将该待处理文件按照视频类型进行分享;若该待处理文件为音频类型,则可以将该待处理文件按照音频类型进行分享;若该待处理文件为文本类型,则可以将该待处理文件按照文本类型进行分享等。
本公开在对该临时文件夹中的文件信息执行完文件处理指令后,可以接收对该临时文件夹的关闭触发操作时,从而根据该关闭触发操作清空该临时文件夹,以减少资源占用,并且便于终端用户在下次启动临时文件夹时可以使用清空的文件夹。在一种可能的实现方式中,可以在启动文件管理器后,打开文件控制界面,从而在文件控制界面中再次触发临时文件夹的文件夹标识以关闭该临时文件夹;在另一种可能的实现方式中,可以在终端的“设置” 中查找该临时文件夹的滑动开关按钮,并将该滑动开关按钮滑动至左侧以关闭该临时文件夹,上述示例只是举例说明,本公开对此不做限定。
综上所述,在本公开实施例中,可以接收多个待处理文件的文件存储操作,并响应于该文件存储操作,在预设的临时文件夹中记录该待处理文件的文件信息,从而可以接收对该临时文件夹中的至少一个文件信息的文件处理指令,并响应于该文件处理指令,对该至少一个文件信息对应的待处理文件执行对应的文件处理操作。这样,本公开可以通过将待处理文件的文件信息记录在临时文件夹中,使得终端用户可以在该临时文件夹中对多个待处理文件进行文件处理,实现了可以对不同文件进行批量处理,从而提高了文件处理效率,并提高了用户的使用体验。
参照图6,示出了本公开实施例中提供的一种文件处理方法的流程图。本实施例以该文件信息包括文件标识和文件路径信息为例进行说明,具体可以包括以下步骤:
步骤601,接收对多个待处理文件的文件存储操作。
在本公开实施例中,可以通过用户的手指将该待处理文件拖拽至预设的临时文件夹中,当然,该文件存储操作也可以是其他操作手势,如对该待处理文件右键点击以展示操作列表,并在操作列表中选择“发送到临时文件夹”,本公开实施例对此不作具体限定。
步骤601可以参照步骤101,此处不再赘述。
步骤602,响应于所述文件存储操作,在预设的临时文件夹中记录所述待处理文件的文件标识和文件路径信息。
其中,该文件标识和该文件路径信息存在标识路径对应关系,从而在后续步骤中接收到用户对至少一个文件标识的文件处理指令时,可以根据标识路径对应关系获取到该至少一个文件标识对应的文件路径信息,从而根据对应的文件路径信息获取到该至少一个文件标识对应的待处理文件。
步骤603,接收对所述临时文件夹中的至少一个文件标识的文件处理指令。
在本公开实施例中,通过显示所述临时文件夹对应的悬浮窗口,从而本步骤可以接收对悬浮窗口中的至少一个文件标识的文件处理指令,其中,可 以将该文件标识按序展示在临时文件夹的悬浮窗口中,并且该悬浮窗口的底部位置中可以设置有预设处理指令,以及文件标识对应的选择框等,以供用户查看,该底部位置可以理解为移动终端的home键一侧的一端。这样,在进行该至少一个文件标识的选取后,从悬浮窗口中的预设处理指令中触发该文件处理指令。示例地,该文件标识可以按照文件存储操作的存储时间进行排序,或者该文件标识可以首先按照对应的待处理文件的文件类型进行排序,然后将同一文件类型的待处理文件按照文件存储操作的存储时间进行排序,如该待处理文件的文件类型包括视频类型、音频类型和文本类型,且视频类型的待处理文件的优先级最高,音频类型的待处理文件的优先级次高,文本类型的待处理文件的优先级最低,这样,可以将视频类型的待处理文件优先展示,并且将视频类型的待处理文件按照文件存储操作的存储时间进行排序,接着展示音频类型的待处理文件,并且将音频类型的待处理文件按照文件存储操作的存储时间进行排序,最后展示文本类型的待处理文件,并且将文本类型的待处理文件按照文件存储操作的存储时间进行排序,上述示例只是举例说明,本申请对此不作限定。
另外,由于该临时文件夹的悬浮窗口可以悬浮展示,因此,可以启动用户需要进行信息交互的目标应用程序,并进入需要执行文件处理指令的目标联系人的聊天界面,从而在移动终端展示目标联系人的聊天界面时,移动终端可以接收根据用户对所述至少一个文件标识的拖拽操作生成的文件处理指令,所述拖拽操作为将所述临时文件夹中的至少一个文件标识拖拽至所述聊天界面的操作,需要说明的是,可以根据执行拖拽操作的拖拽方式确定该文件处理指令,如在该拖拽操作为单指拖拽操作时,确定该文件处理指令为文件分享指令,在该拖拽操作为双指拖拽操作时,确定该文件处理指令为文件剪切指令,在该拖拽操作为三指拖拽操作时,确定该文件处理指令为文件压缩指令等等。
步骤603可以参照步骤103,此处不再赘述。
步骤604,响应于所述文件处理指令,根据所述文件路径信息获取所述至少一个文件标识对应的待处理文件。
本实施例通过记录该待处理文件的文件路径信息,无需将该待处理文件 移动至临时文件夹,从而可以节省该临时文件夹的存储空间,并且避免待处理文件移动耗时久的问题。
步骤605,对获取到的待处理文件执行对应的文件处理操作。
综上所述,在本公开实施例中,可以接收多个待处理文件的文件存储操作,并响应于该文件存储操作,在预设的临时文件夹中记录该待处理文件的文件标识和文件路径信息,从而可以接收对该临时文件夹中的至少一个文件标识的文件处理指令,并响应于该文件处理指令,对该至少一个文件标识对应的待处理文件执行对应的文件处理操作。这样,本公开可以通过将待处理文件的文件标识和文件路径信息记录在临时文件夹中,使得终端用户可以在该临时文件夹中对多个待处理文件进行文件处理,实现了可以对不同文件进行批量处理,从而提高了文件处理效率,并提高了用户的使用体验。
参照图7,示出了本公开实施例中提供的一种文件处理方法的流程图。本实施例以该文件信息包括文件标识为例进行说明,具体可以包括:
步骤701,接收对多个待处理文件的文件存储操作。
在本公开实施例中,可以通过用户的手指将该待处理文件拖拽至预设的临时文件夹中,当然,该文件存储操作也可以是其他操作手势,如对该待处理文件右键点击以展示操作列表,并在操作列表中选择“发送到临时文件夹”,本公开实施例对此不做具体限定。
步骤701可以参照步骤101,此处不再赘述。
步骤702,响应于所述文件存储操作,在预设的临时文件夹中记录所述待处理文件的文件标识。
步骤703,将所述多个待处理文件移动至所述临时文件夹中。
在一种可能的实现方式中,该文件标识和该待处理文件存在标识文件对应关系,从而在后续步骤中接收到用户对至少一个文件标识的文件处理指令时,可以根据标识文件对应关系从临时文件夹中获取到该至少一个文件标识对应的待处理文件;在另一种可能的实现方式中,由于在将待处理文件移动至临时文件夹的过程中,可以记录该待处理文件在该临时文件夹中的存储路径信息,使得后续步骤中可以直接在临时文件夹中,根据存储路径信息获取到该至少一个文件标识对应的待处理文件,上述示例只是举例说明,本申请 对此不作限定。
步骤704,接收对所述临时文件夹中的至少一个文件标识的文件处理指令。
在本公开实施例中,通过显示所述临时文件夹对应的悬浮窗口,从而本步骤可以接收对悬浮窗口中的至少一个文件标识的文件处理指令,其中,可以将该文件标识按序展示在临时文件夹的悬浮窗口中,并且该悬浮窗口的底部位置可以设置有预设处理指令,以及文件标识对应的选择框等,以供用户查看。这样,在进行该至少一个文件标识的选取后,从悬浮窗口中的预设处理指令中触发该文件处理指令。示例地,该文件标识可以按照文件存储操作的存储时间进行排序,或者该文件标识可以首先按照对应的待处理文件的文件类型进行排序,然后将同一文件类型的待处理文件按照文件存储操作的存储时间进行排序,如该待处理文件的文件类型包括视频类型、音频类型和文本类型,且视频类型的待处理文件的优先级最高,音频类型的待处理文件的优先级次高,文本类型的待处理文件的优先级最低,这样,可以将视频类型的待处理文件优先展示,并且将视频类型的待处理文件按照文件存储操作的存储时间进行排序,接着展示音频类型的待处理文件,并且将音频类型的待处理文件按照文件存储操作的存储时间进行排序,最后展示文本类型的待处理文件,并且将文本类型的待处理文件按照文件存储操作的存储时间进行排序,上述示例只是举例说明,本申请对此不作限定。
另外,由于该临时文件夹的悬浮窗口可以悬浮展示,因此,可以启动用户需要进行信息交互的目标应用程序,并进入需要执行文件处理指令的目标联系人的聊天界面,从而在移动终端展示目标联系人的聊天界面时,移动终端可以接收根据用户对所述至少一个文件标识的拖拽操作生成的文件处理指令,所述拖拽操作为将所述临时文件夹中的至少一个文件标识拖拽至所述聊天界面的操作,需要说明的是,可以根据执行拖拽操作的拖拽方式确定该文件处理指令,如在该拖拽操作为单指拖拽操作时,确定该文件处理指令为文件分享指令,在该拖拽操作为双指拖拽操作时,确定该文件处理指令为文件剪切指令,在该拖拽操作为三指拖拽操作时,确定该文件处理指令为文件压缩指令等等。
步骤704可以参照步骤103,此处不再赘述。
步骤705,响应于所述文件处理指令,在所述临时文件夹中获取所述至少一个文件标识对应的待处理文件。
本实施例通过在临时文件夹中存储该待处理文件,在一种可能的实现方式中,可以基于步骤703中所述的标识文件对应关系,获取到该至少一个文件标识对应的待处理文件;在另一种可能的实现方式中,由于该临时文件夹中记录有该多个待处理文件的存储路径信息,从而可以根据该至少一个文件标识和存储路径信息从该临时文件夹中获取到该至少一个文件标识对应的待处理文件,避免在文件初始位置获取该待处理文件的步骤。
步骤706,对获取到的待处理文件执行对应的文件处理操作。
综上所述,在本公开实施例中,可以接收多个待处理文件的文件存储操作,并响应于该文件存储操作,在预设的临时文件夹中记录该待处理文件的文件标识,并将改多个待处理文件移动至临时文件夹中,从而可以接收对该临时文件夹中的至少一个文件标识的文件处理指令,并响应于该文件处理指令,对该至少一个文件标识对应的待处理文件执行对应的文件处理操作。这样,本公开可以通过将待处理文件的文件标识记录在临时文件夹中,使得终端用户可以在该临时文件夹中对多个待处理文件进行文件处理,实现了可以对不同文件进行批量处理,从而提高了文件处理效率,并提高了用户的使用体验。
参照图8,示出了本公开实施例中提供的一种文件处理装置800的结构框图。所述装置应用于终端,具体可以包括:
第一接收模块801,用于接收对多个待处理文件的文件存储操作;
记录模块802,用于响应于该文件存储操作,在预设的临时文件夹中记录该待处理文件的文件信息;
第二接收模块803,用于接收对该临时文件夹中的至少一个文件信息的文件处理指令;
执行模块804,用于响应于该文件处理指令,对该至少一个文件信息对应的待处理文件执行对应的文件处理操作。
参照图9,在图8的基础上,在该文件信息包括文件标识和文件路径信 息的情况下;该第二接收模块803,用于接收对该临时文件夹中的至少一个文件标识的文件处理指令;
该执行模块804包括:
第一获取子模块8041,用于响应于该文件处理指令,根据该文件路径信息获取该至少一个文件标识对应的待处理文件;
第一执行子模块8042,用于对获取到的待处理文件执行对应的文件处理操作。
参照图10,在图8的基础上,在该文件信息包括文件标识的情况下;所述装置还包括:
移动模块805,用于将该多个待处理文件移动至该临时文件夹中;
该第二接收模块803,用于接收对该临时文件夹中的至少一个文件标识的文件处理指令;
该执行模块804包括:
第二获取子模块8043,用于响应于该文件处理指令,在该临时文件夹中获取该至少一个文件标识对应的待处理文件;
第二执行子模块8044,用于对获取到的待处理文件执行对应的文件处理操作。
可选地,该多个待处理文件包括以下至少一种:不同应用程序中的文件,不同文件目录下的文件。
可选地,该第二接收模块803,用于在对该临时文件夹中的至少一个文件标识选取完成后,从预设处理指令中,获取对该至少一个文件标识对应的待处理文件的文件处理指令。
可选地,该第二接收模块803,用于在展示目标联系人的聊天界面时,接收根据用户对该至少一个文件标识的拖拽操作生成的文件处理指令;该拖拽操作为将该临时文件夹中的至少一个文件标识拖拽至该聊天界面的操作。
参照图11,在图8的基础上,该装置还包括:
显示模块806,用于显示该临时文件夹对应的悬浮窗口;
该第二接收模块803,用于接收对该悬浮窗口中的至少一个文件信息的文件处理指令。
本公开实施例图8-图11提供的装置能够实现图1、图6和图7的方法实施例中的各个过程,为避免重复,这里不再赘述。
综上所述,在本公开实施例中,可以接收多个待处理文件的文件存储操作,并响应于该文件存储操作,在预设的临时文件夹中记录该待处理文件的文件信息,从而可以接收对该临时文件夹中的至少一个文件信息的文件处理指令,并响应于该文件处理指令,对该至少一个文件信息对应的待处理文件执行对应的文件处理操作。这样,本公开可以通过将待处理文件的文件信息记录在临时文件夹中,使得终端用户可以在该临时文件夹中对多个待处理文件进行文件处理,实现了可以对不同文件进行批量处理,从而提高了文件处理效率,并提高了用户的使用体验。
图12为实现本公开各个实施例中的一种终端的硬件结构示意图。
该终端1200包括但不限于:射频单元1201、网络模块1202、声音输出单元1203、输入单元1204、传感器1205、显示单元1206、用户输入单元1207、接口单元1208、存储器1209、处理器1210、以及电源1211等部件。本领域技术人员可以理解,图12中示出的终端结构并不构成对终端的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开实施例中,终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。
其中,用户输入单元1207,用于接收对多个待处理文件的文件存储操作;以及接收对临时文件夹中的至少一个文件信息的文件处理指令。
处理器1210,用于响应于文件存储操作,在预设的临时文件夹中记录待处理文件的文件信息;以及响应于文件处理指令,对该至少一个文件信息对应的待处理文件执行对应的文件处理操作。
本公开实施例提供的文件处理方法和装置,可以接收多个待处理文件的文件存储操作,并响应于该文件存储操作,在预设的临时文件夹中记录该待处理文件的文件标识和待处理文件,从而可以接收对该临时文件夹中的至少一个文件标识的文件处理指令,并响应于该文件处理指令,对该至少一个文件标识对应的待处理文件执行对应的文件处理操作。这样,本公开可以通过将待处理文件的文件标识和待处理文件记录在临时文件夹中,使得终端用户 可以在该临时文件夹中对多个待处理文件进行文件处理,实现了可以对不同文件进行批量处理,从而提高了文件处理效率,并提高了用户的使用体验。
应理解的是,本公开实施例中,射频单元1201可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器1210处理;另外,将上行的数据发送给基站。通常,射频单元1201包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元1201还可以通过无线通信系统与网络和其他设备通信。
终端通过网络模块1202为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
声音输出单元1203可以将射频单元1201或网络模块1202接收的或者在存储器1209中存储的声音数据转换成声音信号并且输出为声音。而且,声音输出单元1203还可以提供与终端1200执行的特定功能相关的声音输出(例如,呼叫信号接收声音、消息接收声音等等)。声音输出单元1203包括扬声器、蜂鸣器以及受话器等。
输入单元1204用于接收声音或视频信号。输入单元1204可以包括图形处理器(Graphics Processing Unit,GPU)12041和麦克风12042,图形处理器12041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元1206上。经图形处理器12041处理后的图像帧可以存储在存储器1209(或其它存储介质)中或者经由射频单元1201或网络模块1202进行发送。麦克风12042可以接收声音,并且能够将这样的声音处理为声音数据。处理后的声音数据可以在电话通话模式的情况下转换为可经由射频单元1201发送到移动通信基站的格式输出。
终端1200还包括至少一种传感器1205,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板12061的亮度,接近传感器可在终端1200移动到耳边时,关闭显示面板12061或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端姿态(比如横竖屏切换、 相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器1205还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元1206用于显示由用户输入的信息或提供给用户的信息。显示单元1206可包括显示面板12061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板12061。
用户输入单元1207可用于接收输入的数字或字符信息,以及产生与终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元1207包括触控面板12071以及其他输入设备12072。触控面板12071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板12071上或在触控面板12071附近的操作)。触控面板12071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1210,接收处理器1210发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板12071。除了触控面板12071,用户输入单元1207还可以包括其他输入设备12072。具体地,其他输入设备12072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板12071可覆盖在显示面板12061上,当触控面板12071检测到在其上或附近的触摸操作后,传送给处理器1210以确定触摸事件的类型,随后处理器1210根据触摸事件的类型在显示面板12061上提供响应的视觉输出。虽然触控面板12071与显示面板12061是作为两个独立的部件来实现终端的输入和输出功能,但是在某些实施例中,可以将触控面板12071与显示面板12061集成而实现终端的输入和输出功能,具体此处不做限定。
接口单元1208为外部装置与终端1200连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、声音输入/ 输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元1208可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端1200内的一个或多个元件或者可以用于在终端1200和外部装置之间传输数据。
存储器1209可用于存储软件程序以及各种数据。存储器1209可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如声音数据、电话本等)等。此外,存储器1209可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器1210是终端的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器1209内的软件程序或模块,以及调用存储在存储器1209内的数据,执行终端的各种功能和处理数据,从而对终端进行整体监控。处理器1210可包括一个或多个处理单元;可选的,处理器1210可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1210中。
终端1200还可以包括给各个部件供电的电源1211(比如电池),可选的,电源1211可以通过电源管理系统与处理器1210逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,终端1200包括一些未示出的功能模块,在此不再赘述。
可选的,本公开实施例还提供一种终端,包括处理器1210,存储器1209,存储在存储器1209上并可在上述处理器1210上运行的计算机程序,该计算机程序被处理器1210执行时实现上述文件处理方法实施例的各个过程,为避免重复,这里不再赘述。
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述文件处理方法实施例的各个过程,为避免重复,这里不再赘述。其中,上述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器 (Random Access Memory,简称RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,这些均属于本公开的保护之内。

Claims (16)

  1. 一种文件处理方法,所述方法包括:
    接收对多个待处理文件的文件存储操作;
    响应于所述文件存储操作,在预设的临时文件夹中记录所述待处理文件的文件信息;
    接收对所述临时文件夹中的至少一个文件信息的文件处理指令;以及
    响应于所述文件处理指令,对所述至少一个文件信息对应的待处理文件执行对应的文件处理操作。
  2. 根据权利要求1所述的方法,其中,在所述文件信息包括文件标识和文件路径信息的情况下;所述接收对所述临时文件夹中的至少一个文件信息的文件处理指令,包括:
    接收对所述临时文件夹中的至少一个文件标识的文件处理指令;
    所述响应于所述文件处理指令,对所述至少一个文件信息对应的待处理文件执行对应的文件处理操作包括:
    响应于所述文件处理指令,根据所述文件路径信息获取所述至少一个文件标识对应的待处理文件;
    对获取到的待处理文件执行对应的文件处理操作。
  3. 根据权利要求1所述的方法,其中,在所述文件信息包括文件标识的情况下;在所述接收对所述临时文件夹中的至少一个文件信息的文件处理指令之前,还包括:
    将所述多个待处理文件移动至所述临时文件夹中;
    所述接收对所述临时文件夹中的至少一个文件信息的文件处理指令,包括:
    接收对所述临时文件夹中的至少一个文件标识的文件处理指令;
    所述响应于所述文件处理指令,对所述至少一个文件信息对应的待处理文件执行对应的文件处理操作包括:
    响应于所述文件处理指令,在所述临时文件夹中获取所述至少一个文件标识对应的待处理文件;
    对获取到的待处理文件执行对应的文件处理操作。
  4. 根据权利要求1所述的方法,其中,所述多个待处理文件包括以下至少一种:不同应用程序中的文件,不同文件目录下的文件。
  5. 根据权利要求2或3所述的方法,其中,所述接收对所述临时文件夹中的至少一个文件信息的文件处理指令,包括:
    在对所述临时文件夹中的至少一个文件标识选取完成后,从预设处理指令中,获取对所述至少一个文件标识对应的待处理文件的文件处理指令。
  6. 根据权利要求2或3所述的方法,其中,所述接收对所述临时文件夹中的至少一个文件信息的文件处理指令,包括:
    在展示目标联系人的聊天界面时,接收根据用户对所述至少一个文件标识的拖拽操作生成的文件处理指令;所述拖拽操作为将所述临时文件夹中的至少一个文件标识拖拽至所述聊天界面的操作。
  7. 根据权利要求1-6中任一项所述的方法,其中,在所述接收对所述临时文件夹中的至少一个文件信息的文件处理指令之前,所述方法还包括:
    显示所述临时文件夹对应的悬浮窗口;
    所述接收对所述临时文件夹中的至少一个文件信息的文件处理指令,包括:
    接收对所述悬浮窗口中的至少一个文件信息的文件处理指令。
  8. 一种文件处理装置,应用于终端,所述装置包括:
    第一接收模块,用于接收对多个待处理文件的文件存储操作;
    记录模块,用于响应于所述文件存储操作,在预设的临时文件夹中记录所述待处理文件的文件信息;
    第二接收模块,用于接收对所述临时文件夹中的至少一个文件信息的文件处理指令;以及
    执行模块,用于响应于所述文件处理指令,对所述至少一个文件信息对应的待处理文件执行对应的文件处理操作。
  9. 根据权利要求8所述的装置,其中,在所述文件信息包括文件标识和文件路径信息的情况下;所述第二接收模块,用于接收对所述临时文件夹中的至少一个文件标识的文件处理指令;
    所述执行模块包括:
    第一获取子模块,用于响应于所述文件处理指令,根据所述文件路径信息获取所述至少一个文件标识对应的待处理文件;
    第一执行子模块,用于对获取到的待处理文件执行对应的文件处理操作。
  10. 根据权利要求8所述的装置,其中,在所述文件信息包括文件标识的情况下;所述装置还包括:
    移动模块,用于将所述多个待处理文件移动至所述临时文件夹中;
    所述第二接收模块,用于接收对所述临时文件夹中的至少一个文件标识的文件处理指令;
    所述执行模块包括:
    第二获取子模块,用于响应于所述文件处理指令,在所述临时文件夹中获取所述至少一个文件标识对应的待处理文件;
    第二执行子模块,用于对获取到的待处理文件执行对应的文件处理操作。
  11. 根据权利要求8所述的装置,其中,所述多个待处理文件包括以下至少一种:不同应用程序中的文件,不同文件目录下的文件。
  12. 根据权利要求9或10所述的装置,其中,所述第二接收模块,用于在对所述临时文件夹中的至少一个文件标识选取完成后,从预设处理指令中,获取对所述至少一个文件标识对应的待处理文件的文件处理指令。
  13. 根据权利要求9或10所述的装置,其中,所述第二接收模块,用于在展示目标联系人的聊天界面时,接收根据用户对所述至少一个文件标识的拖拽操作生成的文件处理指令;所述拖拽操作为将所述临时文件夹中的至少一个文件标识拖拽至所述聊天界面的操作。
  14. 根据权利要求8-13中任一项所述的装置,其中,所述装置还包括:
    显示模块,用于显示所述临时文件夹对应的悬浮窗口;
    所述第二接收模块,用于接收对所述悬浮窗口中的至少一个文件信息的文件处理指令。
  15. 一种终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1-7中任一项所述的文件处理方法的步骤。
  16. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1-7中任一项所述的文件处理方法的步骤。
PCT/CN2020/071714 2019-01-31 2020-01-13 文件处理方法和装置以及终端 WO2020156117A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910100747.7 2019-01-31
CN201910100747.7A CN109918344A (zh) 2019-01-31 2019-01-31 文件处理方法和装置以及终端

Publications (1)

Publication Number Publication Date
WO2020156117A1 true WO2020156117A1 (zh) 2020-08-06

Family

ID=66961281

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/071714 WO2020156117A1 (zh) 2019-01-31 2020-01-13 文件处理方法和装置以及终端

Country Status (2)

Country Link
CN (1) CN109918344A (zh)
WO (1) WO2020156117A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918344A (zh) * 2019-01-31 2019-06-21 维沃移动通信有限公司 文件处理方法和装置以及终端
CN111104380A (zh) * 2019-11-27 2020-05-05 维沃移动通信有限公司 应用文件管理方法、装置、移动终端及存储介质
CN111966261A (zh) * 2020-10-21 2020-11-20 北京联想协同科技有限公司 一种文件管理方法、装置及存储介质

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105022844A (zh) * 2015-08-25 2015-11-04 魅族科技(中国)有限公司 一种文件批量处理的方法及终端
CN109918344A (zh) * 2019-01-31 2019-06-21 维沃移动通信有限公司 文件处理方法和装置以及终端

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488060A (zh) * 2014-09-18 2016-04-13 东莞宇龙通信科技有限公司 文件获取方法、文件获取装置和终端
CN105824827A (zh) * 2015-01-06 2016-08-03 阿里巴巴集团控股有限公司 一种文件路径的存储和本地文件的访问方法及装置
KR102476290B1 (ko) * 2016-06-03 2022-12-09 삼성전자주식회사 파일 공유 방법 및 이를 구현한 전자 장치
US20180039652A1 (en) * 2016-08-02 2018-02-08 Microsoft Technology Licensing, Llc Symbolic link based placeholders

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105022844A (zh) * 2015-08-25 2015-11-04 魅族科技(中国)有限公司 一种文件批量处理的方法及终端
CN109918344A (zh) * 2019-01-31 2019-06-21 维沃移动通信有限公司 文件处理方法和装置以及终端

Also Published As

Publication number Publication date
CN109918344A (zh) 2019-06-21

Similar Documents

Publication Publication Date Title
US20220365641A1 (en) Method for displaying background application and mobile terminal
WO2020147674A1 (zh) 未读消息提示方法及移动终端
WO2019137429A1 (zh) 图片处理方法及移动终端
WO2021077897A1 (zh) 文件发送方法、装置和电子设备
WO2020258929A1 (zh) 文件夹界面切换方法及终端设备
US10775979B2 (en) Buddy list presentation control method and system, and computer storage medium
WO2021129762A1 (zh) 应用分享方法、电子设备及计算机可读存储介质
JP2021525430A (ja) 表示制御方法及び端末
WO2021017776A1 (zh) 信息处理方法及终端
WO2020215949A1 (zh) 对象处理方法及终端设备
WO2020151512A1 (zh) 图像存储方法及终端设备
WO2020259024A1 (zh) 图标分类方法、移动终端及计算机可读存储介质
WO2021136159A1 (zh) 截屏方法及电子设备
WO2020020126A1 (zh) 信息处理方法及终端
WO2020156118A1 (zh) 管理方法及终端设备
CN108255372B (zh) 一种桌面应用图标整理方法及移动终端
WO2020182035A1 (zh) 图像处理方法及终端设备
EP3699743B1 (en) Image viewing method and mobile terminal
WO2020156117A1 (zh) 文件处理方法和装置以及终端
WO2020156123A1 (zh) 信息处理方法及终端设备
WO2020173405A1 (zh) 内容分享方法及移动终端
WO2021238719A1 (zh) 信息显示方法及电子设备
CN108228902B (zh) 一种文件显示方法及移动终端
WO2021104255A1 (zh) 文件管理方法及电子设备
WO2021057301A1 (zh) 文件控制方法及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20748010

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20748010

Country of ref document: EP

Kind code of ref document: A1