Skip to content

Commit 6116d1a

Browse files
author
Stefan Fleck
committed
added warning regarding filenames containg dots to the help
1 parent e802fb4 commit 6116d1a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

R/rotate.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
#' Rotate or backup files
22
#'
3+
#' @description
34
#' Functions starting with `backup` create backups of a `file`, while functions
45
#' starting with `rotate` do the same but also replace the original `file`
56
#' with an empty one (this is useful for log rotation)
67
#'
8+
#' **Note:**: `rotate()` and co will not work reliable on filenames that contain
9+
#' dots but have no file extension (e.g. `my.holiday.picture.jpg` is OK but
10+
#' `my.holiday.picture` is not)
11+
#'
12+
#'
713
#' @param file `character` scalar: file to backup/rotate
814
#'
915
#' @param age minimum age after which to backup/rotate a file; can be

0 commit comments

Comments
 (0)