storeFileSMB: storeFileSMB

View source: R/storeFileSMB.R

storeFileSMBR Documentation

storeFileSMB

Description

Use python SMBConnection to store the contents of a file at path on a SMB service_name. If the file already exists on the remote server, it will be truncated and overwritten.

Usage

storeFileSMB(
  username,
  password,
  my_name = Sys.info()[["nodename"]],
  remote_name,
  service_name,
  path,
  domain,
  file_obj,
  port = 445,
  timeout = 30,
  python_location
)

Arguments

username

Your SMB user name

password

Your SMB user password, do not store this in your code!

my_name

The machine you are running this operation on (Default : Sys.info()[["nodename"]])

remote_name

The smb server name

service_name

The service_name name i.e. 'Share'

path

The path to put your file e.g. '/home/username/file.txt'

domain

SMB server domain

file_obj

Full file path, to be read e.g. 'Files/Reporting/MyData.csv'

port

Common port (Default : 445)

timeout

How long to keep the connection open before timeout (Default : 30)

python_location

The location of your python installation

Value

Returns no value


bwaite-esr/btools documentation built on Sept. 28, 2023, 5:26 p.m.