HostCheckout

class HostCheckout(host: Host, root: String) : Checkout(source)

Reads a checkout through Host.readText. Listing a directory is the one thing a Host has no call for, so it starts ls -1 <dir>, which reads a directory and executes nothing from it.

Constructors

Link copied to clipboard
constructor(host: Host, root: String)

Functions

Link copied to clipboard
open override fun list(dir: String): List<String>?

The names in dir; null when this host cannot list, empty when dir is not there.

Link copied to clipboard
open override fun read(path: String): String?