File management method, electronic device and readable storage medium

WO2026045440A9PCT designated stage Publication Date: 2026-08-13HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-05-29
Publication Date
2026-08-13

Smart Images

  • Figure CN2025098190_13082026_PF_FP_ABST
    Figure CN2025098190_13082026_PF_FP_ABST
Patent Text Reader

Abstract

A file management method, an electronic device and a readable storage medium, which relate to the technical field of terminals. The file management method comprises: in response to a virtual-folder creation operation, displaying a first interface (S1710); and in response to a target condition description set in the first interface, generating a target virtual folder (S1720), wherein the target condition description comprises target operation description, the target operation description is used for indicating a target file operation, a file list of the target virtual folder comprises at least one target file, and historical file operations corresponding to the target file include the target file operation.
Need to check novelty before this filing date? Find Prior Art

Description

Document management methods, electronic devices and readable storage media

[0001] This application claims priority to Chinese Patent Application No. 202411203504.3, filed on August 29, 2024, entitled "Document Management Method, Apparatus, Electronic Device and Readable Storage Medium", and Chinese Patent Application No. 202510573290.7, filed on April 30, 2025, entitled "Document Management Method, Electronic Device and Readable Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of terminal technology, and in particular to a file management method, electronic device, and readable storage medium. Background Technology

[0003] Electronic devices can store a large number of files, and files obtained from different applications are often stored in different file directories. Generally, users find desired files on electronic devices in two ways. The first way is that if the user knows the location of the target file, they can find it level by level in the file manager's directory structure; however, this method is inefficient. The second way is that the user can enter keywords in the file manager's search bar, allowing the electronic device to filter all stored files based on those keywords, thus finding the target file whose filename or content contains those keywords. However, if the user cannot accurately remember keywords that perfectly match the target file's filename or content, the electronic device may not be able to find the desired file. Summary of the Invention

[0004] This application provides a file management method, an electronic device, and a readable storage medium, which can solve the technical problem that users have difficulty finding the files they need from electronic devices.

[0005] To achieve the above objectives, this application adopts the following technical solution:

[0006] In a first aspect, this application provides a file management method, which includes: displaying a first interface in response to a virtual folder creation operation; generating a target virtual folder in response to a target condition description set in the first interface, wherein the file list of the target virtual folder includes at least one target file, the target file matches the target condition description, the target condition description includes a target operation description, the target operation description is used to indicate the target file operation, and the conditions satisfied by the target file matching the target condition description may include: the target file operation is included in the historical file operations corresponding to the target file.

[0007] The historical file operations corresponding to the target file include all file operations performed on the target file by the electronic device within a preset time period. The preset time period can be a period prior to the current moment (e.g., the last three months, the last month, etc.). The current moment refers to the moment when the target conditions were set or when the virtual folder creation operation was triggered. All file operations performed on the target file can include at least one of modification, access, and creation operations.

[0008] In the file management method provided in the first aspect, by setting a target operation description in the first interface, the electronic device can filter out at least one target file from all stored files that contains the target file operation in the historical file operations, based on the target file operation indicated by the target operation description. Then, a corresponding target virtual folder is generated based on the target file. This allows users to quickly find the required target file from the electronic device based on the file operations performed on the file, even if they cannot accurately remember the storage path and file name of the file they want to find or organize, thus improving the efficiency of file search.

[0009] In one possible implementation of the first aspect, the target file operations include: creation operations, modification operations, and / or access operations. Modification operations refer to adding, deleting, and / or modifying the content of a file. Access operations, also known as open operations, specifically refer to opening a file to access its contents.

[0010] In one possible implementation of the first aspect, the target condition description further includes a target time description, which indicates the target operation time of the target file operation. The conditions that the target file meets in matching the target condition description may also include: the target operation time includes the historical operation time of the target file operation corresponding to the target file.

[0011] In one possible implementation of the first aspect, when the target file operation includes a creation operation, the target operation time includes the target creation time corresponding to the creation operation, and the historical operation time is the creation time of the target file. And / or, when the target file operation includes a modification operation, the target operation time includes the target modification time corresponding to the modification operation, and the historical operation time is the modification time when the modification operation was performed on the target file. And / or, when the target file operation includes an access operation, the target operation time is the target access time corresponding to the access operation, and the historical operation time is the access time when the access operation was performed on the target file.

[0012] For example, the target time description can be a time description indicating a recent period, such as the last day, the last three days, etc. Alternatively, the target time description can be a time description indicating an end time as a historical moment rather than the current moment, such as yesterday, the day before yesterday, last week, etc. In this embodiment, the electronic device can store file metadata for each file, which may include the file's creation time and modification time. The application management system (AMS) in the electronic device can store the access time when each file is accessed. The file creation time refers to the specific time when the file is first created in the electronic device, the file modification time refers to the specific time when the file's content and / or format is modified, and the file access time refers to the specific time when an access operation is performed on the file; the access operation can also be called an open operation. The electronic device can obtain the historical operation time corresponding to the target file operation from the file metadata of each file or the application management server, and then compare it with the target operation time indicated by the target time description to filter out target files that meet the target operation time.

[0013] In one possible implementation of the first aspect, when the target file operation includes a modification operation, the target modification time is a first time period, the duration of the first time period is a first duration, the end time of the first time period is the current time, and the historical operation time is the modification time of the most recent modification operation performed on the target file. And / or, when the target file operation includes an access operation, the target access time is a second time period, the duration of the second time period is a second duration, the end time of the second time period is the current time, and the historical operation time is the access time of the most recent access operation performed on the target file.

[0014] In one possible implementation of the first aspect, the target condition description further includes a target topic description, which is used to indicate the topic of the target file. The conditions that the target file meets for matching the target condition description may also include: the topic of the target file matches the topic of the target file.

[0015] In one possible implementation of the first aspect, the method further includes: displaying the folder name of the target virtual folder in a first interface, the folder name including a first topic description or a target topic description, both the first topic description and the target topic description indicating the topic of the target file.

[0016] Based on this optional approach, the folder name can be generated by the electronic device according to the target topic description. For example, if the folder name has a limited number of characters, the electronic device can shorten the target topic description to obtain the first operation description, and display the folder name based on the first operation description; or the electronic device can directly use the target topic description as the folder name. Alternatively, the folder name can be set by the user, which can include the target topic description or the first topic description, as well as other descriptions. When the user modifies the target topic description in the first interface, the electronic device can adjust the folder name according to the modified target topic description and update the file list according to the modified target file topic description. However, after the user modifies the folder name in the first interface, the target topic description in the first interface will not change accordingly, and the file list of the target virtual folder will not be updated accordingly.

[0017] In one possible implementation of the first aspect, matching the file topic of a target file with another target file topic is defined as follows: the matching degree between the file topics of two target files is greater than or equal to a preset matching degree threshold. The method further includes: in response to an adjustment operation on the matching degree threshold, updating the file list, wherein the matching degree between the file topic of each target file in the updated file list and the target file topic is greater than or equal to the adjusted matching degree threshold.

[0018] Based on this possible implementation, users can adjust the matching threshold corresponding to the target virtual folder by adjusting the position of the circular slider in the slider control in the display interface. This will allow them to adjust the target files displayed in the file list. In the case of a large number of target files displayed in the file list, adjusting the matching threshold can reduce the number of target files displayed in the file list, thereby improving the accuracy of the target files and ensuring that the target files displayed in the file list have a high degree of relevance to the target file topics.

[0019] In one possible implementation of the first aspect, the target condition description further includes a target source description, which indicates the source of the target file. The conditions that the target file meets in matching the target condition description may also include: the file source of the target file is the target file source.

[0020] In one possible implementation of the first aspect, the source of the target file is a target application, such as a file transfer, creation, or download application like Changlian or WeChat. Alternatively, the source of the target file can be a first device, such as a mobile phone, computer, or USB flash drive, which can transfer files.

[0021] In one possible implementation of the first aspect, the target condition description further includes a target attribute description, which is used to indicate the target file attributes. The conditions that the target file meets for matching the target condition description may also include: the first file attribute of the target file is the same as the target file attribute.

[0022] In one possible implementation of the first aspect, the first file attribute is a file format or a file genre. For example, the file format can be: a document (e.g., DOC and DOCX format files), an image, a presentation (e.g., PPT and PPTX format files), a video, etc. The file genre can be a contract (e.g., an employment contract, a lease agreement, a sales contract, etc.), a paper (e.g., a journal article, a conference paper, a dissertation, etc.), a medical record, etc.

[0023] In one possible implementation of the first aspect, the electronic device may display a file list in response to a target condition description set by the user in a first interface; and generate a target virtual folder based on the file list in response to a confirmation operation of the target condition description.

[0024] Based on this implementation method, electronic devices can display the filtered target files in real time according to the target conditions described by the user, so that the user can check in time whether the filtered target files are the files they want to find. When the filtered target files are not the files the user wants, the user can adjust the various target descriptions in the target conditions description in time.

[0025] In one possible implementation of the first aspect, the first interface includes multiple candidate operation descriptions. The electronic device can generate a target virtual folder in response to a user's selection of at least one candidate operation description on the first interface. The target operation description includes a first candidate operation description selected by the user, the first candidate operation description indicating a first candidate file operation, and the target file operation includes the first candidate file operation.

[0026] Based on this possible implementation, electronic devices can generate multiple candidate operation descriptions according to the historical file operations corresponding to each file. These candidate operation descriptions can indicate multiple different candidate file operations. By displaying the candidate operation descriptions, users can be guided to set the target operation description for filtering desired files, thus improving the user experience.

[0027] In one possible implementation of the first aspect, the first interface further includes multiple candidate time descriptions, multiple candidate topic descriptions, multiple candidate source descriptions, and / or multiple candidate attribute descriptions. The target condition description further includes a target time description, a target topic description, a target source description, and / or a target attribute description. The target time description indicates the target operation time, the target topic description indicates the target file topic, the target source description indicates the target file source, and the target attribute description indicates the target file attribute. Based on this, the electronic device can generate a target virtual folder in response to a user's selection operation on the first interface for at least one candidate operation description, and for at least one candidate time description, at least one candidate topic description, at least one candidate source description, and / or at least one candidate attribute description.

[0028] The target time description includes a user-selected first candidate time description, which indicates a first candidate operation time, and the target operation time includes the first candidate operation time; and / or, the target topic description includes a user-selected first candidate topic description, which indicates a first candidate file topic, and the target file topic includes the first candidate file topic; and / or, the target source description includes a user-selected first candidate source description, which indicates a first candidate file source, and the target file source includes the first candidate file source; and / or, the target attribute description includes a user-selected first candidate attribute description, which indicates a first candidate file attribute, and the target file attribute includes the first candidate file attribute.

[0029] Based on this optional approach, by displaying candidate time descriptions, candidate topic descriptions, candidate source descriptions, and candidate attribute descriptions, users can be guided to input target time descriptions, target topic descriptions, target source descriptions, and / or target attribute descriptions based on the target operation description, thereby increasing the filtering conditions for target files and making the filtered target files more in line with the user's expectations.

[0030] In one possible implementation of the first aspect, the method further includes: displaying the number of at least one target file contained in the file list on a first interface.

[0031] In one possible implementation of the first aspect, at least one target file includes a first target file, and the method further includes: removing the first target file from the file list in response to an operation of removing the first target file from the target virtual folder.

[0032] In this implementation, users can adjust the file list of the target virtual folder by removing the first target file that they believe does not match the target condition description, or by removing the first target file that they do not want to be displayed in the target virtual folder.

[0033] In one possible implementation of the first aspect, the method further includes: if the target condition description also includes a target topic description, determining a second target file from at least one target file, wherein a first feature of the second target file matches a first feature of the first target file, the first feature being a subclass file topic of the target file topic; and removing the second target file from the file list.

[0034] In one possible implementation of the first aspect, the method further includes: determining a third target file from at least one target file, where the target condition description also includes a target attribute description and the target file attribute indicated by the target attribute description is a target file genre; the second feature of the third target file is the same as the second feature of the first target file, and the second feature is a subclass file genre of the target file genre; and removing the third target file from the file list.

[0035] Based on the two implementation methods described above, the electronic device can determine the user's adjustment preferences for the target virtual folder based on the first or second characteristics of the first target file, and then remove the second target file that is similar to the first target file in terms of its first characteristics, or the third target file that is similar to the second characteristics of the first target file, from the target virtual folder, so that the remaining target files in the file list are more in line with the user's interests.

[0036] In one possible implementation of the first aspect, the electronic device stores at least one file, the at least one file including a first file; the method further includes: in response to an operation of moving the first file into a target virtual folder, moving the first file into a file list.

[0037] In one possible implementation of the first aspect, after generating the target virtual folder, the method further includes: in response to an open operation on the target virtual folder, displaying a file list, the file list including at least one target file that matches the target condition description.

[0038] In one possible implementation of the first aspect, the method further includes: in response to an open operation on the target virtual folder, displaying a first file list, the first file list including files matching the target condition description and files meeting a first exception condition, the files meeting the first exception condition being files moved into the target virtual folder by the user before the open operation was triggered.

[0039] Optionally, the specific method for displaying the first file list includes: in response to an open operation on the target virtual folder, obtaining a second file list, the second file list including files that match the target condition description and files that meet a first exception condition, the files in the second file list that meet the first exception condition having a first tag; obtaining the first file list based on the second file list, the first file list including the files in the second file list; and displaying the first file list.

[0040] In one possible implementation of the first aspect, the method further includes: in response to an open operation on the target virtual folder, displaying a first file list, the first file list including files that match the target condition description and do not meet a second exception condition, the files that meet the second exception condition being files that the user removed from the target virtual folder before the open operation was triggered.

[0041] Optionally, the specific method for displaying the first file list includes: in response to an open operation on the target virtual folder, obtaining a second file list, the second file list including files that match the target condition description and files that meet the second exception condition, the files in the second file list that meet the second exception condition having a second tag; obtaining the first file list based on the second file list, the first file list including files in the second file list that do not have the second tag; and displaying the first file list.

[0042] In one possible implementation of the first aspect, the method further includes: in response to an open operation on a target virtual folder, displaying a first file list, the first file list including: files that meet a first exception condition, and files that match the target condition description but do not meet a second exception condition; wherein the files that meet the first exception condition are files that the user moved into the target virtual folder before the open operation was triggered, and the files that meet the second exception condition are files that the user moved out of the target virtual folder before the open operation was triggered.

[0043] In one possible implementation of the first aspect, the specific method for displaying the first file list in response to an open operation on the target virtual folder includes: in response to an open operation on the target virtual folder, obtaining a second file list corresponding to the target virtual folder, the second file list including files matching the target condition description, files meeting a first exception condition, and files meeting a second exception condition, the files in the second file list that meet the second exception condition having a second tag; obtaining the first file list based on the second file list, the first file list including files in the second file list that do not have a second tag; and displaying the first file list.

[0044] In this application embodiment, the first exception condition and the second exception condition can be used to indicate the user's adjustment preferences for files in the target virtual folder. The electronic device can adjust the files that can be displayed in the target virtual folder based on the user's adjustment preferences, so that the files displayed in the target virtual folder are more in line with the user's interests.

[0045] In one possible implementation of the first aspect, the method further includes: in response to an update command, updating a file list according to a blacklist corresponding to the target virtual folder; the update command is triggered at a preset time or when the user opens the target virtual folder, the blacklist includes at least one file that the user has removed from the target virtual folder before the update command is triggered, and the updated file list does not include files in the blacklist.

[0046] In one possible implementation of the first aspect, the method further includes: in response to an update command, updating a file list according to a whitelist corresponding to the target virtual folder; the update command is triggered at a preset time or when the user opens the target virtual folder, the whitelist includes at least one file that the user has moved into the target virtual folder before the update command is triggered, and the updated file list includes files in the whitelist.

[0047] In this embodiment, blacklists and whitelists can be used to indicate a user's adjustment preferences for files in a target virtual folder. The electronic device can adjust the files selected based on various target features indicated by different target descriptions of the target virtual folder, according to the user's preferences. When the target virtual folder has corresponding blacklists and whitelists, the adjusted file list includes all files in the whitelist but excludes all files in the blacklist, making the target files in the target virtual folder more aligned with the user's interests.

[0048] In one possible implementation of the first aspect, the update instruction is triggered at a preset time; the method further includes: displaying an update notification message for the target virtual folder, the update notification message being used to remind the user that the file list has been updated and that the user has not yet opened the updated target virtual folder.

[0049] For example, the update prompt information may include illustrative prompts (e.g., dots of a preset color), text prompts, and / or a first display effect. For instance, the first display effect may be: the brightness of the folder identifier of the updated target virtual folder (which the user has not opened) is higher than the brightness of other virtual folders, or the folder identifier of the updated target virtual folder (which the user has not opened) flashes. The folder identifier of the target virtual folder may be an information box for the target virtual folder or the folder name of the target virtual folder.

[0050] In one possible implementation of the first aspect, the update prompt message is displayed after the folder name of the target virtual folder.

[0051] In one possible implementation of the first aspect, the method further includes updating the file list in response to a modification operation on the description of the target conditions.

[0052] Specifically, the modification operations for the target condition description refer to the deletion, addition, and / or modification operations of at least one of the following descriptions: target topic description, target operation description, target time description, target source description, and target attribute description. The target file topic indicated by the modified target topic description differs from that indicated by the original target topic description. The target file operation indicated by the modified target operation description differs from that indicated by the original target operation description. The target operation time indicated by the modified target time description differs from that indicated by the original target time description. The target file source indicated by the modified target source description differs from that indicated by the original target source description. The target file attribute indicated by the modified target attribute description differs from that indicated by the original target attribute description.

[0053] In one possible implementation of the first aspect, the method further includes: in response to a stop update operation on the target virtual folder, stopping the updating of the file list of the virtual folder according to the target condition description.

[0054] For example, in an interface displaying a file list of a target virtual folder, a "Smart Update" control corresponding to that target virtual folder can be displayed. When the "Smart Update" control is enabled, the electronic device can automatically update the file list based on the target condition description, blacklist, and whitelist corresponding to the target virtual folder. Users can also move files into or out of the target virtual folder according to their preferences. When the "Smart Update" control is disabled, the electronic device cannot automatically update the file list based on the target condition description, blacklist, and whitelist corresponding to the target virtual folder, and users cannot move files into or out of the target virtual folder according to their preferences. The user can stop updating the target virtual folder by changing the "Smart Update" control from enabled to disabled.

[0055] Secondly, this application provides another file management method applied to an electronic device. In response to a virtual folder creation operation, the electronic device generates a target virtual folder, the folder name of which includes a target operation description indicating a target file operation. In response to an open operation of the target virtual folder, a file list of the target virtual folder is displayed, the file list including at least one target file, and the target file matches the folder name. The condition for the target file and folder name to match may include: the historical file operations corresponding to the target file include the target file operation. The historical file operations corresponding to the target file include: all file operations performed by the electronic device on the file within the time range from the moment the target file was generated to the moment the virtual folder was created.

[0056] Based on the file management method provided in this application, the electronic device can filter and display at least one target file that contains the target file operation in the historical file operation according to the target file operation indicated by the target operation description in the folder name. This allows users to quickly find the required target file from the electronic device by performing the target file operation on the file even if they cannot accurately remember the file's storage path, file name, and specific content. This improves the efficiency and accuracy of file search.

[0057] In one possible implementation of the second aspect, the target file operations include: creation, opening, modification, deletion, download, adjusting file storage location, renaming, moving a file out of a first folder, moving a file into a second folder, receiving, receiving a file through a first application, receiving a file from a first source, and / or receiving a file via a first transmission method. The first source can be a first device or a first user. The first device can be a mobile phone, computer, USB flash drive, or other device capable of file transfer. The first user can be a social media user, a conferencing software user, etc. The first transmission method can be Bluetooth, USB interface, or other file transfer methods.

[0058] In one possible implementation of the second aspect, the folder name also includes a target time description, which indicates the target operation time. The conditions for the target file and folder name to match may also include: the target operation time includes the historical operation time of the target file operation corresponding to the target file. For example, the target time description can be used to indicate a target time range (e.g., yesterday, the last day, the last three days, the last year, etc.) or a specific moment.

[0059] In one possible implementation of the second aspect, the folder name also includes a target attribute description, which indicates the target file attributes. The condition for a target file to match a folder name may also include: the first file attribute of the target file is the same as the target file attribute.

[0060] In one possible implementation of the second aspect, the first file attribute is either a file format or a file genre. For example, the file format could be: a document (e.g., a file with the extensions .doc or .docx), an image, a presentation (e.g., a file with the extensions .ppt or .pptx), a video, etc. The file genre could be a contract (e.g., an employment contract, a lease agreement, a sales contract, etc.), a paper (e.g., a journal article, a conference paper, a dissertation, etc.), a medical record, etc.

[0061] In one possible implementation of the second aspect, the folder name also includes a target topic description, which indicates the topic of the target file; the target file's topic matches the target file's topic. Specifically, matching the target file's topic with the target file's topic means that the degree of matching between the target file's topic and the target file's topic is greater than or equal to a preset matching threshold.

[0062] In one possible implementation of the second aspect, the method further includes: updating the file list in response to the adjustment operation of the matching degree threshold, wherein the matching degree between the file topic of each target file in the updated file list and the target file topic is greater than or equal to the adjusted matching degree threshold.

[0063] Based on this possible implementation, users can adjust the matching threshold of the target virtual folder by adjusting the position of the circular slider in the slider control in the display interface. This will adjust the target files displayed in the file list. When there are many target files displayed in the file list, adjusting the matching threshold can reduce the number of target files displayed in the file list, improve the relevance between the target files displayed in the file list and the folder name, and enable users to quickly find the files they need from the file list.

[0064] In one possible implementation of the second aspect, the folder name of the target virtual folder is set by the user. Based on this implementation, the user can name the target virtual folder according to the target file operations performed on the file to be searched, as well as the file topic, file attributes, and / or operation time of the target file operations. This allows the folder name of the target virtual folder to contain file descriptions that can be used to indicate various file operations, so that the electronic device can filter out the target file based on the file descriptions in the folder name.

[0065] In one possible implementation of the second aspect, the electronic device may specifically respond to the creation operation of the virtual folder by displaying a name edit box; determining the folder name based on the user's input in the name edit box; and generating the target virtual folder based on the folder name.

[0066] In one possible implementation of the second aspect, the electronic device may further, in response to the creation operation of the virtual folder, display a name editing interface including multiple candidate operation descriptions; in response to a user's selection of at least one candidate operation description in the name editing interface, determine a folder name; the target operation description includes a first operation description or a first candidate operation description selected by the user, both the first operation description and the first candidate operation description indicating a first candidate file operation, and the target file operation includes the first candidate file operation; and generate a target virtual folder based on the folder name. For example, the selection operation may be a click (double-click or tap) operation.

[0067] Based on this possible implementation, electronic devices can generate multiple candidate operation descriptions according to the historical file operations corresponding to each file. These multiple candidate operation descriptions are used to indicate multiple different candidate file operations. By displaying the candidate operation descriptions, users can be guided to set folder names, improving the user experience. Furthermore, when the target virtual folder name has a limited character limit, the character count of the first candidate operation description selected by the user can be reduced to obtain a first operation description, which is then used as part of the folder name. This avoids situations where the total character count of the folder name composed of multiple first candidate operation descriptions selected by the user exceeds the preset character limit.

[0068] In one possible implementation of the second aspect, the name editing interface further includes multiple candidate time descriptions, multiple candidate topic descriptions, and / or multiple candidate attribute descriptions. The folder name further includes a target time description, a target topic description, and / or a target attribute description. The target time description indicates the target operation time, the target topic description indicates the target file topic, and the target attribute description indicates the target file attributes. The method for determining a folder name in response to a user's input of at least one candidate operation description in the name editing interface includes: determining the folder name in response to a user's selection of at least one candidate operation description in the name editing interface, and selection of at least one candidate time description, at least one candidate topic description, and / or at least one candidate attribute description.

[0069] The target time description includes either a first time description or a first candidate time description selected by the user, both of which indicate the first candidate operation time, and the target operation time includes the first candidate operation time; and / or, the target topic description includes either a first topic description or a first candidate topic description selected by the user, both of which indicate the first candidate file topic, and the target file topic includes the first candidate file topic; and / or, the target attribute description includes either a first attribute description or a first candidate attribute description selected by the user, both of which indicate the first candidate file attribute, and the target file attribute includes the first candidate file attribute.

[0070] In this implementation, at least one first candidate time description, at least one first candidate time description, and at least one first candidate attribute description selected by the user can all be used as part of the folder name. Alternatively, the electronic device can reduce each of the at least one first candidate time description, at least one first candidate time description, and at least one first candidate attribute description selected by the user, and use the reduced descriptions as part of the folder name, thereby avoiding the folder name exceeding the preset character limit.

[0071] Based on this possible implementation, the electronic device can generate multiple candidate time descriptions based on the operation time in the historical operation time of each file; multiple candidate topic descriptions based on the file topic of each file; and multiple candidate attribute descriptions based on the file attributes of each file. Through the various candidate descriptions displayed in the name editing interface, the electronic device can prompt the user with the file topics and file attributes of the files already stored on the device, and guide the user to set folder names based on these candidate descriptions. This allows users to smoothly complete the folder name setting and create new virtual folder operations even when they are unsure how to set folder names or what files are stored on the electronic device, thus improving the user experience.

