remote_directory_exists: Test if a remote directory exists

View source: R/file_transfer.R

remote_directory_existsR Documentation

Test if a remote directory exists

Description

see https://stackoverflow.com/questions/15927911/how-to-check-if-dir-exists-over-ssh-and-return-results-to-host-machine

Usage

remote_directory_exists(uri, username = "foo", password = "bar",
  use = c("cp", "scp", "curl")[2], verbose = FALSE)

Arguments

uri

character

username

the username (required)

password

the password

use

character one of 'cp', 'scp' or 'curl'

verbose

logical, if TRUE then echo the command string

Value

integer with 0 for success

See Also

Other file_transfer: cp_download, duck_download, duck_upload, has_duck, has_rsync, has_scp, make_remote_directory, rsync_download, rsync_upload, scp_download, scp_upload


BigelowLab/genologicsr documentation built on June 7, 2024, 3:15 a.m.