浏览代码

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.
Christian Fetzer 9 年之前
父节点
当前提交
311d0376e2
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Help/command/file.rst

+ 2 - 1
Help/command/file.rst

@@ -153,7 +153,8 @@ Move a file or directory within a filesystem from ``<oldname>`` to
   file(REMOVE_RECURSE [<files>...])
 
 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.
 
 ------------------------------------------------------------------------------