Skip to content

Commit

Permalink
Document all delete functions together
Browse files Browse the repository at this point in the history
  • Loading branch information
jimhester committed Jan 3, 2018
1 parent a2c3c56 commit 8a6711c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 32 deletions.
1 change: 0 additions & 1 deletion R/delete.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ file_delete <- function(path) {
}

#' @rdname delete
#' @template fs
#' @export
dir_delete <- function(path) {
dirs <- dir_list(path, type = "directory", recursive = TRUE)
Expand Down
15 changes: 0 additions & 15 deletions R/dir.R
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
#' Delete files in a directory
#'
#' @inheritParams dir_list
#' @export
dir_delete <- function(path) {
dirs <- dir_list(path, type = "directory", recursive = TRUE)
files <- dir_list(path,
type = c("unknown", "file", "symlink", "FIFO", "socket", "character_device", "block_device"),
recursive = TRUE)
file_delete(files)
rmdir_(rev(c(path, dirs)))

invisible(path_tidy(path))
}

#' Copy a directory
#' @template fs
#' @param new_path new location to copy to.
Expand Down
2 changes: 0 additions & 2 deletions man/delete.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 0 additions & 14 deletions man/dir_delete.Rd

This file was deleted.

0 comments on commit 8a6711c

Please sign in to comment.