int SmbFs::fs_rmdir(const char *path)
{
	QMutexLocker locker(&_mutex);
	
	if((smbc_getFunctionRmdir(_ctx))(_ctx, qPrintable(getPath(path))) == 0)
		return(0);
	else
		return(-errno);
}
Beispiel #2
0
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);
}
Beispiel #3
0
int
smbc_rmdir(const char *durl)
{
        return smbc_getFunctionRmdir(statcont)(statcont, durl);
}