View source: R/retrieveFileSMB.R
retrieveFileSMB | R Documentation |
Use python SMBConnection to retrieve the contents of a file at path on a SMB service_name. If the file already exists on the file_obj
, it will be truncated and overwritten.
retrieveFileSMB(
username,
password,
my_name = Sys.info()[["nodename"]],
remote_name,
service_name,
path,
domain,
file_obj,
port = 445,
timeout = 30,
python_location
)
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 : |
remote_name |
The smb server name |
service_name |
The service_name name i.e. |
path |
The SMB folder path where your file is e.g. |
domain |
SMB server domain |
file_obj |
Full file path to put the retrieved data e.g. |
port |
Common port (Default : |
timeout |
How long to keep the connection open before timeout (Default : |
python_location |
The location of your python installation |
Boolean indicating file exists at file_obj
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.