WindowsRemovePathCommand
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| RemovePathCommand anyenv.os_commands.base Base class for remove path commands. |
⋔ Inheritance diagram¶
graph TD
3996918311["remove_path.WindowsRemovePathCommand"]
691014020["base.RemovePathCommand"]
925645236["abc.ABC"]
2751680898["builtins.object"]
691014020 --> 3996918311
925645236 --> 691014020
2751680898 --> 925645236
🛈 DocStrings¶
Bases: RemovePathCommand
Windows remove path command implementation.
Source code in src/anyenv/os_commands/remove_path.py
create_command
¶
Generate Windows removal command.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Path to remove |
required |
recursive
|
bool
|
Whether to remove directories recursively |
False
|
Returns:
| Type | Description |
|---|---|
str
|
The removal command string |
Source code in src/anyenv/os_commands/remove_path.py
parse_command
¶
Parse Windows removal result.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
output
|
str
|
Raw command output (ignored) |
required |
exit_code
|
int
|
Command exit code |
0
|
Returns:
| Type | Description |
|---|---|
bool
|
True if path was removed successfully, False otherwise |