sftp_changedir | R Documentation |
Change your "current directory" used by the sftp functions. The function uses and modifies the connection credentials in a list object created by calling sftp_connect.
sftp_changedir( tofolder, current_connection_name = "sftp_con", verbose = TRUE, curlPerformVerbose = FALSE )
tofolder |
A character vector of length 1 containing the name of a
folder to where you want to go. The folder(s) will be looked for below the
folder where you are currently standing according to the sftp connection
list object you are using (default 'stfp_con'). A subfolder (or a
sub-subfolder, etc.) can be specified in one single operation by supplying
a path, like "folder1/folder2/folder3". To move up one level in the folder
hierarchy, use |
current_connection_name |
A string giving the name of the SFTP
connection list object currently used, created by calling
|
verbose |
Logical. Turn on messages to console. Default is TRUE |
curlPerformVerbose |
Logical. Turn on messages to console form curlPerform. Default is FALSE. |
The function returns TRUE after successful change of directory.
sftp_makedir, sftp_removedir, sftp_rename
Other sftp:
sftp_connect()
,
sftp_delete()
,
sftp_download()
,
sftp_listdirs()
,
sftp_listfiles()
,
sftp_list()
,
sftp_makedir()
,
sftp_removedir()
,
sftp_rename()
,
sftp_upload()
## Not run: # minimal - move up one level, rely on defaults sftp_changedir("..") # minimal - to to root, rely on defaults sftp_changedir("root") # explicit - change to a directory at the end of a multi-level path sftp_changedir(tofolder = "level1/folder2/directory3", current_connection_name = "sftp_con", verbose = TRUE, curlPerformVerbose = FALSE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.