diff --git a/src/Tiny_httpd_dir.mli b/src/Tiny_httpd_dir.mli index 0361a2bd..16c1491a 100644 --- a/src/Tiny_httpd_dir.mli +++ b/src/Tiny_httpd_dir.mli @@ -140,9 +140,12 @@ module Embedded_fs : sig type t (** The pseudo-filesystem *) - val create : unit -> t + val create : ?mtime:float -> unit -> t - val add_file : t -> path:string -> string -> unit + val add_file : ?mtime:float -> t -> path:string -> string -> unit + (** Add file to the virtual file system. + @raise Invalid_argument if the path contains '..' or if it tries to + make a directory out of an existing path that is a file. *) val to_vfs : t -> (module VFS) end