[0072] In one possible implementation of the second aspect, at least one target file may include a first target file, and the electronic device may also remove the first target file from the file list in response to an operation of removing the first target file from the target virtual folder.

[0073] In this implementation, users can adjust the file list corresponding to the target virtual folder by removing the first target file that they deem not closely related to the folder name, or by removing the first target file that they do not want to be displayed in the target virtual folder.

[0074] In one possible implementation of the second aspect, the method further includes: determining a second target file from at least one target file if the folder name also includes a target topic description, wherein a first feature of the second target file matches a first feature of the first target file, the target topic description is used to indicate the topic of the target file, and the first feature is a sub-type of the target file topic; and removing the second target file from the file list.

[0075] In this implementation, the target file topic can include multiple sub-file topics of different types. For example, if the target topic description in the folder name corresponds to the target file topic "mathematics", then the first feature can be linear algebra, differential calculus, geometry, or other types of sub-file topics.

[0076] In one possible implementation of the second aspect, the method further includes: determining a third target file from at least one target file if the folder name also includes a target attribute description and the target file attribute indicated by the target attribute description is a target file genre; the second feature of the third target file is the same as the second feature of the first target file, and the second feature is a subclass of the target file genre; and removing the third target file from the file list.

[0077] In this implementation, the target file genre can include multiple sub-file genres of different types. For example, if the target file genre corresponding to the target attribute description in the folder name is "paper", then the second feature can be a sub-file genre such as journal article, conference paper, or dissertation.

[0078] Based on the two possible implementation methods mentioned above, the electronic device can determine the user's adjustment preference for the target virtual folder according to the first or second feature of the first target file, and then remove the second target file that is similar to the first target file in the first feature, or the third target file that is similar to the second feature of the first target file, from the target virtual folder, so that the remaining target files in the file list are more in line with the user's interests.

[0079] In one possible implementation of the second aspect, the electronic device stores at least one file, which includes a first file; the method further includes updating a file list in response to an operation of moving the first file into a target virtual folder, the updated file list including the first file. In this implementation, a user can move files that they consider related to the folder name into the corresponding virtual folder according to their preferences.

[0080] In one possible implementation of the second aspect, the method further includes: in response to an update command, updating the file list according to the blacklist corresponding to the target virtual folder; the update command is triggered at a preset time or when the user opens the target virtual folder, the blacklist includes at least one file that the user has removed from the target virtual folder before the update command is triggered, and the updated file list does not include files in the blacklist.

[0081] In one possible implementation of the second aspect, the method further includes: in response to an update command, updating the file list according to the whitelist corresponding to the target virtual folder; the update command is triggered at a preset time or when the user opens the target virtual folder, the whitelist includes at least one file that the user has moved into the target virtual folder before the update command is triggered, and the updated file list includes the files in the whitelist.

[0082] The blacklist and whitelist can be used to indicate the user's adjustment preferences for files in the target virtual folder. The electronic device can then adjust the files selected based on various target characteristics corresponding to different target descriptions in the folder name, according to the user's preferences. When the target virtual folder has both a corresponding blacklist and a corresponding whitelist, the adjusted file list includes all files in the whitelist but excludes all files in the blacklist, making the target files in the target virtual folder more aligned with the user's interests.

[0083] In one possible implementation of the second aspect, the electronic device may also display the number of target files in the target virtual folder after the folder name displayed in the virtual folder directory. Optionally, after the user opens the target virtual folder, the electronic device may also display the number of target files in the target virtual folder in the status bar of the file manager's display interface, which may be located in the lower left corner of the file manager's display interface.

[0084] In one possible implementation of the second aspect, the file list is updated in response to a modification operation on the folder name of the target virtual folder.

[0085] The modification operation of a folder name can be: a deletion, addition, and / or modification operation of at least one of the following descriptions in the folder name: target topic description, target operation description, target time description, and target attribute description. The target file topic indicated by the modified target topic description is different from the target file topic indicated by the original target topic description. The target file operation indicated by the modified target operation description is different from the target file operation indicated by the original target operation description. The target operation time indicated by the modified target time description is different from the target operation time indicated by the original target time description. The target file attribute indicated by the modified target attribute description is different from the target file attribute indicated by the original target attribute description.

[0086] In one possible implementation of the second aspect, the method further includes: in response to a stop update operation on the target virtual folder, stopping the update of the file list of the virtual folder based on the folder name of the target virtual folder.

[0087] For example, in an interface displaying a file list of a target virtual folder, a "Smart Update" control corresponding to that target virtual folder can be displayed. When the "Smart Update" control is enabled, the electronic device can automatically update the file list based on the folder name, blacklist, and whitelist corresponding to the target virtual folder. Users can also move files into or out of the target virtual folder according to their preferences. When the "Smart Update" control is disabled, the electronic device cannot automatically update the file list based on the folder name, blacklist, and whitelist corresponding to the target virtual folder, and users cannot move files into or out of the target virtual folder according to their preferences. The user can stop updating the target virtual folder by changing the "Smart Update" control from enabled to disabled.

[0088] Thirdly, this application also provides a file management method, which includes: displaying a first interface in response to a virtual folder creation operation; and generating a target virtual folder in response to a target condition description set in the first interface. The target condition description includes at least one of a target operation description, a target time description, a target topic description, a target source description, and a target attribute description. The file list of the target virtual folder includes at least one target file, and the target file matches the target condition description.

[0089] The target operation description indicates the target file operation, the target time description indicates the target operation time, the target topic description indicates the target file topic, the target source description indicates the target file source, and the target attribute description indicates the target file attribute. When the target condition description includes the target operation description, the conditions for a target file to match the target condition description include: the target file operation is included in the historical file operations of the target file in the target virtual folder. And / or, when the target condition description includes the target time description, the conditions for a target file to match the target condition description may also include: the target operation time includes the historical operation time of the target file operation corresponding to the target file. And / or, when the target condition description includes the target topic description, the conditions for a target file to match the target condition description may also include: the target file's topic matches the target file's topic. And / or, when the target condition description includes the target attribute description, the conditions for a target file to match the target condition description include: the target file's first file attribute matches the target file's attribute. And / or, when the target condition description includes the target source description, the conditions for a target file to match the target condition description may also include: the target file's source is the target file source.

[0090] The file source of the target file can be used to indicate which application acquired the target file (e.g., through downloading, creating, etc.) and stored it on the electronic device, or from which first device the target file was acquired and stored on the electronic device. The first device can be a mobile phone, computer, USB flash drive, or other device capable of transferring files. The electronic device can also, in response to an open operation on the generated target virtual folder, display a file list of the target virtual folder, which includes at least one target file matching the target condition description of the target virtual folder.

[0091] Based on this file management method, even if users cannot accurately remember the file's storage path, file name, and specific content, they can set target condition descriptions on the first interface based on filter conditions such as file operations performed on the file, the time of the file operations performed, file topic, file source, and / or file attributes. This allows electronic devices to quickly find the required target files based on the target condition descriptions, improving file search efficiency.

[0092] In one possible implementation of the third aspect, the target file operations include: creation operations, modification operations, and / or access operations. When the target file operation includes a creation operation, the target operation time includes the target creation time corresponding to the creation operation, and the historical operation time is the creation time of the target file. And / or, when the target file operation includes a modification operation, the target operation time includes the target modification time corresponding to the modification operation, and the historical operation time is the modification time when the modification operation was performed on the target file. And / or, when the target file operation includes an access operation, the target operation time is the target access time corresponding to the access operation, and the historical operation time is the access time when the access operation was performed on the target file. The first file attribute is a file format or file body.

[0093] In one possible implementation of the third aspect, when the target file operation includes a modification operation, the target modification time is a first time period, the duration of the first time period is a first duration, the end time of the first time period is the current time, and the historical operation time is the modification time of the most recent modification operation performed on the target file. And / or, when the target file operation includes an access operation, the target access time is a second time period, the duration of the second time period is a second duration, the end time of the second time period is the current time, and the historical operation time is the access time of the most recent access operation performed on the target file.

[0094] In one possible implementation of the third aspect, the method further includes: displaying the folder name of the target virtual folder in the first interface, wherein if the target condition description includes a target topic description, the folder name may include a first topic description or a target topic description, both of which indicate the same target file topic.

[0095] In one possible implementation of the third aspect, the electronic device can display a file list in response to the target criteria description set by the user in the first interface; and generate a target virtual folder based on the file list in response to the confirmation operation of the target criteria description. Through the real-time display of the file list, the user can promptly check whether the filtered target files are the files they want to find, and when the filtered target files are not the files the user wants, the user can promptly adjust the target criteria description.

[0096] In one possible implementation of the third aspect, the first interface includes multiple candidate operation descriptions, multiple candidate time descriptions, multiple candidate topic descriptions, multiple candidate source descriptions, and multiple candidate attribute descriptions. The electronic device can generate a target virtual folder in response to a user's selection of at least one candidate operation description, at least one candidate time description, at least one candidate topic description, at least one candidate source description, and / or at least one candidate attribute description on the first interface.

[0097] Based on this, the target operation description may include a user-selected first candidate operation description, which indicates a first candidate file operation, and the target file operation includes the first candidate file operation. The target time description may also include a user-selected first candidate time description, which indicates the first candidate operation time, and the target operation time includes the first candidate operation time. The target topic description may also include a user-selected first candidate topic description, which indicates the first candidate file topic, and the target file topic includes the first candidate file topic. The target source description also includes a user-selected first candidate source description, which indicates the first candidate file source, and the target file source includes the first candidate file source. The target attribute description includes a user-selected first candidate attribute description, which indicates the first candidate file attribute, and the target file attribute includes the first candidate file attribute.

[0098] In one possible implementation of the third aspect, the method further includes: displaying the number of all target files in the file list on the first interface.

[0099] In one possible implementation of the third aspect, the method further includes updating the file list in response to a modification operation on the target condition description. The modification operation on the target condition description refers to modifying at least one of the following descriptions in the target condition description: target topic description, target operation description, target time description, target source description, and target attribute description.

[0100] In one possible implementation of the third aspect, the method further includes: in response to an open operation on the target virtual folder, displaying a first file list, the first file list including: files that meet a first exception condition, and files that match the target condition description but do not meet a second exception condition. The files that meet the first exception condition are files moved into the target virtual folder by the user before the open operation is triggered, and the files that meet the second exception condition are files moved out of the target virtual folder by the user before the open operation is triggered.

[0101] In one possible implementation of the third aspect, the specific method for displaying the first file list in response to the opening operation of the target virtual folder includes: in response to the opening operation of the target virtual folder, obtaining a second file list corresponding to the target virtual folder, the second file list including files that match the target condition description, files that meet the first exception condition, and files that meet the second exception condition, the files in the second file list that meet the second exception condition having a second tag; obtaining the first file list based on the second file list, the first file list including files in the second file list that do not have the second tag; and displaying the first file list.

[0102] In one possible implementation of the third aspect, the method further includes: displaying an update notification message for the target virtual folder, the update notification message being used to remind the user that the file list has been updated and that the user has not opened the updated target virtual folder.

[0103] In one possible implementation of the third aspect, the method further includes: in response to a stop update operation on the target virtual folder, stopping the updating of the file list of the virtual folder according to the target condition description.

[0104] Fourthly, this application also provides a file management method, which includes: in response to a virtual folder creation operation, generating a target virtual folder, wherein the folder name of the target virtual folder includes at least one of a target operation description, a target time description, a target topic description, and a target attribute description; in response to an open operation of the target virtual folder, displaying a file list of the target virtual folder, wherein the file list includes at least one target file, and the target file matches the folder name of the target virtual folder.

[0105] The target operation description indicates the target file operation, the target time description indicates the target operation time, the target topic description indicates the target file topic, and the target attribute description indicates the target file attributes. When the target condition description includes the target operation description, the conditions that must be met when the target file matches the folder name of the target virtual folder may include: the target file operation is included in the historical file operations of the target file in the target virtual folder. And / or, when the target condition description includes the target time description, the conditions that must be met when the target file matches the folder name of the target virtual folder may also include: the target operation time includes the historical operation time of the target file operation corresponding to the target file. And / or, when the target condition description includes the target topic description, the conditions that must be met when the target file matches the folder name of the target virtual folder may also include: the target file's topic matches the target file's topic. And / or, the conditions that must be met when the target file matches the folder name of the target virtual folder may also include: when the target condition description includes the target attribute description, the target file's first file attribute matches the target file attribute.

[0106] In this file management method, the folder name of the target virtual folder can be set based on filtering conditions such as file operations performed on the file, the time of the file operations performed, file topic and / or file attributes. This allows electronic devices to quickly find the target file they need from the stored files based on the folder name, thus improving file search efficiency.

[0107] In one possible implementation of the fourth aspect, the folder name of the target virtual folder is set by the user.

[0108] In one possible implementation of the fourth aspect, the target file operations include: creation, opening, modification, deletion, download, adjusting file storage location, renaming, moving a file out of a first folder, moving a file into a second folder, receiving, receiving a file through a first application, receiving a file from a first source, and / or receiving a file via a first transmission method. The first source can be a first device or a first user. The first device can be a mobile phone, computer, USB flash drive, or other device capable of file transfer. The first user can be a social media user, a conferencing software user, etc. The first transmission method can be Bluetooth, USB interface, or other file transfer methods.

[0109] In one possible implementation of the fourth aspect, the first file attribute is the file format or file genre.

[0110] In one possible implementation of the fourth aspect, matching the subject of a target file with another target file specifically means that the matching degree between the subject of the target file and another target file is greater than or equal to a preset matching degree threshold. The method further includes: in response to an adjustment operation on the matching degree threshold, updating the file list, wherein the matching degree between the subject of each target file in the updated file list and the target file topic is greater than or equal to the adjusted matching degree threshold.

[0111] In one possible implementation of the fourth aspect, the electronic device may specifically respond to the creation operation of the virtual folder by displaying a name edit box; determining the folder name based on the user's input in the name edit box; and generating the target virtual folder based on the folder name.

[0112] In one possible implementation of the fourth aspect, the electronic device may also display a name editing interface in response to the creation operation of the virtual folder. The name editing interface includes multiple candidate operation descriptions, multiple candidate time descriptions, multiple candidate topic descriptions, and multiple candidate attribute descriptions. The electronic device may also determine a folder name and generate a target virtual folder based on the folder name in response to a user's selection of at least one candidate operation description, at least one candidate time description, at least one candidate topic description, and / or at least one candidate attribute description in the name editing interface.

[0113] Based on this, the target operation description in the folder name includes either a first operation description or a user-selected first candidate operation description. Both the first operation description and the first candidate operation description indicate the first candidate file operation, and the target file operation includes the first candidate file operation. The target time description includes either a first time description or a user-selected first candidate time description. Both the first time description and the first candidate time description indicate the first candidate operation time, and the target operation time includes the first candidate operation time. The target topic description includes either a first topic description or a user-selected first candidate topic description. Both the first topic description and the first candidate topic description indicate the first candidate file topic, and the target file topic includes the first candidate file topic. The target attribute description includes either a first attribute description or a user-selected first candidate attribute description. Both the first attribute description and the first candidate attribute description indicate the first candidate file attribute, and the target file attribute includes the first candidate file attribute.

[0114] In one possible implementation of the fourth aspect, the file list is updated in response to a modification operation on the folder name. The modification operation on the folder name can be a deletion, addition, or modification operation of at least one of the following descriptions in the folder name: target topic description, target operation description, target time description, and target attribute description.

[0115] In one possible implementation of the fourth aspect, the method further includes: in response to a stop update operation on the target virtual folder, stopping the update of the file list of the virtual folder based on the folder name of the target virtual folder.

[0116] Fifthly, this application provides a document management apparatus, including at least one unit for performing the method in any possible implementation of the first aspect, or at least one unit for performing the method in any possible implementation of the second aspect, or at least one unit for performing the method in any possible implementation of the third aspect, or at least one unit for performing the method in any possible implementation of the fourth aspect.

[0117] In a sixth aspect, this application provides an electronic device including a processor for running a computer program stored in a memory, such that the electronic device implements the method in any possible implementation of the first aspect, or the method in any possible implementation of the second aspect, or the method in any possible implementation of the third aspect, or the method in any possible implementation of the fourth aspect.

[0118] In a seventh aspect, this application provides a computer-readable storage medium storing a computer program that, when executed by a computer, can implement the method in any possible implementation of the first aspect, or the method in any possible implementation of the second aspect, or the method in any possible implementation of the third aspect, or the method in any possible implementation of the fourth aspect.

[0119] Eighthly, this application provides a computer program product that, when run on a computer, causes the computer to execute the method in any possible implementation of the first aspect, or the method in any possible implementation of the second aspect, or the method in any possible implementation of the third aspect, or the method in any possible implementation of the fourth aspect. Attached Figure Description

[0120] Figure 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0121] Figure 2 is a flowchart illustrating a file management method provided in an embodiment of this application.

[0122] Figure 3 is a schematic diagram of the display interface of a file manager provided in an embodiment of this application.

[0123] Figure 4 is a schematic diagram of the display interface of another file manager provided in an embodiment of this application.

[0124] Figure 5 is a schematic diagram of a scenario for creating a virtual folder provided in an embodiment of this application.

[0125] Figure 6 is a schematic diagram of another scenario for creating a virtual folder provided in an embodiment of this application.

[0126] Figure 7 is a schematic diagram of a scenario for determining a folder name provided in an embodiment of this application.

[0127] Figure 8 is a schematic diagram of another scenario for creating a virtual folder provided in an embodiment of this application.

[0128] Figure 9 is a schematic diagram of another scenario for creating a virtual folder provided in an embodiment of this application.

[0129] Figure 10 is a flowchart illustrating a method for determining a target file according to an embodiment of this application.

[0130] Figure 11 is a schematic diagram of a file list display interface provided in an embodiment of this application.

[0131] Figure 12 is a schematic diagram of another file list display interface provided in an embodiment of this application.

[0132] Figure 13 is a schematic diagram of a scenario for updating a file list provided in an embodiment of this application.

[0133] Figure 14 is a schematic diagram of another scenario for updating the file list provided in an embodiment of this application.

[0134] Figure 15 is a schematic diagram of another scenario for updating the file list provided in an embodiment of this application.

[0135] Figure 16 is a schematic diagram of another scenario for updating the file list provided in an embodiment of this application.

[0136] Figure 17 is a flowchart illustrating another file management method provided in an embodiment of this application.

[0137] Figure 18 is a schematic diagram of the display interface of another file manager provided in an embodiment of this application.

[0138] Figure 19 is a schematic diagram of a first interface provided in an embodiment of this application.

[0139] Figure 20 is a schematic diagram of another first interface provided in an embodiment of this application.

[0140] Figure 21 is a schematic diagram of a scenario for adjusting the description of target conditions provided in an embodiment of this application.

[0141] Figure 22 is a schematic diagram of a scenario for displaying a file list provided in an embodiment of this application.

[0142] Figure 23 is a schematic diagram of another scenario for displaying a file list provided in an embodiment of this application.

[0143] Figure 24 is a schematic diagram of another scenario for displaying a file list provided in an embodiment of this application.

[0144] Figure 25 is a schematic diagram of another scenario for displaying a file list provided in an embodiment of this application.

[0145] Figure 26 is a schematic diagram of a scenario for generating a virtual folder provided in an embodiment of this application.

[0146] Figure 27 is a schematic diagram of the display interface of a virtual folder provided in an embodiment of this application.

[0147] Figure 28 is a schematic diagram of a scenario for updating a virtual folder provided in an embodiment of this application.

[0148] Figure 29 is a schematic diagram of another scenario for updating the file list provided in an embodiment of this application.

[0149] Figure 30 is a schematic diagram of another scenario for updating the file list provided in an embodiment of this application.

[0150] Figure 31 is a schematic diagram of a scenario for opening an updated virtual folder according to an embodiment of this application.

[0151] Figure 32 is a schematic diagram of another scenario for updating the file list provided in an embodiment of this application.

[0152] Figure 33 is a schematic block diagram of a file management device provided in an embodiment of this application.

[0153] Figure 34 is a schematic diagram of the structure of a chip provided in an embodiment of this application. Detailed Implementation

[0154] The technical solutions of the embodiments of this application are described below with reference to the accompanying drawings and related embodiments. In the description of the embodiments of this application, the terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to limit the application. As used in the specification and appended claims of this application, the singular expressions "a," "the," "the," "the," and "this" are intended to also include expressions such as "one or more," unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, "at least one" and "one or more" refer to one or more (including two). The term "and / or" is used to describe the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.

[0155] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized. The term "connection" includes direct connections and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.

[0156] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.

[0157] The steps involved in the methods provided in this application are merely examples, and not all steps are mandatory. They can be added or removed as needed during use. In this application, the same step or steps with the same function can be referenced and learned from each other in different embodiments.

[0158] To address the technical problem of users finding it difficult to locate desired files on electronic devices, this application provides a file management method. During the creation of a virtual folder, the user can set the folder name of the target virtual folder. The electronic device can then determine the target file operation based on the operation description related to file operations within the folder name. Furthermore, based on the historical file operations corresponding to each file, it can identify at least one target file whose historical file operations contain the target file operation and display the target file. This allows users to find the desired target file on the electronic device even if they cannot accurately remember the file's storage path, file name, or specific content, simply by referring to the operation description, thus improving file retrieval efficiency and accuracy.

[0159] The file management method provided in this application is applied to electronic devices with file storage functions, such as mobile phones, tablets, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), and desktop computers.

[0160] Figure 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. As shown in Figure 1, the electronic device 100 includes at least one processor 101, a communication bus 102, a memory 103, at least one communication interface 104, a display 106, and an input device 107.

[0161] The processor 101 is the control center of the electronic device 100. It can be a single processor or a collective term for multiple processing elements. For example, the processor 101 can be a general-purpose central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program in this application, such as one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs). The processor 101 can perform various functions of the electronic device 100 by running or executing software programs stored in the memory 103 and by calling data stored in the memory 103. For example, in the embodiment shown in Figure 2, the operation of the electronic device can be executed by the processor of the corresponding device calling data in the memory.

[0162] As one embodiment, processor 101 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG1.

[0163] As one embodiment, the electronic device 100 may include multiple processors, such as processor 101 and processor 105 shown in FIG. 1. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. Here, "processor" may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0164] The communication bus 102 may include a path for transmitting information between the aforementioned components. The communication bus 102 may be an industry standard architecture (ISA) bus, a peripheral component (PCI) bus, or an extended industry standard architecture (EISA) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used in Figure 1, but this does not indicate that there is only one bus or one type of bus.

[0165] The memory 103 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or it may be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. The memory 103 may exist independently and be connected to the processor 101 via the communication bus 102. The memory 103 may also be integrated with the processor 101. In this embodiment, the memory 103 can be used to store multiple files, or to store a computer program that executes the solution provided in this embodiment. The processor 101 can run the computer program stored in the memory 103 to implement the file management method provided in this embodiment.

[0166] The communication interface 104 is used to communicate with other devices or communication networks, such as Ethernet, RAN, wireless local area networks (WLAN), etc. The communication interface 104 may include a receiving unit to implement the receiving function and a transmitting unit to implement the transmitting function.

[0167] The electronic device 100 implements display functions through a GPU and a display 106. The processor 101 can execute program instructions through one or more GPUs to generate or modify display information. The display 106 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a minimized LED, a microLED, a quantum dot LED, or a QLED. In this embodiment, the display 106 can be used to display the display interface corresponding to the file manager, the content of the file, etc.

[0168] Input device 107 communicates with processor 101 and receives input in various ways. For example, input device 107 can be a mouse, keyboard, or sensor device. In this embodiment, when input device 107 is a mouse, if the user moves the mouse cursor displayed on display 106 to the folder name of the target virtual folder and clicks the left mouse button, electronic device 100 can open the target virtual file and display the file list of the target virtual folder.

[0169] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0170] The following uses a laptop computer as an example to illustrate the file management method provided in this application through different embodiments.

[0171] Example 1

[0172] Figure 2 is a flowchart illustrating a file management method provided in an embodiment of this application. In one possible implementation, the file management method provided in this embodiment includes the following steps:

[0173] S210, in response to the virtual folder creation operation, generates the target virtual folder.

[0174] In one embodiment, a user can open the file manager of an electronic device and trigger the creation of a virtual folder within the file manager's display interface. The file manager can be used to manage all files stored on the electronic device, including but not limited to files created or downloaded by applications installed on the device. The virtual folder creation operation includes creating a new virtual folder and setting its name.

