Virtual System Interface

Virtual file system management

exception VSI_error
val of_buffer : string -> bigstring -> unit

of_buffer path buf create a new virtual file at path with the bytes from buf.

A reference to buf is kept internally until unlink is called.

  • raises VSI_error

    if there is an error.

unlink path removes path from the virtual filesystem. If any references are kept to external resources they are also released.