Skip to main content

Module local_directory_listing

Module local_directory_listing 

Source

Functionsยง

build_html_directory_listing ๐Ÿ”’
Returns an the string of an JavaScript <script> tag calling the setData function with the contents of the given [ReadDir] directory listing.
fetch ๐Ÿ”’
metadata_to_file_size_string
script_string_literal ๐Ÿ”’
Serialise value as a JavaScript string literal that is safe to embed in the inline <script> element of the directory listing. {:?} produces a valid literal but leaves any < (and therefore </script>) untouched, which lets a crafted file name close the script element and inject markup into the page.
write_directory_entry ๐Ÿ”’