pub fn build_html_directory_listing(
url: &Url,
path: PathBuf,
directory_contents: ReadDir,
) -> String
Expand description
Returns an the string of an JavaScript <script>
tag calling the setData
function with the
contents of the given ReadDir
directory listing.
§Arguments
url
- the original URL of the request that triggered this directory listing.path
- the full path to the local directory.directory_contents
- aReadDir
with the contents of the directory.