sync_directory: Sync directory

Description Usage Arguments Value

View source: R/utility_functions.R

Description

Create a mirror image of a directory. Files will be removed if they are not present in the source directory.

Usage

1
2
3
4
5
6
sync_directory(
  source,
  destination,
  ignore = c("Customer_Success/Input_Data/Software_Downloads_Raw"),
  delete = FALSE
)

Arguments

source

A character string representing the path of the source directory.

destination

A character string representing the path of the destination directory. Default: Customer_Success/Input_Data/Software_Downloads_Raw.

ignore

A character vector representing the directory paths to ignore. Default: c("Customer_Success/Input_Data/Software_Downloads_Raw").

delete

A logical value representing whether to delete files/folders absent in source directory. Default is FALSE.

Value

A logical value TRUE if the operation is successful.


deepjyot1991/zimplify documentation built on Dec. 19, 2021, 10:09 p.m.