copy_modal_volume_files
Copy files within a Modal volume, enabling duplication of single or multiple source files to a specified destination file or directory. Streamlines file management operations in serverless cloud environments.
Instructions
Copy files within a Modal volume. Can copy a source file to a destination file
or multiple source files to a destination directory.
Args:
volume_name: Name of the Modal volume to perform copy operation in.
paths: List of paths for the copy operation. The last path is the destination,
all others are sources. For example: ["source1.txt", "source2.txt", "dest_dir/"]
Returns:
A dictionary containing the result of the copy operation.
Raises:
Exception: If the copy operation fails for any reason.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
paths | Yes | ||
volume_name | Yes |
Input Schema (JSON Schema)
{
"properties": {
"paths": {
"items": {
"type": "string"
},
"title": "Paths",
"type": "array"
},
"volume_name": {
"title": "Volume Name",
"type": "string"
}
},
"required": [
"volume_name",
"paths"
],
"title": "copy_modal_volume_filesArguments",
"type": "object"
}