[0175] Figure 3 is a schematic diagram of the display interface of a file manager provided in an embodiment of this application. In one example, as shown in Figure 3, the display interface of the file manager includes a navigation pane and a content pane, with the navigation pane located on the left side of the display interface and the content pane located on the right side. The navigation pane displays the directory structure of the electronic device, allowing users to quickly browse and access folders and files. For example, in the file manager display interface shown in Figure 3, the navigation pane can display a "Quick Access" toolbar and a "Storage Location" toolbar. The "Quick Access" toolbar displays frequently used directories (e.g., Desktop, Downloads, Documents, etc.), and the "Storage Location" toolbar displays the "My Computer" directory. The content pane displays information related to the content selected in the navigation pane. For example, as shown in Figure 3, if the selected content in the navigation pane is the "My Computer" directory, the content pane can display various types of system folders stored on the computer, information about devices connected to the computer, and disk information on the computer.

[0176] As shown in Figure 3, the user can perform a first operation within the navigation pane, which can be a double-click or a right-click, etc. In response to this first operation, the file manager's display interface can show a first window containing a "Create Virtual Folder" shortcut option. The user can click the "Create Virtual Folder" shortcut option to trigger the creation of a new virtual folder.

[0177] In Example 1, the folder name of the target virtual folder can be set by the user. The user can set the folder name in the name edit box displayed in the navigation pane, or the user can set the folder name in the name edit interface corresponding to the target virtual folder. The following provides a detailed explanation of these two methods for setting the file name of the target virtual folder.

[0178] In one possible implementation, referring to the file manager display interface diagram shown in Figure 4, the electronic device can display a name edit box for the target virtual folder in the navigation pane based on the operation of creating a new virtual folder. The electronic device can determine the folder name of the target virtual folder based on the user's input in the name edit box, and thus generate the corresponding target virtual folder based on the folder name.

[0179] Optionally, as shown in Figure 4, if the user is creating a virtual folder in the file manager for the first time, that is, if no virtual folder has been created yet, the electronic device can generate a "Virtual Folder" toolbar in the navigation pane based on the creation operation of the virtual folder, and display a virtual folder directory under the "Virtual Folder" toolbar. This virtual folder directory displays the name edit box for the target virtual folder. Referring to Figure 5, which illustrates a scenario of creating a virtual folder, if the user is not creating a virtual folder in the file manager for the first time, that is, if a virtual folder has already been created on the electronic device (for example, the virtual folder directory shown in Figure 5a includes a previously created folder named "Viewed Traditional Culture Materials"), then as shown in Figure 5b, the electronic device can directly display the name edit box for the target virtual folder in the virtual folder directory under the "Virtual Folder" toolbar. Optionally, an icon of the target virtual folder can also be displayed to the left of the name edit box.

[0180] In this implementation, the user can enter the name of the target virtual folder in the name edit box, based on one or more target file operations performed on the target file being searched. Specifically, the folder name includes a description of the target operation, which can be used to indicate the target file operation. This description can be the name of the target file operation or a natural language description of the target file operation.

[0181] For example, target file operations may include one or more of the following file operations: creation operation, open operation, modification operation, deletion operation, download operation, operation to adjust the storage location of the file, file renaming operation, operation to move the file out of the first folder, operation to move the file into the second folder, receiving operation, operation to receive the file through the first application, operation to receive the file from the first source, and operation to receive the file through the first transmission method.

[0182] Modification operations include, but are not limited to: deleting content from a file, adding new content to a file, and / or adjusting the format of the file content. An open operation, also known as an access operation, can be a user opening a file or an application on an electronic device automatically opening a file. A delete operation refers to the operation of deleting the entire file from the storage medium of the electronic device. The first source can be a first device or a first user. The first device can be a mobile phone, computer, USB flash drive, or other device capable of transferring files. The first user can be a user of social media software, a user of conferencing software, etc. The first transmission method can be Bluetooth, Universal Serial Bus (USB), or other file transfer methods. Receiving a file through a first application refers to receiving a file through the first application and storing the file on the storage medium of the electronic device. Receiving a file from a first source refers to receiving a file from the first source and storing the file on the storage medium of the electronic device. Receiving a file through a first transmission method refers to receiving a file through a first transmission method and storing the file on the storage medium of the electronic device.

[0183] As an example, and not a limitation, if a user wants to find or organize files that have been downloaded and opened on an electronic device, the user can name the target virtual folder "Downloaded and Viewed Files," with the target operation description in the folder name being "Downloaded and Viewed," indicating that the target file operation includes both download and open operations. If a user wants to find deleted files located in the recycle bin of an electronic device, the user can name the target virtual folder "Deleted Files," with the target operation description in the folder name being "Deleted," indicating that the target file operation is a delete operation.

[0184] Optionally, the folder name may also include other descriptions related to the target file operation, such as a target time description, a target user description, and / or a target application description. The target time description indicates the target operation time, which can be a historical operation time corresponding to the target file operation, or a time range within which the historical operation time corresponds to the target file operation. The historical operation time corresponding to the target file operation refers to the moment when the electronic device performs the target file operation. The target user description indicates the target user information, which is the information of the user (e.g., username) who triggered the electronic device to perform the target file operation. The target application description indicates the target application software, which is the application software used by the electronic device when performing the target file operation.

[0185] Optionally, the folder name may also include a target topic description. Specifically, the target topic description indicates the topic of the target files, which is the main content of the target files that the user expects to filter or the central idea that the target files should express.

[0186] For example, the target file theme can be artificial intelligence, interaction design, mathematics, traditional culture, or other types of file themes. Each type of target file theme can include multiple sub-themes of different types. For example, the target file theme "mathematics" can include sub-themes such as linear algebra, differential calculus, and geometry; the target file theme "traditional culture" can include sub-themes such as calligraphy, traditional Chinese painting, and traditional festivals.

[0187] Optionally, the folder name may also include a target attribute description, which indicates the target file attributes. For example, target file attributes may include target file format and / or target file genre. The target file format may be Word, PowerPoint (PPT), text, portable document format (PDF), image, audio, video, or other file formats. The target file genre may be a thesis, contract, medical record, or other types of document genres. Each type of target file genre may include multiple different types of sub-genres. For example, the target file genre "thesis" may include journal articles, conference papers, dissertations, and other types of papers; the target file genre "contract" may include labor contracts, lease contracts, sales contracts, and other types of contracts; the target file genre "medical record" may include outpatient medical records, inpatient medical records, and other types of medical records. This application embodiment does not specifically limit the classification method of sub-file topics and sub-file genres.

[0188] In this embodiment, the user can set the folder name of the target virtual folder based on one or more of the target time description, target topic description, target attribute description, target user description, and target application description, in addition to the target operation description. For example, if a user wants to find or organize PPTs related to mathematics materials downloaded in the last three days, the user can use natural language to set the folder name of the target virtual folder to "Mathematics PPTs downloaded in the last three days". Here, "last three days" is the target time description, "downloaded" is the target operation description, "mathematics" is the target topic description, and "PPT" is the target attribute description.

[0189] In another possible implementation, Figure 6 is a schematic diagram of a scenario for creating a virtual folder according to an embodiment of this application. Referring to the display interfaces shown in Figure 6 (a) and (b), after the user triggers the operation of creating a new virtual folder, a name editing interface can be displayed on the electronic device's display interface. This name editing interface displays multiple candidate operation descriptions, which are used to indicate different candidate file operations. In the file management method provided in this embodiment, the electronic device can determine the folder name of the target virtual folder based on the user's selection operation of at least one candidate operation description in the name editing interface, and then generate the target virtual folder based on the folder name.

[0190] For example, the multiple candidate operation descriptions displayed in the name editing interface may include: downloaded, modified, viewed, created, received, moved, etc. "Downloaded" indicates a download operation, "modified" indicates a modification operation, "viewed" indicates an open operation, "created" indicates a creation operation, "received" indicates a receive operation, an operation to receive a file through a first application, an operation to receive a file from a first source, and an operation to receive a file via a first transmission method. "Moved" indicates an operation to adjust the file's storage location, an operation to move a file out of a first folder, and an operation to move a file into a second folder.

[0191] In one embodiment, the target operation description in the folder name of the target virtual folder may include one or more first candidate operation descriptions selected by the user. That is, the electronic device can use the first candidate operation description selected by the user as part of the folder name. For example, the user can first click on the first candidate operation descriptions "Modified" and "Viewed" in the name editing interface, and then click on the "Create" control in the name editing interface. The electronic device can determine that the folder name of the target virtual folder is "Modified and Viewed" or "Modified and Viewed Files", and display the icon of the target virtual folder and the folder name under the "Virtual Folder" toolbar of the file manager.

[0192] In another embodiment, the target operation description in the folder name may include a first operation description. Both the first operation description and the first candidate operation description selected by the user indicate a first candidate file operation. That is, the electronic device may include a first operation description that indicates the same candidate file operation as the first candidate operation description selected by the user as part of the folder name.

[0193] For example, the first operation description can be a shortened version of the first candidate operation description selected by the user, which can prevent the folder name from exceeding the preset character limit. For instance, if the user selects two first candidate file operations, and the two first candidate file operations are respectively: received via a first device and received via Bluetooth, then the electronic device can determine that the two first operation descriptions corresponding to the two first candidate file operations are respectively: received from the first device and received via Bluetooth; then, the electronic device can determine the folder name of the target virtual folder as "received from the first device via Bluetooth" based on the two first operation descriptions.

[0194] Optionally, the name editing interface may also display multiple candidate time descriptions, multiple candidate topic descriptions, multiple candidate attribute descriptions, multiple candidate user descriptions, and / or multiple candidate application descriptions. Among these, multiple candidate time descriptions indicate different candidate operation times, which can be a time range or a specific moment; multiple candidate topic descriptions indicate different candidate file topics; multiple candidate attribute descriptions indicate different candidate file attributes; multiple user descriptions indicate different candidate user information; and multiple candidate application descriptions indicate different candidate applications.

[0195] Furthermore, as shown in Figure 6b, the name editing interface also displays a name editing box. The electronic device can also display the folder name of the target virtual folder in the name editing box based on the user's selection operation of at least one candidate operation description, as well as the selection operation of at least one candidate time description, at least one candidate topic description, at least one candidate attribute description, at least one candidate user description and / or at least one candidate application description in the name editing interface.

[0196] It should be noted that, for files already stored in the electronic device, the device can pre-collect and store the characteristic information of each file. For example, the characteristic information of each file may include, but is not limited to, information corresponding to various types of characteristics such as: historical file operations, historical operation time, file subject, file attributes, historical user information, and historical application information. Specifically, the historical file operations corresponding to a particular file include: all file operations performed by the electronic device on the file within the time range from the time the file was created to the current time (i.e., the time the target virtual folder was created); the historical operation time corresponding to a particular file includes: the historical operation time corresponding one-to-one with all file operations in the historical file operations of that file; the historical user information of a particular file includes: information about the user who triggered the electronic device to perform each file operation on the file; and the historical file operations of a particular file include: information about the application software used by the electronic device when performing each file operation on the file.

[0197] Based on the pre-statistical feature information of all files, the electronic device can generate multiple candidate operation descriptions according to the historical file operations corresponding to each file, and display the keywords corresponding to each candidate operation description in the name editing interface. Furthermore, the electronic device can also generate multiple candidate time descriptions based on the historical operation time of each file; multiple candidate topic descriptions based on the file topic of each file; multiple candidate attribute descriptions based on the file attributes of each file; multiple candidate user descriptions based on the historical user information of each file; and multiple candidate application descriptions based on the historical application information of each file. Finally, the keywords corresponding to each candidate time description, each candidate topic description, each candidate user description, and / or each candidate application description are displayed in the name editing interface.

[0198] For example, as shown in Figure 6b, the name editing interface can display multiple candidate operation descriptions, multiple candidate time descriptions, multiple candidate topic descriptions, and multiple candidate attribute descriptions. The multiple candidate time descriptions can include: the past month, the past week, the past three days, the past six months, yesterday, and "no restrictions," etc., with different time descriptions indicating different time ranges. "No restrictions" means there are no restrictions on the operation time of the file. The multiple candidate topic descriptions can include: artificial intelligence, traditional Chinese culture, 3D wallpaper, and "no restrictions," etc. The multiple candidate attribute descriptions can include: descriptions corresponding to file formats (e.g., Word, Excel, image, PDF, PPT, audio), descriptions corresponding to file genres (e.g., thesis, contract), and "no restrictions," where the candidate attribute description "no restrictions" means there are no restrictions on the file format, file genre, or file size.

[0199] In one embodiment, the electronic device can determine the folder name of the target virtual folder based on the user's selection of at least one candidate operation description, at least one candidate topic description, at least one candidate attribute description, at least one candidate user description, and / or at least one candidate application description in the name editing interface, and then generate the target virtual folder based on the folder name. That is, the folder name of the target virtual folder may include the target operation description, as well as the target time description, the target topic description, and / or the target attribute description.

[0200] The target time description in the folder name of the virtual folder may include: a first time description or a user-selected first candidate time description, where both the first time description and the corresponding first candidate time description indicate the first candidate operation time, and the target operation time indicated by the target time description includes the first candidate operation time. The target topic description in the folder name includes: a first topic description or a user-selected first candidate topic description, where both the first topic description and the corresponding first candidate topic description indicate the first candidate file topic, and the target file topic indicated by the target topic description includes the first candidate file topic. The target attribute description in the folder name includes: a first attribute description or a user-selected first candidate attribute description, where both the first attribute description and the corresponding first candidate attribute description indicate the first candidate file attribute, and the target file attribute indicated by the target attribute description includes the first candidate file attribute.

[0201] For example, the first time description can be a time description generated by reducing the user-selected first candidate time description. The first topic description can be a topic description generated by reducing the user-selected first candidate topic description. The first attribute description can be an attribute description generated by reducing the user-selected first candidate attribute description. When there is a character limit in the folder name, using the first time description, first topic description, and first attribute description to form the folder name can avoid the folder name from being too long.

[0202] It should be noted that in this embodiment, the user's selection of various candidate descriptions in the name editing interface can be a click operation. If the user clicks on a candidate description that is "unrestricted," then that candidate description may not be displayed in the folder name. For example, the user can click on the candidate operation description "modified," the candidate time description "unrestricted," the candidate topic description "unrestricted," and the candidate attribute description "unrestricted" in sequence. Based on this, the electronic device can determine that the folder name of the target virtual folder is "modified" or "modified file," and display the determined folder name in the name editing box of the name editing interface. Then, the user clicks the "Create" control in the name editing interface, and the electronic device can display the icon of the target virtual folder and the folder name in the "Virtual Folder" toolbar of the file manager.

[0203] For example, Figure 7 is a schematic diagram of a scenario for determining a folder name according to an embodiment of this application. In Figure 7, candidate descriptions with dashed borders are inactive, while candidate descriptions with solid borders are active. Users can click on active candidate descriptions, but cannot click on inactive candidate descriptions. As shown in Figure 7a, after the user clicks on the first candidate operation description "Downloaded" in the name editing interface, the folder name displayed in the name editing box is "Downloaded". If the electronic device determines, based on the pre-stored feature information of each file, that there were no files downloaded on the electronic device yesterday, the display state of the candidate time description "Yesterday" can be adjusted to inactive, preventing the user from clicking on the candidate time description. Based on this, as shown in Figure 7b, after the user clicks on the first candidate time description "Last Three Days," the folder name displayed in the name edit box is adjusted to "Downloaded in the Last Three Days." If the electronic device does not have any files with the theme of artificial intelligence downloaded in the last three days, and there are no files in audio, Excel, or image formats, the electronic device can adjust the display status of the candidate theme description "Artificial Intelligence" and the candidate attribute descriptions "Audio," "Excel," and "Image" to an inactive state. Furthermore, as shown in Figure 7c, the user can also click on the first candidate theme description "No Restriction" and the first candidate attribute description "PPT." Correspondingly, the folder name displayed in the name edit box is adjusted to "PPTs Downloaded in the Last Three Days," so that the folder name contains not only a target operation description that can indicate the target file operation, but also a target time description that can indicate the target operation time, and a target attribute description that can indicate the target file attributes. Furthermore, as shown in Figure 6c, after the user completes the input of the candidate description, they can click the "Create" control displayed in the name editing interface. The electronic device can then display the file manager's display interface and show the folder name of the newly created target virtual folder, "PPTs downloaded in the last three days," under the "Virtual Folder" toolbar. This folder name is composed of the first candidate operation description, the first candidate time description, and the first candidate attribute description clicked by the user.

[0204] Optionally, the electronic device can display the number of target files that match all the clicked candidate descriptions in the name editing box of the name editing interface, based on one or more candidate descriptions that the user has clicked in the name editing interface. The number of target files displayed can change as the number of candidate descriptions clicked by the user changes.

[0205] In another embodiment, the user's selection of any candidate description in the name editing interface can be: entering the candidate description in the name editing box within the name editing interface, that is, the user can enter the folder name of the target virtual folder in the name editing box displayed in the name editing interface based on the various candidate descriptions displayed in the name editing interface.

[0206] For example, Figure 8 is a schematic diagram of a scenario for creating a virtual folder according to an embodiment of this application. As shown in Figure 8 (a and b), after the user triggers the operation of creating a new virtual folder, the electronic device can display a name editing interface. If the user wants to search for or view contracts written in the past few days, the user can directly enter "Contracts created in the past week" in the name editing box based on the various candidate descriptions displayed in the name editing interface. Furthermore, as shown in Figure 8 (b and c), when the user clicks the "Create" control, the electronic device can display the icon of the target virtual folder and the folder name "Contracts created in the past week" in the "Virtual Folder" toolbar of the file manager.

[0207] Based on the methods in the two embodiments above, the electronic device can prompt the user with the file topics, file attributes, and historical file operations performed on the files stored in the electronic device through various candidate descriptions displayed in the name editing interface. It can also guide the user to set the folder name of the target virtual folder based on various candidate descriptions, so that even if the user does not know how to set the folder name or what files are stored in the electronic device, they can still successfully complete the folder name setting operation based on various candidate descriptions, thus improving the user experience.

[0208] In other embodiments, the name editing interface may also display one or more candidate folder names. The electronic device can determine the folder name of the target virtual folder based on the user's click operation on any of the candidate folder names. The candidate folder names are determined by the electronic device based on the characteristic information of all stored files, and the number of files in the electronic device that match the candidate folder names is greater than a preset number.

[0209] For example, referring to Figure 9, which illustrates a scenario of creating a virtual folder, as shown in Figures 9a and 9b, the "Input Suggestion" prompt bar in the name editing interface displays two candidate folder names: "Downloaded PDFs I Haven't Read Yet" and "Unread Papers on Artificial Intelligence." After the user clicks on the candidate folder name "Downloaded PDFs I Haven't Read Yet," that candidate folder name will be displayed in the name editing box of the name editing interface. As shown in Figures 9b and 9c, after the user clicks the "Create" control in the name editing interface, the electronic device can display the icon of the target virtual folder and its folder name "Downloaded PDFs I Haven't Read Yet" in the "Virtual Folder" toolbar of the file manager.

[0210] In this embodiment, after the electronic device determines the folder name of the target virtual folder, it can determine the target files contained in the target virtual folder from all stored files based on the folder name. For example, the types of files stored in the electronic device may include text (e.g., documents in Word, Text, PDF, etc., Excel spreadsheets, presentations, etc.), images, audio and / or video, etc.

[0211] In one possible implementation, the electronic device determines at least one target file that matches the folder name of the target virtual folder using the method shown in steps S1010 to S1030 below. The specific steps are as follows.

[0212] S1010, determine the historical file operations corresponding to each file.

[0213] Specifically, electronic devices can pre-store the operation identifiers of historical file operations corresponding to each file in the memory, so that during the creation of the target virtual folder, the operation identifiers of historical file operations for each file can be retrieved from the memory.

[0214] The historical file operations of a particular file can include all file operations performed on that file by the electronic device within the time range between the time the file was created and the current time (i.e., the time when the target virtual folder was opened, or the time corresponding to the creation operation of the virtual folder).

[0215] For example, the file operations performed by an electronic device on a certain file can be: creation operation, opening operation, modification operation, deletion operation, download operation, adjusting the storage location of the file, renaming the file, moving the file out of the first folder, moving the file into the second folder, receiving operation, receiving the file through the first application, receiving the file from the first source, receiving the file through the first transmission method, or other types of operations.

[0216] Optionally, for any given file, the electronic device can also pre-store the historical operation time, file topic, file attributes, historical user information, and historical application information corresponding to that file in its memory. The historical operation time can include the operation time corresponding to each file operation in the file's history. The historical user information includes information about the users who triggered the electronic device to perform various file operations on that file, and the historical application information includes application information about the application software used by the electronic device to perform various file operations on that file. The file attributes can include: the file format (e.g., Word, text, PDF, Excel, PPT, image, audio, video, etc.), file type (e.g., paper, contract, etc.), and / or file size, etc.

[0217] It should be noted that, in this embodiment of the application, if a file is modified and opened multiple times within a preset time period, the electronic device can store the operation time corresponding to each modification operation and the operation time corresponding to each opening operation. For example, the preset time period can be the past three days, the past week, or the past week. Alternatively, if a file is modified and opened multiple times, the electronic device can store only the operation time corresponding to the most recent modification operation and the most recent opening operation. For example, the electronic device can store file metadata for each file, which may include the file's creation time and modification time. The file's modification time refers to the specific time when the content and / or format of the file was last modified, and the file's access time refers to the specific time when the file was last opened. Another example is that the application management system in the electronic device can store the access time of each file, which may be the specific time when the file was last accessed (i.e., opened) by an application in the electronic device.

[0218] The file subject is used to indicate the main content of the file. In this embodiment, the electronic device can obtain semantic vectors of different types of files in different ways according to the file type and the file content, and use the semantic vectors to represent the file subject.

[0219] In one example, for a text file stored in an electronic device, the semantic vector of the text file may include: the semantic vector corresponding to the content summary of the text file, the semantic vector corresponding to multiple keywords in the text file, the semantic vector corresponding to the file name of the text file, and / or the semantic vector corresponding to the content outline of the text file.

[0220] Optionally, if the text file contains only textual information, the electronic device can process the textual information using vector models such as BERT to obtain semantic vectors for the text file. Furthermore, since some vector models have a limited number of characters that can be input, the electronic device can extract the textual information from the text file and then input the extracted textual information into vector models such as BERT for processing, thereby obtaining semantic vectors corresponding to the text file's content summary or semantic vectors corresponding to multiple keywords in the text file. The extracted textual information not only represents the topic of the text file, but also meets the input requirements of the vector model in terms of the number or size of characters.

[0221] For example, a large language model (LLM) can be used to extract textual information from a text file to obtain a content summary of the text file; or algorithms such as term frequency-inverse document frequency (TF-IDF) or best match (BM) can be used to extract textual information from a text file to obtain multiple keywords in the text file.

[0222] Optionally, for text files in PDF, DOCX, DOC, and CAJ formats where a content outline can be obtained, vector calculations can be performed on the content outline of the text file using vector models such as BERT to obtain the semantic vector of the content outline.

[0223] Optionally, if the content of the text file includes not only text information but also non-text information such as images, audio, animation, and / or video, the electronic device can obtain the semantic vector of the text file through either method one or method two below.

[0224] Method 1: Electronic devices can first convert various types of non-text information in a text file into corresponding text information, then merge the text information already present in the text file with the text information corresponding to the non-text information, and then process the merged text information through vector models such as BERT to obtain the semantic vector of the text file.

[0225] For example, for audio in a text file, automatic speech recognition (ASR) technology can be used to convert the audio content into computer-readable text information (such as binary encoding or character sequences). For images in a text file, optical character recognition (OCR) technology can be used to extract text from the image, or the content of the image can be described in text based on computer vision models such as image captioning models. For animation in a text file, the animation can be broken down into multiple frames, and the content of each frame can be described in text to obtain the corresponding text information for the animation. For video in a text file, the video can be broken down into multiple video frame data and audio data, and then each video frame data and audio data can be converted into text information.

[0226] Optionally, after merging the text information and non-text information already present in the text file, the electronic device can first refine the merged text information to reduce the number of words, obtain a content summary and multiple keywords, and then input the refined content summary and multiple keywords into a vector model for processing to obtain the semantic vector of the content summary and the semantic vector of the multiple keywords.

[0227] Method 2: Electronic devices can use a multimodal vector model to process both textual and non-textual information within a text file, obtaining its semantic vector. This multimodal vector model accepts various input types and can simultaneously process text, images, video, audio, and animation to produce the semantic vector of the text file.

[0228] For non-text files stored in electronic devices, such as image files, audio files, and video files, the electronic devices can process these files using corresponding deep learning models to obtain their semantic vectors. For example, semantic vectors for image files can be obtained using a contrastive language-image pre-training (CLIP) model; semantic vectors for audio files can be obtained using speech feature extraction models such as wav2vec; and for video files, the video file can be first decomposed into audio files and multiple image frames, and then a multimodal vector model can be used to obtain the semantic vectors for the video file.

[0229] S1020, Based on the target file operation and the historical file operation corresponding to each file, determine the first file set from at least one file.

[0230] In this embodiment, the electronic device can first identify the target operation description in the folder name using a natural language understanding (NLU) model, LLM, or other deep learning model, and determine the target file operation indicated by the target operation description; then, based on the target file operation, a first file set is determined from at least one file. The target file operation is included in the historical file operations corresponding to the files in the first file set.

