FileRead Type
What `readFile` found. The server distinguishes all three, and the distinction is the reason the reply is an object rather than a bare string: `Missing` stops resolution at this path, where `FallBack` sends it on to the real filesystem. Getting the two the wrong way round silently changes module resolution.
Union cases
| Union case |
Description
|
Full Usage:
Content content
Parameters:
string
|
The file's content, `Content ""` included - an empty file is not a missing one.
|
Full Usage:
FallBack
|
Not answered here; the server reads the real filesystem. |
Full Usage:
Missing
|
The file does not exist, and the real filesystem is not consulted. |
Instance members
| Instance member |
Description
|
Full Usage:
this.IsContent
Returns: bool
|
|
Full Usage:
this.IsFallBack
Returns: bool
|
|
Full Usage:
this.IsMissing
Returns: bool
|
|