You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to libnfs-python
When I try to stat a file, or read it, is there a way I can directly catch the NFS3ERR_NOENT so I know the file doesn't exist. Or is there a simpler "does file exist" kind of function here?
ronnie sahlberg
unread,
Mar 22, 2016, 12:26:42 AM3/22/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to avi.b...@nutanix.com, libnfs-python
See : libnfs.h
/*
* Sync stat(<filename>)
* Function returns
* 0 : The operation was successful.
* -errno : The command failed.
*/
EXTERN int nfs_stat64(struct nfs_context *nfs, const char *path,
struct nfs_stat_64 *st);
So, libnfs does return errno here, but we don't check it in libnfs-python.