[0231] For example, assuming the folder name of the target virtual folder is "Browsed Files", the electronic device can use a deep learning model to extract the target operation description "Browsed" from the folder name and determine that the target file operation indicated by the target operation description is an open operation. Based on this, the historical file operations corresponding to the files in the first file set should include the open operation.

[0232] S1030, Based on the first set of files, determine at least one target file.

[0233] In one embodiment, if the folder name of the target virtual folder includes a target operation description but does not include other characteristic descriptions such as topic, attributes, and operation time, the electronic device can determine that the file in the first file set is the target file.

[0234] In another embodiment, if the folder name includes not only a target operation description but also a target time description, a target topic description, a target attribute description, a target user description, and / or a target application description, the electronic device can further determine at least one target file from the first file set after determining the first file set based on the method in step S1020, according to the target operation time indicated by the target time description, the target file topic indicated by the target topic description, the target file attributes indicated by the target attribute description, the target user information indicated by the target user description, and / or the target application information indicated by the target application description.

[0235] It should be noted that the target file must conform to all the target characteristics corresponding to the target descriptions contained in the folder name. For example, if the folder name includes a target operation description, as well as any one of the target time description, target topic description, target attribute description, target user description, and target application description, then the target file must meet the following characteristic conditions: the historical file operations corresponding to the target file include the target file operations, and also one of the following conditions: the historical operation time of the target file operations corresponding to the target file is within the time range indicated by the target operation time; the file topic of the target file matches the target file topic; the first file attribute of the target file is the same as the target file attribute; the user information of the user who triggered the electronic device to perform the target file operation on the target file is the same as the target user information; and the application information of the application software used to perform the target file operation on the target file is the same as the target application information.

[0236] For example, if the folder name includes a description of the target operation, a description of the target time, a description of the target topic, a description of the target attributes, a description of the target user, and a description of the target application, then the target file must simultaneously meet all of the following characteristic conditions: the historical file operations corresponding to the target file include the target file operation; the historical operation time of the target file operation corresponding to the target file is within the time range indicated by the target operation time; the file topic of the target file matches the target file topic; the first file attribute of the target file is the same as the target file attribute; the user information of the user who triggered the electronic device to perform the target file operation on the target file is the same as the target user information; and the application information of the application software used to perform the target file operation on the target file is the same as the target application information.

[0237] Specifically, when the target file attribute is a target file format, the first file attribute of the target file can be the target file's file format. Therefore, "the first file attribute of the target file is the same as the target file attribute" means that the target file's file format is the same as the target file format. Optionally, if the target file attribute includes multiple target file formats, then "the first file attribute of the target file is the same as the target file attribute" means that the target file's file format is the same as the first target file format among the multiple target file formats. Here, the first target file format can be any one of the multiple target file formats.

[0238] When the target file attribute is a target file body, the first file attribute of the target file can be the target file body. Therefore, "the first file attribute is the same as the target file attribute" means that the target file body is the same. Optionally, if the target file attribute includes multiple target file bodies, then "the first file attribute is the same as the target file attribute" means that the target file body matches the first target file body among the multiple target file bodies. The first target file body can be any one of the multiple target file bodies.

[0239] When the target file attributes include at least one target file format and at least one target file body, the first file attribute of the target file may include the target file format and the file body. Therefore, "the first file attribute of the target file is the same as the target file attributes" means that the target file's file format is the same as the second target file format among the at least one target file formats, and the target file's file body is the same as the second target file body among the at least one target file body. The second target file format can be any one of the at least one target file formats, and the second target file body can be any one of the at least one target file body.

[0240] Furthermore, regarding the target topic description in the folder name, the electronic device can use a vector model to convert the target topic description into a corresponding target semantic vector, and use this target semantic vector to represent the target file topic. Based on this, in the above example, matching the target file topic with the target file topic means that the matching degree between the target file's semantic vector and the target semantic vector is greater than or equal to a preset matching degree threshold. The matching degree between the target file's semantic vector and the target semantic vector can be the cosine similarity between the target file's semantic vector and the target semantic vector.

[0241] In one example, assuming the target virtual folder is named "Viewed Traditional Culture Materials," the electronic device, through a deep learning model, can determine that the target operation description in the folder name is "Viewed," and the target topic description in the folder name is "Traditional Culture." Furthermore, the electronic device can also determine that the target file operation indicated by the target operation description "Viewed" is an "Open operation," and use the target semantic vector corresponding to the target topic description "Traditional Culture" as the target file topic.

[0242] In another example, assuming the target virtual folder is named "PPTs downloaded in the last three days", the electronic device can determine that the target operation description in the folder name is "downloaded", and the target file operation indicated by the target operation description is "download operation"; and the target time description in the folder name is "last three days", and the target operation time indicated by the target time description is "a time range of 72 hours before the current time"; the target attribute description in the folder name is "PPT", and the target file format indicated by the target attribute description is "PPT format".

[0243] Optionally, the target file topic indicated by the target topic description in the folder name may include one or more file topics. When the target file topic includes multiple file topics, matching a target file's file topic with each of the target file topics means that the matching degree between the target file's file topic and each of the target file topics is greater than or equal to a preset matching degree threshold. In other words, the selected target file's file topic needs to match each of the target file topics.

[0244] For example, assuming the target virtual folder is named "Files Related to Art and Calligraphy", the electronic device can determine that the target topic description in the folder name is "Art and Calligraphy". The target topic description indicates that the target file topics include two file topics, namely the first file topic "Art" and the second file topic "Calligraphy". Based on this, the electronic device will select target files whose file topics match both the first file topic and the second file topic.

[0245] S220, in response to the open operation of the target virtual folder, displays a list of files in the target virtual folder.

[0246] In one example, opening the target virtual folder can be done by clicking (e.g., single-clicking or double-clicking) the target virtual folder's icon or folder name. In another example, the user can also right-click the target virtual folder's icon or folder name, and then click the "Open" shortcut option displayed in the interface to open the target virtual folder.

[0247] In one embodiment, after the electronic device detects an open operation on the target virtual folder, it can display a list of files in the target virtual folder in the content pane of the file manager. This list displays file information for one or more target files that match the folder name of the target virtual folder. For example, the file information may include the target file's name, the target file's last modification date, the target file's file format, and the target file's size.

[0248] For example, referring to Figure 11, which shows a schematic diagram of a file list display interface, after the user clicks on the folder name "Documents Deleted Yesterday" in the navigation pane, the content pane can filter from the electronic device's recycle bin to find the file names (i.e., target file 1 and target file 2 in Figure 11) of two target files whose deletion date is the day before the current date and whose file attribute is "Document". The content pane also includes the last modification date of each target file, its file format, and its size. Optionally, as shown in Figure 11, the user can right-click on target file 2 in the content pane to display the shortcut option "Restore". By clicking the "Restore" shortcut option, target file 2 can be restored to its original storage location on the electronic device.

[0249] Furthermore, the file manager's interface can also display the number of target files contained in the target virtual folder.

[0250] In one example, the electronic device can display the number of target files contained in the target virtual folder after the folder name of the target virtual folder displayed in the virtual folder directory within the navigation pane.

[0251] For example, referring to Figure 12, which shows a schematic diagram of a file list display interface, after a user clicks on the folder name "Viewed Traditional Culture Materials" in the navigation pane, the content pane can display the file names (i.e., target file 1, target file 2, and target file 3 in Figure 12) of three target files that the user has opened and whose subject matter matches "Traditional Culture," the last modification date of each target file, the file format of each target file, and the size of each target file. In addition, the electronic device can also display the number of target files contained in the target virtual folder after the folder name "Viewed Traditional Culture Materials" displayed in the virtual folder directory. It should be noted that if the folder name of the target virtual folder does not include a description indicating the target operation corresponding to the "delete" operation, the target files in the target virtual folder are all files stored on the storage medium of the electronic device; that is, the target virtual folder does not contain files from the electronic device's recycle bin.

[0252] In another example, after a user opens a target virtual folder, the electronic device can display the number of target files contained in that virtual folder in the status bar of the file manager's display interface.

[0253] For example, referring to the display interface shown in Figure 11, after a user opens the target virtual folder "Documents Deleted Yesterday," a status bar can be displayed in the lower area of ​​the content pane. The status bar displaying "Total 2 Files" can be used to indicate that the number of target files in the target virtual folder is 2. As another example, referring to the display interface shown in Figure 12, after a user opens the target virtual folder "Viewed Traditional Culture Materials," the status bar displaying "Total 3 Files" can be used to indicate that the number of target files in the target virtual folder is 3.

[0254] In another embodiment, if the electronic device does not find a target file in the stored files that matches the folder name of the target virtual folder, it can display a "This virtual folder is empty" message in the content pane after detecting an open operation on the target virtual folder.

[0255] Based on the method provided in the above embodiments of this application, users can name the target virtual folder using natural language in the name editing box within the navigation pane, or name the target virtual folder according to various candidate descriptions displayed in the name editing interface. The electronic device can determine the filtering conditions for files already stored in the electronic device from various feature descriptions in the folder name. These filtering conditions may include target file operations, and may also include any one or more of the following: target operation time, target file topic, target file attributes, target user information, and target application information. Based on the determined filtering conditions, the electronic device can filter out target files that meet the filtering conditions from the stored files and display the target files in the file list of the target virtual folder. This allows users to quickly find the required target files from the electronic device even when they cannot accurately remember the storage path, file name, and specific content of the files they want to find or organize, improving the efficiency and accuracy of file retrieval.

[0256] In one possible implementation, for a virtual folder already created in the file manager, the user can adjust the target files within the virtual folder according to their needs or preferences. Correspondingly, the electronic device can update the displayed file list based on the user's adjustments to the target files in the target virtual folder. In this embodiment, the target files in the target virtual folder refer to files that match the target features indicated by each target description in the target condition description of the target virtual folder.

[0257] In one embodiment, a user's adjustment operation on a target file in a target virtual folder can be an operation to move a first target file out of the target virtual folder. The first target file can be any target file within the target virtual folder. The electronic device can update the file list of the target virtual folder based on the user's operation to move the first target file out of the target virtual folder, meaning that the file information of the first target file will no longer be displayed in the updated file list.

[0258] Optionally, the electronic device can also, based on the operation of moving the first target file out of the target virtual folder, filter out other target files with similar characteristics to the first target file from the current file list, and then move the first target file and other target files with similar characteristics to the first target file out of the file list of the target virtual folder at the same time, so as to update the file list.

[0259] Specifically, in one implementation, when the folder name includes a target topic description, the electronic device can determine a second target file from at least one target file and remove both the first and second target files from the file list, wherein a first feature of the second target file matches a first feature of the first target file.

[0260] In this implementation, the target topic description indicates the topic of the target file, and the first feature can be a sub-topic of the target file topic. For example, if the target topic description indicates the target file topic as "mathematics," then the first feature can be a sub-topic of linear algebra, differential calculus, geometry, or other types of sub-topics; if the target topic description indicates the target file topic as "traditional culture," then the first feature can be a sub-topic of calligraphy, traditional festivals, or traditional Chinese painting. Matching the first feature of the second target file with the first feature of the first target file means that the sub-topic of the second target file is the same as the sub-topic of the first target file, or the similarity between them is greater than a preset first similarity threshold. Specifically, the similarity between the sub-topics of the second target file and the sub-topics of the first target file can be the cosine similarity between the vectors of the sub-topics of the second and first target files.

[0261] For example, the sub-file topics of the second target file can be processed using vector models such as BERT to obtain vectors of the sub-file topics of the second target file. Similarly, the sub-file topics of the first target file can be processed using vector models such as BERT to obtain vectors of the sub-file topics of the first target file.

[0262] Furthermore, after updating the file list of the target virtual folder, the electronic device can also update the number of target files contained in the target virtual folder displayed in the navigation pane.

[0263] As an example and not a limitation, Figure 13 is a schematic diagram of a scenario for updating a file list provided by an embodiment of this application. As shown in Figure 13a, assuming that the target virtual folder named "Viewed Traditional Culture Materials" contains three target files, named Target File 1, Target File 2, and Target File 3 respectively, and the target theme description in the folder name indicates that the target file theme is "Traditional Culture", then, after the user right-clicks on the location of Target File 3, a shortcut menu can be displayed. The user can click the shortcut option "Do not display in this folder" in the shortcut menu to move Target File 3 out of the target virtual folder. Furthermore, assuming that the sub-file theme (i.e., the first feature) of Target File 3 is calligraphy, the electronic device can also compare the sub-file themes of Target File 1 and Target File 2 with the sub-file themes of Target File 3 respectively. If it is determined that the sub-file theme of Target File 2 is the same as that of Target File 3 and both are calligraphy, then the electronic device can move both Target File 2 and Target File 3 out of the target virtual folder and update the file list of the target virtual folder. As shown in Figure 13b, the updated file list no longer displays the file information of target file 2 and target file 3, and the electronic device can adjust the number of target files displayed after the folder name "Viewed Traditional Culture Materials" in the virtual folder directory and the number of target files displayed in the status bar from 3 to 1.

[0264] In another implementation, if the folder name also includes a target attribute description, and the target file attribute indicated by the target attribute description is a target file genre, the electronic device can determine a third target file from at least one target file and remove both the first and third target files from the file list. In this implementation, the second characteristic of the third target file is the same as the second characteristic of the first target file; the second characteristic is a sub-genre of the target file genre. For example, if the target file genre is "paper," the second characteristic could be a journal article, conference paper, dissertation, or other sub-genre of the target file.

[0265] In another implementation, the electronic device can store a deep learning model (e.g., a random forest model) corresponding to each target virtual folder. When a user moves a first target file out of a target virtual folder, the electronic device can use the deep learning model corresponding to that target virtual folder to process the feature information of all target files in that folder. This allows it to determine at least one second target file that matches the first target file's first feature, and / or at least one third target file that has the same second feature as the first target file. The first, second, and third target files are then moved out of the target virtual folder's file list. The types of the first and second features can be referred to the relevant descriptions in the above implementation methods, and will not be repeated here.

[0266] Optionally, in the above embodiments, the first and second features can be user-defined. The electronic device can update the file list of the target virtual folder in response to the operation of moving the first target file out of the target virtual folder and the semantic blacklist set for the target virtual folder. The updated file list includes files that match the folder name but do not match the description of the first feature in the semantic blacklist.

[0267] The semantic blacklist includes at least one feature description, and the first feature description is any feature description in the semantic blacklist.

[0268] For example, the first feature description can be a topic description or a genre description. The topic description is used to indicate the first feature. For example, the topic description can be a description indicating the topic of a file, such as "similar algebra files" or "similar calligraphy files." Here, "similar algebra files" indicates the first feature "algebra," and "similar calligraphy files" indicates the first feature "calligraphy." When the first feature description is a topic description, if the cosine similarity between the vector corresponding to the file's topic and the vector of the first feature description is greater than or equal to a preset first similarity threshold, then it can be determined that the file matches the first feature description.

[0269] The genre description is used to indicate the second feature. For example, the genre description could be a description indicating the document genre such as "similar conference papers" or "similar contracts." Here, "similar conference papers" indicates the second feature "conference papers," and "similar contracts" indicates the second feature "contracts." If the first feature description is a genre description, and the document's genre is the same as the document genre indicated by the first feature description, then the document can be determined to match the first feature description.

[0270] Based on this optional method, users can set topic descriptions in the semantic blacklist based on the main content or central idea of ​​the files they do not want to be displayed in the file list of the target virtual folder, and set genre descriptions in the semantic blacklist based on the file genre of the files they do not want to be displayed in the file list of the target virtual folder, thereby adjusting the files displayed in the target virtual folder through the semantic blacklist.

[0271] In another embodiment, the user's adjustment operation on the target file in the target virtual folder can be an operation of moving a first file into the target virtual folder. The electronic device can update the file list of the target virtual folder based on the operation of moving the first file into the target virtual folder, so that the file information of the first file is displayed in the file list. Here, the first file moved by the user is a file stored in the electronic device that is not displayed in the file list of the target virtual folder. The characteristic information of the first file can match the folder name of the target virtual folder; for example, the first file is a file whose folder name matches the folder name, which the user first moved out of the target virtual folder and then moved back into it; or, the characteristic information of the first file can not match the folder name of the target virtual folder, that is, the first file is a file that the user moved into the target virtual folder whose folder name does not match the folder name.

[0272] As an example and not a limitation, Figure 14 is a schematic diagram of a scenario for updating a file list according to an embodiment of this application. As shown in Figure 14a, after the user opens the "Documents" folder, the content pane can display the file information of file 4 and file 5. After right-clicking the location of file 4, a first-level shortcut menu can be displayed. When the user clicks the menu option "Add to Virtual Folder" in the first-level shortcut menu, a second-level shortcut menu can be displayed. The second-level shortcut menu displays the folder names of each virtual folder created in the electronic device. After the user clicks the folder name "Viewed Traditional Culture Materials" in the second-level shortcut menu, file 4 can be moved into the target virtual folder "Viewed Traditional Culture Materials", and the file list of the target virtual folder will be updated. As shown in Figure 14b, after the user opens the target virtual folder, the updated file list adds the file information of file 4, and the electronic device can also adjust the number of target files displayed after the folder name "Viewed Traditional Culture Materials" in the virtual folder directory and the number of target files displayed in the status bar from 3 to 4.

[0273] It should be noted that a real folder is a physical folder that actually exists in the system directory of an electronic device. A real folder has a fixed physical location and is stored on the hard drive or other storage media of the electronic device. Two files with the same name and file format cannot exist in the system directory corresponding to the same real folder. A virtual folder, on the other hand, does not exist in a real system directory on the electronic device and has no specific physical location. It does not occupy storage space on the hard drive or other storage media of the electronic device. Therefore, the file list of a virtual folder displays shortcuts (e.g., virtual Uniform Resource Identifiers (URIs)) for files stored at a specific physical location. Furthermore, multiple files with the same name and file format can exist simultaneously in the same virtual folder. The phrase "moving a target file out of a target virtual folder" described in the above embodiments of this application means that the shortcut for that target file is not displayed in the file list of the target virtual folder. The phrase "moving a file into a target virtual folder" described in the above embodiments means that the shortcut for that file is displayed in the file list of the target virtual folder.

[0274] It should also be noted that, as shown in Figure 14a, users can perform any operation on files in a real folder, such as deleting, copying, cutting, opening, and modifying. However, users have limited operations on files in a virtual folder. As shown in Figure 13a, users can open, copy, and move files out of the virtual folder, but they cannot delete, cut, share, or rename files in the virtual folder, nor can they paste files stored in a physical location into the virtual folder.

[0275] Optionally, in response to the operation of moving the first file into the target virtual folder, the electronic device may also filter out other files with similar characteristics to the first file from all stored files, then move the first file and other files with similar characteristics to the first file into the file list of the target virtual folder, and update the file list of the target virtual folder. The updated file list includes the target file that matches the folder name, the first file, and other files with similar characteristics to the first file.

[0276] In one example, other files with similar characteristics to the first file mentioned above may include: files similar to the third characteristic of the first file and / or files similar to the fourth characteristic of the first file. Both the third and fourth characteristics can be determined by the electronic device based on feature descriptions in a semantic whitelist of the target virtual folder set by the user. In response to the operation of moving the first file into the target virtual folder and the semantic whitelist set for the target virtual folder, the electronic device can update the file list of the target virtual folder. The updated file list includes: the target file matching the folder name and files matching the second feature description in the semantic whitelist.

[0277] The semantic whitelist includes at least one feature description, and the second feature description is any one of the feature descriptions in the semantic whitelist.

[0278] For example, the second feature description can be a topic description or a genre description. The topic description in the semantic whitelist is used to indicate the third feature. For example, the topic description can be a description such as "similar Chinese paintings" to indicate the topic of the file, where "similar Chinese paintings" indicates the third feature "Chinese painting". When the second feature description is a topic description, if the cosine similarity between the vector corresponding to the file's topic and the vector of the second feature description is greater than or equal to a preset second similarity threshold, then it can be determined that the file matches the second feature description.

[0279] The genre description is used to indicate the fourth feature. For example, the genre description could be a description such as "similar tenders" to indicate the document genre, where "similar tenders" indicates the fourth feature as "tender". If the second feature description is a genre description, and the document's genre is the same as the document genre indicated by the second feature description, then the document can be determined to match the second feature description.

[0280] Based on this optional method, users can set the topic description in the semantic whitelist based on the main content or central idea of ​​the files they want to display in the file list of the target virtual folder, and / or set the genre description in the semantic whitelist based on the file genre of the files they want to display in the file list of the target virtual folder, thereby adjusting the files displayed in the target virtual folder through the semantic whitelist.

[0281] In other possible implementations, for any virtual folder already created in the file manager, the electronic device can determine and store a blacklist corresponding to the virtual folder based on at least one first target file moved out of the virtual folder by the user, and can also determine and store a whitelist corresponding to the virtual folder based on at least one first file moved into the virtual folder by the user. Based on this, the electronic device can, in response to an update command for a created target virtual file, obtain the whitelist and / or blacklist corresponding to the target virtual folder, wherein the whitelist includes file information of at least one first file moved into the target virtual folder by the user, and the blacklist includes file information of at least one first target file moved out of the target virtual folder by the user; the electronic device can also update the file list of the target virtual folder based on the files in the whitelist and / or blacklist and the folder name of the target virtual folder.

[0282] Specifically, if the electronic device obtains the whitelist of the target virtual folder but not its blacklist, the updated file list includes all files in the whitelist. If the electronic device obtains the blacklist of the target virtual folder but not its whitelist, the updated file list does not include any files in the blacklist. If the electronic device obtains both the whitelist and blacklist of the target virtual folder, the updated file list includes all files in the whitelist but not all files in the blacklist.

[0283] It should be noted that duplicate files are not allowed in the whitelist and blacklist of each virtual folder. If a user adjusts the files displayed in the file list of a virtual folder and removes a file from the file list, but the removed file is included in the whitelist of that virtual folder, the electronic device can simultaneously adjust both the whitelist and blacklist of that virtual folder. This will ensure that the removed file is included in the adjusted blacklist and not included in the adjusted whitelist. Conversely, if a user adjusts the files displayed in the file list of a virtual folder and moves a file into the file list, but the moved file is included in the blacklist of that virtual folder, the electronic device can also simultaneously adjust both the whitelist and blacklist of that virtual folder. This will ensure that the moved file is included in the adjusted whitelist and not included in the adjusted blacklist.

[0284] In one embodiment, the update instruction for the target virtual folder can be triggered when the user opens the target virtual folder. Specifically, in one example, when the electronic device detects that the user has opened the target virtual folder before, it can generate an update instruction. According to the update instruction, the electronic device can re-acquire the feature information of each file in the electronic device based on the method in steps S1010 to S1030 above, and based on the re-acquired feature information, determine at least one target file that matches the folder name of the target virtual folder from all the stored files. Then, based on the determined at least one target file and the blacklist and / or whitelist corresponding to the target virtual folder, a file list of the target virtual folder is displayed, wherein the file list includes: file information of all first files in the whitelist, and file information of other target files in at least one target file other than the first target file in the blacklist. Based on the method in this embodiment, the target files displayed in the file list can both match the folder name of the target virtual folder and conform to the user's settings preferences for the target virtual folder.

[0285] It should be noted that for a target virtual folder that has been generated but not opened by the user, if the user moves files into the target virtual folder, the electronic device can also store a whitelist corresponding to the target virtual folder. Based on this, when the electronic device detects that the user has opened the target virtual folder for the first time, it can also display the file list of the target virtual folder based on the whitelist corresponding to the target virtual folder.

[0286] In another example, when an electronic device detects that a user has opened a target virtual folder for the first time or not, it can generate an update command and update the file list of all created virtual folders in the virtual folder directory according to the update command.

[0287] In another embodiment, the update instruction for the target virtual file can be triggered at a preset time. Specifically, the number of files stored in the electronic device and the content of the files will change as the user's historical operations on the files increase, and the time interval between the historical operation time of the file and the current time will change over time. Based on this, for virtual folders created in the file manager, the electronic device can periodically re-acquire the feature information of all files and periodically update the file list of all virtual folders.

[0288] For example, assuming the preset time is 00:00 every day, the electronic device, when powered on, can re-acquire the feature information of all files at 00:00 each day and update the file lists of all virtual folders. Furthermore, if the electronic device is powered off at 00:00 on a given day, after switching from powered off to powered on, it can determine whether the file lists of each virtual folder were updated at 00:00 that day. If it is determined that the file lists of each virtual folder were not updated at 00:00, the electronic device can re-acquire the feature information of all files after powering on and update the file lists of all virtual folders.

[0289] In another embodiment, the update instruction for the target virtual file can be triggered when the electronic device performs a new file operation on a file. Specifically, after the electronic device performs a new file operation on a file, it can generate an update instruction. Based on this update instruction, the electronic device can re-acquire the file's feature information and determine whether the file's feature information matches the folder name of each virtual folder. Then, if the file's feature information matches the folder name of a target virtual folder, the file list of the target virtual folder is updated.

