It seems the module has problems with file names that include a space character. To solve this problem I suggest the following way of getting the file name in the drupal_ftp_file_list() function:

$file_name = substr($file_list[$i], 55);

It seems to work fine. Do you think it could be any problem with inconsistency in the FTP standard, that makes this bad practice?

Sorry for not submitting a patch, I will learn how to do that asap... :)

Comments

alexkb’s picture

Assigned: Unassigned » alexkb
Status: Needs review » Fixed

Thanks for pointing this issue out, Tomas. I've now fixed the bug and the changes are in CVS HEAD. I'll be going through the other issues in the drupal_ftp queue in the next few days, and then we'll roll a new 6.x release which will include this bug fix.

Cheers.

alexkb’s picture

We've now rolled out a 1.1 release with this change included. Please let us know if you have any issues.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.