WindowsExistsCommand
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| ExistsCommand anyenv.os_commands.base Base class for exists commands. |
⋔ Inheritance diagram¶
graph TD
3135381121["exists.WindowsExistsCommand"]
1780788704["base.ExistsCommand"]
925645236["abc.ABC"]
2751680898["builtins.object"]
1780788704 --> 3135381121
925645236 --> 1780788704
2751680898 --> 925645236
🛈 DocStrings¶
Bases: ExistsCommand
Windows exists command implementation.
Source code in src/anyenv/os_commands/exists.py
create_command
¶
Generate PowerShell Test-Path command.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to test for existence |
required |
Returns:
| Type | Description |
|---|---|
str
|
The PowerShell command string |
Source code in src/anyenv/os_commands/exists.py
parse_command
¶
Parse PowerShell Test-Path result.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
output
|
str
|
Raw PowerShell command output |
required |
exit_code
|
int
|
Command exit code (ignored) |
0
|
Returns:
| Type | Description |
|---|---|
bool
|
True if path exists, False otherwise |