Robust methods for setting file/folder permissions across multiple OS.

set_permissions(path, is_folder = FALSE, verbose = TRUE)

Arguments

path

Path to file/folder.

is_folder

Whether path is a folder. If so, permissions will be set recursively for all files/subfolders.

verbose

Print messages.

Value

Null

Examples

tmp <-  tempfile()
set_permissions(path = tmp)
#> Setting permissions for file.