[sword-devel] ftptrans.h

Martin Gruner mg.pub at gmx.net
Mon Sep 10 10:05:27 MST 2007


Hi,

is there a reason why

	int copyDirectory(const char *urlPrefix, const char *dir, const char *dest, 
const char *suffix);

in ftptrans.h is not virtual? This would allow frontends to reimlement on a 
higher level than getURL only. The current implementation of copyDirectory 
has the weakness that the counter for total data to be transferred increases 
as new directories are found and transferred. You can see this with the BAO 
module from Karl Kleinpaste, for example. The status reporter 'readjusts' 
progress as it discovers the directory with the images, which holds the 
actual data.

Can we change the function definition above to make it virtual?

God bless, 

mg



More information about the sword-devel mailing list