An index.html listing out a directory node's content.
More...
#include <library/src/ipfs_client/generated_directory_listing.h>
An index.html listing out a directory node's content.
◆ GeneratedDirectoryListing()
ipfs::GeneratedDirectoryListing::GeneratedDirectoryListing |
( |
std::string_view |
base_path | ) |
|
|
explicit |
Get the HTML preamble going.
- Parameters
-
base_path | - The path to this directory |
◆ AddEntry()
void ipfs::GeneratedDirectoryListing::AddEntry |
( |
std::string_view |
name | ) |
|
Add an entry to the list.
- Parameters
-
name | - The directory's way of referring to that CID |
◆ Finish()
auto ipfs::GeneratedDirectoryListing::Finish |
( |
| ) |
|
Finish up all the HTML stuff at the end.
- Returns
- The generated HTML
The documentation for this class was generated from the following files: