KetraTerm
API · v0.2.2All versions

TerminalCompletionPathResolver

class TerminalCompletionPathResolver @JvmOverloads constructor(homeDirectory: Path? = System.getProperty("user.home")?.takeIf(String::isNotBlank)?.let(Path::of), windows: Boolean = FileSystems.getDefault().separator == "\\")

Resolves lexical completion paths without filesystem access or authority loss.

Parameters

homeDirectory

explicit local home used for tilde expansion.

windows

whether Windows drive and UNC syntax is accepted.

Constructors

Link copied to clipboard
constructor(homeDirectory: Path? = System.getProperty("user.home")?.takeIf(String::isNotBlank)?.let(Path::of), windows: Boolean = FileSystems.getDefault().separator == "\\")

Functions

Link copied to clipboard

Resolves request into a normalized absolute local directory.