~ubuntu-branches/ubuntu/quantal/thunar/quantal

« back to all changes in this revision

Viewing changes to thunar/thunar-io-jobs.c

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2011-01-30 20:05:10 UTC
  • mfrom: (1.1.31 upstream)
  • Revision ID: james.westby@ubuntu.com-20110130200510-r0mwai90pd8in8zr
Tags: 1.2.1-0ubuntu1
New upstream bugfix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
static GList *
40
40
_tij_collect_nofollow (ThunarJob *job,
41
41
                       GList     *base_file_list,
 
42
                       gboolean   unlinking,
42
43
                       GError   **error)
43
44
{
44
45
  GError *err = NULL;
54
55
      /* try to scan the directory */
55
56
      child_file_list = thunar_io_scan_directory (job, lp->data, 
56
57
                                                  G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS, 
57
 
                                                  TRUE, &err);
 
58
                                                  TRUE, unlinking, &err);
58
59
 
59
60
      /* prepend the new files to the existing list */
60
61
      file_list = thunar_g_file_list_prepend (file_list, lp->data);
386
387
  exo_job_info_message (EXO_JOB (job), _("Preparing..."));
387
388
 
388
389
  /* recursively collect files for removal, not following any symlinks */
389
 
  file_list = _tij_collect_nofollow (job, file_list, &err);
 
390
  file_list = _tij_collect_nofollow (job, file_list, TRUE, &err);
390
391
 
391
392
  /* free the file list and fail if there was an error or the job was cancelled */
392
393
  if (err != NULL || exo_job_is_cancelled (EXO_JOB (job)))
818
819
 
819
820
  /* collect the files for the chown operation */
820
821
  if (recursive)
821
 
    file_list = _tij_collect_nofollow (job, file_list, &err);
 
822
    file_list = _tij_collect_nofollow (job, file_list, FALSE, &err);
822
823
  else
823
824
    file_list = thunar_g_file_list_copy (file_list);
824
825
 
965
966
 
966
967
  /* collect the files for the chown operation */
967
968
  if (recursive)
968
 
    file_list = _tij_collect_nofollow (job, file_list, &err);
 
969
    file_list = _tij_collect_nofollow (job, file_list, FALSE, &err);
969
970
  else
970
971
    file_list = thunar_g_file_list_copy (file_list);
971
972
 
1119
1120
  /* collect directory contents (non-recursively) */
1120
1121
  path_list = thunar_io_scan_directory (job, directory, 
1121
1122
                                        G_FILE_QUERY_INFO_NONE, 
1122
 
                                        FALSE, &err);
 
1123
                                        FALSE, FALSE, &err);
1123
1124
 
1124
1125
  /* turn the GFile list into a ThunarFile list */
1125
1126
  for (lp = g_list_last (path_list);