Help: Reword if(EXISTS) suggestion to prefer if(IS_READABLE)

This commit is contained in:
Brad King
2024-02-06 09:28:22 -05:00
parent 23d7863375
commit 2ce6337503
+3 -4
View File
@@ -178,10 +178,9 @@ File Operations
False if the given path is an empty string. False if the given path is an empty string.
.. warning:: .. note::
To check the readability of a file, use preferably ``if(IS_READABLE)`` Prefer ``if(IS_READABLE)`` to check file readability. ``if(EXISTS)``
because this test will evolve to check file existence only in a future may be changed in the future to to only check file existence.
release.
.. signature:: if(IS_READABLE <path-to-file-or-directory>) .. signature:: if(IS_READABLE <path-to-file-or-directory>)