Class LocalDirEntry
java.lang.Object
io.agentscope.harness.agent.sandbox.layout.WorkspaceEntry
io.agentscope.harness.agent.sandbox.layout.LocalDirEntry
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 Summary
ConstructorsConstructorDescriptionCreates an empty local directory entry.LocalDirEntry(String sourcePath) Creates a local directory entry with the given host source path. -
Method Summary
Modifier and TypeMethodDescriptionReturns the host-side source directory path.voidsetSourcePath(String sourcePath) Sets the host-side source directory path.Methods inherited from class io.agentscope.harness.agent.sandbox.layout.WorkspaceEntry
isEphemeral, setEphemeral
-
Constructor Details
-
LocalDirEntry
public LocalDirEntry()Creates an empty local directory entry. -
LocalDirEntry
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
Returns the host-side source directory path.- Returns:
- absolute host directory path as a string
-
setSourcePath
Sets the host-side source directory path.- Parameters:
sourcePath- absolute host directory path as a string
-