AsyncVolume
create
name: Name of the volume
connect
volume_id: Volume ID
destroy
volume_id: Volume ID
make_dir
path: Path to the directory to createuid: User ID of the created directorygid: Group ID of the created directorymode: Mode of the created directoryforce: Create parent directories if they don’t existopts: Connection options
exists
path: Path to the file or directoryopts: Connection options
update_metadata
path: Path to the file or directoryuid: User ID of the file or directorygid: Group ID of the file or directorymode: Mode of the file or directoryopts: Connection options
read_file
text, bytes, or stream to format to change the return type.
Arguments:
path: Path to the fileformat: Format of the file content—textby defaultopts: Connection options
write_file
path: Path to the filedata: Data to write to the file. Data can be a string, bytes, or IO.uid: User ID of the created filegid: Group ID of the created filemode: Mode of the created fileforce: Force overwrite of an existing fileopts: Connection options
remove
path: Path to the file or directory to removeopts: Connection options