Browse Source

Merge topic 'doc-if-exists' into release-3.27

3ab132d86f Help: Document that if(EXISTS) requires paths to be readable

Acked-by: Kitware Robot <[email protected]>
Merge-request: !8656
Brad King 2 years ago
parent
commit
2d8aeaca07
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Help/command/if.rst

+ 3 - 3
Help/command/if.rst

@@ -170,9 +170,9 @@ File Operations
 
 .. signature:: if(EXISTS <path-to-file-or-directory>)
 
-  True if the named file or directory exists.  Behavior is well-defined
-  only for explicit full paths (a leading ``~/`` is not expanded as
-  a home directory and is considered a relative path).
+  True if the named file or directory exists and is readable.  Behavior
+  is well-defined only for explicit full paths (a leading ``~/`` is not
+  expanded as a home directory and is considered a relative path).
   Resolves symbolic links, i.e. if the named file or directory is a
   symbolic link, returns true if the target of the symbolic link exists.