mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
9f26de1285
commit
38a8489c01
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user