A file folding method, computing device, and storage medium
By creating a collapsible bar in the file manager to temporarily store files and display statistics, the problem of interference caused by displaying a large number of files in the file manager is solved, achieving concise file display and efficient querying, and enhancing the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-12
- Publication Date
- 2026-03-27
AI Technical Summary
When displaying a large number of files, existing file managers require users to manually move files to reduce clutter, which alters the directory structure and is cumbersome.
This paper provides a file folding method that temporarily stores selected files by creating a fold bar, keeping the directory structure unchanged, and displays file statistics on the fold bar. Users can expand or merge the fold bar at any time, and it also supports tabbed display of categorized files.
It effectively reduces the complexity of file searching, improves query efficiency, provides a concise display, enhances user experience, and does not change the directory structure.
Smart Images

Figure CN114048173B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to a file folding method, a computing device and a storage medium. BACKGROUND
[0002] At present, the mainstream file manager has a file display function. Specifically, the display interface of the file manager includes a file view area, and a file list of a target folder is displayed in the file view area. The file list includes one or more files, and a user can preview the one or more files displayed in the file view area.
[0003] When the number of files displayed in the file view area of the file manager is large, the user usually browses the files one by one from top to bottom by sliding the mouse wheel. The files that have been browsed are also displayed in the file view area, which may interfere with the user. At present, in order to solve the display interference problem, the user usually creates a folder in the file view area and moves the files that are not concerned to the folder. Although this method can exclude the interference items, it changes the directory structure of the current folder. If the previous state is to be restored, the operation steps are relatively cumbersome. SUMMARY
[0004] Therefore, the present application provides a file folding method to try to solve or at least alleviate the above problems.
[0005] According to one aspect of the present application, a file folding method is provided, which is executed in a file manager of a computing device. The display interface of the file manager includes a file view area, and a file list of all files included in a target folder is displayed in the file view area. The method includes: receiving an event of selecting multiple files in the file list; creating a folding column when a first operation in a region where the selected files belong is monitored; storing the selected files in the folding column and temporarily storing file data of the selected files; and displaying statistical data of the multiple files stored in the folding column on the folding column.
[0006] Optionally, the step of storing the selected files in the folding column and temporarily storing the file data of the selected files includes: creating a container corresponding to the folding column; storing the selected files in the folding column; storing the data of the selected files in the container to temporarily store the file data of the selected files; deleting the data of the selected files from source file data of the target folder to obtain first source data; and displaying the folding column and files corresponding to the first source data in the file view area to display the folding column and all files in the target folder except the files stored in the folding column in the file view area.
[0007] Optionally, the step of displaying the folder bar and the file corresponding to the first source data in the file view area comprises: sequentially reading a file data from the first source data; determining whether the read file data is at the position of the first selected file, and if so, displaying the folder bar in the file view area, and if not, displaying the file corresponding to the read file data.
[0008] Optionally, the step of displaying the statistical data of the plurality of files stored in the folder bar comprises: counting the number of the files stored in the container as the first information; and displaying the first information on the folder bar.
[0009] Optionally, the file folding method further comprises the step of: when the first operation in the folder bar area is monitored, unfolding the folder bar to restore the files in the folder bar to the state before folding.
[0010] Optionally, when the file view area comprises a plurality of folder bars, the file folding method further comprises the step of: merging any folder bar into a target folder bar.
[0011] Optionally, the file folding method further comprises the step of: when the operation of dragging any file to a target folder bar and releasing the file is monitored, storing the file in the target folder bar.
[0012] Optionally, the file folding method further comprises the step of: when the operation of dragging any folder bar to a preset area of the display interface is monitored, creating a tab page for the folder bar.
[0013] Optionally, the file folding method further comprises the step of: displaying the files included in the folder bar in the newly created tab page.
[0014] Optionally, the file folding method further comprises the step of: when the second operation on the file displayed in the tab page is monitored, updating the file displayed in the tab page.
[0015] Optionally, the step of unfolding the folder bar comprises: when the event of hovering the cursor over the folder bar area is monitored, changing the background color of the folder bar to a preset color; when the first operation in the folder bar area is monitored, displaying the files in the folder bar in the file view area in the original display order in the file view area; adding the data in the container to the first source data; adding the selected state to the files in the folder bar currently displayed in the file view area; drawing the background color same as the preset color on the file with the selected state; and deleting the unfolded folder bar and the container corresponding thereto.
[0016] Optionally, when multiple folding bars are included in the file view area, the step of merging any folding bar into the target folding bar includes: when an operation of dragging any folding bar to the target folding bar and releasing the folding bar is monitored, merging file data of a container corresponding to the folding bar into file data of a container corresponding to the target folding bar as a merged container; counting a number of files currently included in the target folding bar according to file data of the merged container as second information; updating the statistic data on the target folding bar as the second information; deleting the previously dragged folding bar from the file view area; and deleting the container corresponding to the previously dragged folding bar.
[0017] Optionally, the step of storing the file into the target folding bar includes: when an operation of dragging any file to the target folding bar and releasing the file is monitored, storing file data of the file into the container of the target folding bar; deleting the file data of the currently dragged file from source file data of the target folder to obtain third source data; and displaying the folding bar and files corresponding to the third source data in the file view.
[0018] Optionally, the step of displaying the files included in the folding bar in the newly created tab includes: assigning a unique identifier to the tab and displaying the unique identifier in a tab bar thereof; and displaying all the files included in the currently dragged folding bar in a display area of the tab.
[0019] Optionally, when a second operation on the file displayed in the tab is monitored, the step of updating the file displayed in the tab includes: when the second operation on the file in the tab is monitored, obtaining file data; updating corresponding file data in a container corresponding to the currently operated file as the obtained file data; reading the file data of the updated container; and displaying files corresponding to the read file data in the tab.
[0020] Optionally, the file folding method further includes the steps of: counting a number of files according to the file data of the updated container as third information; and updating display information of a folding bar corresponding to the currently operated file in the file view area as the third information.
[0021] Optionally, the file folding method further includes the steps of: when an event of exiting the file view area is monitored, releasing data in the container; and adding the data in the container to source file data of a directory file.
[0022] According to yet another aspect of the present application, there is provided a computing device comprising: at least one processor; and a memory storing program instructions configured to be executed by the at least one processor, the program instructions comprising instructions for performing the method as described above.
[0023] According to another aspect of the present application, there is provided a readable storage medium having program instructions stored therein, which, when read and executed by a computing device, cause the computing device to perform the method as described above.
[0024] According to the technical solution of the present application, when displaying a plurality of files included in a folder, a file folding method receives a plurality of files in a selected file list, and upon a first operation on a region to which the selected files belong, creates a folding bar, stores the selected files in the folding bar, temporarily stores file data of the selected files, and displays statistical data of the plurality of files stored in the folding bar. It can be seen that, in the present application, since the file data of the selected and folded files is temporarily stored, the original directory structure is not changed. On this basis, by folding the files, the interfering files can be filtered, the interference of the browsed files on the user can be prevented, and the display effect of the file view region can be simple, thereby effectively reducing the complexity of file searching and improving the file searching efficiency.
[0025] The above description is only a summary of the technical solution of the present application. In order to more clearly understand the technical means of the present application, the present application can be implemented according to the content of the specification, and in order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the following specific embodiments of the present application are described. BRIEF DESCRIPTION OF DRAWINGS
[0026] To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings. These aspects are indicative of various ways in which the principles disclosed herein can be practiced and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The foregoing and other objects, features, and advantages of the disclosure will be apparent from the following description of certain aspects as described below, when taken in conjunction with the accompanying drawings in which like reference numbers in the various drawings indicate like components or elements. The following detailed description includes specific details for the purpose of providing an understanding of the various concepts. However, it will be apparent to those skilled in the art that these concepts can be practiced without these specific details.
[0027] Figure 1 FIG. 1 shows a schematic diagram of a display interface of a file manager according to one embodiment of the present application;
[0028] Figure 2 FIG. 2 shows a structural diagram of a computing device 200 according to one embodiment of the present application;
[0029] Figure 3 FIG. 3 shows a flowchart of a file folding method 300 according to one embodiment of the present application;
[0030] Figure 4 FIG. 4 shows a schematic diagram of a display interface of a file manager according to another embodiment of the present application;
[0031] Figure 5A schematic diagram of the display interface of a file manager according to another embodiment of the present invention is shown;
[0032] Figure 6 A schematic diagram of the display interface of a file manager according to another embodiment of the present invention is shown. Detailed Implementation
[0033] 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.
[0034] File Manager is a powerful file management tool that can manage files or folders, including operations such as copying, cutting, moving, deleting, creating, and searching. It supports file display (including list or icon display modes), multiple tabs, root privileges, file association opening, drag and drop files, and zip compression / decompression.
[0035] Regarding the file display function of the file manager, such as Figure 1 As shown, the file manager's display interface includes tabs, which consist of a tab bar 1-1 and a file view area 1-2. The tab's identifier (i.e., name) is the working document, displayed in tab bar 1-1. Figure 1 The file view area 1-2 displays a list of files in the target folder (the target folder is the working document), which includes all files in the working document.
[0036] When a file manager's file view area displays a large number of files, users typically browse them one by one from top to bottom by scrolling the mouse wheel. Files already viewed continue to appear in the file view area, which can be distracting. Currently, to solve this display interference problem, users often create a new folder in the file view area and manually move the files they don't need to that folder. While this method eliminates distracting elements, it changes the current folder's directory structure, and restoring it to its previous state is rather cumbersome.
[0037] To address the aforementioned problems, this invention provides a file folding method, executed within the file manager of a computing device 200. The computing device 200 can be implemented as a server, such as an application server or a web server; it can also be implemented as a desktop computer, laptop computer, processor chip, tablet computer, etc., but is not limited thereto. Figure 2 A structural diagram of a computing device 200 according to an embodiment of the present invention is shown.Figure 2 As shown in the basic configuration 202, the computing device 200 typically includes a system memory 206 and one or more processors 204. A memory bus 208 can be used for communicating between the processor 204 and the system memory 206.
[0038] Depending on the desired configuration, the processor 204 can be of any type, including but not limited to a microprocessor (μP), a microcontroller (μC), a digital signal processor (DSP), or any combination thereof. The processor 204 can include one or more levels of caching, such as a level one cache 210 and a level two cache 212, a processor core 214, and registers 216. The example processor core 214 can include an arithmetic logic unit (ALU), a floating point unit (FPU), a digital signal processing core (DSP Core), or any combination thereof. An example memory controller 218 can also be used with the processor 204, or in some implementations, the memory controller 218 can be an internal part of the processor 204.
[0039] Depending on the desired configuration, the system memory 206 can be of any type, including but not limited to volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.) or any combination thereof. The system memory 206 can include an operating system 220, one or more applications 222, and program data 224. In some embodiments, the applications 222 can be arranged to operate with the operating system 220 on the program data 224.
[0040] The computing device 200 also includes a storage device 232 that can include one or more removable storage devices 236 and one or more non-removable storage devices 238. The removable storage devices 236 and the non-removable storage devices 238 are connected to the storage interface bus 234 through a storage interface 240. The storage device 232 can also include a machine-readable storage medium 242 on which is stored one or more sets of instructions 244 embodying or utilized by any one or more of the methodologies or functions described herein. The instructions 244 can also reside, completely or at least partially, within the main memory 206 and / or within the processing device 204 during execution thereof by the computing device 200, the main memory 206 and the processing device 204 also constituting machine-readable storage media. The storage device 232 can be used to store program instructions 244 for use during execution by the computing device 200.
[0041] The computing device 200 can also include an interface bus 240 for facilitating communication from various interface devices (e.g., output devices 242, peripheral interfaces 244, and communication devices 246) to the basic configuration 202 via the bus / interface controller 230. Example output devices 242 include a graphics processing unit 248 and an audio processing unit 250, which can be configured to facilitate communication to various external devices such as a display or speakers via one or more A / V ports 252. Example peripheral interfaces 244 include a serial interface controller 254 or a parallel interface controller 256, which can be configured to facilitate communication to various external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripheral devices (e.g., printer, scanner) via one or more I / O ports 258. An example
[0042] Network communication links can be one example of a communication media. Communication media can typically be embodied by computer readable instructions, data structures, program modules, and other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media. A "modulated data signal" can be a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media can include wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, radio frequency (RF), microwave, infrared (IR) and other wireless media. The term computer readable media as used herein can include both storage media and communication media.
[0043] The computing device 200 can be implemented as a server, for example, a file server, a database server, an application server, and a web server, etc., or as a part of a small-sized portable (or mobile) electronic device, which can be a cellular phone, a personal digital assistant (PDA), a personal media player device, a wireless web browsing device, a personal headend device, an application-specific device, or a hybrid device that can include any of the above functions. The computing device 200 can also be implemented as a personal computer including desktop and notebook configurations. In some embodiments, the computing device 100 is configured to perform a file folding method 300 according to the present application.
[0044] Figure 3 A flowchart of a file folding method 300 according to an embodiment of the present application is shown. The method 300 is suitable for implementation in a computing device 200 (e.g., the computing device 100) as described above. Figure 2The file folding method 300 is shown to be executed in a file manager of a computing device. It is to be noted that the file folding method 300 can be integrated in the file manager of the computing device to realize file folding. The file folding method 300 comprises steps S301 to S310.
[0045] When a file list of all files included in the target folder is displayed in a file view area of the file manager (as shown in the figure), the user can select multiple files in the file list that have been previewed through a specific operation, for example, by triggering the left mouse button to select multiple files in the file list. At this time, an event of selecting multiple files in the file list is generated and sent to the file manager, and the file manager executes step S301 to receive the event of selecting multiple files in the file list. Figure 1
[0046] It is to be noted that the types of files in the target folder can include files and folders (i.e., directory files), that is, the files and folders included in the target folder are displayed in the file view area.
[0047] On the basis of selecting multiple files in the file list, when a first operation in the area where the selected files belong is monitored, it is to be noted that the first operation can be set according to the actual application scenario, and the present application does not limit the same, for example, the first operation is the operation of clicking the middle mouse button. When the first operation in the area where the selected files belong is monitored, step S302 is executed to create a folding bar, that is, a folding bar is created in the file view area, and it is to be noted that the folding bar is displayed at the position of the first selected file.
[0048] Then, step S303 is executed to store the selected files into the folding bar and temporarily store the file data of the selected files. In an embodiment, step S303 comprises: creating a container corresponding to the folding bar, storing the selected files into the folding bar, and then storing the data of the selected files into the container to realize temporary storage of the file data of the selected files. The data of the selected files is deleted from the source file data of the target folder to obtain first source data, and the folding bar and the files corresponding to the first source data are displayed in the file view area to realize display of the folding bar and all files in the target folder except the files stored into the folding bar in the file view area.
[0049] It should be noted that the container is a collection of temporarily stored data, and the data stored in the container is temporary data. If the user exits the display interface of the file manager, the data in the container will be added to the source file data of the target folder, the source file data of the target folder returns to the initial state, and the data in the container will be released. That is, the foldable bar does not change the directory structure of the target folder. After exiting the display interface of the file manager, the source file data of the target folder is unchanged, that is, the directory structure of the target folder is unchanged.
[0050] In one embodiment, the step of displaying the foldable bar and the file corresponding to the first source data in the file view area specifically comprises: sequentially reading one file data from the first source data of the target folder, judging whether the read file data is at the position of the first selected file, if yes, displaying the foldable bar in the file view area, and if no, displaying the file corresponding to the read file data.
[0051] From the above, when the displayed folder includes multiple files, the browsed files are stored in a foldable bar, and the file data of the browsed files is temporarily stored in a container. When the display interface is exited, the data in the container is released and stored in the source file data of the folder again. It can be seen that, in the present application, since the file data of the selected file is temporarily stored, the original directory structure is not changed. On this basis, the interference file can be filtered, the interference of the browsed file to the user can be prevented, and the display effect of the file view area can be simple, thereby effectively reducing the complexity of file searching and improving the file searching efficiency.
[0052] After the selected file is stored in the foldable bar, step S304 is continued, and the statistical data of the multiple files stored in the foldable bar is displayed on the foldable bar. The statistical data includes the number of files and the number of folders stored in the foldable bar. If the foldable bar does not include files or folders, the number of files or folders is 0. In one embodiment, step S304 specifically comprises: counting the number of files and the number of folders according to the file data stored in the container as the first information, and displaying the first information on the foldable bar, that is, displaying the number of files and the number of folders on the foldable bar.
[0053] Displaying the number of files and the number of folders stored in the foldable bar on the foldable bar can enable the user to more intuitively determine the number of files and the number of folders included in the foldable bar without the user entering the foldable bar for viewing, which is more convenient for the user and improves the user experience.
[0054] In order to more prominently display the foldable bar in the file view area, so that the user can quickly locate the foldable bar, a background color is added to the area where the foldable bar belongs, and the background color can be set according to the actual application scenario, which is not limited by the present application. For example, the background color is a gradient color. As shown in Figure 4 The foldable bar 4-1 only occupies the position of one file in the file view area, and the number of files and the number of folders (folder: 0, file: 2) are displayed on the foldable bar, and the area where the foldable bar belongs is added with a background color (the color is not shown in Figure 4 ).
[0055] After displaying the foldable bar and the files corresponding to the first source data in the file view area, when the first operation in the area of the foldable bar is monitored (the first operation is described above, and will not be repeated here), step S305 is executed to expand the foldable bar to restore the files in the foldable bar to the state before folding. In an embodiment, step S305 specifically includes:
[0056] When the event of hovering the mouse cursor over the area where the foldable bar belongs is monitored, the background color of the foldable bar is changed to a preset color, wherein the preset color is different from the background color of the foldable bar, so as to prompt the user to operate the foldable bar. On the basis of hovering the mouse cursor over the area where the foldable bar belongs, when the first operation in the area of the foldable bar is monitored, the files in the foldable bar are displayed in the file view area according to the original display order in the file view area, so that Figure 4 The foldable bar shown in the figure includes two files, for example, at this time, as shown in Figure 5 The selected state of the file 5-1 (including two files, which are file 2 and file 3) currently displayed in the file view area and included in the foldable bar is maintained, and the background color (the color is not shown in Figure 5 ) same as the preset color is drawn on the file in the selected state. And the data in the container is added to the first source data, so as to add the file data in the container to the source file data of the target folder (the source file data at this time does not include the data of the files in the foldable bar), so that the obtained source file data includes the file data of all the files in the target folder. And the expanded foldable bar and the container corresponding thereto are deleted, so that the user can intuitively locate the files currently expanded from the foldable bar.
[0057] If the user wants to store the files in the keep selected state into the fold bar again, the user can directly perform the first operation (the first operation is described above, and will not be described again here) on the area where the files in the selected state belong. At this time, the file manager monitors the first operation on the area where the files in the selected state belong, and quickly stores the unfolded files into the fold bar by performing steps S302 to S304. As can be seen, the user can store the files into the fold bar without performing step S301 again, simplifying the operation process of folding the files and making the operation more convenient for the user.
[0058] It is worth noting that the multiple fold bars can be created by performing steps S301 to S304 or steps S302 to S304, and displayed in the file view area. When the file view area includes multiple fold bars, step S306 is performed to merge any fold bar into a target fold bar. In an embodiment, any fold bar in the file view area is taken as the target fold bar, and any fold bar other than the target fold bar can be merged into the target fold bar. Step S306 specifically includes:
[0059] When it is monitored that any fold bar other than the target fold bar is dragged to the target fold bar by the left mouse button and the left mouse button is released to release the fold bar, the file data of the container corresponding to the fold bar is merged with the file data of the container corresponding to the target fold bar as a merged container. At this time, the merged container includes the file data of the currently dragged fold bar and the file data of the target fold bar. The number of files and the number of folders included in the merged container are counted as second information. The statistical data on the target fold bar is updated as the second information, and the currently dragged fold bar is deleted from the file view area, and the container corresponding to the fold bar is deleted, so that all the fold bars and all the files in the target folder other than the files stored in the fold bars are displayed in the file view area.
[0060] In addition, if any fold bar in the file view area is taken as the target fold bar, when it is monitored that any file is dragged to the target fold bar and the file is released, step S307 is performed to store the file into the target fold bar, specifically:
[0061] When it is monitored that any file is dragged to the target fold bar by the left mouse button and the left mouse button is released to release the file, the file data of the file is stored into the container of the target fold bar, and the file data of the currently dragged file is deleted from the source file data of the target folder to obtain third source data. The fold bar and the file corresponding to the third source data are displayed in the file view, so that all the fold bars and all the files in the target folder other than the files stored in the fold bars are displayed in the file view area.
[0062] It should be noted that the collapsible bar can also store files that the user wants to find and browse. Therefore, in this scenario, when any collapsible bar is detected being dragged to a preset area of the display interface, step S308 is executed to create a tab for the collapsible bar. The newly created tab displays all the files stored in that collapsible bar. The preset area can be set according to the actual application scenario, and this invention does not impose any restrictions on it. For example, the preset area can be the area where the tab bar of the display interface is located. Each tab includes a tab bar and a display area. The display area is used to display files, and the tab bar displays the unique identifier of the tab.
[0063] In one embodiment, step S308 includes: when it is detected that any folded bar is dragged to a preset area of the display interface, a tab is created for the folded bar, a unique identifier is assigned to the tab, and the identifier is displayed in its tab bar. At this time, the tab bar of the file view area adds all the files included in the currently dragged folded bar to the tab's display area. The unique identifier serves to distinguish each tab and can be set according to the actual application scenario; this invention does not limit this. For example, the unique identifier can be a random combination of letters and numbers.
[0064] When a user wants to search for or browse files of multiple categories, each category of files can be stored in a collapsible bar for easy viewing. The files of each category can then be displayed in the tab corresponding to the collapsible bar using the method described above. Since there are multiple tabs, there are also multiple tab bars on each tab. Therefore, the tab bar of the file manager's display interface displays multiple tab bars. In response to the user's operation of triggering the tab bar, step S309 is executed, switching to the tab corresponding to the tab bar, and displaying the files in the corresponding collapsible bar in the file view area of the tab.
[0065] The following is based on Figure 4 The folding column 4-1 shown includes, for example, the folding column 4-1. Figure 5 Taking the two files shown (file 2 and file 3 respectively) as examples, steps S308 to S309 will be explained.
[0066] If it is detected that the user will Figure 4 When a collapsible bar is dragged to the tab bar 1-1 area of the display interface, a tab is created for that collapsible bar, and a unique identifier named "Collap Bar 1" is assigned to the tab. The tab is then displayed in tab bar 1-1. At this time, tab bar 1-1 includes the tab name "Collap Bar 1" and the working document, such as... Figure 6 As shown. At this point, if the user clicks on the tab name in the tab bar 1-1 (collapse bar 1), the file manager responds by switching to the file view area 1-2 for the corresponding tab. The file view area 1-2 displays the files in the corresponding collapse bar, namely file 2 and file 3, as shown. Figure 6 As shown.
[0067] It can be seen that the application can select different categories of files to be browsed in the folding bar without changing the directory structure of the target folder, and then display the files in the form of tabs, which is convenient for users to classify files. The user can quickly switch between different categories of files by triggering the tab bar of the tab, so as to quickly view the files of different categories, improve the file viewing efficiency, and improve the user experience.
[0068] When the second operation of the user on the file displayed in the tab is monitored (the second operation can include modifying file data, deleting a file, adding a file, etc.), the file data of the corresponding container of the folding bar of the file view area needs to be updated. Specifically, the file data of the current operation is obtained, and the corresponding file data in the container corresponding to the current operation file is updated to the obtained file data. Then the file data of the updated container is read, and the file corresponding to the read file data is displayed in the tab, so that the file displayed in the tab is updated in real time after the second operation on the file.
[0069] When the second operation is to add or delete a file in the tab, the number of files in the folding bar corresponding to the second operation and the tab will change, so the display information of the folding bar displayed in the file view area corresponding to the tab also needs to be updated. In an embodiment, the number of files and the number of folders is counted as third information according to the updated file data of the container, and the display information of the folding bar corresponding to the current operation file in the file view area is updated to the third information.
[0070] Finally, when the event of exiting the display interface of the file manager is monitored, step S310 is executed to release the data in the container and add the data in the container to the source file data of the directory file, that is, after exiting the display interface of the file manager, the source file data of the folder does not change, and the directory structure of the target folder does not change.
[0071] As can be seen from the above, the file folding method provided by the application can store the files that have been browsed in a folding bar when a plurality of files are included in the displayed folder, and temporarily store the file data of the files that have been browsed in a container. When the display interface is exited, the data in the container is released and stored in the source file data of the folder again. It can be seen that in the application, the file data of the selected and folded file is temporarily stored, so the original directory structure is not changed. On this basis, the interference files can be filtered by folding the files, the interference of the browsed files on the user can be prevented, and the display effect of the file view area can be simple, so as to effectively reduce the complexity of file searching and improve the file searching efficiency.
[0072] Secondly, under the premise of realizing the folding (i.e. hiding) of the interference file, the application further proposes the functions of unfolding the folded file, quickly folding the file after unfolding, merging the folding bar, adding files to the folding bar, etc. These functions provide more operation options for the user and enhance the ease of use of the file folding method of the application.
[0073] In addition, on the basis of realizing the filtering of the interference file by storing the file into the folding bar, the file folding function is extended so that the user can select the file to be viewed into the folding bar, and then the file is displayed in the form of a tab page. The user can classify the files and switch among different categories of files by triggering the tab bar of the tab page, so as to quickly view different categories of files. Compared with the single filtering function, the extended file folding function can adapt to various application scenarios and improve the user experience.
[0074] It should be noted that, on the basis of not changing the directory structure of the target folder, when it is necessary to filter or classify multiple files that are not focused on, steps S301 to S304 need to be performed. On this basis, when it is necessary to unfold the folding bar, step S305 needs to be performed, when it is necessary to merge the folding bar, step S306 needs to be performed, when it is necessary to drag a file into the folding bar, step S307 needs to be performed, when it is necessary to view the classified files, steps S308 and S309 need to be performed, and when it is necessary to exit the display interface of the file manager, step S310 needs to be performed.
[0075] A9. The method of A8, further comprising the step of:
[0076] updating the file displayed in the tab page when a second operation on the file displayed in the tab page is monitored.
[0077] A10. The method of A5, wherein the step of unfolding the folding bar comprises:
[0078] changing the background color of the folding bar to a preset color when an event of hovering the cursor over the folding bar area is monitored;
[0079] displaying the file in the folding bar in the file view area in the original display order in the file view area when the first operation in the folding bar area is monitored;
[0080] adding the data in the container to the first source data;
[0081] adding a selected state to the file in the folding bar that is currently displayed in the file view area;
[0082] drawing a background color same as the preset color on the file with the selected state;
[0083] deleting the expanded folder bar and the container corresponding to the folder bar.
[0084] A11. The method of A6, when the file view area includes a plurality of the folder bars, the step of merging any folder bar into a target folder bar includes:
[0085] when monitoring the operation of dragging any folder bar into a target folder bar and releasing the folder bar, merging the file data of the container corresponding to the folder bar into the file data of the container corresponding to the target folder bar as a merged container;
[0086] counting the number of files currently included in the target folder bar according to the file data of the merged container as second information;
[0087] updating the statistics on the target folder bar as the second information;
[0088] deleting the previously dragged folder bar from the file view area;
[0089] deleting the container corresponding to the previously dragged folder bar.
[0090] A12. The method of A7, wherein the step of storing the file into the target folder bar includes:
[0091] when monitoring the operation of dragging any file into a target folder bar and releasing the file, storing the file data of the file into the container of the target folder bar;
[0092] deleting the file data of the currently dragged file from the source file data of the target folder to obtain third source data;
[0093] displaying the folder bar and the file corresponding to the third source data in the file view.
[0094] A13. The method of A8, wherein the step of displaying the files included in the folder bar in the newly created tab page includes:
[0095] allocating a unique identifier to the tab page and displaying it in the tab bar thereof;
[0096] displaying all the files included in the currently dragged folder bar in the display area of the tab page.
[0097] A14. The method of A9, wherein the step of updating the files displayed in the tab page when monitoring the second operation on the files displayed in the tab page includes:
[0098] when monitoring the second operation on the files in the tab page, obtaining the file data;
[0099] updating the corresponding file data in the container corresponding to the currently operated file as the acquired file data;
[0100] reading the file data of the updated container;
[0101] displaying the file corresponding to the read file data in the tab page.
[0102] A15. The method of A14, further comprising the step of:
[0103] counting the number of files according to the file data of the updated container as third information;
[0104] updating the display information of the fold bar corresponding to the currently operated file in the file view area as the third information.
[0105] A16. The method of any one of A1 to A15, further comprising the step of:
[0106] releasing the data in the container when an event of exiting the file view area is monitored;
[0107] adding the data in the container to the source file data of the directory file.
[0108] The various techniques described herein can be implemented in connection with hardware or software, or combinations thereof. Thus, the methods and apparatus of the 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 (universal serial bus) drives, optical tapes, CD-ROMs, or any other machine-readable storage medium, wherein, when the program code is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the application.
[0109] Where the program code is executed on a programmable computer, the computing device generally includes a processor, a storage medium readable by the processor (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The storage medium is configured to store program code which, when executed by the processor, implements the file folding method of the application.
[0110] In the context of this document, a "storage medium" can be any physical medium that stores information. The term "storage medium" shall therefore include without being limited to floppy disks, optical disks, CD-ROMs, DVD ROMs, RAMs, hard disks, removable hard disks, USB (universal serial bus) drives, optical tapes, and any other medium which can be used to store and / or transfer information. The terms "computer-readable medium" and "computer program product" include, but are not limited to information delivery media.
[0111] 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 shown in detail in order not to obscure an understanding of this description.
[0112] 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 shown in detail in order not to obscure an understanding of this description.
[0113] Similarly, it is to be understood that the narrative provided above in the description of illustrative embodiments of the application sometimes describes individual features or groups of features in terms of the way in which the individual features or groups of features cooperate to provide the disclosed functionality. However, the application should not necessarily be construed as limited to these individual features or groups of features. That is, the application should not necessarily be construed as requiring that the disclosed functionality reside in each and every individual feature or group of features. Rather, the functionality can be distributed among the features or groups of features in a manner that can vary from one implementation to another. Thus, the claims should not necessarily be construed as requiring the features or groups of features to function in the way described above in the narrative of the illustrative embodiments.
[0114] 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 the devices 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.
[0115] Those skilled in the art will appreciate that the modules in the apparatuses in the embodiments can be adapted and placed in one or more apparatuses other than the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and further can be split into multiple sub-modules or sub-units or sub-components. Any combination of all the features disclosed in the specification (including the accompanying claims, abstract and drawings), and any method or process or steps of any such methods or processes disclosed in the specification (including the accompanying claims, abstract and drawings) can be made, except that at least some of such features and / or processes or units are mutually exclusive, unless explicitly stated otherwise. Each feature disclosed in the specification (including the accompanying claims, abstract and drawings) can be replaced by alternative features serving the same, equivalent or similar purpose, unless explicitly stated otherwise.
[0116] Furthermore, those skilled in the art will appreciate that the features of the various embodiments described herein are not mutually exclusive and can be combined in different embodiments. For example, in the claims, any of the claimed embodiments can be used in any combination.
[0117] Furthermore, some of the embodiments described herein are described as a method or combination of elements of a method implementable by a processor of a computer system or by other means of carrying out the function. Accordingly, a processor with the necessary instructions for carrying out such a method or element of a method forms a means for carrying out the method or element of a method. Furthermore, an element of a method described herein that is implemented as a means for carrying out a particular function performs that function whether or not recited as a means for carrying out that function.
[0118] As used herein, unless otherwise indicated, the use of the ordinal adjectives "first", "second", "third" and so on, in no way limits the number of objects to which it refers, which can be only one.
[0119] While the application has been described in accordance with the various embodiments shown and described, it is to be understood that the application is not limited to those precise embodiments, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the present application. Furthermore, the language used in this specification has been principally selected for readability and instructional purposes and can not have been selected to delineate or circumscribe the patent rights to which it refers. Accordingly, the present application is intended to be illustrative, but not limiting, of the scope of the application, which is set forth with particularity in the claims that follow.
Claims
1. A file folding method, executed in a file manager of a computing device, the file manager's display interface including a file view area, wherein a file list of all files included in a target folder is displayed in the file view area, the method comprising: Receive an event indicating that multiple files in the file list have been selected; When the first operation is detected in the area containing the selected file, create a collapsed bar; The process involves placing the selected file into the collapsible bar and temporarily storing its data. This includes creating a container corresponding to the collapsible bar, placing the selected file into the collapsible bar, storing the selected file data into the container to achieve temporary storage of the selected file data, deleting the selected file data from the source file data in the target folder to obtain first source data, and displaying the collapsible bar and the file corresponding to the first source data in the file view area. This allows the file view area to display the collapsible bar and all files in the target folder except for the file placed into the collapsible bar. The step of displaying the collapsible bar and the file corresponding to the first source data in the file view area includes: sequentially reading a file from the first source data, determining whether the read file data is at the position of the first selected file, and if so, displaying the collapsible bar in the file view area; otherwise, displaying the file corresponding to the read file data. The collapsible bar displays statistics for the multiple files stored within it.
2. The method as described in claim 1, wherein, The step of displaying statistics of the multiple files stored therein on the collapsed bar includes: The number of files is counted based on the data stored in the container, and this count is used as the first piece of information. The first information is displayed on the collapsed bar.
3. The method of claim 2, further comprising the step of: When the first operation is detected in the collapsed bar area, the collapsed bar is expanded to restore the files in the collapsed bar to their state before being collapsed.
4. The method of claim 1, further comprising the step of: when the document view area includes multiple collapsed bars. Merge any collapsible bar into the target collapsible bar.
5. The method of claim 1, further comprising the step of: When an operation is detected where any file is dragged to the target collapsible bar and then released, the file is stored in the target collapsible bar.
6. The method of claim 1, further comprising the step of: When it is detected that any of the folded bars is dragged to a preset area of the display interface, a tab is created for the folded bar; The files included in the collapsed bar will be displayed in a newly created tab.
7. The method of claim 6, further comprising the step of: When a second operation on the file displayed in the tab is detected, the file displayed in the tab is updated.
8. The method of claim 3, wherein, The step of unfolding the collapsible bar includes: When an event is detected in which the cursor hovers over the collapsible bar area, the background color of the collapsible bar is changed to a preset color; When the first operation in the collapsible bar area is detected, the files in the collapsible bar are displayed in the file view area according to the original display order in the file view area; Add the data from the container to the first source data; Add a selected state to the file currently displayed in the file view area, in the collapsed bar; Draw a background color that is the same as the preset color on the selected file; Delete the expanded collapsible bar and its corresponding container.
9. The method of claim 4, wherein when the document view area includes multiple folded bars, the step of merging any folded bar into the target folded bar includes: When an operation is detected where any collapsible bar is dragged to a target collapsible bar and then released, the file data of the container corresponding to that collapsible bar is merged with the file data of the container corresponding to the target collapsible bar to form a merged container. The number of files currently included in the target collapsible bar is calculated based on the file data of the merged container, and this is used as the second piece of information; Update the statistical data on the target collapsed bar to the second information; Remove the previously dragged-out collapsible bar from the document view area; Delete the container corresponding to the previously dragged collapse bar.
10. The method of claim 5, wherein, The step of storing the file in the target collapsible bar includes: When an operation is detected in which any file is dragged to the target collapsible bar and then released, the file data of that file is stored in the container of the target collapsible bar. The file data of the currently dragged file is deleted from the source file data of the target folder to obtain the third source data; The file view displays the collapsed bar and the file corresponding to the third source data.
11. The method of claim 6, wherein, The step of displaying the files included in the collapsed bar in the newly created tab includes: Assign a unique identifier to the tab and display it in its tab bar; The tab's display area shows all files included in the currently dragged collapsible bar.
12. The method of claim 7, wherein, The step of updating the file displayed in the tab when a second operation on the file displayed in the tab is detected includes: When a second operation on a file in a tab is detected, the file data is retrieved; Update the corresponding file data in the container corresponding to the currently operated file to the already acquired file data; Read the updated file data from the container; The tab displays the file corresponding to the read file data.
13. The method of claim 12, further comprising the step of: The number of files is counted based on the updated container's file data, and this count is used as third-party information. Update the display information of the collapsible bar corresponding to the currently operated file in the file view area to the third information.
14. The method of claim 1, further comprising the step of: When an event is detected that the user has exited the file view area, the data in the container is released. The data in the container is added to the source file data of the directory file.
15. A computing device, comprising: At least one processor; as well as A memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions including instructions for performing the method as described in any one of claims 1 to 14.
16. A readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the method as described in any one of claims 1 to 14.
Citation Information
Patent Citations
File system shell
CN101124572A
File management method and system based on graphical interface
CN104166669A
Interaction method based on address bar and computing device
CN113311983A