提交 38a8489c 编写于 作者: E Erik Skultety

virfile: Fix virFileExists commentary

Arguably though, function returning only on success is a very
interesting, although quite impractical concept. Also, the errno isn't
and shouldn't be preserved in this case, since the errno can be directly
fed to the virReportSystemError.
Signed-off-by: NErik Skultety <eskultet@redhat.com>
上级 9f26de12
...@@ -1820,7 +1820,8 @@ virFileIsDir(const char *path) ...@@ -1820,7 +1820,8 @@ virFileIsDir(const char *path)
* virFileExists: Check for presence of file * virFileExists: Check for presence of file
* @path: Path of file to check * @path: Path of file to check
* *
* Returns if the file exists. Preserves errno in case it does not exist. * Returns true if the file exists, false if it doesn't, setting errno
* appropriately.
*/ */
bool bool
virFileExists(const char *path) virFileExists(const char *path)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册