[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [gftp] Sth wrong with downloading a whole directory
Oliver Lehmann wrote:
> Hi,
>
> I tryed to download a whole directory via ssh2, but i only get the
> subdirecturys....
a temporary fix is to add the following stuff to line 575 of
src/gtk/transfers.c
if (*(curfle->file+strlen(curfle->file)-1)=='/' ) {
*(curfle->file+strlen(curfle->file)-1)=(char)0;
}
if (*(curfle->destfile+strlen(curfle->destfile)-1)=='/' ) {
*(curfle->destfile+strlen(curfle->destfile)-1)=(char)0;
}
so that it looks like:
transfer->current_file_number++;
g_static_mutex_unlock (&transfer->structmutex);
if (*(curfle->file+strlen(curfle->file)-1)=='/' ) {
*(curfle->file+strlen(curfle->file)-1)=(char)0;
}
if (*(curfle->destfile+strlen(curfle->destfile)-1)=='/' ) {
*(curfle->destfile+strlen(curfle->destfile)-1)=(char)0;
}
if (curfle->transfer_action == GFTP_TRANS_ACTION_SKIP)
{
g_static_mutex_lock (&transfer->structmutex);
transfer->next_file = 1;
transfer->curfle = transfer->curfle->next;
g_static_mutex_unlock (&transfer->structmutex);
Would be nice if you can fix that at the real position Biran
--
Oliver Lehmann
@home: lehmann@ans-netz.de
@office: oliver.lehmann@mgi.de
@www: http://www.pofo.de/ | http://wishlist.ans-netz.de/