renameSMB: renameSMB

View source: R/renameSMB.R

renameSMBR Documentation

renameSMB

Description

Use python SMBConnection to rename/move a file at path on a SMB share.

Usage

renameSMB(
  username,
  password,
  my_name = Sys.info()[["nodename"]],
  remote_name,
  service_name,
  old_path,
  new_path,
  domain,
  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 share name i.e. 'Share'

old_path

The complete path including file name and extension to your file e.g. 'Files/Reporting/test.txt'

new_path

The complete path including file name and extension to your new location e.g. 'Files/Reporting/test_renamed.txt'

domain

SMB server domain

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.