FTP Mirroring with Codeigniter creates folder, but no files uploaded FTP Mirroring with Codeigniter creates folder, but no files uploaded codeigniter codeigniter

FTP Mirroring with Codeigniter creates folder, but no files uploaded


I'm posting an answer to my own question because the problem was my own ignorance.

private $server_folder = 'my_server_directory/';

should have been

private $server_folder = '/my_server_directory/';

I swear I tried that syntax while trouble shooting my problem, but I must have changed something else too that broke the mirroring at the same time, hiding the answer from me.

Thanks for your comments and answers @Damien Pirsy and @ Edinho Almeida.


If

$this->ftp->mkdir()

works fine, I'm sure that your permission settings are ok.

If

$this->ftp->list_files()

works fine, I'm sure that your connection settings are ok too.

I guess your SQL backup files are starting with dot

See in

system/libraries/Ftp.php at lines 547 and 551