Learn R Programming

ssh.utils (version 1.0)

mkdir.remote: Creates a remote directory with the specified group ownership and permissions.

Description

If the directory already exists, attempts to set the group ownership to the user.group. The allowed group permissions are one of c("g+rwx", "g+rx", "go-w", "go-rwx"), or "-". The value "-" means "don't change permissions".

Usage

mkdir.remote(path, user.group = NULL, remote = "", permissions = c("g+rwx", "g+rx", "go-w", "go-rwx", "-"))

Arguments

path
Directory path. If using remote, this should be a full path or a path relative to the user's home directory.
user.group
The user group. If NULL, the default group is used.
remote
Remote machine specification for ssh, in format such as user@server that does not require interactive password entry. For local execution, pass an empty string "" (default).
permissions
The group permissions on the directory. Default is 'rwx'.