sftp_removedir | R Documentation |
Remove one or several directories (subdirectories) in an SFTP account. The function uses connection credentials from a list object created by calling sftp_connect.
sftp_removedir( foldername, sftp_connection = get("sftp_con"), verbose = TRUE, curlPerformVerbose = FALSE )
foldername |
A character vector of length 1 or more, containing the
names of folders you want to remove. 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 |
sftp_connection |
A list object created by calling sftp_connect.
Default is |
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 the number folders deleted.
sftp_makedir, sftp_rename, sftp_changedir
Other sftp:
sftp_changedir()
,
sftp_connect()
,
sftp_delete()
,
sftp_download()
,
sftp_listdirs()
,
sftp_listfiles()
,
sftp_list()
,
sftp_makedir()
,
sftp_rename()
,
sftp_upload()
## Not run: # minimal - remove one folder, rely on defaults sftp_removedir("this_folder_is_bad") # explicit - remove a directory at the end of a multi-level path sftp_removedir(foldername = "level1/folder2/directory3", sftp_connection = sftp_con, verbose = TRUE, curlPerformVerbose = FALSE) # remove several folders as specified in a vector of names sftp_removedir(removefolders$names) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.