[0290] For example, Figure 15 is a schematic diagram of a scenario for updating a file list provided by an embodiment of this application. As shown in Figure 15a, assuming that two virtual folders have been created in the electronic device, and the folder names of the two virtual folders are "Traditional Culture Materials Viewed" and "PPTs Downloaded in the Last Three Days" respectively, if the user downloads and opens file 6 in the electronic device, and the file theme of file 6 is "Chinese Traditional Culture" and the file format of file 6 is PPT, then during the process of the user opening the target virtual folder "Traditional Culture Materials Viewed" for the first time, the electronic device can detect whether the feature information of file 6 matches the folder name "Traditional Culture Materials Viewed". If the electronic device detects that the file theme of file 6 matches the target file theme, and the historical file operation corresponding to file 6 includes the target file operation "open operation", then as shown in Figure 15b, the electronic device can add file 6 as the target file to the file list of the target virtual folder "Traditional Culture Materials Viewed", and adjust the number of target files displayed after the folder name "Traditional Culture Materials Viewed" in the virtual folder directory from 3 to 4.

[0291] Furthermore, the electronic device can also detect whether the feature information of file 6 matches the folder name "PPTs downloaded in the last three days". If the electronic device detects that the historical file operation corresponding to file 6 includes the target file operation "download operation", and the operation time of the download operation performed on file 6 matches the target operation time "last three days", and at the same time, the file attribute of file 6 is the same as the target file attribute "PPT format", then as shown in Figure 15b, the electronic device can add file 6 as the target file to the file list of the target virtual folder "PPTs downloaded in the last three days", and adjust the number of target files displayed after the folder name "PPTs downloaded in the last three days" in the virtual folder directory from 4 to 5.

[0292] In other possible implementations, for virtual folders already created in the file manager, the electronic device can respond to an open operation of any target virtual folder by displaying a first file list of the target virtual folder. The files displayed in the first file list can be determined based on the folder name of the target virtual folder and a first exception condition corresponding to the target virtual folder, or based on the folder name of the target virtual folder and a second exception condition corresponding to the target virtual folder, or based on the folder name of the target virtual folder, the first exception condition corresponding to the target virtual folder, and the second exception condition corresponding to the target virtual folder. The following describes these three methods of displaying the first file list in detail through different embodiments.

[0293] In one embodiment, if the target virtual folder has a corresponding first exception condition but no corresponding second exception condition, the electronic device may display a first file list in response to an open operation on the target virtual folder. The first file list includes files matching the folder name and files that meet the first exception condition, which are files moved into the target virtual folder by the user before the open operation was triggered.

[0294] For example, the first exception condition may include a first sub-condition, and the file satisfying the first sub-condition may include: at least one file moved by the user from the target virtual folder (e.g., the first file in the above embodiment). Furthermore, the first exception condition may also include a second sub-condition, and the file satisfying the second sub-condition may include: a file with similar characteristics to the file moved by the user from the target virtual folder. The similar characteristics may be the third or fourth characteristics described in the above embodiments. The process of the user moving a file into the target virtual folder and the process of the electronic device moving a file with similar characteristics to the user-moved file into the target virtual folder are described in the relevant descriptions in the above embodiments, and will not be repeated here.

[0295] In this embodiment, the first exception condition can also be referred to as the whitelist described in the above embodiments. Based on this, the files that meet the first exception condition can be all the files in the whitelist of the target virtual folder.

[0296] Optionally, the specific method for displaying the first file list based on the folder name and the first exception condition may include: the electronic device, in response to a user's opening operation on the target virtual folder, obtaining a second file list; obtaining the first file list based on the second file list, and displaying the first file list. The second file list includes files matching the folder name and files that meet the first exception condition; files in the second file list that meet the first exception condition have a first tag; and the first file list includes files from the second file list.

[0297] It should be noted that for a target virtual folder that has already been created, the user may update the folder name, the electronic device may update the target files matching the folder name over time, and the user may also update the content of files already stored on the electronic device. Therefore, files that meet the first exception condition (i.e., the whitelist) may or may not match the current folder name of the target virtual folder. Based on the method in this embodiment, each time the user opens the target virtual folder, regardless of whether the files that meet the first exception condition match the current folder name of the target virtual folder, the electronic device can determine the files that meet the first exception condition based on the first marker, and display the files that meet the first exception condition and the target files that match the current folder name of the target virtual folder. This ensures that the files in the currently displayed first file list not only match the folder names set by the user, but also conform to the user's adjustment preferences.

[0298] Optionally, for a pre-created target virtual folder, the electronic device can also respond to the user's opening operation of the target virtual folder and display a first file list based on the folder name corresponding to the target virtual folder, the semantic whitelist, and the first exception condition. The first file list includes: files that match the folder name of the target virtual folder, files that match any feature description in the semantic whitelist, and files that meet the first exception condition.

[0299] In other embodiments, if the target virtual folder has a corresponding second exception condition but no corresponding first exception condition, the electronic device may display a first file list in response to a user's open operation on the target virtual folder. The first file list includes files that match the folder name but do not meet the second exception condition, where the files that meet the second exception condition are those that the user removed from the target virtual folder before the open operation was triggered.

[0300] For example, the second exception condition may include a third sub-condition, and the file satisfying the third sub-condition of the second exception condition may include: at least one file moved out of the target virtual folder by the user (such as the first target file in the above embodiment). Furthermore, the second exception condition may also include a fourth sub-condition, and the file satisfying the fourth sub-condition of the second exception condition may include: a file with similar characteristics to the file moved out of the target virtual folder by the user. The similar characteristics may be the first or second characteristics described in the above embodiments. The process of the user moving a file out of the target virtual folder and the process of the electronic device moving a file with similar characteristics to the file moved out of the target virtual folder can be referred to the relevant descriptions in the above embodiments, and will not be repeated here.

[0301] In this embodiment, the second exception condition can also be referred to as the blacklist described in the above embodiments. Based on this, the files that meet the second exception condition can be all the files in the blacklist of the target virtual folder.

[0302] Optionally, the specific method for displaying the first file list based on the folder name and the second exception condition includes: the electronic device, in response to an open operation on the target virtual folder, obtains a second file list; obtains the first file list based on the second file list, and displays the first file list. The second file list includes files whose folder names match the target virtual folder and files that meet the second exception condition; files in the second file list that meet the second exception condition have a second tag; the first file list includes files in the second file list that do not have the second tag.

[0303] It should be noted that for a target virtual folder that has already been created, the user may update the folder name, the electronic device may update the target files matching the folder name over time, and the user may also update the content of files already stored on the electronic device. Therefore, files that meet the second exception condition (i.e., the blacklist) may or may not match the current folder name of the target virtual folder. Based on the method in this embodiment, each time the user opens the target virtual folder, regardless of whether the files that meet the second exception condition match the current folder name of the target virtual folder, the electronic device can use the second marker to filter out all files that were moved out of the target virtual folder before the opening operation from the target files that match the folder name of the target virtual folder, so that the first file list does not display files that the user does not want to be displayed in the target virtual folder.

[0304] Optionally, for a target virtual folder that has already been created, when the user subsequently opens the target virtual folder again, the electronic device can also respond to the opening operation of the target virtual folder by displaying a first file list based on the folder name corresponding to the target virtual folder, the semantic blacklist, and the second exception condition. The first file list includes files that match the folder name of the target virtual folder, do not match any of the feature descriptions in the semantic blacklist, and do not meet the second exception condition.

[0305] In other embodiments, if the target virtual folder has corresponding first and second exception conditions, the electronic device can display a first file list in response to an open operation on the target virtual folder. The first file list includes: files that meet the first exception condition, and files that match the folder name but do not meet the second exception condition.

[0306] The files that meet the first exception condition are those moved into the target virtual folder by the user before the open operation is triggered. The first exception condition can also be referred to as a whitelist. For example, the first exception condition may include a first sub-condition, and files meeting the first sub-condition may include at least one file moved into the target virtual folder by the user (e.g., the first file in the above embodiment). Furthermore, the first exception condition may also include a second sub-condition, and files meeting the second sub-condition may include files with similar characteristics to the files moved into the target virtual folder by the user. These similar characteristics may be the third or fourth characteristics described in the above embodiments.

[0307] The files that meet the second exception condition are those removed from the target virtual folder by the user before the open operation is triggered. The second exception condition can also be referred to as the blacklist described in the above embodiments. For example, the second exception condition may include a third sub-condition, and files meeting the third sub-condition of the second exception condition may include at least one file removed by the user from the target virtual folder (such as the first target file in the above embodiments). Furthermore, the second exception condition may also include a fourth sub-condition, and files meeting the fourth sub-condition of the second exception condition may include files with similar characteristics to the files removed by the user from the target virtual folder. These similar characteristics may be the first or second characteristics described in the above embodiments.

[0308] Optionally, the specific method for displaying the first file list based on the folder name, the first exception condition, and the second exception condition includes: the electronic device, in response to an open operation on the target virtual folder, obtains a second file list corresponding to the target virtual folder; obtains the first file list based on the second file list, and displays the first file list. The second file list includes files matching the folder name, files meeting the first exception condition, and files meeting the second exception condition. Files in the second file list that meet the second exception condition have a second marker, and the first file list includes files in the second file list that do not have the second marker.

[0309] Based on the method in this embodiment, each time a user opens the target virtual folder, regardless of whether the file that meets the first exception condition matches the current folder name of the target virtual folder, and regardless of whether the file that meets the second exception condition matches the current folder name of the target virtual folder, the electronic device can determine the file that meets the first exception condition based on the first marker, and filter the file that meets the second exception condition from the target files that match the current folder name based on the second marker. This allows the first file list to display all files that the user moved into the target virtual folder before opening it, and not to display all files that the user moved out of the target virtual folder before opening it. In other words, the files in the currently displayed first file list not only match the folder name set by the user, but also conform to the user's adjustment preferences.

[0310] Optionally, in response to an open operation on the target virtual folder, the electronic device can also display a first file list based on the folder name corresponding to the target virtual folder, a first exception condition, a second exception condition, a semantic blacklist, and / or a semantic whitelist. If the target virtual file has corresponding first exception conditions, second exception conditions, a semantic blacklist, and a semantic whitelist, the first file list includes: files that match the folder name but do not meet the second exception condition and do not match any feature description in the semantic blacklist; all files that meet the first exception condition; and files that match any feature description in the semantic whitelist.

[0311] In other possible implementations, users can adjust preset matching thresholds for virtual folders already created in the file manager. The electronic device can adjust the number of target files in a virtual folder and update the target files within the virtual folder based on the adjusted matching threshold and the relevance between each target file and the folder name. Each virtual folder in the electronic device corresponds to a matching threshold. The relevance between a target file and the folder name refers to the degree of matching between the target file's subject and the subject indicated in the folder name. The matching degree between the subject of the target files displayed in the file list and the target file's subject must be greater than or equal to the preset matching threshold; the higher the matching threshold, the higher the relevance between the target files displayed in the file list and the folder name.

[0312] For example, referring to the display interface shown in Figure 16, after the user opens the target virtual folder "Viewed Traditional Files," the content pane displays not only a list of files in the target virtual folder but also a slider control. The position of the circular slider in the slider control indicates the matching threshold. The user can adjust the matching threshold corresponding to the target virtual folder by moving the circular slider in the slider control, thereby updating the target files displayed in the file list. In the updated file list, the matching degree between the subject of each target file and the subject of the target file is greater than or equal to the adjusted matching threshold.

[0313] As shown in Figure 16a, when the circular slider in the slider control is in the first position, the matching threshold corresponding to the target virtual folder is the first matching threshold. The file list displays three target files, named Target File 1, Target File 2, and Target File 3. The relevance between all three target files and the folder name "Viewed Traditional Files" is greater than or equal to the first matching threshold. As shown in Figure 16b, when the user moves the circular slider in the slider control from the first position to the second position, the matching threshold can be adjusted to the second matching threshold, which is greater than the first matching threshold. If the electronic device detects that the matching degree between Target File 1 and Target File 2 and the folder name is greater than or equal to the second matching threshold, and the matching degree between Target File 3 and the folder name is less than the second matching threshold, the electronic device can update the displayed file list. The updated file list displays two target files with a higher relevance to the folder name "Viewed Traditional Files" (i.e., Target File 1 and Target File 2 as shown in Figure 16b).

[0314] Based on this possible implementation, if the number of target files displayed in the file list is large, users can reduce the number of target files displayed in the file list by adjusting the matching threshold. This will result in the file list displaying target files that are more relevant to the folder name, allowing users to quickly find the files they need from the file list.

[0315] In other possible implementations, in response to an open operation on a target virtual folder, the electronic device displays a file list that may include a first sub-file list and a second sub-file list. The first sub-file list includes at least one target file, and both the first and second sub-file lists include at least one target file. Preset matching thresholds corresponding to the target virtual folder include a third matching threshold and a fourth matching threshold, with the third matching threshold being greater than the fourth matching threshold. Specifically, the matching degree between the target files in the first sub-file list and the folder name is greater than or equal to the third matching threshold, while the matching degree between the target files in the second sub-file list and the folder name is greater than or equal to the fourth matching threshold and less than the third matching threshold. In other words, the target files in the first sub-file list have a higher relevance (also referred to as matching degree) to the folder name compared to the target files in the second sub-file list. Optionally, the first sub-file list may be displayed above the second sub-file list.

[0316] Optionally, a first control can be set in the display interface of the file list of the target virtual folder. The first control has two display states: on and off. When the first control is on, the electronic device can display both the first sub-file list and the second sub-file list simultaneously. When the first control is off, the electronic device only displays the first sub-file list. Users can adjust the display state of the first control to adjust the number of target files, so that the file list displays all filtered target files or only the target files with higher relevance.

[0317] For example, the first control can be a text control (e.g., "more," "more," etc.), a slider, a button, or other type of control. The first control of each virtual folder can be enabled by default.

[0318] In other possible implementations, the electronic device may also update the file list of the target virtual folder in response to a modification operation on the folder name of the target virtual folder. The modification operation on the folder name may be a deletion, addition, and / or modification operation of at least one of the following descriptions in the folder name: target topic description, target operation description, target time description, and target attribute description. The target file topic indicated by the modified target topic description is different from the target file topic indicated by the original target topic description. The target file operation indicated by the modified target operation description is different from the target file operation indicated by the original target operation description. The target operation time indicated by the modified target time description is different from the target operation time indicated by the original target time description. The target file attribute indicated by the modified target attribute description is different from the target file attribute indicated by the original target attribute description.

[0319] In one example, a user can modify the name of a target virtual folder within the navigation pane by renaming it.

[0320] In another example, the electronic device can display a name editing interface for the target virtual folder in response to a renaming operation. Based on this, the operation to modify the folder name of the target virtual folder can be either modifying the folder name in the name editing bar of the name editing interface, or adjusting the candidate descriptions in the name editing interface. The adjustment operation for the candidate descriptions in the name editing interface includes deleting at least one selected candidate description and / or adding at least one new candidate description.

[0321] Optionally, in the file management method provided in Embodiment 1, the electronic device may, in response to a stop update operation on the target virtual folder, stop updating the file list of the virtual folder based on the folder name of the target virtual folder.

[0322] For example, in an interface displaying the file list of the target virtual folder, a "Smart Update" control corresponding to that target virtual folder can be displayed. When the "Smart Update" control is enabled, the electronic device can automatically update the file list based on the folder name, blacklist, and whitelist corresponding to the target virtual folder. Users can also move files into or out of the target virtual folder according to their preferences. When the "Smart Update" control is disabled, the electronic device cannot automatically update the file list based on the folder name, blacklist, and whitelist corresponding to the target virtual folder, and users cannot move files into or out of the target virtual folder according to their preferences. The user can stop updating the target virtual folder by changing the "Smart Update" control from enabled to disabled.

[0323] Example 2

[0324] Figure 17 is a flowchart illustrating another file management method provided in an embodiment of this application. In one possible implementation, the file management method provided in this embodiment includes the following steps S1710 to S1720.

[0325] S1710, in response to the creation of a virtual folder, displays the first interface.

[0326] In one embodiment, a user can open the file manager of an electronic device and trigger the creation of a virtual folder within the file manager's display interface. The file manager can be used to manage all files stored within the electronic device, including but not limited to: files created or downloaded by applications installed on the electronic device, and files acquired and stored on the electronic device via Bluetooth, Universal Serial Bus, or other file transfer methods. The virtual folder creation operation described in this embodiment refers to the operation of creating a new virtual folder.

[0327] Figure 18 is a schematic diagram of the display interface of a file manager provided in an embodiment of this application. In one example, as shown in Figure 18, the display interface of the file manager includes a navigation pane and a content pane, with the navigation pane located on the left side of the display interface and the content pane located on the right side. The navigation pane displays the directory structure of the electronic device, enabling users to quickly browse and access folders and files on the electronic device, while the content pane displays information related to the content selected in the navigation pane.

[0328] Users can trigger the creation of a new virtual folder either within the navigation pane or the content pane. For example, as shown in Figure 18a, a user can trigger a first operation within the content pane, which can be a double-click or a right-click. In response to this first operation, the electronic device can display a first-level shortcut menu on the file manager's display interface. When the user clicks the "New" menu option in the first-level shortcut menu, a second-level shortcut menu can be displayed. Clicking the "Virtual Folder" menu option in the second-level shortcut menu triggers the creation of a new virtual folder.

[0329] The electronic device can respond to a user-triggered creation of a virtual folder and display a first interface on the file manager's display screen. In Embodiment 2, the first interface is used to set target condition descriptions, enabling the electronic device to filter target files within the target virtual folder based on these descriptions. Therefore, the first interface can also be called a condition setting interface.

[0330] For example, referring to the schematic diagram of a first interface shown in Figure 19, the first interface (i.e. the condition setting interface) can be displayed on the display interface of the file manager in the form of a floating window. The first interface displays multiple editing boxes, each of which is used to set the target description of the corresponding type. The electronic device can determine the target condition description according to the target description set in each editing box.

[0331] In one embodiment, as shown in Figure 19, at least one operation edit box may be displayed in the first interface. The user can set a target operation description in the operation edit box, which indicates the target file operation.

[0332] Alternatively, users can directly enter a description of the target operation in the operation editing box.

[0333] Optionally, an embedded plugin can be set in the operation edit box, such as the inverted triangle drop-down combination button shown in Figure 19. After the user clicks the embedded plugin in the operation edit box, multiple candidate operation descriptions can be displayed in the first interface. These multiple candidate operation descriptions are used to indicate different types of candidate file operations. For example, as shown in Figure 19, the multiple candidate operation descriptions may include: creation time, modification time, access time, created, modified, accessed, and unrestricted. The electronic device can respond to the user's selection of the first candidate operation description among the multiple candidate operation descriptions by displaying the target operation description in the operation edit box. The target operation description includes the first candidate operation description selected by the user. For example, the selection operation can be a click operation.

[0334] In other embodiments, the first interface may also display at least one time edit box corresponding to at least one operation edit box. Users can set target time descriptions in the time edit boxes. For any target time description set in a time edit box, the target time description can be used to indicate the target operation time of the target file operation indicated by the target operation description set in the operation edit box corresponding to that time edit box.

[0335] For example, the target operation time indicated by the target time description can be a single moment or a time range. For example, the target time description can be "the last day," "the last three days," "yesterday," "the last week," "no limit," or a description indicating other time ranges, where "the last day" indicates a target operation time of "the 24 hours before the current time," "the last three days" indicates a target operation time of "the 72 hours before the current time," "yesterday" indicates a target operation time of "the time range from 0:00 to 24:00 of the previous day," and "no limit" means that there is no limit to the target operation time.

[0336] Alternatively, users can directly enter a description of the target time in the time edit box.

[0337] Optionally, an embedded plugin can be set in the time editing box, such as the inverted triangle drop-down combination button shown in Figure 20. After the user clicks the embedded plugin in the time editing box, multiple candidate time descriptions can be displayed in the first interface. These multiple candidate time descriptions are used to indicate different candidate time ranges. For example, as shown in Figure 20, the multiple candidate time descriptions may include: the past month, the past week, the past day, yesterday, and no limit. The user can select the first candidate time description from the multiple candidate time descriptions by clicking. The electronic device can display the target time description in the operation editing box based on at least one first candidate time description selected by the user. The target time description includes all the first candidate time descriptions selected by the user. The first candidate time description is any one of the multiple candidate time descriptions.

[0338] In other embodiments, a file topic editing box may also be displayed in the first interface. The user can set a target topic description in the file topic editing box, which indicates the topic of the target file. The target file topic is the main content of the target files that the user expects to filter, or the central idea that the target file aims to express.

[0339] For example, the target file topic can be artificial intelligence, interaction design, mathematics, traditional culture, anthropology, environment, or other types of file topics. Each type of target file topic can include multiple sub-topics of different types. For example, the target file topic "mathematics" can include sub-topics such as linear algebra, differential calculus, and geometry; the target file topic "traditional culture" can include sub-topics such as calligraphy, traditional Chinese painting, and traditional festivals; and the target cultural topic "anthropology" can include sub-topics such as archaeology, linguistic anthropology, and cultural anthropology.

[0340] Alternatively, users can directly enter a description of the target theme in the file theme editing box.

[0341] Optionally, the first interface may also display multiple candidate topic descriptions, each indicating a candidate file topic. These multiple candidate topic descriptions may include: file topic descriptions entered by the user in the file topic edit box, and / or file topic descriptions corresponding to the file topics of files already stored in the electronic device. In other words, the electronic device can pre-calculate the file topics of all files already stored in the device, generate multiple candidate topic descriptions based on the file topics of each file, and display some of these candidate topic descriptions on the first interface. The displayed candidate topic descriptions can remind the user which topics of files are stored on the electronic device. The electronic device may also store at least one file topic description entered by the user in the topic edit box and display it on the first interface. Based on this, the user can select the first candidate topic description from the multiple candidate topic descriptions by clicking. The electronic device can then display a target topic description in the file topic edit box based on the user's selection of at least one first candidate topic description. The target topic description includes all the first candidate topic descriptions selected by the user, and the first candidate topic description is any one of the multiple candidate topic descriptions.

[0342] Furthermore, since the number of candidate topic descriptions that can be displayed on the first interface is limited, a candidate topic adjustment control can also be displayed on the first interface. The electronic device can respond to the user's triggering operation on the candidate topic adjustment control to change the candidate topic descriptions displayed on the first interface, thereby showing the user more candidate topic descriptions.

[0343] For example, as shown in Figures 19 and 21, multiple different candidate topic descriptions and candidate topic adjustment controls can be displayed below the file topic editing box. The multiple candidate topic descriptions include "Environment," "Anthropology," and "Mathematics." The candidate topic adjustment control can be a "Change" control, which the user can trigger by clicking or other actions, causing the electronic device to change the candidate topic description displayed on the first interface.

[0344] In other embodiments, a file source edit box may also be displayed in the first interface. The user can set a target source description in the file source edit box. This description describes which application created and stored the file on the electronic device, or which device the file was obtained from and stored on the electronic device.

[0345] The target file source description is used to indicate the source of the target file. For example, the target file source can be any application or a first device in an electronic device, such as a mobile phone, computer, USB flash drive, or other device capable of transferring files.

[0346] Alternatively, users can directly enter a description of the target source in the file source edit box.

[0347] Optionally, an embedded plugin can be set in the file source edit box, such as the inverted triangle drop-down button combination shown in Figure 19. After the user clicks the embedded plugin in the file source edit box, multiple candidate source descriptions can be displayed in the first interface. These multiple candidate source descriptions are used to indicate different candidate file sources. The user can click the first candidate source description among the multiple candidate source descriptions, and the electronic device can respond to the user's selection operation of at least one first candidate source description by displaying the target source description in the file source edit box. Here, the first candidate source description is any one of the multiple candidate source descriptions, and the target source description includes all the first candidate source descriptions selected by the user. The selection operation can be a click operation.

[0348] In other embodiments, a file attribute edit box may also be displayed in the first interface. Users can set target attribute descriptions in the file attribute edit box; the target file data description is used to indicate the target file attributes.

[0349] For example, target file attributes may include target file format and / or target file genre. The target file format may be Word, presentation, text, PDF, image, audio, video, or other file formats. The target file genre may be a thesis, contract, medical record, or other types of document genres. Each type of target file genre may include multiple different types of sub-genres. For example, the target file genre "thesis" may include journal articles, conference papers, dissertations, and other types of papers; the target file genre "contract" may include employment contracts, lease contracts, sales contracts, and other types of contracts; the target file genre "medical record" may include outpatient medical records, inpatient medical records, and other types of medical records. This application embodiment does not specifically limit the classification method of sub-file topics and sub-file genres.

[0350] Alternatively, users can directly enter the target attribute description in the file attribute edit box.

[0351] Optionally, an embedded plugin can also be set in the file attribute edit box, such as the inverted triangle drop-down combination button shown in Figure 19. After the user clicks the embedded plugin in the file attribute edit box, multiple candidate attribute descriptions can be displayed in the first interface. These multiple candidate attribute descriptions are used to indicate different candidate file attributes. The user can select at least one first candidate attribute description from the multiple candidate attribute descriptions by clicking. The electronic device can respond to the user's selection of at least one first candidate attribute description by displaying the target attribute description in the file attribute edit box. The target attribute description can include all the first candidate attribute descriptions selected by the user, and the target file attribute indicated by the target attribute description can include the first candidate file attribute indicated by the first candidate attribute description. The first candidate attribute description is any one of the multiple candidate attribute descriptions, and the selection operation can be a click operation.

