Function
Arg | Description | Type |
---|---|---|
file | The file to upload | OSPath (required) |
name | The name of the file that should be stored on the server | OSPath |
accessor | The accessor to use | string |
username | The SMB username to login as (if not provided we use the SMB_CREDENTIALS env) | string |
password | The SMB password to login as (if not provided we use the SMB_CREDENTIALS env) | string |
server_address | The SMB server address and optionally port followed by the share name (e.g. \192.168.1.1:445\ShareName) | string (required) |
Required Permissions: FILESYSTEM_READ
Upload files using the SMB file share protocol.