Class LocalDirEntry

java.lang.Object
io.agentscope.harness.agent.sandbox.layout.WorkspaceEntry
io.agentscope.harness.agent.sandbox.layout.LocalDirEntry

public class LocalDirEntry extends WorkspaceEntry
Layout entry that recursively copies a directory from the host filesystem into the sandbox workspace.

The sourcePath is an absolute path to a directory on the host machine. All files within that directory are copied recursively to the destination path in the workspace.

  • Constructor Details

    • LocalDirEntry

      public LocalDirEntry()
      Creates an empty local directory entry.
    • LocalDirEntry

      public LocalDirEntry(String sourcePath)
      Creates a local directory entry with the given host source path.
      Parameters:
      sourcePath - absolute path to a directory on the host filesystem
  • Method Details

    • getSourcePath

      public String getSourcePath()
      Returns the host-side source directory path.
      Returns:
      absolute host directory path as a string
    • setSourcePath

      public void setSourcePath(String sourcePath)
      Sets the host-side source directory path.
      Parameters:
      sourcePath - absolute host directory path as a string