nupp.io.path.spi
Implementation interfaces consumed during ordinary module initialization. Discover with nupp.spi.load; the consumer chooses the unique highest priority. Omitted priority is zero. Importing these declarations loads no implementation.
Module contents
Types
| Type | Kind | Description |
|---|---|---|
Provider | interface | Environmental path facts, independent of lexical path manipulation. |
Types#
Providerinterface#
interface Provider ...Environmental path facts, independent of lexical path manipulation.
separator reports the host convention. currentDirectory and canonicalize may return nil with an explanatory message when the host has no such facility or an operating-system operation fails. Public Path identity remains in nupp.io.path.
Members
| Name | Kind | Description |
|---|---|---|
priority | field | |
separator | method | Returns the host path separator. |
currentDirectory | method | Returns the process directory or nil and an environmental error. |
canonicalize | method | Resolves a host filesystem path or returns nil and an error. |
separatormethod#
separator: function(): string@readonly
Returns the host path separator.
Returns
| Type | Description |
|---|---|
string |
currentDirectorymethod#
currentDirectory: function(): (string?, string?)@readonly
Returns the process directory or nil and an environmental error.
Returns
| Type | Description |
|---|---|
string? | |
string? |