FileSystemSource

class FileSystemSource(val pathPrefix: String) : ContentRoot

A ContentRoot backed by the local file system.

Parameters

pathPrefix

the base directory path used to resolve files

Constructors

Link copied to clipboard
constructor(pathPrefix: String)

Properties

Link copied to clipboard
Link copied to clipboard
open override val remote: Boolean = false

Whether this root points to a remote location.

Link copied to clipboard
open override val sourcePrefix: String

The prefix path or URL used to resolve files within this root.

Functions

Link copied to clipboard
open override fun file(path: String): FileSource

Creates a ContentSource for the given relative path within this root.

Link copied to clipboard
open override fun toString(): String