ipfs-chromium
|
An index.html listing out a directory node's content. More...
#include <library/src/ipfs_client/generated_directory_listing.h>
Public Member Functions | |
GeneratedDirectoryListing (std::string_view base_path) | |
Get the HTML preamble going. More... | |
void | AddEntry (std::string_view name) |
Add an entry to the list. More... | |
std::string const & | Finish () |
Finish up all the HTML stuff at the end. More... | |
An index.html listing out a directory node's content.
ipfs::GeneratedDirectoryListing::GeneratedDirectoryListing | ( | std::string_view | base_path | ) |
Get the HTML preamble going.
base_path | - The path to this directory |
void ipfs::GeneratedDirectoryListing::AddEntry | ( | std::string_view | name | ) |
Add an entry to the list.
name | - The directory's way of referring to that CID |
std::string const & ipfs::GeneratedDirectoryListing::Finish | ( | ) |
Finish up all the HTML stuff at the end.