hi,

thanks for 'being there' for pan development.

something I would like to see if preferences for duplicates

at present pan looks for existing and appends a '_copy_x' to the filename, where x is a subsequent number, usually copy_2

it would be trivial, so trivial I will do this and recompile, to either ignore duplicates, which saves me from downloading it, or to overwrite newer or larger files.

more specifically.

decoder.cc calls getuniquefilename , which puts copy into it.
should be able to cancel all cop1_? decodes

char * fname = file::get_unique_fname(save_path.c_str(),
                                              (item->filename
                                               && *item->filename)
                                              ? item->filename
                                              : "pan-saved-file" )

so like if fname == *copy_?, ignore it and do not decode if preferences are set that way. though better to return null in file-util.cc which is called there (I assume)..

specifically char*

file :: get_unique_fname

  else if (is_nonempty_string(path))
      {
         unique = g_strdup_printf ("%s%c%s_copy_%d%s",
                             path, G_DIR_SEPARATOR,
                             lead, i, tail);

**


another suggestion would be for an import/export of headers for backup purposes... some of these are gigabytes these days.


examples of regex with pan would be good too.


thanks


_______________________________________________
Pan-users mailing list
Pan-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/pan-users

Reply via email to