int SmbFs::fs_rmdir(const char *path) { QMutexLocker locker(&_mutex); if((smbc_getFunctionRmdir(_ctx))(_ctx, qPrintable(getPath(path))) == 0) return(0); else return(-errno); }
static PyObject * Context_rmdir (Context *self, PyObject *args) { int ret; char *uri = NULL; smbc_rmdir_fn fn; if (!PyArg_ParseTuple (args, "s", &uri)) { return NULL; } fn = smbc_getFunctionRmdir (self->context); errno = 0; ret = (*fn) (self->context, uri); if (ret < 0) { pysmbc_SetFromErrno (); return NULL; } return PyLong_FromLong (ret); }
int smbc_rmdir(const char *durl) { return smbc_getFunctionRmdir(statcont)(statcont, durl); }