[0352] For example, the multiple candidate attribute descriptions may include, but are not limited to: candidate format description, candidate genre description, and at least one of the following: "unrestricted". The candidate format description indicates the candidate file format, the candidate genre description indicates the candidate file genre, and the candidate attribute description "unrestricted" means that there are no restrictions on the file format or file genre. When multiple candidate attribute descriptions include candidate format descriptions and candidate genre descriptions, a user can select at least one first candidate format description from the multiple candidate attribute descriptions by clicking. In this case, the target attribute description can include all the first candidate format descriptions selected by the user, and the target file attribute indicated by the target attribute description includes the candidate file format indicated by each first candidate format description. Alternatively, a user can select at least one first candidate genre description from the multiple candidate attribute descriptions by clicking. In this case, the target attribute description can include all the first candidate genre descriptions selected by the user, and the target file attribute indicated by the target attribute description includes the candidate file genre indicated by each first candidate format description. Or, a user can select at least one first candidate format description and at least one first candidate genre description from the multiple candidate attribute descriptions by clicking. In this case, the target attribute description can include both the first candidate format description and the first candidate genre description selected by the user, and the target file attribute indicated by the target attribute description includes the candidate file format indicated by each first candidate format description and the candidate file genre indicated by each first candidate genre description. The first candidate attribute description mentioned above can be either a first candidate format description or a first candidate genre description.

[0353] Optionally, the first interface also displays a name editing box, which is used to set the folder name of the virtual folder.

[0354] Optionally, the folder name of the virtual folder may include the target topic description displayed in the file topic edit box. Alternatively, the folder name of the virtual folder may include not only the target topic description displayed in the file topic edit box, but also any one or more of the following: the target operation description displayed in the operation edit box, the target time description displayed in the time edit box, the target source description displayed in the file source edit box, and the target attribute description displayed in the file attribute edit box. It should be noted that if the content displayed in any of the file topic edit box, operation edit box, time edit box, file source edit box, and file attribute edit box is "unrestricted," then the content in that edit box will not be displayed in the folder name of the virtual folder. Based on this, users can set the file name by setting the target description in each edit box in the first interface.

[0355] Alternatively, users can directly enter the folder name of the virtual folder in the name edit box.

[0356] It should be noted that, in Embodiment 2, the target condition description set in the first interface can also be used to determine the folder name of the target virtual folder. Based on this, the first interface can also be the name editing interface in Embodiment 1 above, so as to set the folder name in the name editing interface. For details, please refer to the relevant description of setting the folder name in the name editing interface in Embodiment 1 above, which will not be repeated here.

[0357] S1720, in response to the target condition description set in the first interface, generate the target virtual folder.

[0358] In one possible implementation, the target condition description set in the first interface may include a target operation description, but may not include a target time description, a target topic description, a target source description, or a target source description.

[0359] In one embodiment, the electronic device can determine the target operation description and the target file operation indicated by the target operation description in response to a user's setting operation in the operation editing box. The user's setting operation in the operation editing box can be: the user inputting the target operation description in the operation editing box. For example, the user can input the target operation description "modified" in the operation editing box using the keyboard.

[0360] Alternatively, the user's settings in the operation editing box can be: the user's selection of the first candidate operation description in the first interface. For example, as shown in Figure 22, after the user clicks the drop-down combination button in the operation editing box, multiple candidate operation descriptions can be displayed. These multiple candidate operation descriptions are: creation time, modification time, access time, and no restriction. After the user clicks the first candidate operation description "access time", the target operation description displayed in the operation editing box is "access time", and the target file operation indicated by this target operation description is an access operation.

[0361] Optionally, one operation edit box can be used to set one operation description, and multiple operation edit boxes can be used to set multiple different operation descriptions, each operation description can be used to indicate a file operation. Based on this, when multiple operation edit boxes have multiple operation descriptions, the electronic device can determine that the target operation description includes multiple operation descriptions in the multiple operation edit boxes, and the target file operation indicated by the target operation description includes multiple file operations that correspond one-to-one with the multiple operation descriptions.

[0362] For example, if a user sets the operation description as "create" in one operation edit box and the operation description as "access time" in another operation edit box, the electronic device can determine that the target operation description includes "create" and "access time", and the target file operation indicated by the target operation description includes: creation operation and access operation.

[0363] In another possible implementation, the target condition description set in the first interface may include not only the target operation description, but also at least one of the target time description, target topic description, target source description, and target source description.

[0364] In one embodiment, the electronic device may determine the target time description and the target operation time indicated by the target time description in response to a user's setting operation in the time edit box.

[0365] In one example, a user's action in the time edit box could be: the user enters a description of the target time in the action edit box. For example, the user can enter "nearly one day" as the target time description in the time edit box using the keyboard.

[0366] In another example, the user's setting operation in the time edit box could be: the user's selection of the first candidate time description in the first interface. For example, after the user clicks the drop-down combination button in the time edit box, multiple candidate time descriptions can be displayed in the first interface, as shown in Figure 23. After the user clicks the first candidate time description "yesterday" among the multiple candidate time descriptions, the target time description displayed in the time edit box is "yesterday". Based on this, if the target operation description set in the operation edit box is "access time", then the target operation time indicated by the target time description is "the target access time corresponding to the access operation within the 24-hour range before the current time".

[0367] The electronic device can determine the target time description based on the target time description entered in the time edit box, and determine the target operation time indicated by the target file operation indicated by the target operation description entered in the operation edit box corresponding to the time edit box. The target time description is used to indicate the target operation time of the target file operation.

[0368] The target operation time may include: target modification time, target creation time, and / or target access time. For example, if the target file operation includes a creation operation, the target operation time may include the target creation time corresponding to the creation operation. If the target file operation includes a modification operation, the target operation time may include the target modification time corresponding to the modification operation. If the target file operation includes an access operation, the target operation time may include the target access time corresponding to the access operation. If the target file operation includes creation, modification, and access operations, the target operation time may include the target creation time corresponding to the creation operation, the target modification time corresponding to the modification operation, and the target access time corresponding to the access operation.

[0369] Optionally, the target creation time, target modification time, and target access time can each be a time period prior to the current moment, where the current moment can be the moment when the user triggers the creation of the virtual folder.

[0370] The target modification time can be a first time period, the duration of which is a first duration. The first time period includes a start time and an end time, and the first duration is the time between the start time and the end time of the first time period. The end time of the first time period can be the current time or a historical time preceding the current time. For example, if the target operation description set in the operation edit box is "Modify Time", and the target time description set in the corresponding time edit box is "Yesterday", then it can be determined that the target operation time indicated by the target time description includes the target modification time corresponding to the modification operation, the first time period corresponding to the target modification time is "the period between 0:00 and 24:00 yesterday", and the end time of the target modification time is "24:00 yesterday", which is a historical time preceding the current time.

[0371] The target access time can be a second time period, the duration of which is the second duration, which is the time between the start and end times of the second time period. The end time of the second time period can be the current moment or a historical moment preceding the current moment. For example, if the target time description entered in the operation edit box is "access time", and the target time description set in the corresponding time edit box is "the last two days", then it can be determined that the target operation time indicated by the target time description includes the target access time corresponding to the access operation, the second time period corresponding to the target access time is "the period between 0:00 yesterday and the current moment", and the end time of this target access time is the current moment.

[0372] The target creation time can be a third time period, the duration of which is the third duration from the start time to the end time of the third time period. The end time of the third time period can be the current moment or a historical moment preceding the current moment. For example, if the target time description entered in the operation edit box is "creation time", and the target time description set in the corresponding time edit box is "today", then it can be determined that the target operation time indicated by the target time description includes the target creation time corresponding to the creation operation, the third time period corresponding to the target creation time is "the period from 0:00 today to the current moment", and the end time of this target creation time is the current moment.

[0373] In one embodiment, the electronic device may determine the target topic description and the target file topic indicated by the target topic description in response to a user's setting operation in the file topic editing box.

[0374] Optionally, the user's settings in the file topic editing box can be as follows: the user enters a description of the target topic in the file topic input box. That is, the user can directly enter a description of the target topic in the file topic input box as needed to organize or search for the content of the file. For example, if the user wants to search for or organize mathematical materials on an electronic device, they can enter the description of the target topic "mathematics" or "mathematical materials" in the file topic input box.

[0375] Optionally, the user's settings in the file topic editing box can be: the user's selection of the first candidate topic description in the first interface.

[0376] Optionally, the target file topic indicated by the target topic description can be a target semantic vector of the target topic description. For example, the target topic description can be processed into a target semantic vector using a vector model such as BERT.

[0377] In one embodiment, the electronic device may determine the target source description and the target file source indicated by the target source description in response to a user's setting operation in the file source edit box.

[0378] Optionally, the user's settings in the file source edit box can be: the user enters a description of the target source in the file source input box, or the user selects a description of the first candidate source in the first interface.

[0379] For example, a user can enter the target source description "obtained from USB flash drive" in the file source edit box using the keyboard. The target file source indicated by this description is the first device, "USB flash drive". Alternatively, a user can click the drop-down combination keys in the file source edit box. The first interface can then display multiple candidate source descriptions, as shown in Figure 24. These candidate source descriptions can include QQ@, WeChat@, USB flash drive, browser, and are not limited to any one of these. If the user clicks the first candidate source description, "browser", the target source description displayed in the time edit box will be "browser", indicating that the target file source is the application "browser".

[0380] In one embodiment, the electronic device may determine the target attribute description and the target file attributes indicated by the target attribute description in response to a user's setting operation in the file attribute edit box.

[0381] Optionally, the user's input operation in the file attribute edit box can be: the user inputting the target attribute description in the file attribute edit box, or the user clicking on the first candidate attribute description in the first interface.

[0382] For example, a user can enter the target attribute description "PPT" in the file attribute edit box using the keyboard. This target attribute description indicates that the target file attribute is "PPT format". Or, if the user enters the target attribute description "PDF format contract", then the target file attribute indicated by the target attribute description includes: target file format "PDF format" and target file genre "contract". As another example, a user can click the drop-down combination button in the file attribute edit box. The first interface can display multiple candidate attribute descriptions, as shown in Figure 25. If the user clicks the first candidate attribute description "document", then the target attribute description displayed in the file attribute edit box is "document", and the target file attribute indicated by this target attribute description includes target file formats such as DOC and DOCX.

[0383] Optionally, the target condition description may also include a target name description, and the first interface may also display a file name edit box for setting the target name description. Based on this, the electronic device may also respond to the user's setting operation in the file name edit box on the first interface to determine the target name description and the target file name indicated by the target name description. The content of the target name description includes: the first part of the file name, the first beginning content of the file name, the first ending content of the file name, and the first name and / or first content related to the file name. Based on this, the characteristic conditions satisfied by the target file may also include: the target file name matches the target file name.

[0384] For example, when the content described by the target name includes the first part of the file name, matching the target file name means that the target file name includes the first part of the content. When the content described by the target name includes the first part of the file name, matching the target file name means that the target file name begins with the first part of the content. When the content described by the target name includes the first part of the file name, matching the target file name means that the target file name ends with the first part of the content. When the content described by the target name includes the file name being the first name, matching the target file name means that the target file name is the same as the first name. When the content described by the target name includes first content related to the file name, matching the target file name means that the similarity between the target file name and the first content is greater than or equal to a preset similarity threshold.

[0385] In this embodiment, the electronic device can filter out target files that match the target description in the target condition description set in the first interface from all stored files, and generate a target virtual folder based on the target condition description and the target file. In one possible implementation, the electronic device can specifically determine the target file and generate the corresponding target virtual folder through the methods in steps one and two below. The methods in steps one and two are described in detail below.

[0386] Step 1: In response to the target condition description set in the first interface, display a file list, which includes at least one target file.

[0387] It should be noted that, in this embodiment of the application, for files already stored in the electronic device, the electronic device can pre-calculate and store the characteristic information of each file. The characteristic information of each file may include the historical file operations corresponding to the file. Among them, the historical file operations of a certain file may include: all file operations performed by the electronic device on the file within the time range between the time when the file was generated and the current time (i.e., the time corresponding to the creation operation of the virtual folder).

[0388] For example, historical file operations performed by an electronic device on a file may include: creation operations, access operations, and / or modification operations.

[0389] Optionally, the feature information of each file may also include the historical operation time corresponding to the file. The historical operation time corresponding to a file can include the operation time corresponding to each of all file operations in the historical file operations for that file.

[0390] It should be noted that, in this embodiment of the application, if a file is modified and accessed multiple times within a preset time period, the electronic device can store the operation time corresponding to each modification operation and the operation time corresponding to each access operation. For example, the preset time period can be the past three days, the past week, or the past month. Alternatively, if a file is modified and accessed multiple times, the electronic device can store only the operation time corresponding to the most recent modification operation and the operation time corresponding to the most recent open operation. For example, the electronic device can store file metadata for each file, which may include the file's creation time and modification time. The modification time recorded in the metadata refers to the specific time when the content and / or format of the file was most recently modified, and the access time refers to the specific time when the file was most recently opened. Another example is that the application management system in the electronic device can store the access time of each file, which may be the specific time when the file was most recently accessed by an application in the electronic device.

[0391] Optionally, the feature information of each file may also include the file attributes. Exemplary file attributes may include: the file format (e.g., Word, text, PDF, Excel, PPT, image, audio, video, etc.), the file type (e.g., thesis, contract, etc.), etc.

[0392] Optionally, the file's source may also be included in the file's characteristic information. The file source may be a particular application or a primary device.

[0393] Optionally, the feature information of each file may also include the file topic, which indicates the main content of the file. Electronic devices can obtain semantic vectors for different types of files based on their type and content, and use these semantic vectors to represent the file topic.

[0394] In one example, for a text file stored in an electronic device, the semantic vector of the text file may include one or more of the following semantic vectors: the semantic vector corresponding to the content summary of the text file, the semantic vector corresponding to multiple keywords of the text file, the semantic vector corresponding to the file name of the text file, and the semantic vector corresponding to the content outline of the text file.

[0395] For example, when the content of a text file consists only of textual information, an electronic device can first extract the textual information from the text file and use the extracted textual information as a summary of the text file. Then, the content summary of the text file is input into a vector model such as BERT for processing to obtain a semantic vector of the text file summary. Here, the text file summary can represent the topic of the text file. Some vector models have a limited number of characters that can be input; therefore, the number or size of characters in the text file summary must meet the input requirements of the vector model. For example, a large language model (LLM) can be used to extract the textual information from the text file to obtain the content summary of the text file.

[0396] For example, when the content of a text file consists only of textual information, an electronic device can use algorithms such as term frequency-inverse document frequency (TF-IDF) or best match (BM) to extract the textual information from the text file, thereby obtaining multiple keywords from the text file. Inputting these multiple keywords into a vector model such as BERT can yield semantic vectors for the multiple keywords in the text file.

[0397] For example, when the content of a text file includes not only text information but also non-text information such as images, audio, animation, and / or video, the electronic device can obtain the semantic vector corresponding to the content summary of the text file through either method one or method two described below.

[0398] Method 1: Electronic devices can first convert various types of non-textual information in a text file into their corresponding textual information. Then, they can merge the textual information already present in the text file with the corresponding textual information of the non-textual information. Finally, they can process the merged textual information using vector models such as BERT to obtain the semantic vector of the text file's content summary. Alternatively, after merging the textual and non-textual information already present in the text file, the electronic device can first refine the merged textual information to reduce the amount of text. Then, the refined textual information can be input into a vector model for processing to obtain the semantic vector of the text file's content summary.

[0399] For example, for audio in a text file, automatic speech recognition (ASR) technology can be used to convert the audio content into computer-readable text information (such as binary encoding or character sequences). For images in a text file, optical character recognition (OCR) technology can be used to extract text from the image, or the content of the image can be described in text based on computer vision models such as image captioning models. For animation in a text file, the animation can be broken down into multiple frames, and the content of each frame can be described in text to obtain the corresponding text information for the animation. For video in a text file, the video can be broken down into multiple video frame data and audio data, and then each video frame data and audio data can be converted into text information.

[0400] Method 2: Electronic devices can use multimodal vector models to process both textual and non-textual information within text files, obtaining semantic vectors for the text files. Multimodal vector models can handle various input types, simultaneously processing text, images, video, audio, and animation to produce semantic vectors that summarize the content of the text file.

[0401] For example, when a text file contains not only text information but also non-text information such as images, audio, animation, and / or video, the electronic device can first convert each type of non-text information in the text file into its corresponding text information. Then, it can merge the text information already present in the text file with the corresponding text information from the non-text information, and use algorithms such as term frequency-inverse document frequency (TF-IDF) or best match (BM) to refine the merged text information, thereby obtaining multiple keywords from the text file. Inputting these multiple keywords into a vector model such as BERT can yield semantic vectors for the keywords in the text file.

[0402] For example, electronic devices can also use vector models such as BERT to process the file names of text files and obtain the semantic vectors corresponding to the file names of the text files.

[0403] For example, for text files with available content outlines, such as PDF, DOCX, DOC, and CAJ formats, vector models like BERT can be used to perform vector calculations on the content outlines of the text files, thereby obtaining semantic vectors of the content outlines.

[0404] In another example, for non-text files stored in an electronic device, such as image files, audio files, and video files, the device can process the non-text files using corresponding deep learning models to obtain semantic vectors. For instance, semantic vectors for image files can be obtained using a contrastive language-image pre-training (CLIP) model; semantic vectors for audio files can be obtained using speech feature extraction models such as wav2vec; and for video files, the video file can be first decomposed into audio files and multiple frame image files, and then a multimodal vector model can be used to obtain the semantic vectors for the video file.

[0405] In this embodiment of the application, the electronic device can determine the target file that matches the target condition description from all the stored files based on the target descriptions set in the first interface and the feature information of each stored file.

[0406] In one possible implementation, if the target condition description set in the first interface includes a target operation description but excludes a target topic description, target time description, target source description, and target source description, the electronic device can determine the target file from at least one file based on the target file operation indicated by the target operation description, and the target file operation is included in the historical file operations corresponding to the target file. Furthermore, the electronic device can display a list of files in the target virtual folder in real time on the file manager's display interface, and this list includes all target files.

[0407] For example, assuming the target condition set in the first interface is described as "modification time", the electronic device can determine that the target file operation indicated by the target operation description is a modification operation. Based on this, the historical file operations of each target file displayed in the file list should include the modification operation.

[0408] In another possible implementation, if the target condition description set in the first interface includes not only the target operation description, but also the target topic description, target time description, target source description, and at least one of the target source description, the electronic device can display the file list in real time in response to the target topic description set in the first interface, as well as the target time description, target source description, and / or target topic description set in the first interface.

[0409] It should be noted that the target files in the file list must conform to the target characteristics corresponding to all the target descriptions set in the first interface. For example, if the first interface not only sets a target operation description, but also any one of the target time description, target topic description, target attribute description, and target source description, then the characteristic conditions that the target file meets include not only: the target file operation is included in the historical file operation corresponding to the target file, but also one of the following conditions: the target operation time includes the historical operation time of the target file operation corresponding to the target file; the file topic of the target file matches the target file topic indicated by the target topic description; the first file attribute of the target file is the same as the target file attribute; and the file source of the target file is the same as the target file source.

[0410] For example, if the user sets the target operation mode, target topic description, target time description, target attribute description, and target source description in the first interface, the target file must simultaneously meet all of the following characteristic conditions: the target file's file topic matches the target file topic indicated by the target topic description; the target file's historical file operations include the target file operations; the target operation time includes the historical operation time of the target file's corresponding target file operations; the target file's first file attribute is the same as the target file attribute; and the target file's source is the same as the target file source.

[0411] In cases where target file operations include creation operations, the target operation time includes the target creation time corresponding to the creation operation, and the historical operation time of the target file operations corresponding to the target file is the creation time of the target file. The inclusion of the historical operation time of the target file operations corresponding to the target file in the target operation time means that the creation time of the target file falls within the third time period corresponding to the target creation time.

[0412] When the target file operation includes a modification operation, the target operation time includes the target modification time corresponding to the modification operation. Based on this, if the end time of the first time period indicated by the target modification time is a historical time prior to the current time, then the historical operation time of the target file operation corresponding to the target file can be: the modification time of any modification operation performed on the target file; if the end time of the first time period indicated by the target modification time is the current time, then the historical operation time of the target file operation corresponding to the target file can be: the modification time of the most recent modification operation performed on the target file.

[0413] For example, suppose a file in an electronic device was last modified at 12:00 yesterday, and its most recent modification occurred at 14:00 today. Based on this, if the first time period corresponding to the target modification time is "the period between 0:00 yesterday and 24:00 yesterday"—meaning the end time of the first time period is a historical time prior to the current moment—then the electronic device can determine that the file's historical modification time falls within the first time period corresponding to the target modification time and will use that file as the target file. However, if the first time period corresponding to the target modification time is "the period between 0:00 today and 12:00 today," then the electronic device can determine that the most recent modification occurred outside the first time period corresponding to the target modification time, and that file cannot be used as the target file.

[0414] When the target file operation includes an access operation, the target operation time includes the target access time corresponding to the access operation. Based on this, if the end time of the second time period indicated by the target access time is a historical time prior to the current time, then the historical operation time of the target file operation corresponding to the target file can be: the access time of any single access operation performed on the target file. Optionally, if the end time of the second time period indicated by the target access time is the current time, then the historical operation time of the target file operation corresponding to the target file can be: the access time of the most recent access operation performed on the target file.

[0415] In this embodiment, when the target file attribute is a target file format, the first file attribute of the target file can be the file format of the target file. Therefore, "the first file attribute of the target file is the same as the target file attribute" means that the file format of the target file is the same as the target file format. Optionally, if the target file attribute includes multiple target file formats, then "the first file attribute of the target file is the same as the target file attribute" means that the file format of the target file is the same as the first target file format among the multiple target file formats. Here, the first target file format can be any one of the multiple target file formats.

[0416] Optionally, when the target file attribute is a target file body, the first file attribute of the target file can be the target file body. Therefore, "the first file attribute of the target file is the same as the target file attribute" means that the target file body is the same as the target file body. Optionally, if the target file attribute includes multiple target file bodies, then "the first file attribute of the target file is the same as the target file attribute" means that the target file body matches the first target file body among the multiple target file bodies. The first target file body can be any one of the multiple target file bodies.

[0417] Optionally, when the target file attributes include at least one target file format and at least one target file body, the first file attribute of the target file may include the target file format and the file body. Based on this, "the first file attribute of the target file is the same as the target file attributes" means that the target file's file format is the same as the second target file format among the at least one target file format, and the target file's file body is the same as the second target file body among the at least one target file body. The second target file format is any one of the at least one target file format, and the second target file body is any one of the at least one target file body.

[0418] In this embodiment, matching the file topic of a target file with the target file topic indicated by the target topic description means that the degree of matching between the file topic of the target file and the target file topic indicated by the target topic description is greater than or equal to a preset similarity threshold. For example, an electronic device can convert the target topic description into a corresponding target semantic vector using a vector model, and use this target semantic vector to represent the target file topic. Based on this, the degree of matching between the file topic of a target file and the target file topic described in this embodiment refers to the degree of matching between the semantic vector of the target file and the target semantic vector corresponding to the target topic description. Matching the file topic of a target file with the target file topic means that the degree of matching between the semantic vector of the target file and the target semantic vector is greater than or equal to a preset matching threshold.

[0419] Optionally, the target file topic indicated by the target topic description in the folder name may include one or more file topics. When the target file topic includes multiple file topics, matching a target file's file topic with each of the target file topics means that the matching degree between the target file's file topic and each of the target file topics is greater than or equal to a preset matching degree threshold. In other words, the selected target file's file topic needs to match each of the target file topics.

[0420] For example, assuming the target virtual folder is named "Files Related to Art and Calligraphy", the electronic device can determine that the target topic description in the folder name is "Art and Calligraphy". The target topic description indicates that the target file topics include two file topics, namely the first file topic "Art" and the second file topic "Calligraphy". Based on this, the electronic device will select target files whose file topics match both the first file topic and the second file topic.

[0421] In this embodiment, the electronic device can display target files that match each target description set by the user in the first interface in real time in the content pane of the file manager. That is, each time a new target description is added to the first interface, the electronic device can update the target files displayed in the file manager's display interface according to the new target description, so that the displayed target files conform to the target characteristics indicated by the target description entered in the first interface.

[0422] Optionally, the first interface may also display the number of target files in the file list.

