Exemplo n.º 1
0
int
my_rmdir (const char *s)
{
    int result;
    vfs_path_t *vpath;

    vpath = vfs_path_from_str_flags (s, VPF_NO_CANON);
    /* FIXME: Should receive a Wtree! */
    result = mc_rmdir (vpath);
    if (result == 0)
    {
        vfs_path_t *my_s;

        my_s = get_absolute_name (vpath);
        vfs_path_free (my_s);
    }
    vfs_path_free (vpath);
    return result;
}
Exemplo n.º 2
0
int
my_rmdir (char *s)
{
    int result;
#ifdef FIXME
    WTree *tree = 0;
#endif

    /* FIXME: Should receive a Wtree! */
    result = mc_rmdir (s);
    if (result == 0) {
	s = get_absolute_name (s);

#ifdef FIXME
	tree_remove_entry (tree, s);
#endif

	g_free (s);
    }
    return result;
}