|
|
GList *p; | GList *p; |
char *buffer, *escaped_path, *escaped_mount_point; | char *buffer, *escaped_path, *escaped_mount_point; |
| |
cache_file_parent = append_to_path (g_get_home_dir (), TRASH_ENTRY_CACHE_PARENT); |
cache_file_parent = append_to_path (gnome_vfs_get_home_dir (), TRASH_ENTRY_CACHE_PARENT); |
cache_file_path = append_to_path (cache_file_parent, TRASH_ENTRY_CACHE_NAME); | cache_file_path = append_to_path (cache_file_parent, TRASH_ENTRY_CACHE_NAME); |
| |
if (mkdir_recursive (cache_file_parent, 0777) != 0) { | if (mkdir_recursive (cache_file_parent, 0777) != 0) { |
|
|
cached_trash_directories = NULL; | cached_trash_directories = NULL; |
| |
/* read in the entries from disk */ | /* read in the entries from disk */ |
cache_file_path = g_build_filename (g_get_home_dir (), |
cache_file_path = g_build_filename (gnome_vfs_get_home_dir (), |
TRASH_ENTRY_CACHE_PARENT, | TRASH_ENTRY_CACHE_PARENT, |
TRASH_ENTRY_CACHE_NAME, | TRASH_ENTRY_CACHE_NAME, |
NULL); | NULL); |
|
|
return GNOME_VFS_ERROR_INVALID_URI; | return GNOME_VFS_ERROR_INVALID_URI; |
| |
/* We will need the URI and the stat structure for the home directory. */ | /* We will need the URI and the stat structure for the home directory. */ |
home_directory = g_get_home_dir (); |
home_directory = gnome_vfs_get_home_dir (); |
| |
if (gnome_vfs_context_check_cancellation (context)) { | if (gnome_vfs_context_check_cancellation (context)) { |
g_free (full_name_near); | g_free (full_name_near); |