A tag-based content processing method, computer device, and readable storage medium
Through the tag-based content processing method, the problems of low flexibility and time efficiency of folder operations are solved, efficient folder management is achieved in private cloud devices and distributed groups, and sharing and storage space optimization are supported in seconds.
Patent Information
- Application Number
- CN202310744111.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-21
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2043-06-21
AI Technical Summary
In the existing technology, folder operations have low flexibility and time efficiency, and occupy storage space, making them unsuitable for private cloud devices and distributed groups.
A tag-based content processing method is adopted to perform folder operations through the tag dictionary table and object tag table, including creation, deletion, sharing, movement and query, avoiding the generation of file copies, saving storage space, and achieving sharing in seconds.
It achieves flexibility and efficiency in folder operations, is suitable for private cloud devices and distributed groups, saves storage space, and supports sharing in seconds.
Smart Images

Figure CN116680239B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cloud computing, and in particular to a tag-based content processing method, a computer device, and a readable storage medium. Background Art
[0002] In the prior art, traditional operating systems, such as Windows operating systems, treat folders as entities. When performing operations on folders, such as removing, adding, or sharing to a group chat, these operations are all performed based on the entity. However, operating based on the entity presents the following problems:
[0003] 1. Lack of flexibility. Sharing to folders and groups creates new physical folders. It's impossible to have multiple parent folders for a folder, and parent / subfolders don't support dismantling parent-child relationships. To achieve similar results, you can only delete subfolders or move them to a new parent folder.
[0004] 2. Time efficiency is low. Sharing a folder requires copying a new physical folder, and querying the number of files and folders in a folder requires recursive counting, which takes a long time.
[0005] 3. Low space efficiency. Sharing a folder requires copying a new physical folder, which takes up additional storage space.
[0006] The folder solution in the prior art cannot be applied to private cloud devices and distributed groups composed of private cloud devices. Summary of the Invention
[0007] The present invention aims to solve one of the technical problems in the related art to a certain extent. To this end, the present invention provides a tag-based content processing method that achieves sharing in seconds without changing the file / folder entity, and is suitable for private cloud devices and distributed groups composed of private cloud devices.
[0008] In order to achieve the above object, the present invention adopts the following technical solutions:
[0009] A tag-based content processing method, wherein the content includes files and / or folders, and the content processing method includes the following steps:
[0010] Get the tag tree, each node in the tag tree is a content;
[0011] Obtain a tag dictionary table, wherein the tag dictionary table has a plurality of entries, each entry corresponds to a folder, and each entry has a tag value, a tag name, and a presentation layer, wherein the tag value is an attribute of the folder itself, the tag name is a path from the content to the root, and the presentation layer is an interpretation of the tag name;
[0012] Obtain an object tag table, wherein the object tag table has a plurality of entries, each entry corresponding to a content, and each entry has an object ID, a tag value, and a presentation layer, wherein the object ID is an attribute of the content corresponding to each entry; the tag value is a tag value of a folder where the content is located; and the presentation layer is an interpretation of the file or an interpretation of the tag name;
[0013] When processing the content, modifying the content's tag dictionary table and / or object tag table;
[0014] After completing the modification, complete the corresponding processing.
[0015] Optionally, when the content is processed to query the number of all files and all folders contained in a folder, modifying the content's label dictionary table and / or object label table includes the following sub-steps:
[0016] Generate tag query conditions;
[0017] Search for matching entries based on the tag name in the tag dictionary table, using prefix partial matching.
[0018] The number of entries matching the query that have the same tag value;
[0019] Calculate the number of files and folders in the content based on the content ID.
[0020] Optionally, the content processing includes modifying the content's tag dictionary table and / or object tag table when creating a folder, including the following sub-steps:
[0021] Add a new tree node to the tag tree;
[0022] Add an entry corresponding to the new folder in the tag dictionary table, and the tag name is the path information from the root to the new folder;
[0023] Add an entry corresponding to the newly created folder in the object tag table;
[0024] The label value of the files in the new folder is the label value of the previous node.
[0025] Optionally, when the content is processed by deleting a folder, modifying the content's tag dictionary table and / or object tag table includes the following sub-steps:
[0026] According to the path of the folder to be deleted, the entry corresponding to the folder to be deleted is searched in the tag dictionary table, and the matching method is partial matching of the prefix;
[0027] Determine whether the tag name in the queried entry only contains the path information of the folder to be deleted;
[0028] If yes, delete the entry found in the tag dictionary table; if no, modify the tag name of the entry found in the tag dictionary table to the path information of the folder to be deleted;
[0029] Delete the tag values of the files in the folder to be deleted in the object tag table.
[0030] Optionally, when the content is shared to a distributed group, the content tag dictionary table and / or object tag table is modified, including the following sub-steps:
[0031] Create a group node in the tag tree and create an entry corresponding to the content in the tag dictionary table;
[0032] According to the path of the content to be shared, the tag dictionary table is searched for the entry corresponding to the content to be shared, and the matching method is partial matching of the prefix;
[0033] Modify the tag name of the entry in the queried tag dictionary table by adding the path of the content to be shared in the tag tree to the distributed group to the current tag name;
[0034] If the content to be shared is a file, modify the tag value of the corresponding entry in the object tag table by adding the path of the content to be shared to the distributed group in the tag tree to the current tag name;
[0035] If the content to be shared is a folder, the tag value of the corresponding entry in the object tag table for the file in the folder to be shared is modified by adding the path from the folder to be shared to the distributed group in the tag tree to the current tag name.
[0036] Optionally, the content processing includes modifying the content's tag dictionary table and / or object tag table when adding the file to the folder, including the following sub-steps:
[0037] Determine whether the folder of the added file has been shared to the distributed group. The judgment method is to query the corresponding entry in the tag dictionary table based on the path of the folder of the added file, and the matching method is complete matching;
[0038] If the judgment result is no, a corresponding entry is added to the tag dictionary table and the object tag table for the added file. In the added entry, the tag name is the tag name of the folder where the file is added.
[0039] If the judgment result is yes, the path of the folder of the added content is formed into a new tag name, and based on the new tag name, corresponding entries are added to the tag dictionary table and the object tag table for the added file.
[0040] Optionally, the content processing includes modifying the content's tag dictionary table and / or object tag table when removing a file from a folder, and includes the following sub-steps:
[0041] Determine whether the folder of the file to be deleted is shared to the distributed group. The judgment method is to query the corresponding entry in the tag dictionary table according to the path of the folder of the file to be deleted. The matching method is complete matching;
[0042] If the judgment result is no, the corresponding entries of the file to be deleted are deleted in the tag dictionary table and the object tag table respectively;
[0043] If the judgment result is yes, the path of the folder of the file to be deleted is formed into a new tag name, the tag name of the file to be deleted is changed to the new tag name in the tag dictionary table, and the tag value in the object tag table is modified to the tag value corresponding to the new tag name.
[0044] The technical solution provided by the present invention has flexible data aggregation management capabilities. File data can be flexibly aggregated into folders, and the same file object can be included in different folders at the same time. The inclusion relationship can also be released without deleting the file object entity. It is suitable for implementing a virtual folder system on private cloud devices, and can be adapted to be compatible with the view presentation of multiple terminals, such as Windows PCs, Linux PCs, MacBooks, Apple phones, and Android phones.
[0045] This invention uses tag references to construct the file-folder inclusion relationship, avoiding the creation of new file copies and saving storage space. It also abstracts folder-related operations such as creation, deletion, sharing, movement, statistics, and querying into tag dictionaries and object-tag tables for addition, deletion, modification, and querying. This approach is highly time-efficient and enables sharing within private cloud devices and distributed groups of private cloud devices within seconds.
[0046] Furthermore, the present invention further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements any one of the above-mentioned content processing methods when executing the computer program.
[0047] At the same time, the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it implements any one of the above-mentioned content processing methods.
[0048] These features and advantages of the present invention will be further disclosed in the following detailed description and accompanying drawings. The preferred embodiments and means of the present invention will be fully illustrated in conjunction with the accompanying drawings, but are not intended to limit the technical solutions of the present invention. Furthermore, although multiple features, elements, and components may be present in each of the following text and accompanying drawings, they may be labeled with different symbols or numbers for convenience, but all represent components with the same or similar structure or function. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The present invention will be further described below in conjunction with the accompanying drawings:
[0050] Figure 1 Schematic diagram of the initial state of a folder in an embodiment of the present invention;
[0051] Figure 2 A schematic diagram of creating a folder in an embodiment of the present invention;
[0052] Figure 3 A schematic diagram of deleting a folder in an embodiment of the present invention;
[0053] Figure 4 is a schematic diagram of a shared folder in an embodiment of the present invention;
[0054] Figure 5 A schematic diagram of adding a file to a folder in an embodiment of the present invention;
[0055] Figure 6 Schematic diagram of deleting a file in an embodiment of the present invention. DETAILED DESCRIPTION
[0056] The following describes embodiments of the present invention in detail, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described in the embodiments are intended to explain the present invention and are not to be construed as limiting the present invention.
[0057] Reference in this specification to "one embodiment," "an example," or "an example" means that a particular feature, structure, or characteristic described in connection with the embodiment itself can be included in at least one embodiment of the present patent disclosure. The appearances of the phrase "in one embodiment" in various places in the specification are not necessarily all referring to the same embodiment.
[0058] This embodiment provides a tag-based content processing method. In this embodiment, the content includes files and / or folders. Files can be objects of various formats, which are not limited here. The content processing method provided in this embodiment includes the following steps:
[0059] Get the tag tree, each node in the tag tree is a content. The initial state of the tag tree and folder is as follows: Figure 1 shown.
[0060] In this embodiment, all file attributes and their inclusion relationships are tags. Therefore, this embodiment introduces two tables: a tag dictionary table and an object tag table. By adding, deleting, modifying, and querying tags in the tag dictionary, as well as adding, deleting, modifying, and querying tags to file objects, various folder control capabilities are provided:
[0061] Get the tag dictionary table. The tag dictionary table is built-in and contains several entries, each corresponding to a folder. In other words, entries in the tag dictionary table only correspond to folders. Each entry has a tag value, a tag name, and a presentation layer. The tag value is the folder's own attribute value, the tag name is the path from the folder to the root, and the presentation layer is the definition of the tag name.
[0062] Get the object tag table. The object tag table has several entries, each corresponding to a piece of content. In other words, an entry in the object tag table can correspond to either a file or a folder. Each entry has an object ID, a tag value, and a presentation layer. The object ID is the intrinsic property of the content corresponding to each entry. If the content is a folder, the object ID is the folder's intrinsic property value; if the content is a file, the object ID is the file's intrinsic property value. The tag value is the tag value of the folder where the content resides, and the presentation layer is the file's definition or the tag name's definition.
[0063] The initial tag dictionary table and object tag table are shown in the following table:
[0064]
[0065] When processing the content, the tag dictionary table and / or object tag table of the content is modified, and after the modification is completed, the corresponding processing is completed. Since the relationship between files and folders is constructed in the form of tag references, the generation of new file copies is avoided and storage space is saved. At the same time, the operations related to folder creation, deletion, sharing, movement, statistics, and query are abstracted into the addition, deletion, modification, and query of tag dictionaries and object-tag tables, which has extremely high time efficiency and realizes second-level sharing in private cloud devices and distributed groups composed of private cloud devices. In this embodiment, the processing of content includes: querying the number of all files and all folders contained in a folder, creating a folder, deleting a folder, sharing content to a distributed group, removing files in a folder, and adding files to a folder. The following is a detailed description of each specific processing.
[0066] When the content processing is to query the number of all files and all folders contained in a folder, modifying the content label dictionary table and / or object label table includes the following sub-steps:
[0067] Generate a tag query condition. In this embodiment, the number of all files and folders contained in the D2 folder is queried. Therefore, the generated query condition is " / D1 / D2".
[0068] The matching entry is searched based on the tag name in the tag dictionary table, and the matching method is partial matching of the prefix. In this embodiment, the return value after the query is [0xBD2, 0xBD3].
[0069] Query the number of items with the same tag value in the matching entries. Specifically, in this embodiment, querying the number of all objects with the tag 0xBD2 returns 3; querying the number of all objects with the tag 0xBD3 returns 1; querying the number of all objects with the tag 0xBD2 and the type "folder" returns 1; querying the number of all objects with the tag 0xBD3 and the type "folder" returns 0.
[0070] The number of files and folders in the content is calculated based on the content ID. In this embodiment, (1+0) folders and (3+1-1-0) files are calculated.
[0071] like Figure 2 As shown, the content processing is to modify the content tag dictionary table and / or object tag table when creating a folder, including the following sub-steps:
[0072] A new tree node is added to the tag tree. In this embodiment, the folders created are D4 and D5.
[0073] Add an entry corresponding to the new folder in the tag dictionary table, with the tag name being the path information from the root to the newly created folder. In this embodiment, the added entries are: tag name " / D4", corresponding tag value 0xBD4, tag name " / D4 / D5", corresponding tag value 0xBD5;
[0074] Add an entry corresponding to the newly created folder to the object tag table. In this embodiment, the added entries are: object ID 0xd4, indicating that the layer is "folder 4", the type is "folder", and the reference tag is 0; object ID 0xd5, indicating that the layer is "folder 5", the type is "folder", and the reference tag is 0xBD4;
[0075] The tag value of the files in the new folder is the tag value of the previous node. Specifically in this embodiment, the tag value of the object ID 0xf7 in the folder D4 is ID 0xBD4, and the tag value of the object ID 0xf8 in the folder D5 is ID 0xBD5.
[0076] The label dictionary table and object label table after the folder is created are shown in the following table:
[0077]
[0078] like Figure 3 As shown, this embodiment takes deleting folder D3 under folder D2 as an example to illustrate that when the content is processed to delete the folder, modifying the content's label dictionary table and / or object label table includes the following sub-steps:
[0079] Based on the path of the folder to be deleted, the tag dictionary table is searched for the entry corresponding to the folder to be deleted, and the matching method is partial prefix matching. Specifically in this embodiment, the tag dictionary table is searched using " / D1 / D2 / D3", and the matching method is partial prefix matching. The return value is [0xBD3, 0xBD33];
[0080] Determine whether the tag name in the queried entry only contains the path information of the folder to be deleted;
[0081] If yes, delete the entry found in the tag dictionary table: Specifically in this embodiment, the tag dictionary table is searched for the entry with the tag value 0xBD33, and the tag name is " / D1 / D2 / D3". Since it is strictly equal to " / D1 / D2 / D3", the tag value is deleted from the tag dictionary;
[0082] If not, the tag name of the entry found in the tag dictionary table is modified to the path information of the folder to be deleted. Specifically in this embodiment, the tag dictionary is searched for the entry with a tag value of 0xBD3, and the tag name is obtained as " / D1 / D2 / D3, / E1 / D2 / D3". Since it is not strictly equal to " / D1 / D2 / D3", the tag name of the tag value 0xBD3 is changed from " / D1 / D2 / D3, / E1 / D2 / D3" to " / E1 / D2 / D3";
[0083] Delete the tag value of the file in the folder to be deleted in the object tag table: remove the tag value 0xBD33 of the object.
[0084] The tag dictionary table and object tag table after deleting the folder are shown in the following table:
[0085]
[0086] like Figure 4 As shown, this embodiment takes folder 2 and file 7 shared to group 1 as an example to illustrate the processing of content. When sharing content to a distributed group, modifying the content's tag dictionary table and / or object tag table includes the following sub-steps:
[0087] Create a group node in the tag tree and create an entry corresponding to the content in the tag dictionary table. Specifically, in this embodiment, add the tag " / E1" and the corresponding tag value is 0xBE1;
[0088] According to the path of the content to be shared, the tag dictionary table is searched for the entry corresponding to the content to be shared, and the matching method is partial match of the prefix. Specifically in this embodiment, the tag dictionary table is searched with " / D1 / D2", and the matching method is partial match of the prefix. The return value is [0xBD2, 0xBD3]
[0089] Modify the tag name of the entry in the queried tag dictionary table by adding the path of the content to be shared to the distributed group in the tag tree to the current tag name: query the tag name in the tag dictionary and get " / D1 / D2 / D3". Change the tag name with tag value 0xBD3 to " / D1 / D2 / D3, / E1 / D2 / D3";
[0090] If the content to be shared is a file, modify the tag value of the corresponding entry in the object tag table by adding the path of the content to be shared in the tag tree to the distributed group to the current tag name: add the tag value 0xBE1 to the object ID 0xf7;
[0091] If the content to be shared is a folder, the tag value of the corresponding entry in the object tag table of the file in the folder to be shared is modified by adding the path from the folder to be shared to the distributed group in the tag tree to the current tag name: add object ID 0xe1 with a reference tag of 0, and add tag value 0xBE1 to object ID 0xd2.
[0092] The tag dictionary table and object tag table after sharing are shown in the following table:
[0093]
[0094] like Figure 5 As shown, the content processing is to modify the content's tag dictionary table and / or object tag table when adding a file to a folder, including the following sub-steps:
[0095] Determine whether the folder containing the added file is shared with the distributed group. This determination is made by searching the tag dictionary table for the corresponding entry based on the path of the added file's folder, using a complete match. Specifically, in this embodiment, the tag dictionary table is searched using " / D1 / D2 / D3," using a complete match. The return value is [0xBD3], and the tag name with the tag value 0xBD3 is found in the tag dictionary, resulting in the tag name " / D1 / D2 / D3, / E1 / D2 / D3."
[0096] Since the tag name is not strictly equal to " / D1 / D2 / D3", the judgment result is negative. Then, a corresponding entry is added to the tag dictionary table and the object tag table for the added file. In the added entry, the tag name is the tag name of the folder where the file is added. Specifically, in this embodiment, the tag name " / D1 / D2 / D3" and the tag value 0xBD33 are added, and the tag value 0xBD33 is added to the object ID 0xf9.
[0097] If the judgment result is yes, that is, the tag name is strictly equal to " / D1 / D2 / D3", the path of the folder where the content is added is directly formed into a new tag name. Based on the new tag name, corresponding entries are added to the tag dictionary table and the object tag table for the added file respectively.
[0098] The tag dictionary table and object tag table after adding the folder are shown in the following table:
[0099]
[0100] like Figure 6 As shown, this embodiment takes deleting file5 in folder D2 as an example to illustrate that when a file is removed from a folder, modifying the tag dictionary table and / or object tag table of the content includes the following sub-steps:
[0101] Determine whether the folder of the file to be deleted is shared to the distributed group. The determination method is to query the corresponding entry in the tag dictionary table based on the path of the folder of the file to be deleted. The matching method is complete matching: query the tag name of the object ID 0xf5, and the return value is [0xBD2]. Look up the tag name of the tag value 0xBD2 in the tag dictionary table and get " / D1 / D2, / E1 / D2";
[0102] Since it is not strictly equal to " / D1 / D2", the judgment result is yes. The path of the folder of the file to be deleted is formed into a new tag name. The tag name of the file to be deleted is changed to the new tag name in the tag dictionary table. The tag value in the object tag table is modified to the tag value corresponding to the new tag name. That is, the tag name " / E1 / D2" is added with a tag value of 0xBD22. In the object tag table, the tag value of object ID 0xf5 is changed from 0xBD2 to 0xBD22.
[0103] If the judgment result is no, the corresponding entries of the file to be deleted are deleted in the tag dictionary table and the object tag table respectively.
[0104] The tag dictionary table and object tag table after deleting the file are shown in the following table:
[0105]
[0106] The technical solution provided in this embodiment has flexible data aggregation management capabilities. File data can be flexibly aggregated into folders, and the same file object can be included in different folders at the same time. The inclusion relationship can also be released without deleting the file object entity. It is suitable for implementing a virtual folder system on a private cloud device, and can be adapted to be compatible with the view presentation of multiple terminals, such as Windows PCs, Linux PCs, MacBooks, Apple phones, and Android phones.
[0107] At the same time, this embodiment also provides a computer device including a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor performs the steps of the above-mentioned content processing method. The steps of the content processing method here can be the steps of the memory analysis method in each of the above-mentioned embodiments.
[0108] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program. Accordingly, the computer program can be stored in a non-volatile computer-readable storage medium, and when the computer program is executed, it can implement the method of any of the above-mentioned embodiments. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0109] The above are only specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Those skilled in the art should understand that the present invention includes but is not limited to the contents described in the drawings and the above specific embodiments. Any modifications that do not deviate from the functional and structural principles of the present invention are intended to be included within the scope of the claims.
Claims
1. A tag-based content processing method, wherein the content includes files and / or folders, characterized in that: The content processing method comprises the following steps: Get the tag tree, each node in the tag tree is a content; Obtain a tag dictionary table, wherein the tag dictionary table has a plurality of entries, each entry corresponds to a folder, and each entry has a tag value, a tag name, and a presentation layer, wherein the tag value is an attribute of the folder itself, the tag name is a path from the content to the root, and the presentation layer is an interpretation of the tag name; Obtain an object tag table, wherein the object tag table has a plurality of entries, each entry corresponding to a content, and each entry has an object ID, a tag value, and a presentation layer, wherein the object ID is an attribute of the content corresponding to each entry; the tag value is a tag value of a folder where the content is located; and the presentation layer is an interpretation of the file or an interpretation of the tag name; When processing the content, modifying the content's tag dictionary table and / or object tag table; After completing the modification, complete the corresponding processing.
2. The content processing method according to claim 1, characterized in that: When the content processing is to query the number of all files and all folders contained in a folder, modifying the content label dictionary table and / or object label table includes the following sub-steps: Generate tag query conditions; Search for matching entries based on the tag name in the tag dictionary table, using prefix partial matching. The number of entries matching the query that have the same tag value; Calculate the number of files and folders in the content based on the content ID.
3. The content processing method according to claim 1, characterized in that: The processing of the content is to modify the tag dictionary table and / or object tag table of the content when creating a folder, including the following sub-steps: adding a tree node to the tag tree; Add an entry corresponding to the new folder in the tag dictionary table, and the tag name is the path information from the root to the new folder; Add an entry corresponding to the newly created folder in the object tag table; The label value of the files in the new folder is the label value of the previous node.
4. The content processing method according to claim 1, characterized in that: When the content processing is to delete a folder, modifying the content's label dictionary table and / or object label table includes the following sub-steps: According to the path of the folder to be deleted, the entry corresponding to the folder to be deleted is searched in the tag dictionary table, and the matching method is partial matching of the prefix; Determine whether the tag name in the queried entry only contains the path information of the folder to be deleted; If yes, delete the entry found in the tag dictionary table; if no, modify the tag name of the entry found in the tag dictionary table to the path information of the folder to be deleted; Delete the tag values of the files in the folder to be deleted in the object tag table.
5. The content processing method according to claim 1, characterized in that: The content processing includes the following sub-steps: when the content is shared to a distributed group, modifying the content's tag dictionary table and / or object tag table: Create a group node in the tag tree and create an entry corresponding to the content in the tag dictionary table; According to the path of the content to be shared, the tag dictionary table is searched for the entry corresponding to the content to be shared, and the matching method is partial matching of the prefix; Modify the tag name of the entry in the queried tag dictionary table by adding the path of the content to be shared in the tag tree to the distributed group to the current tag name; If the content to be shared is a file, modify the tag value of the corresponding entry in the object tag table by adding the path of the content to be shared to the distributed group in the tag tree to the current tag name; If the content to be shared is a folder, the tag value of the corresponding entry in the object tag table for the file in the folder to be shared is modified by adding the path from the folder to be shared to the distributed group in the tag tree to the current tag name.
6. The content processing method according to claim 5, characterized in that: The content processing includes modifying the content's tag dictionary table and / or object tag table when adding a file to a folder, and includes the following sub-steps: Determine whether the folder of the added file has been shared to the distributed group. The judgment method is to query the corresponding entry in the tag dictionary table based on the path of the folder of the added file, and the matching method is complete matching; If the judgment result is no, a corresponding entry is added to the tag dictionary table and the object tag table for the added file. In the added entry, the tag name is the tag name of the folder where the file is added. If the judgment result is yes, the path of the folder of the added content is formed into a new tag name, and based on the new tag name, corresponding entries are added to the tag dictionary table and the object tag table for the added file.
7. The content processing method according to claim 5, characterized in that: The content processing includes modifying the content's tag dictionary table and / or object tag table when removing a file from a folder, and includes the following sub-steps: Determine whether the folder of the file to be deleted is shared to the distributed group. The judgment method is to query the corresponding entry in the tag dictionary table according to the path of the folder of the file to be deleted. The matching method is complete matching; If the judgment result is no, the corresponding entries of the file to be deleted are deleted in the tag dictionary table and the object tag table respectively; If the judgment result is yes, the path of the folder of the file to be deleted is formed into a new tag name, the tag name of the file to be deleted is changed to the new tag name in the tag dictionary table, and the tag value in the object tag table is modified to the tag value corresponding to the new tag name.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the content processing method according to any one of claims 1 to 7 is implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the content processing method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Interface layout loading display method and system, electronic equipment and storage medium
CN112463272A
File management method and device and medium
CN113010479A