Beispiel #1
0
int
my_mkdir (const char *s, mode_t mode)
{
    int result;
    char *my_s;

    result = mc_mkdir (s, mode);
    if (result)
    {
        char *p = vfs_canon (s);

        result = my_mkdir_rec (p, mode);
        g_free (p);
    }
    if (result == 0)
    {
        my_s = get_absolute_name (s);

#ifdef FIXME
        tree_add_entry (tree, my_s);
#endif

        g_free (my_s);
    }
    return result;
}
Beispiel #2
0
int
my_mkdir (const vfs_path_t * s_vpath, mode_t mode)
{
    int result;

    result = my_mkdir_rec (s_vpath, mode);
    if (result == 0)
    {
        vfs_path_t *my_s;

        my_s = get_absolute_name (s_vpath);
        vfs_path_free (my_s);
    }
    return result;
}
Beispiel #3
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;
}
Beispiel #4
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;
}