[0423] For example, refer to the file manager display interface diagrams shown in Figures 22 to 25. As shown in Figure 22, assuming the electronic device determines 7 target files matching the target file theme from all stored files based on the target theme description "traditional culture" entered by the user in the file theme edit box, the file information of the 7 target files can be displayed in the content pane. The 7 target files are target files 1 to 7 as shown in Figure 22. Based on this, as shown in Figures 22 and 23, if the user enters the target operation description "access time" in the operation edit box and the target time description "yesterday" in the time edit box, the electronic device can filter target files from target files 1 to 7 that match the target operation description and the target time description. If the access time of the most recent access to target files 1 to 5 in the metadata is within the time range of 0:00 to 24:00 yesterday, and the access time of the most recent access to target files 6 and 7 in the metadata is not within the time range of 0:00 to 24:00 yesterday, the electronic device can update the file list displayed in the content pane. The updated file list includes the file information of target files 1 to 5.

[0424] Furthermore, as shown in Figure 24, if the user continues to enter the target source description "browser" in the file source edit box, the electronic device can obtain the file sources of target files 1 to 5. If target files 1 to 4 are obtained from the application's browser through download or other means, and the file source of target file 5 is not a browser, the electronic device can update the file list displayed in the content pane again, as shown in Figure 24. The updated file list includes target files 1 to 4. Based on this, as shown in Figure 25, if the user enters the target attribute description "document" in the file attribute edit box, the target file attribute indicated by "document" is the target file format, which includes DOCX and DOC formats. The electronic device detects that target file 1 is in DOC format, target files 2 and 3 are in DOCX format, and target file 4 is in PPT format, which does not match the target file attribute indicated by the target attribute description "document". Therefore, the electronic device can update the file list again, and the updated file list only displays the file information of target files 1 to 3.

[0425] Optionally, the first interface may display a quantity prompt, which includes the number of all target files in the file list. The quantity prompt will be adjusted as the number of target files in the file list changes. For example, as shown in Figures 24 and 25, when the number of target files displayed in the content pane is adjusted from 4 to 3, the quantity prompt displayed in the first interface will change from "Found 4 files that match the rules" to "Found 3 files that match the rules".

[0426] Optionally, if the electronic device does not find a target file in the stored files that matches the target condition description set in the first interface, the first interface may display a count prompt message such as "0 empty files found that match the rules".

[0427] In another embodiment, the electronic device can also adjust the target files in the file list in real time based on the user's adjustment operation on a certain target description that has been set during the process of setting the target condition description.

[0428] For example, referring to the display interface diagram shown in Figure 21, after the user clicks on the first candidate topic description "Anthropology", the target topic description displayed in the file topic editing box includes "Anthropology". Based on this, the electronic device can use the target semantic vector corresponding to the target topic description "Anthropology" as the target file topic indicated by the target topic description. If the electronic device determines three target files whose file topics match the target file topics, it can display the three target files in the content pane of the file manager, as shown in Figure 21a. The three target files that match the target file topic "Anthropology" are target file 1, target file 2, and target file 3. In addition, the first interface can also display the quantity prompt message "3 files that meet the rules found" to remind the user that the number of target files selected is 3.

[0429] Furthermore, as shown in Figure 21b, if the user deletes the target topic description "Anthropology" in the file topic edit box, the target file will not be displayed in the content pane. Simultaneously, the first interface can display a quantity prompt "0 files found matching the rules" to remind the user that no target files were found. Building on this, if the user clicks on the first candidate topic description "Environment," the target topic description displayed in the file topic edit box will be "Environment." Based on this, the electronic device can use the target semantic vector corresponding to the target topic description "Environment" as the target file topic and search for target files matching this topic from the stored files, as shown in Figure 21c. If the electronic device identifies two target files matching the target file topic, the file information of the two target files can be displayed in the content pane. The two target files are target file 4 and target file 5. In addition, the first interface can display a quantity prompt "2 files found matching the rules" to remind the user that the number of selected target files is 2. The file information of each target file can include: the file name of each target file, the last modification date of the target file, the file format of the target file, and the size of the target file, etc.

[0430] Based on the file management method provided in this application embodiment, the electronic device can display target files matching the target topic description in the file manager in real time according to the target topic description entered by the user. This allows the user to check in a timely manner whether the target file they want to find exists on the electronic device, and whether the filtered target files are the files they want to find or organize. If there are no target files matching the target topic description entered by the user on the electronic device, or if the target files filtered based on the entered target topic description are not the files the user wants to find, the user can adjust the target topic description set in the first interface in a timely manner.

[0431] Optionally, a folder name edit box can also be displayed in the first interface, which is used to set the folder name of the target virtual folder.

[0432] In one example, the electronic device can determine the folder name of the target virtual folder based on the target topic description entered in the file topic edit box, and display the folder name in the folder name edit box. The folder name can include a topic description, which can be the target topic description or the first topic description set in the first interface. Both the first topic description and the target topic description indicate the same target file topic.

[0433] For example, the first topic description can be a shortened version of the target topic description entered in the file topic edit box, thus avoiding the folder name from exceeding the preset character limit. For instance, if the user enters "files related to artificial intelligence" in the file topic edit box, the electronic device can shorten the target topic description to obtain the first topic description "artificial intelligence" and display the first topic description "artificial intelligence" as the folder name of the target virtual folder in the virtual folder name edit box. Alternatively, the first topic description can be an adjusted version of the target topic description entered in the file topic edit box. For instance, if the user enters "history and humanities" in the file topic edit box, the electronic device can adjust the target topic description to the first topic description "history and humanities" and display the first topic description in the virtual folder name edit box.

[0434] It should be noted that in this example, the user can adjust the target theme description entered in the file theme edit box. The electronic device can adjust the folder name displayed in the virtual folder name edit box according to the change in the target theme description set in the file theme edit box. The user can also adjust the folder name displayed in the virtual folder name edit box, and the target theme description in the file theme edit box will not change with the folder name.

[0435] In another example, the folder name of the target virtual folder can include not only a topic description, but also an operation description, a time description, a source description, and / or an attribute description. The operation description can be the target operation description or the first operation description already set in the first interface; both indicate the target file operation. The time description can be the target time description or the first time description already set in the first interface; both indicate the target operation time. The source description can be the target source description or the first source description already set in the first interface; both indicate the source of the target file. The attribute description can be the target attribute description or the first attribute description already set in the first interface; both indicate the target file attributes.

[0436] For example, the first operation description can be a reduced version of the target operation description. The first time description can be a reduced version of the target time description. The first source description can be a reduced version of the target source description. The first attribute description can be a reduced version of the target attribute description.

[0437] Step 2: In response to the confirmation operation of the target file description, generate the target virtual folder.

[0438] In one embodiment, a confirmation control may also be provided in the first interface. The user's confirmation operation on the target condition description in the first interface can be a click operation on the confirmation control. For example, as shown in Figure 26a, the confirmation control can be a "Create Virtual Folder" control.

[0439] After the user completes the input of each target description in the target condition description on the first interface, they can click the confirmation control. The electronic device will then generate the corresponding target virtual folder based on the target condition description and the file list displayed in the content pane. For example, as shown in Figure 26b, after the user clicks the "Create Virtual Folder" control, the file manager's content pane will display the file list of the target virtual folder, showing file information for multiple target files.

[0440] Optionally, the target topic description from the target file description can be displayed above the file list. For example, referring to Figures 26a and 26b, the target condition description set by the user in the first interface includes: target topic description "traditional culture", target time description "access time" and "yesterday", target source description "browser", and target attribute description "document". However, after the user clicks the "Create Virtual Folder" control, the keyword information above the file list is "keyword: traditional file", which only includes the target topic description "traditional culture".

[0441] Alternatively, the file list can display all target descriptions in the target file description. For example, if the target conditions set by the user in the first interface include: target theme description "traditional culture", target time description "access time" and "yesterday", target source description "browser", and target attribute description "document", then after the user clicks the "Create Virtual Folder" control, the keyword information displayed above the file list can be "keywords: traditional file, access time, yesterday, browser, document", which includes the target theme description, target time description, target source description, and target attribute description.

[0442] Optionally, as shown in Figure 26b, if the user creates a virtual folder in the file manager for the first time, that is, if there is no existing virtual folder on the current electronic device, the electronic device can generate a "Virtual Folder" toolbar in the navigation pane based on the confirmation operation described in the target file. The generated virtual folder directory may not be displayed under the "Virtual Folder" toolbar.

[0443] Optionally, if this is not the first time a user has created a virtual folder in the file manager—that is, if virtual folders have already been created on the electronic device and the "Virtual Folders" toolbar is already displayed in the navigation pane—clicking the "Virtual Folders" toolbar will display folder information for all created virtual folders and the number of created virtual folders in the content pane. The electronic device can respond to the user's click on the folder information of a specific virtual folder in the content pane by displaying a list of files for that virtual folder in the content pane.

[0444] The folder information of a virtual folder may include, but is not limited to: the folder name of the virtual folder, the description of the target conditions corresponding to the virtual folder, the time of the last update of the file list in the virtual folder, and the number of files in the virtual folder.

[0445] For example, referring to the display interface diagram shown in Figure 27, after the user clicks the "Virtual Folder" toolbar, the content pane displays the folder information of all virtual folders created on the electronic device. The information "2 items" displayed after "Virtual Folder" can be used to indicate that the number of virtual folders created on the electronic device is 2. The content pane also displays two information boxes, namely the first information box and the second information box. The first information box displays the folder name of virtual folder 1, "Traditional Culture", the keyword "Traditional Culture", the update time "xx year x month x day 11:00", and the number of files "3". Among them, the keyword includes the target topic description in the target condition description corresponding to virtual folder 1, the update time is the time when the file list of virtual folder 1 was last updated, and the number of files is used to indicate the number of files in virtual folder 1. The second information box displays the folder name "Study Materials" for virtual folder 2, the keyword "Mathematics", the update time "xx year x month x day 11:00", and the number of files "4". The keyword includes the target topic description in the target condition description corresponding to virtual folder 2, the update time is the time when the file list of virtual folder 2 was last updated, and the number of files is used to indicate the number of files in virtual folder 2.

[0446] Based on the method provided in the above embodiments of this application, users can set various target descriptions in the target condition description in the first interface using natural language, or set target condition descriptions based on various candidate descriptions displayed in the first interface, according to the feature information of the files they want to find or organize. The electronic device can determine the various target features indicated by the various target descriptions in the target condition description and use each target feature as a filtering condition for target files, thereby displaying the target files in the content pane. This allows users to quickly find the required target files from the electronic device even if they cannot accurately remember the storage path, file name, and specific content of the files they want to find or organize, improving the efficiency and accuracy of file searching. In addition, the target files displayed in the content pane can be updated in real time as the target descriptions set by the user in the first interface change, allowing users to promptly check whether the filtered target files are the files they want to find or organize, and to adjust the target file descriptions in a timely manner if the filtered target files do not meet the user's requirements.

[0447] Based on the file management method provided in Embodiment 2, after step S1720, the electronic device can further display a file list of the target virtual folder in response to the open operation of the generated target virtual folder. This file list includes at least one target file that matches the target condition description of the target virtual folder. For example, as shown in FIG27, the open operation of the target virtual folder can be a click operation on the information box of the target virtual folder. The click operation can be a single click or a double click.

[0448] In one possible implementation, for a virtual folder already created in the file manager, the user can adjust at least one target description in the target condition description of the virtual folder. Correspondingly, the electronic device can also update the file list of the target virtual folder in response to the modification operation of the target condition description.

[0449] The modification operation of a folder name can be: a deletion, addition, and / or modification operation of at least one of the target descriptions in the target condition description, including the target topic description, target operation description, target time description, target source description, and target attribute description. The target file topic indicated by the modified target topic description differs from that indicated by the original target topic description. The target file operation indicated by the modified target operation description differs from that indicated by the original target operation description. The target operation time indicated by the modified target time description differs from that indicated by the original target time description. The target file source indicated by the modified target source description differs from that indicated by the original target source description. The target file attribute indicated by the modified target attribute description differs from that indicated by the original target attribute description.

[0450] Optionally, the electronic device can also update the folder name in response to an adjustment operation on the folder name of the created target virtual folder. For example, the user can modify the folder name of the target virtual folder in the information box of the target virtual folder through a rename operation; or, the user can adjust the folder name of the target virtual folder in the first interface corresponding to the target virtual folder.

[0451] For example, referring to Figure 28, which illustrates a scenario of updating the file list of a target virtual folder, assuming a user needs to adjust the file list of a target virtual folder named "Study Materials," as shown in Figure 28a, the user can right-click in the second information box, and a shortcut menu will appear in the content pane. After clicking the shortcut option "Modify Keywords" in the shortcut menu, the file manager's display interface will show the first interface. As shown in Figure 28b, this first interface includes the target condition description "Mathematics" entered by the user when the target virtual folder was last created, as well as the folder name "Study Materials." The user can adjust the target condition description, target operation description, target time description, target source description, target file attribute description, and / or folder name in the first interface. As shown in Figures 28b and 28c, assuming the user changes the description "Unrestricted" in the file properties edit box to "PPT", and the electronic device detects that target files 1 and 2 in the file list are both in DOC format and do not match the target file format "PPT format" indicated by the target file properties, while target files 3 and 4 are both in PPT format, then the electronic device can update the file list displayed in the content pane. The updated file list will only include target files 3 and 4. After the user clicks the "Create Virtual Folder" control, the electronic device can generate an updated target virtual folder "Study Materials" based on the updated file list.

[0452] In another possible implementation, for virtual files already created in the file manager, the user can adjust the target files in the virtual folder according to their needs or preferences. Correspondingly, the electronic device can update the displayed file list based on the user's adjustments to the target files in the virtual folder.

[0453] In one embodiment, a user's adjustment operation on a target file in a target virtual folder can be an operation to move a first target file out of the target virtual folder. The first target file can be any target file within the target virtual folder. The electronic device can update the file list of the target virtual folder based on the user's operation of moving the first target file out of the target virtual folder, meaning that the file information of the first target file will no longer be displayed in the updated file list.

[0454] Optionally, the electronic device can also, based on the operation of moving the first target file out of the target virtual folder, filter out other target files with similar characteristics to the first target file from the current file list, and then move the first target file and other target files with similar characteristics to the first target file out of the file list of the target virtual folder at the same time, so as to update the file list.

[0455] Specifically, in one implementation, based on the target topic description in the target condition description of the target virtual folder, the electronic device can determine a second target file from at least one target file and remove both the first and second target files from the file list, wherein the first feature of the second target file matches the first feature of the first target file.

[0456] In this implementation, the target topic description indicates the topic of the target file, and the first feature can be a sub-topic of the target file topic. For example, if the target topic description indicates the target file topic as "mathematics," then the first feature can be a sub-topic of linear algebra, differential calculus, geometry, or other types of sub-topics; if the target topic description indicates the target file topic as "traditional culture," then the first feature can be a sub-topic of calligraphy, traditional festivals, or traditional Chinese painting. Matching the first feature of the second target file with the first feature of the first target file means that the sub-topic of the second target file is the same as the sub-topic of the first target file, or the similarity between them is greater than a preset first similarity threshold. Specifically, the similarity between the sub-topics of the second target file and the sub-topics of the first target file can be the cosine similarity between the vectors of the sub-topics of the second and first target files.

[0457] For example, the sub-file topics of the second target file can be processed using vector models such as BERT to obtain vectors of the sub-file topics of the second target file. Similarly, the sub-file topics of the first target file can be processed using vector models such as BERT to obtain vectors of the sub-file topics of the first target file.

[0458] Furthermore, after updating the file list of the target virtual folder, the electronic device can also update the number of files in the information box corresponding to the target virtual folder in the content pane.

[0459] As an example and not a limitation, Figure 29 is a schematic diagram of a scenario for updating a file list provided by an embodiment of this application. As shown in Figure 29a, assuming that the target virtual folder named "Traditional Culture" contains three target files, the file names of the three target files are target file 1, target file 2, and target file 3, respectively, and the target theme description in the folder name indicates that the target file theme is "Traditional Culture", based on this, after the user right-clicks on the location of target file 3, a shortcut menu can be displayed in the interface. The user can click the shortcut option "Do not display in this folder" in the shortcut menu to move target file 3 out of the target virtual folder. Further, assuming that the sub-file theme (i.e., the first feature) of target file 3 is calligraphy, based on this, the electronic device can also compare the sub-file themes of target file 1 and target file 2 with the sub-file themes of target file 3 respectively. If it is determined that the sub-file theme of target file 2 is the same as the sub-file theme of target file 3 and both are calligraphy, then the electronic device can move both target file 2 and target file 3 out of the target virtual folder and update the file list of the target virtual folder. As shown in Figure 29b, the updated file list no longer displays the file information of target file 2 and target file 3, and the electronic device can adjust the number of target files displayed in the status bar from 3 to 1.

[0460] In another implementation, the target condition description of the target virtual folder also includes a target attribute description. If the target file attribute indicated by the target attribute description is a target file genre, the electronic device can determine a third target file from at least one target file and remove both the first and third target files from the file list. In this implementation, the second characteristic of the third target file is the same as the second characteristic of the first target file; the second characteristic is a sub-genre of the target file genre. For example, if the target file genre is "paper," the second characteristic could be a journal article, conference paper, dissertation, or other sub-genre.

[0461] In another implementation, the electronic device can store a deep learning model (e.g., a random forest model) corresponding to each target virtual folder. When a user moves a first target file out of a target virtual folder, the electronic device can use the deep learning model corresponding to that target virtual folder to process the feature information of all target files in that folder. This allows it to determine at least one second target file that matches the first target file's first feature, and / or at least one third target file that has the same second feature as the first target file. The first, second, and third target files are then moved out of the target virtual folder's file list. The types of the first and second features can be referred to the relevant descriptions in the above implementation methods, and will not be repeated here.

[0462] Optionally, the first and second features in the above implementations can be user-defined. The electronic device can update the file list of the target virtual folder in response to the operation of moving the first target file out of the target virtual folder and the semantic blacklist set for the target virtual folder. The semantic blacklist includes at least one feature description, and the updated file list includes files that match the target condition description of the target virtual folder but do not match the first feature description in the semantic blacklist. The first feature description is any feature description in the feature blacklist.

[0463] For example, the first feature description can be a topic description or a genre description. The topic description is used to indicate the first feature. For example, the topic description can be a description indicating the topic of a file, such as "similar algebra files" or "similar calligraphy files." Here, "similar algebra files" indicates the first feature "algebra," and "similar calligraphy files" indicates the first feature "calligraphy." When the first feature description is a topic description, if the cosine similarity between the vector corresponding to the file's topic and the vector of the first feature description is greater than or equal to a preset first similarity threshold, then it can be determined that the file matches the first feature description.

[0464] The genre description can be used to indicate the second feature. For example, the genre description can be a description such as "similar conference papers" or "similar contracts" to indicate the genre of the document. In this case, "similar conference papers" indicates the second feature "conference papers," and "similar contracts" indicates the second feature "contracts." When the first feature description is a genre description, if the document's genre is the same as the document genre indicated by the first feature description, then the document can be determined to match the first feature description.

[0465] In another embodiment, the user's adjustment operation on the target file in the target virtual folder can be an operation of moving a first file into the target virtual folder. The electronic device can update the file list of the target virtual folder based on the operation of moving the first file into the target virtual folder, so that the updated file list of the target virtual folder displays the file information of the first file. Here, the first file moved by the user is a file stored in the electronic device that is not displayed in the file list of the target virtual folder. The characteristic information of the first file can match the target condition description of the target virtual folder, or it can not match the target condition description of the target virtual folder.

[0466] As an example and not a limitation, Figure 30 is a schematic diagram of a scenario for updating a file list according to an embodiment of this application. As shown in Figure 30a, after the user opens the "Documents" folder, the content pane can display the file information of file 4 and file 5. After the user right-clicks the location of file 4, a first-level shortcut menu can be displayed. When the user clicks the menu option "Add to Virtual Folder" in the first-level shortcut menu, a second-level shortcut menu can be displayed. The second-level shortcut menu displays the folder names of each virtual folder created in the electronic device. After the user clicks the folder name "Traditional Culture" in the second-level shortcut menu, the electronic device can move file 4 into the target virtual folder "Viewed Traditional Culture Materials" and update the file list of the target virtual folder. As shown in Figure 30b, after the user opens the target virtual folder, the updated file list adds the file information of file 4, and the electronic device can also adjust the number of target files displayed in the status bar to 4.

[0467] It should be noted that a real folder is a physical folder that actually exists in the system directory of an electronic device. A real folder has a fixed physical location and is stored on the hard drive or other storage media of the electronic device. Two files with the same name and file format cannot exist in the system directory corresponding to the same real folder. A virtual folder, on the other hand, does not exist in a real system directory on the electronic device and has no specific physical location. It does not occupy storage space on the hard drive or other storage media of the electronic device. Therefore, the file list of a virtual folder displays shortcuts (e.g., virtual Uniform Resource Identifiers (URIs)) for files stored at a specific physical location. Furthermore, multiple files with the same name and file format can exist simultaneously in the same virtual folder. The phrase "moving a target file out of a target virtual folder" described in the above embodiments of this application means that the shortcut for that target file is not displayed in the file list of the target virtual folder. The phrase "moving a file into a target virtual folder" described in the above embodiments means that the shortcut for that file is displayed in the file list of the target virtual folder.

[0468] It should also be noted that, as shown in Figure 30a, users can perform any operation on files in a real folder, such as deleting, copying, cutting, opening, and modifying. However, users have limited operations on files in a virtual folder. As shown in Figure 29a, users can open, copy, and move files out of the virtual folder, but they cannot delete, cut, share, or rename files in the virtual folder, nor can they paste files stored in a physical location into the virtual folder.

[0469] Optionally, in response to the operation of moving the first file into the target virtual folder, the electronic device may also filter out other files with similar characteristics to the first file from all stored files, then move the first file and other files with similar characteristics to the first file into the target virtual folder, and update the file list of the target virtual folder. The updated file list includes the target file that matches the target condition description of the target virtual folder, the first file, and other files with similar characteristics to the first file.

[0470] In one example, other files with similar characteristics to the first file mentioned above may include: files matching a third characteristic of the first file and / or files matching a fourth characteristic of the first file. Both the third and fourth characteristics can be determined by the electronic device based on feature descriptions in a semantic whitelist of the target virtual folder set by the user. The electronic device can update the file list of the target virtual folder in response to the operation of moving the first file into the target virtual folder and the semantic whitelist set for the target virtual folder. The semantic whitelist includes at least one feature description, and the updated file list includes: target files matching the target condition description of the target virtual folder and files matching the second feature description in the semantic whitelist. The second feature description is any feature description in the semantic whitelist.

[0471] For example, the second feature description can be a topic description or a genre description. The topic description in the semantic whitelist is used to indicate the third feature. For example, the topic description can be a description such as "similar Chinese paintings" to indicate the topic of the file, where "similar Chinese paintings" indicates the third feature "Chinese painting". When the second feature description is a topic description, if the cosine similarity between the vector corresponding to the file's topic and the vector of the second feature description is greater than or equal to a preset second similarity threshold, then it can be determined that the file matches the second feature description.

[0472] The genre description is used to indicate the fourth feature. For example, the genre description could be a description such as "similar tenders" to indicate the document genre, where "similar tenders" indicates the fourth feature as "tender". If the second feature description is a genre description, and the document's genre is the same as the document genre indicated by the second feature description, then the document can be determined to match the second feature description.

[0473] Based on this optional method, users can set the topic description in the semantic whitelist based on the main content or central idea of ​​the files they want to display in the file list of the target virtual folder, and / or set the genre description in the semantic whitelist based on the file genre of the files they want to display in the file list of the target virtual folder, thereby adjusting the files displayed in the target virtual folder through the semantic whitelist.

[0474] In another possible implementation, for any virtual folder already created in the file manager, the electronic device can determine and store a blacklist corresponding to the virtual folder based on at least one first target file moved out of the virtual folder by the user, and can also determine and store a whitelist corresponding to the virtual folder based on at least one first file moved into the virtual folder by the user. Based on this, the electronic device can, in response to an update command for a created target virtual file, obtain the whitelist and / or blacklist corresponding to the target virtual folder, wherein the whitelist includes file information of at least one first file moved into the target virtual folder by the user, and the blacklist includes file information of at least one first target file moved out of the target virtual folder by the user; the electronic device can also update the file list of the target virtual folder based on the files in the whitelist and / or blacklist and the folder name of the target virtual folder.

[0475] Specifically, if the electronic device obtains the whitelist of the target virtual folder but not its blacklist, the updated file list includes all files in the whitelist. If the electronic device obtains the blacklist of the target virtual folder but not its whitelist, the updated file list does not include any files in the blacklist. If the electronic device obtains both the whitelist and blacklist of the target virtual folder, the updated file list includes all files in the whitelist but not all files in the blacklist.

[0476] It should be noted that duplicate files are not allowed in the whitelist and blacklist of each virtual folder. If a user adjusts the files displayed in the file list of a virtual folder and removes a file from the file list, but the removed file is included in the whitelist of that virtual folder, the electronic device can simultaneously adjust both the whitelist and blacklist of that virtual folder. This will ensure that the removed file is included in the adjusted blacklist and not included in the adjusted whitelist. Conversely, if a user adjusts the files displayed in the file list of a virtual folder and moves a file into the file list, but the moved file is included in the blacklist of that virtual folder, the electronic device can also simultaneously adjust both the whitelist and blacklist of that virtual folder. This will ensure that the moved file is included in the adjusted whitelist and not included in the adjusted blacklist.

