Skip to content

FsCopyParams

Base classes

Name Children Inherits
CodexBaseModel
codexed.models.base
Base model for all Codex API models.

⋔ Inheritance diagram

graph TD
  4209062549["v2_protocol.FsCopyParams"]
  3116041069["base.CodexBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3116041069 --> 4209062549
  3879467795 --> 3116041069
  2751680898 --> 3879467795

🛈 DocStrings

Bases: CodexBaseModel

Copy a file or directory tree on the host filesystem.

Source code in src/codexed/models/v2_protocol.py
class FsCopyParams(CodexBaseModel):
    """Copy a file or directory tree on the host filesystem."""

    destination_path: AbsolutePathBuf
    """
    Absolute destination path.
    """
    recursive: bool | None = None
    """
    Required for directory copies; ignored for file copies.
    """
    source_path: AbsolutePathBuf
    """
    Absolute source path.
    """

destination_path instance-attribute

destination_path: AbsolutePathBuf

Absolute destination path.

recursive class-attribute instance-attribute

recursive: bool | None = None

Required for directory copies; ignored for file copies.

source_path instance-attribute

source_path: AbsolutePathBuf

Absolute source path.

:fa-brands-github: Show source on GitHub