CopyPathCommand
Sub classes¶
| Name | Children | Inherits |
|---|---|---|
| UnixCopyPathCommand anyenv.os_commands.copy_path Unix/Linux copy path command implementation. |
||
| MacOSCopyPathCommand anyenv.os_commands.copy_path macOS copy path command implementation. |
||
| WindowsCopyPathCommand anyenv.os_commands.copy_path Windows copy path command implementation. |
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| ABC abc Helper class that provides a standard way to create an ABC using |
⋔ Inheritance diagram¶
graph TD
2819545931["base.CopyPathCommand"]
925645236["abc.ABC"]
2751680898["builtins.object"]
925645236 --> 2819545931
2751680898 --> 925645236
🛈 DocStrings¶
Bases: ABC
Base class for copy path commands.
Source code in src/anyenv/os_commands/base.py
create_command
abstractmethod
¶
Generate copy command.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
source
|
str
|
Source path to copy from |
required |
destination
|
str
|
Destination path to copy to |
required |
recursive
|
bool
|
Whether to copy directories recursively |
False
|
Source code in src/anyenv/os_commands/base.py
parse_command
abstractmethod
¶
Parse copy result.
Returns:
| Type | Description |
|---|---|
bool
|
True if copy was successful, False otherwise |