list_files_ftp: Function to list files on an FTP or SFTP server.

View source: R/download_ftp_file.R

list_files_ftpR Documentation

Function to list files on an FTP or SFTP server.

Description

Function to list files on an FTP or SFTP server.

Usage

list_files_ftp(
  url,
  credentials = "",
  sleep = NA,
  sort = FALSE,
  verbose = FALSE
)

Arguments

url

The url of remote directory.

credentials

Credentials for a FTP or SFTP server. Do not use credentials if the server does not require authentication. credentials takes the format: "username:password".

sleep

Number of seconds to wait between querying server.

sort

Should the files be sorted alphabetically?

verbose

Should the function give messages?

download_ftp_file, upload_to_ftp

Author(s)

Stuart K. Grange

Examples

## Not run: 

# Set credentials in this format
credentials <- "username:password"

# List files on a ftp server
list_files_ftp("ftp://195.174.23.76/test", credentials)


## End(Not run)


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.