A file timing operation method and a computing device
By introducing a scheduled task interface and a scheduled service module into the file manager, the problem of the lack of scheduled operations in the file manager is solved, realizing a user-friendly scheduled file operation function and improving the centralization and efficiency of operations.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-27
- Publication Date
- 2026-03-27
AI Technical Summary
Existing file managers lack scheduled operation functions, resulting in fragmented file processing functions. Users need to write scripts to implement scheduled operations, which has a high operating threshold and cannot be centrally managed.
A scheduled task interface is introduced into the file manager, providing a scheduled settings interface where users can configure scheduled task information and perform file operations through the scheduled service module.
It enables simple and intuitive setting of scheduled tasks in the file manager, improving the centralization and interactive experience of file operations and lowering the barrier to entry.
Smart Images

Figure CN114880284B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer and document management technology, and in particular to a method for timed document operation and a computing device. Background Technology
[0002] With the development of computer technology, users are storing increasingly larger amounts of file data daily. Currently, mainstream file managers only have functions such as file categorization and sorting, but the function of scheduled operations on files or folders is still lacking. As a result, file managers cannot meet user needs in some application scenarios (for example, when users need to periodically clean up files in cache directories or other directories, or actively compress files).
[0003] Existing scheduled task programs cannot perform file operations within the file manager; they must be configured in a separate program. Furthermore, users need to write the logic for scheduled file operations into scripts, which are then executed to perform the operations. This results in fragmented file processing functionality, hindering centralized file management and indirectly increasing the cost of file operations. Additionally, script writing is a challenging task for most users, requiring a certain level of programming ability.
[0004] Therefore, a method for scheduled file operations is needed to solve the problems existing in the above solutions. Summary of the Invention
[0005] Therefore, the present invention provides a method for timed file operation to solve or at least alleviate the problems mentioned above.
[0006] According to one aspect of the present invention, a method for timed file operations is provided, executed in a file manager of a computing device, the file manager including a timed task interface, the method comprising the steps of: displaying a timed setting interface in response to an access operation to the timed task interface in the current directory; obtaining timed task information configured in the timed setting interface, the timed task information including execution time information, target file information in the current directory, and file operation type; and performing corresponding file operations on the target file at regular intervals according to the execution time information and the file operation type.
[0007] Optionally, in the file timing operation method according to the present application, the timing service module is included in the operating system of the computing device, and the step of timing the target file to perform the corresponding file operation according to the execution time information and the file operation type comprises: sending the timing task information to a daemon process of a file manager; and writing the timing task information into the timing service module based on a predetermined data structure via the daemon process, so that the timing service module performs the corresponding file operation on the target file according to the execution time information and the file operation type.
[0008] Optionally, in the file timing operation method according to the present application, the step of writing the timing task information into the timing service module based on the predetermined data structure comprises: generating a corresponding file operation command based on the target file information and the file operation type in the timing task information; and writing the execution time information and the file operation command in the timing task information into the timing service module based on the predetermined data structure, so that the timing service module generates a script program according to the execution time information and the file operation command, and executes the script program.
[0009] Optionally, in the file timing operation method according to the present application, the step of obtaining the timing task information configured in the timing setting interface comprises: receiving filtering information input in the timing setting interface, the filtering information comprising one or more file attribute information; and obtaining one or more target file information under the current directory based on the filtering information.
[0010] Optionally, in the file timing operation method according to the present application, the step of obtaining one or more target file information under the current directory based on the filtering information comprises: traversing all file information under the current directory; judging whether each file information matches the filtering information, and if so, writing the file information into a predetermined container to obtain a predetermined container containing one or more target file information.
[0011] Optionally, in the file timing operation method according to the present application, the step of obtaining the timing task information configured in the timing setting interface further comprises: obtaining a target path when obtaining the file operation type; and after timing the target file to perform the corresponding file operation, the step of storing the target file based on the target path is further included.
[0012] Optionally, in the file timing operation method according to the present application, the display page of the file manager is adapted to display the current directory, and in response to an access operation of a timing task interface under the current directory, the step of displaying the timing setting interface comprises: in response to a predetermined operation under the current directory, popping up a menu page, the menu page displaying the timing task interface; and in response to an operation of triggering the timing task interface on the menu page, popping up the timing setting interface.
[0013] Optionally, in the file timing operation method according to the present application, the timing setting interface comprises a time setting sub-interface, an input setting sub-interface and an operation setting sub-interface; the step of obtaining the timing task information configured in the timing setting interface comprises: obtaining the execution time information configured in the time setting sub-interface; obtaining the target file information configured in the input setting sub-interface; and obtaining the file operation type configured in the operation setting sub-interface.
[0014] Optionally, in the file timing operation method according to the present application, the execution time information comprises a start time of task execution and a time interval of task execution; and the file operation comprises one or more of a copy operation, a cut operation, a delete operation, a complete delete operation and a compression operation.
[0015] Optionally, in the file timing operation method according to the present application, the file attribute comprises one or more of a file name, a file type and a file size.
[0016] According to an aspect of the present application, there is provided a computing device comprising: at least one processor; a memory storing program instructions configured to be executed by the at least one processor, the program instructions comprising instructions for performing the file timing operation method as described above.
[0017] According to an aspect of the present application, there is provided a readable storage medium storing program instructions, which, when read and executed by a computing device, cause the computing device to perform the file timing operation method as described above.
[0018] According to the technical solution of the present application, a file timing operation method is provided, in which a file manager is provided with a timing task interface, and a user can trigger the timing task interface to call out a timing setting interface, so that the user can set a timing task more simply and intuitively based on the timing setting interface, and the interactive experience is improved. Moreover, based on the timing task information configured by the user in the timing setting interface, the file manager can perform a file operation on a target file according to the execution time information and the file operation type in the timing task information. In this way, the functions of setting a timing task for a file and performing a file operation on the file based on the timing task can be implemented in the file manager, so that the operation functions for the file are more centralized.
[0019] The above description is only a summary of the technical solution of the present application. In order to make the technical means of the present application more clearly understood, the specific embodiments of the present application are described in detail according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific embodiments of the present application are described in detail as follows. BRIEF DESCRIPTION OF DRAWINGS
[0020] To achieve the foregoing and related objectives, certain illustrative aspects are described herein in conjunction with the following description and accompanying drawings. These aspects indicate various ways in which the principles disclosed herein may be practiced, and all aspects and their equivalents are intended to fall within the scope of the claimed subject matter. The foregoing and other objectives, features, and advantages of this disclosure will become more apparent from the following detailed description, taken in conjunction with the accompanying drawings. Throughout this disclosure, the same reference numerals generally refer to the same parts or elements.
[0021] Figure 1 A schematic diagram of a computing device 100 according to an embodiment of the present invention is shown;
[0022] Figure 2 , Figure 3 Flowcharts of a file timing operation method 200 according to an embodiment of the present invention are shown respectively;
[0023] Figure 4 A rendering of the display interface 155 of a file manager according to an embodiment of the present invention is shown;
[0024] Figure 5 A schematic diagram illustrating the editing operation of the system configuration file of the timing service module via a daemon process according to an embodiment of the present invention is shown;
[0025] Figure 6 The figure shows a rendering of a timing setting interface according to an embodiment of the present invention;
[0026] Figure 7 The figure shows a rendering of a time setting sub-interface according to an embodiment of the present invention;
[0027] Figures 8-10 The following are illustrations showing the effect of the input settings sub-interface according to an embodiment of the present invention;
[0028] Figure 11 A rendering of the operation settings sub-interface according to an embodiment of the present invention is shown. Detailed Implementation
[0029] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
[0030] The present application provides a file timing operation method suitable for being executed in a computing device, a file manager is provided with a timing task interface, so that setting a timing task and a timing operation on a file can be implemented in the file manager.
[0031] Figure 1 A block diagram of the physical components (i.e., hardware) of the computing device 100 is shown. In a basic configuration, the computing device 100 includes at least one processing unit 102 and a system memory 104. According to an aspect, depending on the configuration and type of the computing device, the processing unit 102 can be implemented as a processor. The system memory 104 includes, but is not limited to, volatile (e.g., random access memory (RAM)), non-volatile (e.g., read-only memory (ROM)), flash memory, or any combination thereof. According to an aspect, the system memory 104 includes an operating system 105, which is run in the operating system 105, a file manager 150 is configured to execute the file timing operation method 200 of the present application.
[0032] According to an aspect, the operating system 105 is suitable for controlling the operation of the computing device 100, for example. Moreover, examples are practiced in conjunction with a graphics library, other operating systems, or any other application program, and are not limited to any particular application or system. In Figure 1 The basic configuration is illustrated in FIG. 1 by those components within the dashed line 108. According to an aspect, the computing device 100 has additional features or functionality. For example, according to an aspect, the computing device 100 includes additional data storage devices (removable and / or non-removable) such as, for example, magnetic disks, optical disks, or tape. Such additional storage is illustrated in FIG. 1 by the removable storage 109 and the non-removable storage 110. Figure 1 According to an aspect, the computing device 100 includes a user interface 112 that allows a user to interact with the computing device 100. The user interface 112 includes input devices, including but not limited to a keyboard and pointing devices such as a mouse or trackball, by which the user can provide input to the computing device 100. The user interface 112 also includes output devices, including but not limited to a display device, speakers, and a printer, by which the user can receive output from the computing device 100.
[0033] As stated above, according to an aspect, a program module is stored in the system memory 104. According to an aspect, the program module can include one or more applications, and the present application does not limit the type of application, for example, the application can include: an email and contact application, a word processing application, a spreadsheet application, a database application, a slide show application, a drawing or computer-aided application, a web browser application, etc.
[0034] According to an aspect, examples can be practiced with electronic circuitry integrated on a single integrated circuit chip, discrete electronic components, a custom IC that includes electronic components disposed on one or more chips, a manufactured packaged component, as a monolithic integrated circuit, as a plurality of integrated circuits typically adapted to be included in a larger system, and / or as a portion of a system-on-a-chip (SoC). The Figure 1Each or many of the components illustrated in FIG. 1 can be practiced on a system-on-a-chip (SOC) integrated on a single integrated circuit in accordance with examples. According to one aspect, such an SOC device can include one or more processing units, graphics units, communications units, system virtualization units, and various application functionality all of which are integrated (or "burned") onto the chip substrate according to an embodiment. When operating via an SOC, the functionality described herein can be operated via application-specific logic integrated with other components of the computing device 100 on the single integrated circuit (chip). Embodiments of the application can also be practiced using other technologies that now exist or are developed in the future, including, but not limited to, mechanical, optical, fluidic, and quantum technologies. In addition, embodiments of the application can be practiced within a general computer device or in any other circuit or system.
[0035] According to one aspect, the computing device 100 can also have one or more input device(s) 112 such as a keyboard, a mouse, a pen, a voice input device, a touch input device, etc. Output device(s) 114 such as a display, speakers, a printer, etc. can also be included. The aforementioned devices are examples and others can be used. The computing device 100 can include one or more communication connections 116 allowing communications with other computing devices 118. Examples of suitable communication connections 116 include, but are not limited to: RF transmitter, receiver, and / or transceiver circuitry; universal serial bus (USB), parallel, and / or serial ports.
[0036] The term computer readable media as used herein includes computer storage media. Computer storage media can include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, or program modules. The system memory 104, the removable storage device 109, and the non-removable storage device 110 are all computer storage media examples (i.e., memory storage.) Computer storage media can include Random Access Memory (RAM), Read Only Memory (ROM), Electronically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store information and which can be accessed by computing device 100. According to one aspect, any such computer storage media can be part of the computing device 100. Computer storage media does not include a modulated data signal or other propagated data signal.
[0037] According to an aspect, a communication medium is embodied by a computer readable instruction, a data structure, a program module, or other data embodied in a modulated data signal, such as a carrier wave or other transport mechanism, and includes any information delivery media. According to an aspect, the term "modulated data signal" describes a signal that has one or more characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, radio frequency (RF), infrared, and other wireless media.
[0038] In one embodiment of the present application, the computing device 100 includes one or more processors, and one or more readable storage media storing program instructions. When the program instructions are configured to be executed by the one or more processors, the computing device performs the file timing operation method in the embodiments of the present application.
[0039] Figure 2 、 Figure 3 A flow chart of a file timing operation method 200 according to one embodiment of the present application is shown. The method 200 is suitable for being executed in a computing device (the aforementioned computing device 100).
[0040] In an embodiment according to the present application, an operating system is run in the computing device 100, and a file manager 150 is run in the operating system, wherein the file manager 150 includes a timing task interface, so that a user accesses the timing task interface in the file manager. The method 200 is suitable for being executed in the file manager 150.
[0041] As shown in Figure 2 and Figure 3 , the method 200 starts from step S210.
[0042] In step S210, the user can access the timing task interface in the current directory. The file manager 150 displays a timing setting interface in response to the user's access operation of the timing task interface in the current directory.
[0043] It should be noted that the file manager 150 includes a corresponding display interface. The current directory can be displayed on the display interface of the file manager, and specifically, file information of one or more files contained in the current directory can be displayed. When receiving the user's access operation of the timing task interface in the current directory, the file manager 150 can pop up the timing setting interface on the display interface, so that the user can set the timing task on the timing setting interface.
[0044] It can be understood that the file manager 150 of the present application provides a user with a timing task interface, so that the user can access the timing task interface to set a timing task for a file (a file in a current directory) to perform a timing operation on the file. Specifically, when setting the timing task, a timing setting interface is further presented to the user, and based on the timing setting interface, the user can set the timing task more simply and intuitively.
[0045] Figure 4 An effect diagram of a display interface 155 of a file manager according to an embodiment of the present application is shown. As shown in the figure, the display interface 155 includes a file view 152 for displaying file information, and a directory list area 153 for displaying one or more file directory interfaces. Here, the user is currently accessing a current directory, and the file view 152 of the display interface displays the current directory, that is, the file view 152 displays file information of one or more files in the current directory. Figure 4
[0046] In an implementation manner, as shown in the figure, the user's access operation on the timing task interface in the current directory can be implemented as follows: the user performs a predetermined operation (for example, a right-click operation) in the current directory displayed on the display interface of the file manager, and the file manager 150 pops up a menu page 156 in response to the user's predetermined operation in the current directory. Here, as shown in the figure, the menu page 156 displays a timing task interface. Then, the user can trigger the timing task interface on the menu page 156, and the file manager 150 pops up a timing setting interface on the display interface in response to the user's operation of triggering the timing task interface on the menu page, so that the user can set a timing task on the timing setting interface. Figure 3 Figure 4
[0047] Figure 6 An effect diagram of a timing setting interface according to an embodiment of the present application is shown. The user can set timing task information on the timing setting interface.
[0048] Subsequently, in step S220, timing task information configured by the user on the timing setting interface is obtained. Here, the timing task information includes execution time information, target file information in the current directory, and file operation type. The file operation type is the operation type configured for the target file.
[0049] That is, obtaining the timing task information configured by the user on the timing setting interface can include: obtaining the execution time information configured by the user on the timing setting interface, obtaining the target file information in the current directory configured by the user on the timing setting interface, and obtaining the file operation type configured by the user on the timing setting interface.
[0050] It should be noted that the target file information in the timing task information can include one or more target file information in the current directory, and can also include all target file information in the current directory.
[0051] The execution time information can include a start time of task execution and a time interval of task execution.
[0052] The file operation can include one or more of a copy operation, a cut operation, a delete operation, a complete delete operation, and a compression operation.
[0053] Finally, in step S230, the target file corresponding to the target file information is executed with the corresponding file operation according to the execution time information and the file operation type.
[0054] According to an embodiment, a timing service module (crontab) is included in the operating system of the computing device 100.
[0055] According to an implementation, the timing task can be executed by using the timing service module in step S230. The timing service module includes a system configuration file for configuring the timing task, and the timing task can be executed by using the timing service module by editing the system configuration file. Here, the path of the system configuration file is, for example, / etc / crontab.
[0056] Figure 5 A schematic diagram of editing operation of the system configuration file of the timing service module by the daemon process according to an embodiment of the present application is shown.
[0057] Specifically, as shown in Figure 5 The user process of the file manager 150 can send the timing task information to the daemon process Daemon of the file manager 150 through the bus (D-Bus). It should be noted that the daemon process has root permission and can modify the system configuration file in the timing service module, so that corresponding data can be written to the system configuration file based on the timing task information.
[0058] The daemon process Daemon writes the timing task information to the timing service module crontab based on a predetermined data structure, so that the timing service module can execute the corresponding file operation on the target file according to the execution time information and the file operation type.
[0059] In an implementation, writing the timing task information to the timing service module based on the predetermined data structure can be implemented according to the following method:
[0060] First, a corresponding file operation command is generated based on the target file information and the file operation type in the timing task information.
[0061] Subsequently, the execution time information in the timing task information and the file operation command are written into the system configuration file of the timing service module based on a predetermined data structure. An example of the predetermined data structure is provided as follows:
[0062]
[0063] Referring to the example of the predetermined data structure, the first five items are time information set for the timing task based on the execution time information in the timing task information, and the specific numbers indicate that the specified items are modified, and the "*" symbol indicates that no modification is made. The last item is the file operation to be performed on the target file, which can be directly written into the file operation command generated in the above step, or the path of the script file can be written.
[0064] Next, the timing service module can encapsulate the script program generated according to the execution time information and the file operation command written into the system configuration file to generate an executable script program, and can execute the script program. In this way, the timing service module can perform the corresponding file operation on the target file according to the execution time information and the file operation type by executing the script program.
[0065] For example, by writing "0 21***filemanager.daily" into the system configuration file of the timing service module, it means that the filemanager.sh script is run at 9:00 PM (21:00) every day. The file operation command in filemanager.daily is, for example, a command to delete all files of xls and txt formats under a specified directory, which can be implemented as: find $Path-type f\(-name"*.xls"-o-name"*.txt*"\)-delete.
[0066] In one embodiment, the timing setting interface includes a time setting sub-interface, an input setting sub-interface, and an operation setting sub-interface. Further, as shown in Figure 6 The timing setting interface includes an entry (Time) of the time setting sub-interface, an entry (Input) of the input setting sub-interface, and an entry (Action) of the operation setting sub-interface, and the user can click any one of the entries to enter the corresponding sub-interface, as shown in Figures 7-11 .
[0067] In step S220, the timing task information configured in the timing setting interface is obtained, which can include the following steps: obtaining the execution time information configured by the user in the time setting sub-interface, obtaining the target file information configured by the user in the input setting sub-interface, and obtaining the file operation type configured by the user in the operation setting sub-interface.
[0068] Figure 7 An effect diagram of the time setting sub-interface is shown according to one embodiment of the present application. Specifically, as shown in Figure 7 the user can set the time interval of the task execution as once, every day, every week, every month when configuring the execution time information of the timing task in the time setting sub-interface. And, the start time of the task execution can be inputted.
[0069] It can be understood that the obtaining the timing task information configured by the user in the timing setting interface specifically comprises: obtaining the target file information under the current directory configured by the user in the timing setting interface. In one embodiment, the target file information under the current directory configured by the user in the timing setting interface can be obtained according to the following method:
[0070] Firstly, the filtering information inputted by the user in the input setting sub-interface under the timing setting interface is received, and the filtering information can comprise one or more file attribute information, so as to filter the target file based on the one or more file attribute information. Here, the file attribute can comprise one or more of the file name, the file type, the file size, etc.
[0071] Then, one or more target file information under the current directory matching the filtering information is obtained based on the filtering information (one or more file attribute information) inputted by the user in the input setting sub-interface.
[0072] Figures 8-10 An effect diagram of the input setting sub-interface according to one embodiment of the present application is shown, specifically, Figure 8 is an effect diagram of the input setting sub-interface based on the file name to filter the file, and the user can input the file name in the input box of the input setting sub-interface as the filtering information, so as to filter one or more target files under the current directory based on the file name by the file manager.
[0073] Figure 9 is an effect diagram of the input setting sub-interface based on the file type to filter the file, and the user can select the file operation type in the input setting sub-interface as the filtering information, so as to filter one or more target files under the current directory based on the file operation type by the file manager. As shown in Figure 9 the selectable file types comprise the document file (Document), the video file (Video), the compressed file (Compress), the picture file (Image), the music file (Music), etc.
[0074] Figure 10 is an effect diagram of the input setting sub-interface based on the file size to filter the file, and the user can select the file size in the input setting sub-interface as the filtering information, so as to filter one or more target files under the current directory based on the file size by the file manager. As shown in Figure 10As shown, the optional file size includes: <1M, 1M-100M, 100M-1G, >1G.
[0075] It should be noted that, according to one or more attribute information (one or more of file name, file type, file size) input by the user in the above input setting sub-interface, the one or more attribute information can be combined as filtering information, so as to filter one or more target files under the current directory which match the one or more attribute information based on the filtering information obtained after combination.
[0076] In an implementation mode, the obtaining of the one or more target file information under the current directory based on the filtering information can be implemented according to the following method:
[0077] All file information under the current directory can be stored in an initial container T in advance. Then, a predetermined container N is newly established. Then, all file information under the current directory stored in the initial container T is traversed, and it is judged whether each file information matches the filtering information. If the file information matches the filtering information, the file information is written into the predetermined container N. In this way, after the traversal is completed, the predetermined container containing one or more target file information can be obtained.
[0078] Further, for each attribute information input by the user in each input setting sub-interface, the file under the current directory is filtered based on one file attribute information each time. For example, when the user inputs the file name in the input setting sub-interface, the file is first filtered based on the file name. All file information under the current directory stored in the initial container T is traversed, and it is judged whether each file information contains the file name. If the file information contains the file name, the file information is written into the predetermined container N. After the traversal is completed, the first predetermined container is obtained, and the first predetermined container contains one or more file information preliminarily filtered based on the file name.
[0079] If the user then inputs the file type in the input setting sub-interface, the file can be further filtered based on the file type. Specifically, all file information in the first predetermined container can be traversed, and it is judged whether each file information matches the file type. If the file information matches the file type, the file information is retained in the first predetermined container. If the file information does not match the file type, the file information is removed from the first predetermined container. After the traversal is completed, the file information in the first predetermined container is updated, and the second predetermined container is obtained, and the second predetermined container contains one or more file information preliminarily filtered based on the file name and further filtered based on the file type.
[0080] If the user continues to input the file size in the input setting sub-interface, the file can be further filtered based on the file size. Specifically, all file information in the second predetermined container can be traversed to determine whether each file information matches the file size. If the file information matches the file size, the file information is retained in the second predetermined container. If the file information does not match the file size, the file information is removed from the second predetermined container. After the traversal is completed, the file information in the second predetermined container is updated to obtain a third predetermined container. The third predetermined container includes one or more file information that is preliminarily filtered based on the file name and further filtered based on the file type and the file size. At this time, if the user stops inputting the filtering information, the one or more file information in the third predetermined container can be used as the target file information.
[0081] Figure 11 An effect diagram of the operation setting sub-interface according to an embodiment of the present application is shown. As shown in Figure 11 When the user configures the file operation type of the timing task in the operation setting sub-interface, the user can select one or more of the copy operation (Copy), the delete operation (Delete), the permanent delete operation (Delete permanently), the cut operation (Cut), and the compress operation (Compress).
[0082] In addition, the user can also configure a target path for the target file after the file operation is performed in the operation setting sub-interface. In an embodiment, when the file manager obtains the file operation type configured by the user in the operation setting sub-interface of the timing setting interface, the file manager can obtain the target path configured by the user for the target file after the file operation is performed.
[0083] For example, when the file operation type configured for the target file is the copy / cut operation, the target path can be a target path to which the target file is to be copied / cut. When the file operation type configured for the target file is the delete operation, the target path can be a recycle bin directory for temporarily storing the target file. When the file operation type configured for the target file is the compress operation, the target path can be a target path for storing a compressed file generated based on the target file.
[0084] After the corresponding file operation is performed on the target file, the target file can be stored based on the target path. That is, the target file after the corresponding file operation is performed is stored in the target path.
[0085] According to the file timing operation method 200 of the present application, the file manager is provided with a timing task interface, and the user can trigger the timing task interface to call a timing setting interface, so that the user can set the operation of the timing task more simply and intuitively based on the timing setting interface, and the interactive experience is improved. Moreover, based on the timing task information configured by the user on the timing setting interface, the file manager can execute the file operation on the target file according to the execution time information and the file operation type in the timing task information. In this way, according to the technical solution of the present application, the function of setting the timing task for the file and executing the file operation based on the timing task can be realized in the file manager, so that the operation function for the file is more concentrated.
[0086] The various techniques described herein can be implemented in connection with hardware or software or, where appropriate, with a combination of both. Thus, the methods and apparatus of the present application, or certain aspects or portions thereof, can take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard disks, USB flash drives, floppy diskettes, CD-ROMs, ROM or
[0087] In the case of program code execution on programmable computers, the mobile terminal generally includes a processor, a processor-readable storage medium (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The memory is configured to store program code; the processor is configured to execute instructions in the program code stored in the memory according to the instructions in the program code stored in the memory.
[0088] By way of example, and not limitation, readable media can include volatile and non-volatile, removable and non-removable media implemented in a method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of the any of the above are also included within the scope of readable media.
[0089] In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application can be practiced without these specific details. In other instances, well-known methods, structures and techniques have not been described in detail in order to avoid obscuring the application. Also, the description provided herein is intended to be illustrative, and not restrictive, of the application. Many modifications and variations of the illustrative examples, applications, objects, and operations described herein will be apparent to those of ordinary skill in the art upon reading this description. It is intended that the scope of the application should be determined not with reference to the above description, but should be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled. The disclosures of each patent, patent application, and publication cited herein are hereby incorporated by reference in their entirety.
[0090] In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application can be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been described in detail in order not to obscure the understanding of this description.
[0091] Similarly, it is to be understood that the embodiments of the present application can be readily combined with one another and / or other concepts, to produce further embodiments of the present application, without departing from the scope of the present application. As such, it is recognized that the teachings of the embodiments of the present application are to be considered in a descriptive sense only and not limiting.
[0092] Those skilled in the art will understand that the modules, or units, or components of the devices in the examples disclosed herein can be arranged in a device as described in the examples, or alternatively can be located in one or more devices different from the devices in the examples. The modules in the foregoing examples can be combined into one module or further divided into multiple sub-modules.
[0093] Those skilled in the art will understand that the modules in the devices in the examples can be adaptively changed and disposed in one or more devices different from the examples. The modules or units or components in the examples can be combined into one module or unit or component, and further can be divided into multiple sub-modules or sub-units or sub-components. Except that at least some of such features and / or processes or units are mutually exclusive, all combinations of all features disclosed in this specification (including the accompanying claims, abstract and drawings) and all processes or units of any methods or apparatuses so disclosed can be used in any combination. Unless specifically stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract and drawings) can be replaced by alternative features providing the same, equivalent or similar functionality.
[0094] Further, those skilled in the art will understand that the combination of features of different embodiments implies that such combination is within the scope of the application and forms a different embodiment. For example, in the following claims, any of the claimed embodiments can be used in any combination.
[0095] Furthermore, some of the embodiments described herein are of a "method" or a "process" that can be embodied in software, firmware or hardware, and when embodied in software, can be implemented with computer- executable instructions. The rules of equivalence, as well as the "means-plus-function" or "step-plus-function" clauses below, are meant to cover both "articles of manufacture" and "combinations of articles of manufacture" that consist of one or more computers or one or more processors running software programs.
[0096] As used herein, unless otherwise indicated, the use of the ordinal adjectives "first", "second", "third", etc., are to add specificity and difference to a term, and are not intended to indicate a temporal or physical sequence or ordering. Nor, unless specifically stated, is the use of "about" to limit the value full or exact.
[0097] While the application has been described in terms of several embodiments, those skilled in the art will recognize that the application can be practiced with modifications and alterations limited only by the spirit and scope of the inventiveness. Furthermore, the purpose of the description is to enable any person skilled in the art to practice the application as described in the specification and claimed claims. The contexts of the specification make it clear that acts associated with the various embodiments can be implemented by software, hardware, or a combination thereof. The disclosure is therefore to be considered limited by the scope of the claims, which may include further claims, or the equivalents thereof, as presently existing or as are adopted or otherwise hereafter developed.
Claims
1. A method for file timing operation, performed in a file manager of a computing device, wherein an operating system of the computing device comprises a timing service module, the file manager comprises a timing task interface, and a current directory is adapted to be displayed on a display page of the file manager, the method comprising the steps of: in response to a predetermined operation under the current directory, popping up a menu page, wherein a timing task interface is displayed on the menu page; in response to an operation of triggering the timing task interface on the menu page, popping up a timing setting interface, wherein the timing setting interface comprises a time setting sub-interface, an input setting sub-interface, and an operation setting sub-interface; obtaining timing task information configured in the timing setting interface, comprising: obtaining execution time information configured in the time setting sub-interface, obtaining target file information configured in the input setting sub-interface, and obtaining a file operation type configured in the operation setting sub-interface; the timing task information comprises the execution time information, the target file information under the current directory, and the file operation type; and performing a corresponding file operation on the target file according to the execution time information and the file operation type, comprising: sending the timing task information to a daemon process of the file manager, generating a corresponding file operation command based on the target file information and the file operation type in the timing task information via the daemon process, and writing the execution time information and the file operation command in the timing task information into the timing service module based on a predetermined data structure, so that the timing service module generates a script program according to the execution time information and the file operation command, and executes the script program to perform a corresponding file operation on the target file, wherein the file operation comprises one or more of a copy operation, a cut operation, a delete operation, a complete delete operation, and a compression operation. The step of obtaining the timing task information configured in the timing setting interface comprises: receiving filtering information input in the timing setting interface, wherein the filtering information comprises one or more file attribute information; and obtaining one or more target file information under the current directory based on the filtering information. The step of obtaining one or more target file information under the current directory based on the filtering information comprises:
2. The method of claim 1, wherein, traversing all file information under the current directory; determining whether each file information matches the filtering information, and if so, writing the file information into a predetermined container to obtain a predetermined container containing one or more target file information. The step of obtaining the timing task information configured in the timing setting interface further comprises: obtaining a target path when obtaining the file operation type; and after performing the corresponding file operation on the target file, the method further comprises the step of:
3. The method of claim 2, wherein, storing the target file based on the target path. 5.The method of any one of claims 1-3, wherein the execution time information comprises a start time of task execution and a time interval of task execution. 6.A computing device comprising: at least one processor; and 4. The method of any one of claims 1-3, wherein, a memory storing program instructions configured to be executed by the at least one processor, the program instructions comprising instructions for performing the method of any one of claims 1-5.
7. A readable storage medium storing program instructions which, when read and executed by a computing device, cause the computing device to perform the method of any one of claims 1-5.
Citation Information
Patent Citations
A configuring method and device for time scheduling service system
CN104702426A
File management method, computing device and storage medium
CN114238215A