From 311d0376e2312d3539bd997160f880cf58743834 Mon Sep 17 00:00:00 2001 From: Christian Fetzer Date: Tue, 1 Nov 2016 10:23:15 +0100 Subject: Help: Document error behavior of file(REMOVE/REMOVE_RECURSE) Clarifies that there is no need to surround file(REMOVE/REMOVE_RECURSE) calls by `if(EXISTS)` as non existent files are silently ignored. --- Help/command/file.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Help/command/file.rst b/Help/command/file.rst index 77e9f62..8da46cb 100644 --- a/Help/command/file.rst +++ b/Help/command/file.rst @@ -153,7 +153,8 @@ Move a file or directory within a filesystem from ```` to file(REMOVE_RECURSE [...]) Remove the given files. The ``REMOVE_RECURSE`` mode will remove the given -files and directories, also non-empty directories +files and directories, also non-empty directories. No error is emitted if a +given file does not exist. ------------------------------------------------------------------------------ -- cgit v0.12