NodeFileSystem
Section titled “NodeFileSystem”NodeFileSystem class for Daytona SDK.
Constructors
Section titled “Constructors”new NodeFileSystem()
Section titled “new NodeFileSystem()”def initialize(nodes)Returns:
NodeFileSystem- a new instance of NodeFileSystem
Methods
Section titled “Methods”upload_file()
Section titled “upload_file()”def upload_file(source, remote_path)Copies an IO once to a temporary file so every rank receives the same bytes.
Parameters:
sourceString, IO - File contents, a local file path, or a readable IO.remote_pathString - Destination path on each node.
Returns:
void
Raises:
Daytona:Sdk:NodeOperationError- After all uploads finish, failures contains errors by rank and results contains the ranks whose uploads succeeded.