HostVFS

object HostVFS

Virtual File Systems: Host I/O

Public access to the factory for bridged host I/O access; satisfies I/O operations with regular host-backed file system facilities. This engine is only active when permission is granted for Host I/O at runtime.

 

Usage

Host I/O VFS can be created using the factory methods provided by this object; for example, acquire, acquireWritable, and scopedTo. The regular acquisition methods may return a singleton object.

Scoped VFS instances are useful for limiting the scope of file system operations to a specific host path. Scoped VFS will prevent reads and writes outside the given host filesystem scope.

 

Elide Host I/O

To enable host-side I/O access for a run of Elide, the runtime must be configured to allow Host I/O. This can be done in several ways:

  • In embedded mode, setting the runtime configuration to allow for I/O access host-side

  • From the command line, passing --host:allow-io

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun scopedTo(path: Path, writable: Boolean = false): GuestVFS
fun scopedTo(path: String, writable: Boolean = false): GuestVFS