瀏覽代碼

Merge topic 'file_WRITE_docs'

d7472bbf file: Clarify directory creation behavior when using WRITE

Acked-by: Kitware Robot <[email protected]>
Merge-request: !1088
Brad King 8 年之前
父節點
當前提交
b745cb3e55
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      Help/command/file.rst

+ 5 - 2
Help/command/file.rst

@@ -13,8 +13,11 @@ File manipulation command.
 Write ``<content>`` into a file called ``<filename>``.  If the file does
 not exist, it will be created.  If the file already exists, ``WRITE``
 mode will overwrite it and ``APPEND`` mode will append to the end.
-(If the file is a build input, use the :command:`configure_file` command
-to update the file only when its content changes.)
+Any directories in the path specified by ``<filename>`` that do not
+exist will be created.
+
+If the file is a build input, use the :command:`configure_file` command
+to update the file only when its content changes.
 
 ------------------------------------------------------------------------------