Directory creating, inquiring and deleting method and device
A directory and subdirectory technology, applied in special data processing applications, instruments, electrical digital data processing, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0075] Embodiment 1 of the present invention provides a method for creating a directory, such as figure 1 shown, including:
[0076] Step S101 , scan the entries in the specified directory in sequence, and record the number of entries in which the subdirectories of the specified directory are located in the currently scanned entries.
[0077] Step S102, when the recorded number is equal to the number of all subdirectories of the specified directory, create a new subdirectory of the specified directory in the next free entry of the entry where the last subdirectory of the specified directory is located.
[0078] Step S103 , setting the predecessor directory of the created new subdirectory as the original predecessor directory of the specified directory, and updating the predecessor directory of the specified directory to the created new subdirectory.
[0079] Preferably, in the above step S103, it may further include: setting the successor directory of the created new subdire...
Embodiment 2
[0097] Embodiment 2 of the present invention provides a method for creating a directory, such as Figure 9 shown, including:
[0098] Step S901: Scan the entries in the specified directory in order, determine the first free entry, and record the number of entries in the subdirectories of the specified directory among the currently scanned entries.
[0099] Step S902, creating a new subdirectory of the specified directory in the first determined free entry.
[0100] Step S903, when the number of records is equal to the number of all atomic directories in the specified directory, set the predecessor directory of the created new subdirectory as the original predecessor directory of the specified directory, and update the predecessor directory of the specified directory to the created new subdirectory;
[0101] When the number of records is not equal to the number of all atomic directories of the specified directory and is not zero, set the predecessor directory of the new subdi...
Embodiment 3
[0131] Based on the catalog created by the catalog creation method provided in the first and second embodiments above, the third embodiment of the present invention also provides a catalog query method, such as Figure 13 Shown is the process of querying based on the predecessor directory of the directory, including:
[0132] Step S1301, determine the starting directory of the query, for example, determine to start the query from the root directory, and set the starting directory as the current directory.
[0133] Step S1302, judge whether the current directory is the directory to be queried, if yes, go to step S1303; otherwise, go to step S1304.
[0134] Step S1303, locating the current directory as the directory to be queried.
[0135] Step S1304. Set the predecessor directory of the current directory as the updated current directory, and proceed to step S1302. In this step, if the predecessor directory of the current directory is the initial directory determined in the ab...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com