[0477] In one embodiment, the update instruction for the target virtual folder may be triggered when the user opens the target virtual folder.

[0478] In one example, when the electronic device detects that a user has opened the target virtual folder for the first time or not, it can generate an update instruction. According to the update instruction, the electronic device can re-acquire the feature information of each file in the electronic device based on the method in step S1720 above, and based on the re-acquired feature information, determine at least one target file from all stored files that matches the target condition description of the target virtual folder. Then, based on the determined at least one target file and the blacklist and / or whitelist corresponding to the target virtual folder, a file list of the target virtual folder is displayed. The file list includes: file information of all first files in the whitelist, and file information of at least one target file other than the first target file in the blacklist. Based on the method in this embodiment, the target files displayed in the file list can match both the target features indicated by each target description in the target condition description of the target virtual folder and the user's settings preferences for the target virtual folder.

[0479] It should also be noted that for a target virtual folder that has been generated but not opened by the user, if the user moves files into the target virtual folder, the electronic device can store a whitelist corresponding to the target virtual folder. Based on this, when the electronic device detects that the user has opened the target virtual folder for the first time, it can also display the file list of the target virtual folder based on the whitelist corresponding to the target virtual folder.

[0480] In another example, when an electronic device detects that a user has opened a target virtual folder before, it can generate an update command and update the file list of all created virtual folders in the virtual folder directory according to the update command and the blacklist and / or whitelist corresponding to the target virtual folder.

[0481] In another embodiment, the update instruction for the target virtual file can be triggered at a preset time. Specifically, the number of files stored in the electronic device and the content of the files will change as the user's historical operations on the files increase. Furthermore, while the modification time, access time, and creation time in the file metadata of each file remain unchanged, the time intervals between the modification time and the current time, the access time and the creation time will all change over time. Based on this, for virtual folders already created in the file manager, the electronic device can periodically re-acquire the characteristic information of all files and periodically update the file list of all virtual folders.

[0482] For example, assuming the preset time is 00:00 every day, the electronic device, when powered on, can re-acquire the feature information of all files at 00:00 each day and update the file lists of all virtual folders. Furthermore, if the electronic device is powered off at 00:00 on a given day, after switching from powered off to powered on, it can determine whether the file lists of each virtual folder were updated at 00:00 that day. If it is determined that the file lists of each virtual folder were not updated at 00:00, the electronic device can re-acquire the feature information of all files after powering on and update the file lists of all virtual folders.

[0483] In another embodiment, the update instruction for the target virtual file may be triggered when the electronic device performs a new file operation on a file. For example, the new file operation may be a modification operation or an access operation. Specifically, after the electronic device performs a new file operation on a file, it can generate an update instruction. Based on this update instruction, the electronic device can re-acquire the file's feature information and determine whether the file's feature information matches the target condition description of each virtual folder. Then, if the file's feature information matches the target condition description of a target virtual folder, the file list of that target virtual folder is updated.

[0484] For example, if the file's feature information matches the target condition description of a target virtual folder, and the file is not included in the file list of that target virtual folder, then the file can be added to the file list of that target virtual folder. If the file's feature information does not match the target condition description of a target virtual folder, but the file is included in the file list of that target virtual folder, then the file can be removed from the file list of that target virtual folder. It should be noted that the target condition description of the target virtual folder includes at least one target description, and each target description indicates a target feature. As described in the embodiments of this application, matching the file's feature information with the target condition description of the target virtual folder means that the file's feature information matches each target feature indicated by each target description in the target condition description.

[0485] Optionally, after the electronic device automatically updates the file list of the target virtual folder at a preset time, or after the electronic device automatically updates the file list of the target virtual folder when a new file operation is performed on a certain file, if the user has not opened the target virtual folder, the electronic device can display an update prompt message for the target virtual folder. The update prompt message can be used to remind the user that the electronic device has automatically updated the file list of the target virtual folder, and the user has not yet opened the target virtual folder after the update. At the same time, the electronic device can adjust the update time displayed in the information box of the target virtual folder, and the adjusted update time is the time of the most recent update of the file list of the target virtual folder.

[0486] For example, the update notification may include an illustrative tooltip (e.g., a dot of a preset color), a text notification, and / or a first display effect. For instance, the illustrative tooltip could be a dot notification “·”, where the “·” is red or another color. The text notification could be the text “Updated but not opened.” The first display effect could be: the target virtual folder’s identifier is brighter than other virtual folders, or the target virtual folder’s identifier, which has been updated but not opened by the user, flashes. The target virtual folder’s identifier could be an information box or the folder name of the target virtual folder.

[0487] Optionally, an update notification can be displayed in the information box of the target virtual folder. For example, an update notification can be displayed after the folder name in the information box of the target virtual folder.

[0488] Optionally, for a target virtual folder displaying update notification information, if a new target file is added to the updated file list of the target virtual folder after the user opens it, the file manager's content pane can also display file notification information. This file notification information may include the file identifier of the newly added target file in the updated file list, such as the file name. And / or, if files are removed from the updated file list of the target virtual folder compared to the previous file list, the file notification information displayed in the file manager's content pane may also include the file identifier of the removed file. Here, the file identifier can be the file name.

[0489] For example, the file hint message could be a dotted hint "·", the color of which could be red or another color, and the dotted hint message could be displayed after the filename of the newly added target file. Alternatively, in addition to displaying the updated file list, the content pane could also display a comment bar, which could be located to the right, left, or bottom of the file list, displaying the filename of the newly added target file and other file information.

[0490] For example, Figure 31 is a schematic diagram of a scenario for updating a file list provided in an embodiment of this application. Assume that a virtual folder named "Traditional Culture" has been created in the electronic device. The target conditions description of this virtual folder includes: target topic description "Traditional Culture", target operation description "Access Time", target time description "Last Day", target source description "Browser", and target attribute description "Document". The file list of this virtual folder includes three target files, namely target file 1, target file 2, and target file 3, and the most recent update time of this virtual folder is "xx year x month x day 11:00".

[0491] Based on this, if a user downloads and opens file 6 through a browser on an electronic device at 12:00 on the same day, and file 6's subject is "Chinese Traditional Culture" and its file format is "DOC," the electronic device can automatically detect whether file 6's feature information matches the target features indicated by all target descriptions in the target condition description of the virtual folder "Traditional Culture." If the electronic device detects that file 6's subject matches the target file subject indicated by the target subject description, the access time in file 6's file metadata is within the target operation time range, file 6's source matches the target file source indicated by the target source description, and file 6's file format matches the target file attributes indicated by the target attribute description, then the electronic device can add file 6 as a target file to the file list of the target virtual folder "Traditional Culture." Based on this, as shown in Figure 31a, when the user does not open the automatically updated target virtual folder "Traditional Culture", an update prompt "·" appears after the folder name "Traditional Culture" in the information box of the target virtual folder, and the update time is changed from "xx year x month x day 11:00" to "xx year x month x day 12:00", and the number of target files is changed from 3 to 4, to remind the user that the electronic device has updated the file list of the target virtual folder at 12 o'clock. As shown in Figure 31b, after the user opens the updated target virtual folder "Traditional Culture", the updated file list includes target file 1, target file 2, target file 3, and target file 6. Among them, the file name of target file 6 can display the file prompt "." to remind the user that target file 6 is a newly added target file. Based on this, as shown in Figure 31c, after the user clicks the "Virtual Folder" toolbar in the navigation pane again, the update prompt information is no longer displayed after the folder name of the target virtual folder "Traditional Culture" displayed in the content pane.

[0492] In other possible implementations, for a virtual folder already created in the file manager, the electronic device can respond to an open operation of the target virtual folder by displaying a first file list of the target virtual folder. The files displayed in the first file list can be determined based on the target condition description of the target virtual folder and a first exception condition corresponding to the target virtual folder, or based on the target condition description of the target virtual folder and a second exception condition corresponding to the target virtual folder, or based on the target condition description of the target virtual folder, the first exception condition corresponding to the target virtual folder, and the second exception condition corresponding to the target virtual folder. The following describes these three methods of displaying the first file list in detail through different embodiments.

[0493] In one embodiment, if the target virtual folder has a corresponding first exception condition but no corresponding second exception condition, the electronic device may display a first file list in response to an open operation on the target virtual folder. The first file list includes files that match the target condition description and files that meet the first exception condition, which are files that the user moved into the target virtual folder before the open operation was triggered.

[0494] For example, the first exception condition may include a first sub-condition, and the file satisfying the first sub-condition may include: at least one file moved by the user from the target virtual folder (e.g., the first file in the above embodiment). Furthermore, the first exception condition may also include a second sub-condition, and the file satisfying the second sub-condition may include: a file with similar characteristics to the file moved by the user from the target virtual folder. The similar characteristics may be the third or fourth characteristics described in the above embodiments. The process of the user moving a file into the target virtual folder and the process of the electronic device moving a file with similar characteristics to the user-moved file into the target virtual folder are described in the relevant descriptions in the above embodiments, and will not be repeated here.

[0495] In this embodiment, the first exception condition can also be referred to as the whitelist described in the above embodiments. Based on this, the files that meet the first exception condition can be all the files in the whitelist of the target virtual folder.

[0496] Optionally, the specific method for displaying the first file list based on the target condition description and the first exception condition may include: the electronic device, in response to a user's opening operation on the target virtual folder, obtaining a second file list; obtaining the first file list according to the second file list, and displaying the first file list. The second file list includes files matching the target condition description and files conforming to the first exception condition; files in the second file list that conform to the first exception condition have a first tag; and the first file list includes files from the second file list.

[0497] It should be noted that for a created target virtual folder, the user may update the target condition description of the target virtual folder, and the electronic device may also update the target files matching the target condition description over time. The user may also update the content of files already stored on the electronic device. Therefore, files that meet the first exception condition (i.e., the whitelist) may or may not match the current target condition description of the target virtual folder. Based on the method in this embodiment, each time the user opens the target virtual folder, regardless of whether the files meeting the first exception condition match the current target condition description of the target virtual folder, the electronic device can determine the files that meet the first exception condition based on the first marker, and display the files that meet the first exception condition as well as the target files that match the current target condition description of the target virtual folder. This ensures that the files in the currently displayed first file list not only match the target condition description set by the user but also conform to the user's adjustment preferences.

[0498] Optionally, for a pre-created target virtual folder, the electronic device can also respond to the user's opening operation of the target virtual folder and display a first file list based on the target condition description, semantic whitelist, and first exception condition corresponding to the target virtual folder. The first file list includes: files that match the target condition description of the target virtual folder, files that match any feature description in the semantic whitelist, and files that meet the first exception condition.

[0499] In other embodiments, if the target virtual folder has a corresponding second exception condition but no corresponding first exception condition, the electronic device may display a first file list in response to a user's open operation on the target virtual folder. The first file list includes files that match the target condition description but do not meet the second exception condition, where the files that meet the second exception condition are those removed by the user from the target virtual folder before the open operation was triggered.

[0500] For example, the second exception condition may include a third sub-condition, and files that meet the third sub-condition of the second exception condition may include at least one file that the user moved out of the target virtual folder (e.g., the first target file, the second target file, and the third target file in the above embodiments). Furthermore, the second exception condition may also include a fourth sub-condition, and files that meet the fourth sub-condition of the second exception condition may include files that have similar characteristics to the files moved out of the target virtual folder by the user. The similar characteristics may be the first or second characteristics described in the above embodiments. The process of the user moving files out of the target virtual folder and the process of the electronic device moving files with similar characteristics to the files moved out of the target virtual folder can be referred to the relevant descriptions in the above embodiments, and will not be repeated here.

[0501] In this embodiment, the second exception condition can also be referred to as the blacklist described in the above embodiments. Based on this, the files that meet the second exception condition can be all the files in the blacklist of the target virtual folder.

[0502] Optionally, the specific method for displaying the first file list based on the target condition description and the second exception condition includes: the electronic device, in response to an open operation on the target virtual folder, obtains a second file list; obtains the first file list according to the second file list, and displays the first file list. The second file list includes files that match the target condition description of the target virtual folder and files that meet the second exception condition; files in the second file list that meet the second exception condition have a second tag; the first file list includes files in the second file list that do not have the second tag.

[0503] It should be noted that for a created target virtual folder, the user may update the target condition description of the target virtual folder, and the electronic device may also update the target files matching the target condition description over time. The user may also update the content of files already stored on the electronic device. Therefore, files meeting the second exception condition (i.e., the blacklist) may or may not match the current target condition description of the target virtual folder. Based on the method in this embodiment, each time the user opens the target virtual folder, regardless of whether the files meeting the second exception condition match the current target condition description of the target virtual folder, the electronic device can use the second marker to filter out all files that were moved out of the target virtual folder before the opening operation from the target files matching the target condition description of the target v...

Claims

A file management method characterized by comprising: The method is applied to an electronic device, and the method comprises: In response to a creation operation of a virtual folder, a first interface is displayed; In response to a target condition description set in the first interface, a target virtual folder is generated, the target condition description comprises a target operation description, the target operation description is used to indicate a target file operation, and at least one target file is included in a file list of the target virtual folder, and a historical file operation corresponding to the target file comprises the target file operation. The method of claim 1, wherein The target file operation comprises a creation operation, a modification operation and / or an access operation. The method according to claim 1 or 2, characterized in that The target condition description further comprises a target time description, the target time description is used to indicate a target operation time of the target file operation, and the target operation time comprises a historical operation time of the target file operation corresponding to the target file. The method according to claim 3, characterized in that In a case where the target file operation comprises a creation operation, the target operation time comprises a target creation time corresponding to the creation operation, and the historical operation time is a creation time of the target file; and / or, In a case where the target file operation comprises a modification operation, the target operation time comprises a target modification time corresponding to the modification operation, and the historical operation time is a modification time of the modification operation performed on the target file; and / or, In a case where the target file operation comprises an access operation, the target operation time comprises a target access time corresponding to the access operation, and the historical operation time is an access time of the access operation performed on the target file. The method according to claim 3 or 4, characterized in that In a case where the target file operation comprises a modification operation, the target modification time is a first time period, a time length of the first time period is a first time length, an end time of the first time period is a current time, and the historical operation time is a modification time of the modification operation performed on the target file most recently; and / or, In a case where the target file operation comprises an access operation, the target access time is a second time period, a time length of the second time period is a second time length, an end time of the second time period is a current time, and the historical operation time is an access time of the access operation performed on the target file most recently. The method according to any one of claims 1 to 5, characterized in that The target condition description further comprises a target theme description, the target theme description is used to indicate a target file theme, and a file theme of the target file matches the target file theme. The method according to claim 6, characterized in that The method further comprises: In the first interface, a folder name of the target virtual folder is displayed, the folder name comprises a first theme description or the target theme description, and the first theme description and the target theme description both indicate the target file theme. The method according to claim 6 or 7, characterized in that The file theme of the target file matches the target file theme, that is, a matching degree between the file theme of the target file and the target file theme is greater than or equal to a preset matching degree threshold value; The method further comprises: In response to an adjustment operation on the matching degree threshold value, the file list is updated, and a matching degree between a file theme of each target file in the updated file list and the target file theme is greater than or equal to the adjusted matching degree threshold value. The method according to any one of claims 1 to 8, characterized in that The target condition description further comprises a target source description, the target source description being used to indicate a target file source, the file source of the target file being the target file source. The method of claim 9, wherein The target file source is a target application. The method according to any one of claims 1 to 10, characterized in that The target condition description further comprises a target attribute description, the target attribute description being used to indicate a target file attribute, the first file attribute of the target file being the same as the target file attribute. The method of claim 11, wherein The first file attribute is a file format or a file genre. The method according to any one of claims 1 to 12, characterized in that The generating the target virtual folder in response to the target condition description set in the first interface comprises: The displaying the file list in response to the target condition description set in the first interface; The generating the target virtual folder in response to the confirmation operation on the target condition description according to the file list. The method according to any one of claims 1 to 13, characterized in that The first interface comprises a plurality of candidate operation descriptions: The generating the target virtual folder in response to the target condition description set in the first interface comprises: The generating the target virtual folder in response to the selection operation of at least one of the candidate operation descriptions in the first interface by the user; The target operation description comprises a first candidate operation description selected by the user, the first candidate operation description indicating a first candidate file operation, the target file operation comprising the first candidate file operation. The method of claim 14, wherein The first interface further comprises a plurality of candidate time descriptions, a plurality of candidate theme descriptions, a plurality of candidate source descriptions and / or a plurality of candidate attribute descriptions, the target condition description further comprises a target time description, a target theme description, a target source description and / or a target attribute description, the target time description being used to indicate a target operation time, the target theme description being used to indicate a target file theme, the target source description being used to indicate a target file source, the target attribute description being used to indicate a target file attribute; The generating the target virtual folder in response to the selection operation of at least one of the candidate operation descriptions in the first interface by the user comprises: The generating the target virtual folder in response to the selection operation of at least one of the candidate operation descriptions in the first interface by the user, and the selection operation of at least one of the candidate time descriptions, at least one candidate theme description, at least one candidate source description and / or at least one candidate attribute description; The target time description comprises a first candidate time description selected by the user, the first candidate time description indicating a first candidate operation time, the target operation time comprising the first candidate operation time; And / or, The target theme description comprises a first candidate theme description selected by the user, the first candidate theme description indicating a first candidate file theme, the target file theme comprising the first candidate file theme; and / or, The target source description comprises a first candidate source description selected by the user, the first candidate source description indicating a first candidate file source, the target file source comprising the first candidate file source; and / or, The target attribute description comprises a first candidate attribute description selected by the user, the first candidate attribute description indicating a first candidate file attribute, the target file attribute comprising the first candidate file attribute. The method according to any one of claims 1 to 15, characterized in that The method further includes: displaying the number of the at least one target file in the first interface. The method according to any one of claims 1 to 16, characterized in that The at least one target file includes a first target file, and the method further includes: in response to an operation of moving the first target file out of the target virtual folder, moving the first target file out of the file list. The method of claim 17, wherein The method further includes: in a case where the target condition description further includes a target theme description, determining a second target file from the at least one target file, the second target file having a first feature matching a first feature of the first target file, the first feature being a sub-class file theme of the target file theme; moving the second target file out of the file list. The method according to claim 17 or 18, characterized in that The method further includes: in a case where the target condition description further includes a target attribute description, and the target file attribute indicated by the target attribute description is a target file genre, determining a third target file from the at least one target file, the third target file having a second feature identical to a second feature of the first target file, the second feature being a sub-class file genre of the target file genre; moving the third target file out of the file list. The method according to any one of claims 1 to 19, characterized in that The electronic device stores at least one file, and the at least one file includes a first file; The method further includes: in response to an operation of moving the first file into the target virtual folder, moving the first file into the file list. The method according to any one of claims 1 to 20, characterized in that The method further includes: in response to an opening operation of the target virtual folder, displaying a first file list, the first file list including files matching the target condition description and files meeting a first exception condition, the files meeting the first exception condition being files moved into the target virtual folder by a user before the opening operation is triggered. The method according to any one of claims 1 to 21, characterized in that The method further includes: in response to an opening operation of the target virtual folder, displaying a first file list, the first file list including files matching the target condition description and not meeting a second exception condition, the files meeting the second exception condition being files moved out of the target virtual folder by a user before the opening operation is triggered. The method according to any one of claims 1 to 21, characterized in that The method further includes: in response to an opening operation of the target virtual folder, displaying a first file list, the first file list including files meeting a first exception condition and files matching the target condition description and not meeting a second exception condition; wherein the files meeting the first exception condition are files moved into the target virtual folder by a user before the opening operation is triggered, and the files meeting the second exception condition are files moved out of the target virtual folder by a user before the opening operation is triggered. The method of claim 23, wherein The displaying, in response to the opening operation of the target virtual folder, the first file list includes: In response to the open operation of the target virtual folder, a second file list corresponding to the target virtual folder is obtained. The second file list includes files that match the target condition description, files that meet the first exception condition, and files that meet the second exception condition. Files in the second file list that meet the second exception condition have a second tag. The first file list is obtained based on the second file list, wherein the first file list includes files in the second file list that do not have the second tag; Display the first list of files. The method according to any one of claims 1 to 24, characterized in that The method further includes: The update notification message for the target virtual folder is displayed. The update notification message is used to remind the user that the file list has been updated and that the user has not opened the updated target virtual folder. The method of claim 25, wherein The update notification is displayed after the folder name of the target virtual folder. The method according to any one of claims 1 to 26, characterized in that The method further includes: In response to a modification operation to the description of the target conditions, the file list is updated. A file management method characterized by comprising: Applied to electronic devices, the method includes: In response to the creation operation of a virtual folder, a target virtual folder is generated, wherein the folder name of the target virtual folder includes a target operation description, which is used to indicate the target file operation; In response to the open operation of the target virtual folder, a file list of the target virtual folder is displayed, the file list including at least one target file, and the historical file operations corresponding to the target file include the target file operation. The method of claim 28, wherein The target file operations include: creation operation, open operation, modification operation, deletion operation, download operation, operation to adjust the storage location of the file, file renaming operation, operation to move the file out of the first folder, operation to move the file into the second folder, receiving operation, operation to receive the file through the first application, operation to receive the file from the first source, and / or operation to receive the file through the first transmission method. The method according to claim 28 or 29, characterized in that The folder name also includes a target time description, which indicates the target operation time; The target operation time includes the historical operation time of the target file operation corresponding to the target file. The method according to any one of claims 28 to 30, characterized in that The folder name also includes a target attribute description, which is used to indicate the target file attributes; The first file attribute of the target file is the same as the target file attribute. The method of claim 31, wherein The first file attribute is the file format or file type. The method according to any one of claims 28 to 32, characterized in that The folder name also includes a target topic description, which indicates the topic of the target file; The subject of the target file matches the subject of the target file. The method of claim 33, wherein The matching of the target file's subject with the target file's subject is defined as follows: the matching degree between the target file's subject and the target file's subject is greater than or equal to a preset matching degree threshold. The method further includes: In response to the adjustment operation of the matching degree threshold, the file list is updated, and the matching degree between the file topic of each target file in the updated file list and the target file topic is greater than or equal to the adjusted matching degree threshold. The method according to any one of claims 28 to 34, characterized in that The folder name is set by the user. The method according to any one of claims 28 to 35, characterized in that The process of generating a target virtual folder in response to the virtual folder creation operation includes: In response to the creation of a virtual folder, display the name edit box; The folder name is determined based on the input action in the name edit box; The target virtual folder is generated based on the folder name. The method according to any one of claims 28 to 35, characterized in that The process of generating a target virtual folder in response to the virtual folder creation operation includes: In response to the creation of a virtual folder, a name editing interface is displayed, which includes multiple candidate operation descriptions; In response to a user's selection of at least one of the candidate operation descriptions in the name editing interface, the folder name is determined; the target operation description includes a first operation description or a first candidate operation description selected by the user, both the first operation description and the first candidate operation description indicate a first candidate file operation, and the target file operation includes the first candidate file operation; The target virtual folder is generated based on the folder name. The method of claim 37, wherein The name editing interface also includes multiple candidate time descriptions, multiple candidate topic descriptions, and / or multiple candidate attribute descriptions. The folder name also includes a target time description, a target topic description, and / or a target attribute description. The target time description is used to indicate the target operation time, the target topic description is used to indicate the target file topic, and the target attribute description is used to indicate the target file attributes. The step of determining the folder name in response to a user's input of at least one of the candidate operation descriptions in the name editing interface includes: In response to a user's selection of at least one of the candidate operation descriptions in the name editing interface, and selection of at least one of the candidate time descriptions, at least one of the candidate topic descriptions, and / or at least one of the candidate attribute descriptions, the folder name is determined; The target time description includes a first time description or a first candidate time description selected by the user, both the first time description and the first candidate time description indicating a first candidate operation time; the target operation time includes the first candidate operation time; and / or The target topic description includes a first topic description or a first candidate topic description selected by the user, both the first topic description and the first candidate topic description indicating a first candidate file topic, and the target file topic includes the first candidate file topic; and / or, The target attribute description includes a first attribute description or a first candidate attribute description selected by the user. Both the first attribute description and the first candidate attribute description indicate the first candidate file attribute. The target file attribute includes the first candidate file attribute. The method according to any one of claims 28 to 38, characterized in that The at least one target file includes a first target file; the method further includes: In response to the operation of moving the first target file out of the target virtual folder, the first target file is moved out of the file list. The method according to any one of claims 28 to 39, characterized in that The electronic device stores at least one file, the at least one file including a first file; the method further includes: In response to an operation of moving the first file into the target virtual folder, moving the first file into the file list. The method according to any one of claims 28 to 40, characterized in that The method further includes: In response to a modification operation on the folder name, updating the file list. An electronic device, characterized by comprising: Comprise: A processor configured to execute a computer program stored in a memory to implement the method of any one of claims 1-27, or to implement the method of any one of claims 28-41. A computer-readable storage medium, characterized by, The computer readable storage medium stores a computer program, and the computer program is executed by a computer to implement the method of any one of claims 1-27, or to implement the method of any one of claims 28-41.