Dir.Embedded_fsSourceAn embedded file system, as a list of files with (relative) paths. This is useful in combination with the "simple-httpd-mkfs" tool, which embeds the files it's given into a OCaml module.
The pseudo-filesystem
add_file ~path content add at path with the given content to the virtual file system.
Add some dynamic content to the virtual file system.
val add_path :
t ->
path:string ->
?mtime:float ->
?headers:Headers.t ->
?deflate:string ->
string ->
unitadd_path vfs ~path real_path add a path to a file on disk at real_path in the embedded file system
Convert a pseudo file system into a vfs to use with Dir.add_vfs.