Method, electronic device, and storage medium for creating virtual directory
First Claim
Patent Images
1. A method for creating a virtual directory, comprising:
- traversing a storage region to locate a plurality of files of a designated type stored in the storage region;
extracting attribute information of each of the plurality of files stored in the storage region, the attribute information including at least two of a name, a play address, or episode information of each of the plurality of files; and
creating a virtual directory according to the extracted attribute information, including;
grouping the attribute information of each of the plurality of files that includes a certain name into a class; and
generating a node in a first-level directory of the virtual directory according to the grouped attribute information, the node including the certain name;
wherein the class includes at least two pieces of attribute information and the at least two pieces of attribute information include episode information,the method further comprising;
setting the at least two pieces of attribute information in the class as sub-nodes in a second-level directory of the virtual directory under the node in the first-level directory, each of the sub-nodes including the certain name, a play address and episode information of a file of the designated type corresponding to one of the at least two pieces of attribute information.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for creating a virtual directory includes locating at least one file of a designated type by traversing a storage region, extracting attribute information of the at least one file, and creating a virtual directory according to the attribute information of the at least one file. The attribute information including at least two of a name, a play address, or episode information of the at least one file.
18 Citations
14 Claims
-
1. A method for creating a virtual directory, comprising:
-
traversing a storage region to locate a plurality of files of a designated type stored in the storage region; extracting attribute information of each of the plurality of files stored in the storage region, the attribute information including at least two of a name, a play address, or episode information of each of the plurality of files; and creating a virtual directory according to the extracted attribute information, including; grouping the attribute information of each of the plurality of files that includes a certain name into a class; and generating a node in a first-level directory of the virtual directory according to the grouped attribute information, the node including the certain name; wherein the class includes at least two pieces of attribute information and the at least two pieces of attribute information include episode information, the method further comprising; setting the at least two pieces of attribute information in the class as sub-nodes in a second-level directory of the virtual directory under the node in the first-level directory, each of the sub-nodes including the certain name, a play address and episode information of a file of the designated type corresponding to one of the at least two pieces of attribute information. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. An electronic device, comprising:
-
a processor; and a memory storing instructions, which, when executed by the processor, cause the electronic device to; traverse a storage region to locate a plurality of files of a designated type stored in the storage region; extract attribute information of each of the plurality of files stored in the storage region, the attribute information including at least two of a name, a play address, or episode information of each of the plurality of files; and create a virtual directory according to the extracted attribute information, including; grouping the attribute information of each of the plurality of files that includes a certain name into a class; and generating a node in a first-level directory of the virtual directory according to the grouped attribute information, the node including the certain name; wherein the class includes at least two pieces of attribute information and the at least two pieces of attribute information include episode information, and the instructions further cause the electronic device to; set the at least two pieces of attribute information in the class as sub-nodes in a second-level directory of the virtual directory under the node in the first-level directory, each of the sub-nodes including the certain name, a play address, and episode information of a file of the designated type corresponding to one of the at least two pieces of attribute information. - View Dependent Claims (9, 10, 11, 12, 13)
-
-
14. A non-transitory computer-readable storage medium storing instructions, which, when executed by a processor in an electronic device, cause the electronic device to:
-
traverse a storage region to locate a plurality of files of a designated type stored in the storage region; extract attribute information of each of the plurality of files stored in the storage region, the attribute information including at least two of a name, a play address, or episode information of each of the plurality of files; and create a virtual directory according to the extracted attribute information, including; grouping the attribute information of each of the plurality of files that includes a certain name into a class; and generating a node in a first-level directory of the virtual directory according to the grouped attribute information, the node including the certain name; wherein the class includes at least two pieces of attribute information and the at least two pieces of attribute information include episode information, and the instructions further cause the electronic device to; set the at least two pieces of attribute information in the class as sub-nodes in a second-level directory of the virtual directory under the node in the first-level directory, each of the sub-nodes including the certain name, a play address, and episode information of a file of the designated type corresponding to one of the at least two pieces of attribute information.
-
Specification